From c754197d91b9b615349ff22fdae393905015ffff Mon Sep 17 00:00:00 2001 From: Dave Gandy Date: Sun, 1 Oct 2017 23:50:47 -0400 Subject: [PATCH] updating banners and modals --- src/_includes/modals/download.html | 12 ++++++------ src/_includes/modals/fa5.html | 4 ++-- src/_layouts/base.html | 1 - src/assets/js/site.js | 29 +++-------------------------- 4 files changed, 11 insertions(+), 35 deletions(-) diff --git a/src/_includes/modals/download.html b/src/_includes/modals/download.html index b1102b526..439b2a67c 100644 --- a/src/_includes/modals/download.html +++ b/src/_includes/modals/download.html @@ -10,7 +10,7 @@

- September is your last chance to get Font Awesome Pro for just $40. + Get 2,000+ icons with Font Awesome Pro and ALL KS rewards for just $60!

- +

- September is the last chance to get Pro, all 46 icon packs ($460 value), & ALL Kickstarter rewards for just $40! + Get early access and input into new icons, categories, and frameworks with our private GitHub repo!

- +

Check out Pro!  

diff --git a/src/_includes/modals/fa5.html b/src/_includes/modals/fa5.html index a11b1e240..8d5fcb617 100644 --- a/src/_includes/modals/fa5.html +++ b/src/_includes/modals/fa5.html @@ -6,7 +6,7 @@

- September is your last chance to get Font Awesome Pro for just $40. + Get 2,000+ icons with Font Awesome Pro and ALL KS rewards for $60!

-

Check out Pro!   diff --git a/src/_layouts/base.html b/src/_layouts/base.html index 405c0d265..3a784def0 100644 --- a/src/_layouts/base.html +++ b/src/_layouts/base.html @@ -55,7 +55,6 @@ - diff --git a/src/assets/js/site.js b/src/assets/js/site.js index 90ab57a32..f3c4be82e 100644 --- a/src/assets/js/site.js +++ b/src/assets/js/site.js @@ -3,10 +3,10 @@ $(function () { var ads = [ { - quote: "September is your last chance to get FA Pro and ALL KS rewards for $40.", + quote: "Get 2,000+ icons with Font Awesome Pro and ALL KS rewards for just $60!", class: "fa5", - url: "https://fontawesome.com/?utm_source=font_awesome_homepage&utm_medium=display&utm_campaign=september_last_chance&utm_content=banner", - btn_text: "Check out FA Pro!  ", + url: "https://fontawesome.com/?utm_source=font_awesome_homepage&utm_medium=display&utm_campaign=two_thousand_60&utm_content=banner", + btn_text: "Check out FA Pro  ", }, ]; @@ -34,27 +34,6 @@ $(function () { // Yippee! We can use localStorage awesomeness } - function timeLeft() { - var now, ksEndsAt, hoursLeft, minutesLeft, humanized; - - try { - now = moment(); - ksEndsAt = moment("2017-10-01 00:00:00-05"); - hoursLeft = ksEndsAt.diff(now, "hours"); - minutesLeft = ksEndsAt.diff(now, "minutes") - hoursLeft * 60; - } catch (e) {} - - if (hoursLeft < 0 || minutesLeft < 0) { - return; - } - - humanized = hoursLeft + " " + ((hoursLeft === 1) ? "hour" : "hours") + ", " + minutesLeft + " " + ((minutesLeft === 1) ? "minute" : "minutes"); - - $('#time-left-message').html('Just ' + humanized + ' left before the price goes up!'); - - setTimeout(timeLeft, 2000); - } - function storageAvailable(type) { try { var storage = window[type], @@ -72,8 +51,6 @@ $(function () { random_number = Math.floor(Math.random() * ads.length); random_ad = ads[random_number]; - timeLeft(); - $('#banner').addClass(random_ad.class); $('#rotating-message').html(random_ad.quote); $('#rotating-url').attr("href", random_ad.url);