Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,18 @@ $('.stars').each(function(idx, element){
}
});

function rotateBanner() {
var extensionSection = $(".update-site");
var ebookSection = $(".jtw-ebook-banner");
if (Math.random() >= .5) {
extensionSection.show();
} else {
ebookSection.show();
}
};

rotateBanner();

function setInstalledText() {
var button = $('#extension-button');
if(button && button.hasClass('is-installed')) {
Expand Down
24 changes: 24 additions & 0 deletions stylus/app.styl
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ body
width 80px

.update-site
display: none;
background: #e3e5e7
padding: 30px 20px;
font-size: 18px;
Expand Down Expand Up @@ -394,6 +395,29 @@ body
line-height: 33px;
display: inline-block;

// jtw ebook banner
.jtw-ebook-banner
display: none;
background: #e3e5e7;
padding: 30px 20px;
font-size: 18px;
text-align: center;
color: darken(#e3e5e7, 70%);

+breakpoint("desktop")
padding: 30px 0;

.btn-download-ebook
padding: 8px 24px;
margin: 0px auto 0 11px;
color: #fff;
border-radius: 3px;
background-color: #00b9f1;
font-size: 14px;
font-weight: bold;
text-transform: uppercase;
text-align: center;
text-decoration: none;

// debugger-jwt

Expand Down
6 changes: 5 additions & 1 deletion views/index.jade
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ block content
use(fill='#FFFFFF', fill-rule='evenodd', xlink:href='#path-1')

span.button-text Add to chrome

section.jtw-ebook-banner
span
strong Get the JWT Handbook for free!
|Spread the word and download it now.
a.btn.btn-download-ebook(href='https://auth0.com/e-books/jwt-handbook', target='_blank') Download Ebook
section#debugger-io.debugger-jwt
.container
//- a(name='debugger')
Expand Down