diff options
Diffstat (limited to 'assets/js')
-rw-r--r-- | assets/js/site.js | 73 |
1 files changed, 67 insertions, 6 deletions
diff --git a/assets/js/site.js b/assets/js/site.js index 04776b425..ca5bd52f6 100644 --- a/assets/js/site.js +++ b/assets/js/site.js @@ -1,10 +1,68 @@ $(function() { var ads = [ - { quote: "Take your icon game to the next level.", content: "ad_1_next_level"}, - { quote: "Subset your icons, add your own, and serve up from a CDN.", content: "ad_2_all_value_add"}, - { quote: "Make your icons load 10x faster!", content: "ad_3_faster_loading"}, - { quote: "Looking for other great icon sets?", content: "ad_4_more_icons"}, - { quote: "Need a custom icon in Font Awesome?", content: "ad_5_custom_icons"} + { + quote: "Take your icon game to the next level. Check out <strong>Fonticons</strong>, from the maker of Font Awesome.", + class: "fonticons", + url: "https://fonticons.com/?utm_source=font_awesome_homepage&utm_medium=display&utm_content=ad_1_next_level&utm_campaign=promo_4.3_update", + btn_text: "Gimme Some!" + }, + { + quote: "Subset your icons, add your own, and serve up from a CDN. Check out <strong>Fonticons</strong>, from the maker of Font Awesome.", + class: "fonticons", + url: "https://fonticons.com/?utm_source=font_awesome_homepage&utm_medium=display&utm_content=ad_2_all_value_add&utm_campaign=promo_4.3_update", + btn_text: "Gimme Some!" + }, + { + quote: "Make your icons load 10x faster! Check out <strong>Fonticons</strong>, from the maker of Font Awesome.", + class: "fonticons", + url: "https://fonticons.com/?utm_source=font_awesome_homepage&utm_medium=display&utm_content=ad_3_faster_loading&utm_campaign=promo_4.3_update", + btn_text: "Gimme Some!" + }, + { + quote: "Looking for other great icon sets? Check out <strong>Fonticons</strong>, from the maker of Font Awesome.", + class: "fonticons", + url: "https://fonticons.com/?utm_source=font_awesome_homepage&utm_medium=display&utm_content=ad_4_more_icons&utm_campaign=promo_4.3_update", + btn_text: "Gimme Some!" + }, + { + quote: "Need a custom icon in Font Awesome? Check out <strong>Fonticons</strong>, from the maker of Font Awesome.", + class: "fonticons", + url: "https://fonticons.com/?utm_source=font_awesome_homepage&utm_medium=display&utm_content=ad_5_custom_icons&utm_campaign=promo_4.3_update", + btn_text: "Gimme Some!" + }, + + + + { + quote: "So hot right now: <strong>Black Tie</strong>, the new multi-weight icon font from the maker of Font Awesome.", + class: "black-tie", + url: "https://blacktie.io/?utm_source=font_awesome_homepage&utm_medium=display&utm_content=ad_1_so_hot&utm_campaign=promo_4.3_update", + btn_text: "Buy it Now!" + }, + { + quote: "<strong>Black Tie</strong>, from the creator of Font Awesome. On sale at the Kickstarter price for a limited time.", + class: "black-tie", + url: "https://blacktie.io/?utm_source=font_awesome_homepage&utm_medium=display&utm_content=ad_2_kickstarter&utm_campaign=promo_4.3_update", + btn_text: "Buy it Now!" + }, + { + quote: "Get more Awesome: <strong>Black Tie</strong>, the new multi-weight icon font from the maker of Font Awesome.", + class: "black-tie", + url: "https://blacktie.io/?utm_source=font_awesome_homepage&utm_medium=display&utm_content=ad_3_more_awesome&utm_campaign=promo_4.3_update", + btn_text: "Buy it Now!" + }, + { + quote: "The new hotness from the maker of Font Awesome: <strong>Black Tie</strong>, the multi-weight icon font.", + class: "black-tie", + url: "https://blacktie.io/?utm_source=font_awesome_homepage&utm_medium=display&utm_content=ad_4_new_hotness&utm_campaign=promo_4.3_update", + btn_text: "Buy it Now!" + }, + { + quote: "Want clean, minimalist icons? Check out <strong>Black Tie</strong>, the new multi-weight icon font from the maker of Font Awesome.", + class: "black-tie", + url: "https://blacktie.io/?utm_source=font_awesome_homepage&utm_medium=display&utm_content=ad_5_clean_minimalist&utm_campaign=promo_4.3_update", + btn_text: "Buy it Now!" + } ]; selectFonticonsAd(); @@ -96,7 +154,10 @@ $(function() { 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", "https://fonticons.com/?utm_source=font_awesome_homepage&utm_medium=display&utm_content=" + random_ad.content + "&utm_campaign=promo_4.3_update"); + $('#rotating-url').attr("href", random_ad.url); + $('#rotating-url').html(random_ad.btn_text); + $('#banner').collapse('show'); } }); |