From a5f843ba9ba3dd3ce9ad22a89d57dfcb5fa46586 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Mon, 26 Feb 2018 11:05:48 +0100 Subject: switch to fork-awesome --- library/font_awesome/src/assets/js/site.js | 89 ------------------------------ 1 file changed, 89 deletions(-) delete mode 100644 library/font_awesome/src/assets/js/site.js (limited to 'library/font_awesome/src/assets/js/site.js') diff --git a/library/font_awesome/src/assets/js/site.js b/library/font_awesome/src/assets/js/site.js deleted file mode 100644 index f92d2fa50..000000000 --- a/library/font_awesome/src/assets/js/site.js +++ /dev/null @@ -1,89 +0,0 @@ -$(function () { - $("#newsletter").validate(); - - var ads = [ - // { - // quote: "Looking for the best icon sets? Check out Symbolset, now from the maker of Font Awesome.", - // class: "symbolset", - // url: "https://symbolset.com/?utm_source=font_awesome_homepage&utm_medium=display&utm_content=ad_1_best_icons&utm_campaign=promo_4.7_update", - // btn_text: "Gimme Some!" - // }, - // { - // quote: "Need a different look for your icons? Check out Symbolset, now from the maker of Font Awesome.", - // class: "symbolset", - // url: "https://symbolset.com/?utm_source=font_awesome_homepage&utm_medium=display&utm_content=ad_2_different_look&utm_campaign=promo_4.7_update", - // btn_text: "Gimme Some!" - // }, - // { - // quote: "Take your icon game to the next level. Check out Fort Awesome, from the maker of Font Awesome.", - // class: "fort-awesome", - // url: "https://fortawesome.com/start?utm_source=font_awesome_homepage&utm_medium=display&utm_content=ad_1_next_level&utm_campaign=promo_4.7_update", - // btn_text: "Gimme Some!" - // }, - // { - // quote: "Make your icons load 10x faster! Check out Fort Awesome, from the maker of Font Awesome.", - // class: "fort-awesome", - // url: "https://fortawesome.com/start?utm_source=font_awesome_homepage&utm_medium=display&utm_content=ad_3_faster_loading&utm_campaign=promo_4.7_update", - // btn_text: "Gimme Some!" - // }, - // { - // quote: "Want to add your own icon? Check out Fort Awesome, from the maker of Font Awesome.", - // class: "fort-awesome", - // url: "https://fortawesome.com/start?utm_source=font_awesome_homepage&utm_medium=display&utm_content=ad_6_your_own_icon&utm_campaign=promo_4.7_update", - // btn_text: "Gimme Some!" - // } - { - quote: "Font Awesome 5. The most awesome-est Font Awesome ever!", - class: "kickstarter", - url: "http://five.fontawesome.io/?utm_source=font_awesome_homepage&utm_medium=display&utm_content=ad_1_most_awesome-est&utm_campaign=promo_4.7_update", - btn_text: "Check out the Kickstarter", - }, - { - quote: "Get 1,000+ more icons and SVG in Font Awesome 5 Pro!", - class: "kickstarter", - url: "http://five.fontawesome.io/?utm_source=font_awesome_homepage&utm_medium=display&utm_content=ad_2_svg_and_1000_more&utm_campaign=promo_4.7_update", - btn_text: "Check out the Kickstarter", - }, - ]; - - selectAd(); - - // start the icon carousel - $('#icon-carousel').carousel({ - interval: 5000 - }); - - $('[data-toggle="tooltip"]').tooltip(); - $('[data-toggle="popover"]').popover(); - if (storageAvailable('localStorage') && !localStorage.seenKickstarterModal) { - $('#modal-kickstarter').modal('toggle'); - } - - if (storageAvailable('localStorage')) { - localStorage.seenKickstarterModal = true; - // Yippee! We can use localStorage awesomeness - } - - function storageAvailable(type) { - try { - var storage = window[type], - x = '__storage_test__'; - storage.setItem(x, x); - storage.removeItem(x); - return true; - } - catch(e) { - return false; - } - } - function selectAd() { - random_number = Math.floor(Math.random() * ads.length); - random_ad = ads[random_number]; - - $('#banner').addClass(random_ad.class); - $('#rotating-message').html(random_ad.quote); - $('#rotating-url').attr("href", random_ad.url); - $('#rotating-url').html(random_ad.btn_text); - $('#banner').collapse('show'); - } -}); -- cgit v1.2.3