File tree Expand file tree Collapse file tree 2 files changed +12
-14
lines changed Expand file tree Collapse file tree 2 files changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -719,18 +719,6 @@ $('.stars').each(function(idx, element){
719
719
}
720
720
} ) ;
721
721
722
- function rotateBanner ( ) {
723
- var extensionSection = $ ( ".update-site" ) ;
724
- var ebookSection = $ ( ".jtw-ebook-banner" ) ;
725
- if ( Math . random ( ) >= .5 ) {
726
- extensionSection . show ( ) ;
727
- } else {
728
- ebookSection . show ( ) ;
729
- }
730
- } ;
731
-
732
- rotateBanner ( ) ;
733
-
734
722
function setInstalledText ( ) {
735
723
var button = $ ( '#extension-button' ) ;
736
724
if ( button && button . hasClass ( 'is-installed' ) ) {
Original file line number Diff line number Diff line change @@ -61,7 +61,17 @@ block content
61
61
span
62
62
strong Get the JWT Handbook for free!
63
63
|Spread the word and download it now.
64
- a.btn.btn-download-ebook ( href ='https://auth0.com/e-books/jwt-handbook' , target ='_blank' ) Download Ebook
64
+ a.btn.btn-download-ebook ( href ='https://auth0.com/e-books/jwt-handbook?utm_source=jwtio&utm_medium=sc&utm_campaign=rotating_banner' , target ='_blank' ) Download Ebook
65
+
66
+ script .
67
+ var extensionSection = document .getElementsByClassName (" update-site" )[0 ];
68
+ var ebookSection = document .getElementsByClassName (" jtw-ebook-banner" )[0 ];
69
+ if (Math .random () >= .5 ) {
70
+ extensionSection .style .display = ' block' ;
71
+ } else {
72
+ ebookSection .style .display = ' block' ;
73
+ }
74
+
65
75
section#debugger-io .debugger-jwt
66
76
.container
67
77
//- a(name='debugger')
@@ -264,4 +274,4 @@ block content
264
274
.column.tshirt
265
275
h2 Store
266
276
img( src ='img/pic_tshirt.png' )
267
- a.buy ( href ='http://swag.auth0.com/' , target ='_blank' ) Buy T-Shirt
277
+ a.buy ( href ='http://swag.auth0.com/' , target ='_blank' ) Buy T-Shirt
You can’t perform that action at this time.
0 commit comments