From f797bb14f7413df2abac6326c6df769004e50aa1 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Mon, 1 May 2023 09:35:25 -0600 Subject: small bugfix, add toc settings, update example site and delete unnecessary static assets --- .../static/fork-awesome/src/doc/assets/js/site.js | 60 ---------------------- 1 file changed, 60 deletions(-) delete mode 100644 pyssg.xyz/live/static/fork-awesome/src/doc/assets/js/site.js (limited to 'pyssg.xyz/live/static/fork-awesome/src/doc/assets/js/site.js') diff --git a/pyssg.xyz/live/static/fork-awesome/src/doc/assets/js/site.js b/pyssg.xyz/live/static/fork-awesome/src/doc/assets/js/site.js deleted file mode 100644 index c6592a6..0000000 --- a/pyssg.xyz/live/static/fork-awesome/src/doc/assets/js/site.js +++ /dev/null @@ -1,60 +0,0 @@ -$(function () { - $("#newsletter").validate(); - - var ads = [ - { - 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=fa5_released&utm_content=banner", - btn_text: "Check out FA Pro  ", - }, - ]; - - // selectAd(); - - // start the icon carousel - $('#icon-carousel').carousel({ - interval: 5000 - }); - - $('[data-toggle="tooltip"]').tooltip(); - $('[data-toggle="popover"]').popover(); - - if (storageAvailable('localStorage') && !localStorage.seenFA5ReleasedModal) { - $('#modal-fa5') - .modal('toggle') - .on('hidden.bs.modal', function (e) { - $('#fa5-iframe').remove(); - }); - ; - } - - if (storageAvailable('localStorage')) { - localStorage.seenFA5ReleasedModal = 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-70-g09d2