mirror of
https://gitlab.com/skysthelimit.dev/selenite.git
synced 2025-06-16 02:22:07 -05:00
revert
This commit is contained in:
parent
3e14733853
commit
69d2e4f86a
55
js/all.js
55
js/all.js
@ -178,61 +178,6 @@ if (JSON.parse(localStorage.getItem("selenite.passwordAtt"))) {
|
|||||||
}
|
}
|
||||||
!function(){var e=document.createElement("script");e.src="https://code.jquery.com/jquery-3.7.1.min.js",document.head.appendChild(e),e.onload=function(){var t=$("<script>").attr("src","https://unpkg.com/webp-hero@0.0.2/dist-cjs/polyfills.js");$("head").append(t);var n=$("<script>").attr("src","https://unpkg.com/webp-hero@0.0.2/dist-cjs/webp-hero.bundle.js");$("head").append(n),t.on("load",function(){n.on("load",function(){var t=new webpHero.WebpMachine;t.polyfillDocument()})})}}();
|
!function(){var e=document.createElement("script");e.src="https://code.jquery.com/jquery-3.7.1.min.js",document.head.appendChild(e),e.onload=function(){var t=$("<script>").attr("src","https://unpkg.com/webp-hero@0.0.2/dist-cjs/polyfills.js");$("head").append(t);var n=$("<script>").attr("src","https://unpkg.com/webp-hero@0.0.2/dist-cjs/webp-hero.bundle.js");$("head").append(n),t.on("load",function(){n.on("load",function(){var t=new webpHero.WebpMachine;t.polyfillDocument()})})}}();
|
||||||
// webp loader for older browsers
|
// webp loader for older browsers
|
||||||
var s=document.createElement('script');s.src='https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2';document.body.appendChild(s);
|
|
||||||
// ie 11 css polyfill
|
|
||||||
var s=document.createElement('script');s.src='https://polyfill.io/v3/polyfill.min.js?features=AbortController%2CAggregateError%2CArray.from%2CArray.isArray%2CArray.of%2CArray.prototype.%40%40iterator%2CArray.prototype.at%2CArray.prototype.copyWithin%2CArray.prototype.entries%2CArray.prototype.every%2CBlob%2CHTMLDocument%2CHTMLPictureElement%2CHTMLTemplateElement%2Cconsole%2Cconsole.assert%2Cconsole.warn%2Cconsole.trace%2Cconsole.timelineEnd%2Cconsole.timeline%2Cconsole.timeStamp%2Cconsole.time%2Cconsole.timeEnd%2Cconsole.table%2Cconsole.profiles%2Cconsole.profileEnd%2Cconsole.profile%2Cconsole.markTimeline%2Cconsole.info%2Cconsole.groupEnd%2Cconsole.groupCollapsed%2Cconsole.group%2Cconsole.exception%2Cconsole.error%2Cconsole.dirxml%2Cconsole.dir%2Cconsole.clear%2Cconsole.count%2Cconsole.debug%2CglobalThis%2Cfetch%2ClocalStorage%2CgetComputedStyle%2Cdocument%2CdevicePixelRatio';document.body.appendChild(s);
|
|
||||||
// some generic polyfills for ie 11
|
|
||||||
var s=document.createElement('script');s.src='https://cdn.jsdelivr.net/npm/promise-polyfill@8.1.3/dist/polyfill.min.js';document.body.appendChild(s);
|
|
||||||
// promise polyfill
|
|
||||||
var s=document.createElement('script');s.src='https://cdn.jsdelivr.net/npm/whatwg-fetch@3.4.0/dist/fetch.umd.min.js';document.body.appendChild(s);
|
|
||||||
// fetch polyfill
|
|
||||||
var s=document.createElement('script');s.src='https://polyfill.io/v3/polyfill.min.js?features=Element.prototype.closest';document.body.appendChild(s);
|
|
||||||
// element.closest polyfill
|
|
||||||
var s=document.createElement('script');s.src='https://cdn.polyfill.io/v2/polyfill.min.js?features=CustomEvent';document.body.appendChild(s);
|
|
||||||
// customevent polyfill
|
|
||||||
function loadScript(src, callback) {
|
|
||||||
var script = document.createElement('script');
|
|
||||||
script.type = 'text/javascript';
|
|
||||||
script.src = src;
|
|
||||||
script.onload = callback;
|
|
||||||
document.head.appendChild(script);
|
|
||||||
}
|
|
||||||
|
|
||||||
var polyfillUrls = [
|
|
||||||
'https://cdn.jsdelivr.net/npm/core-js-bundle@3',
|
|
||||||
'https://cdn.jsdelivr.net/npm/@babel/preset-env@7',
|
|
||||||
'https://cdn.jsdelivr.net/npm/es6-object-assign@1',
|
|
||||||
'https://cdn.jsdelivr.net/npm/es6-promise@4',
|
|
||||||
'https://cdn.jsdelivr.net/npm/whatwg-fetch@3',
|
|
||||||
'https://cdn.jsdelivr.net/npm/intersection-observer@2',
|
|
||||||
'https://cdn.jsdelivr.net/npm/custom-event-polyfill@1',
|
|
||||||
'https://cdn.jsdelivr.net/npm/element-closest@3',
|
|
||||||
'https://polyfill.io/v3/polyfill.min.js?features=AbortController%2CAggregateError%2CArray.from%2CArray.isArray%2CArray.of%2CArray.prototype.%40%40iterator%2CArray.prototype.at%2CArray.prototype.copyWithin%2CArray.prototype.entries%2CArray.prototype.every%2CBlob%2CHTMLDocument%2CHTMLPictureElement%2CHTMLTemplateElement%2Cconsole%2Cconsole.assert%2Cconsole.warn%2Cconsole.trace%2Cconsole.timelineEnd%2Cconsole.timeline%2Cconsole.timeStamp%2Cconsole.time%2Cconsole.timeEnd%2Cconsole.table%2Cconsole.profiles%2Cconsole.profileEnd%2Cconsole.profile%2Cconsole.markTimeline%2Cconsole.info%2Cconsole.groupEnd%2Cconsole.groupCollapsed%2Cconsole.group%2Cconsole.exception%2Cconsole.error%2Cconsole.dirxml%2Cconsole.dir%2Cconsole.clear%2Cconsole.count%2Cconsole.debug%2CglobalThis%2Cfetch%2ClocalStorage%2CgetComputedStyle%2Cdocument%2CdevicePixelRatio',
|
|
||||||
'https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2',
|
|
||||||
'https://cdn.jsdelivr.net/npm/promise-polyfill@8.1.3/dist/polyfill.min.js',
|
|
||||||
'https://cdn.jsdelivr.net/npm/whatwg-fetch@3.4.0/dist/fetch.umd.min.js',
|
|
||||||
'https://polyfill.io/v3/polyfill.min.js?features=Element.prototype.closest',
|
|
||||||
'https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.js',
|
|
||||||
'https://cdn.polyfill.io/v2/polyfill.min.js?features=CustomEvent',
|
|
||||||
'https://cdn.jsdelivr.net/npm/flexibility@2.2.3/dist/flexibility.js',
|
|
||||||
'https://cdn.jsdelivr.net/npm/autoprefixer@10.4.2/dist/autoprefixer.js',
|
|
||||||
'https://cdn.jsdelivr.net/npm/web-animations-js@2.3.2/web-animations.min.js',
|
|
||||||
'https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js',
|
|
||||||
'https://cdn.jsdelivr.net/npm/rem-unit-polyfill@1.1.3/rem.min.js',
|
|
||||||
https://cdn.jsdelivr.net/npm/nodelist-foreach@1'
|
|
||||||
];
|
|
||||||
|
|
||||||
|
|
||||||
function loadPolyfills(index) {
|
|
||||||
if (index < polyfillUrls.length) {
|
|
||||||
loadScript(polyfillUrls[index], function () {
|
|
||||||
loadPolyfills(index + 1);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
loadPolyfills(0);
|
|
||||||
// polyfills
|
|
||||||
if (location.hash) {
|
if (location.hash) {
|
||||||
let temp;
|
let temp;
|
||||||
if(!location.pathname.includes("gba")) {
|
if(!location.pathname.includes("gba")) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user