aboutsummaryrefslogtreecommitdiffstats
path: root/library/font_awesome/src/assets/js/site.js
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-01-10 10:19:22 +0100
committerMario Vavti <mario@mariovavti.com>2017-01-10 10:19:22 +0100
commit38dd1c342a5d86989a2773f6499c7fbd005e241d (patch)
tree7d6b416da6031c5c7f0c83cb47e7b43a3069e31f /library/font_awesome/src/assets/js/site.js
parent0f89db3b46be20a80c29ae894e83853831c7394e (diff)
downloadvolse-hubzilla-38dd1c342a5d86989a2773f6499c7fbd005e241d.tar.gz
volse-hubzilla-38dd1c342a5d86989a2773f6499c7fbd005e241d.tar.bz2
volse-hubzilla-38dd1c342a5d86989a2773f6499c7fbd005e241d.zip
font awesome 4.7.0
Diffstat (limited to 'library/font_awesome/src/assets/js/site.js')
-rw-r--r--library/font_awesome/src/assets/js/site.js104
1 files changed, 58 insertions, 46 deletions
diff --git a/library/font_awesome/src/assets/js/site.js b/library/font_awesome/src/assets/js/site.js
index f64dde81d..f92d2fa50 100644
--- a/library/font_awesome/src/assets/js/site.js
+++ b/library/font_awesome/src/assets/js/site.js
@@ -2,56 +2,48 @@ $(function () {
$("#newsletter").validate();
var ads = [
+ // {
+ // quote: "<i class='fas fas-perfect fas-2x valign-middle margin-right'></i>Looking for the best icon sets? Check out <strong>Symbolset</strong>, <a href='https://articles.fortawesome.com/fort-awesome-acquires-symbolset-72229dab2c13'>now</a> 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: "<i class='fas fas-curate fas-2x valign-middle margin-right'></i>Need a different look for your icons? Check out <strong>Symbolset</strong>, <a href='https://articles.fortawesome.com/fort-awesome-acquires-symbolset-72229dab2c13'>now</a> 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 <strong>Fort Awesome</strong>, 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 <strong>Fort Awesome</strong>, 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 <strong>Fort Awesome</strong>, 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: "Take your icon game to the next level. Check out <strong>Fort Awesome</strong>, from the maker of Font Awesome.",
- class: "fort-awesome",
- url: "https://fonticons.com/?utm_source=font_awesome_homepage&utm_medium=display&utm_content=ad_1_next_level&utm_campaign=promo_4.5_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: "Make your icons load 10x faster! Check out <strong>Fort Awesome</strong>, from the maker of Font Awesome.",
- class: "fort-awesome",
- url: "https://fonticons.com/?utm_source=font_awesome_homepage&utm_medium=display&utm_content=ad_3_faster_loading&utm_campaign=promo_4.5_update",
- btn_text: "Gimme Some!"
+ 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",
},
- {
- quote: "Looking for other great icon sets? Check out <strong>Fort Awesome</strong>, from the maker of Font Awesome.",
- class: "fort-awesome",
- url: "https://fonticons.com/?utm_source=font_awesome_homepage&utm_medium=display&utm_content=ad_4_more_icons&utm_campaign=promo_4.5_update",
- btn_text: "Gimme Some!"
- },
- {
- quote: "Want to add your own icon? Check out <strong>Fort Awesome</strong>, from the maker of Font Awesome.",
- class: "fort-awesome",
- url: "https://fonticons.com/?utm_source=font_awesome_homepage&utm_medium=display&utm_content=ad_6_your_own_icon&utm_campaign=promo_4.5_update",
- btn_text: "Gimme Some!"
- },
-
-
- {
- 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: "http://blacktie.io/?utm_source=font_awesome_homepage&utm_medium=display&utm_content=ad_2_kickstarter&utm_campaign=promo_4.5_update",
- btn_text: "Check it Out!"
- },
- {
- 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: "http://blacktie.io/?utm_source=font_awesome_homepage&utm_medium=display&utm_content=ad_5_clean_minimalist&utm_campaign=promo_4.5_update",
- btn_text: "Check it Out!"
- },
- {
- quote: "Want a different icon look? Check out <strong>Black Tie</strong>, our new multi-weight icon set.",
- class: "black-tie",
- url: "http://blacktie.io/?utm_source=font_awesome_homepage&utm_medium=display&utm_content=ad_6_different_look&utm_campaign=promo_4.5_update",
- btn_text: "Check it Out!"
- },
- {
- quote: "Check out <strong>Black Tie</strong>, our new multi-weight icon set!",
- class: "black-tie",
- url: "http://blacktie.io/?utm_source=font_awesome_homepage&utm_medium=display&utm_content=ad_7_our_new_multi_weight&utm_campaign=promo_4.5_update",
- btn_text: "Check it Out!"
- }
];
selectAd();
@@ -63,7 +55,27 @@ $(function () {
$('[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];