File tree Expand file tree Collapse file tree 3 files changed +41
-1
lines changed Expand file tree Collapse file tree 3 files changed +41
-1
lines changed Original file line number Diff line number Diff line change @@ -719,6 +719,18 @@ $('.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
+
722
734
function setInstalledText ( ) {
723
735
var button = $ ( '#extension-button' ) ;
724
736
if ( button && button . hasClass ( 'is-installed' ) ) {
Original file line number Diff line number Diff line change 338
338
width 80px
339
339
340
340
.update-site
341
+ display : none ;
341
342
background : #e3 e5 e7
342
343
padding : 30px 20px ;
343
344
font-size : 18px ;
@@ -394,6 +395,29 @@ body
394
395
line-height : 33px ;
395
396
display : inline-block ;
396
397
398
+ // jtw ebook banner
399
+ .jtw-ebook-banner
400
+ display : none ;
401
+ background : #e3 e5 e7 ;
402
+ padding : 30px 20px ;
403
+ font-size : 18px ;
404
+ text-align : center ;
405
+ color : darken (#e3 e5 e7 , 70% );
406
+
407
+ +breakpoint ("desktop" )
408
+ padding : 30px 0 ;
409
+
410
+ .btn-download-ebook
411
+ padding : 8px 24px ;
412
+ margin : 0px auto 0 11px ;
413
+ color : #f f f ;
414
+ border-radius : 3px ;
415
+ background-color : #00 b9 f1 ;
416
+ font-size : 14px ;
417
+ font-weight : bold ;
418
+ text-transform : uppercase ;
419
+ text-align : center ;
420
+ text-decoration : none ;
397
421
398
422
// debugger-jwt
399
423
Original file line number Diff line number Diff line change @@ -57,7 +57,11 @@ block content
57
57
use( fill ='#FFFFFF' , fill-rule ='evenodd' , xlink:href ='#path-1' )
58
58
59
59
span.button-text Add to chrome
60
-
60
+ section.jtw-ebook-banner
61
+ span
62
+ strong Get the JWT Handbook for free!
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
61
65
section#debugger-io .debugger-jwt
62
66
.container
63
67
//- a(name='debugger')
You can’t perform that action at this time.
0 commit comments