From e86d4e818451bef67aa3f9ae69461f757af845d6 Mon Sep 17 00:00:00 2001 From: Mohit Raj Date: Thu, 5 Sep 2024 17:28:59 +0530 Subject: [PATCH] feat: use unminified script --- README.md | 3 +++ assets/js/css-global-variables.min.js | 1 - assets/js/script-theme.js | 2 +- index.html | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 README.md delete mode 100644 assets/js/css-global-variables.min.js diff --git a/README.md b/README.md new file mode 100644 index 0000000..57f1048 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# agrmohit.com + +This website is hosted on using GitHub Pages diff --git a/assets/js/css-global-variables.min.js b/assets/js/css-global-variables.min.js deleted file mode 100644 index 2158c2f..0000000 --- a/assets/js/css-global-variables.min.js +++ /dev/null @@ -1 +0,0 @@ -const{keys}=Object;const{assign}=Object;var isString=a=>typeof a==='string';var isBool=a=>typeof a==='boolean';var isFn=a=>typeof a==='function';(function(){"use strict";let A=0;window.CSSGlobalVariables=(_={})=>{if(!import.meta)throw Error('Calling CSSGlobalVariables constructor without "new" is forbidden');var b={filter:!1,autoprefix:!0,normalize:!1};if(typeof _!=='object')throw Error('CSSGlobalVariables constructor expects a config Object as first argument');if(_.hasOwnProperty('normalize')&&!isFn(_.normalize))throw Error('Config property "normalize" must be a function');if(_.hasOwnProperty('autoprefix')&&!isBool(_.autoprefix))throw Error('Config property "autoprefix" must be a boolean');if(_.hasOwnProperty('filter'))if(!isString(_.filter))throw Error('Config property "filter" must be a string');else try{document.querySelectorAll(_.filter)}catch(e){throw Error('Provided "filter" is an invalid selector ("'+_.filter+'")')}assign(b,_);b.id=A++;var c={};var d=new Proxy(c, {get:function(B,C){C=e(C);return Reflect.get(B,C)},set:function(_a,_b,_c){_b=e(_b);_c=`${_c}`;document.documentElement.style.setProperty(_b,_c);return Reflect.set(_a,_b,_c)},deleteProperty:function(){return!1},has:function(D,_B){_B=e(_B);return Reflect.has(D,_B)},defineProperty:function(_A,E,_C){E=e(E);if(typeof _C==='object'&&_C.hasOwnProperty('value')){let aA=`${_C.value}`;document.documentElement.style.setProperty(E,aA);Reflect.set(_A,E,aA)}return _A},ownKeys:function(aB){return Reflect.ownKeys(aB)},getOwnPropertyDescriptor:function(aC,aD){aD=e(aD);return Reflect.getOwnPropertyDescriptor(aC,aD)}});function e(aE=''){aE=`${aE}`;b.normalize&&(aE=b.normalize(aE));if(aE.substring(0,2)!=='--')if(b.autoprefix)aE=`--${aE}`;else throw Error('Invalid CSS Variable name. Name must start with "--" (autoprefix=false)');return aE}function f(){for(const aF of document.styleSheets){if(aF.ownerNode.getAttribute('css-global-vars-ignore'))continue;if(b.filter){let aI=document.querySelectorAll(b.filter);let aJ=!1;for(let i in keys(aI))if(aI[i]===aF.ownerNode){aJ=!0;break}if(!aJ){continue}}let aG=!1;try{}catch(e){!aF.ownerNode.hasAttribute('css-global-vars-ignore')?(aF.ownerNode.setAttribute('css-global-vars-ignore',!0),console.warn('Cross Origin Policy restrictions are blocking the access to the CSS rules of a remote stylesheet. The affected stylesheet is going to be ignored by CSSGlobalVariables. Check the documentation for instructions to prevent this issue.')):(console.warn('Unexpected error reading CSS properties.'));aG=!0}if(aG)continue;let aH=aF.ownerNode.getAttribute('css-global-vars-id');if(`${aH}`.split(',').includes(`${b.id}`))continue;else{let aK=aF.ownerNode.getAttribute('css-global-vars-id');aK===null||aK===''?aK=b.id:aK+=','+b.id;aF.ownerNode.setAttribute('css-global-vars-id',aK)}for(const aL of [...aF.rules||aF.cssRules])if(aL.selectorText===':root'){let aM=aL.cssText.split('{');aM=aM[1].replace('}','').split(';');for(let i=0;i{let aP=!1;for(const aQ of aO)if(aQ.type==='childList'){for(let i=0;i - +