Skip to content

Commit ba970d3

Browse files
authored
Merge pull request #22 from scriptex/feature/redesign
Redesign the website
2 parents 48b8b83 + ebd918a commit ba970d3

File tree

2 files changed

+272
-126
lines changed

2 files changed

+272
-126
lines changed

main.js

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// @ts-nocheck
2-
3-
// Credits: https://codepen.io/scottkellum/pen/WqwjLm
41
(() => {
52
function getPureProperty(rule, propertyName) {
63
return rule.style.getPropertyValue(propertyName).trim().slice(1, -1);
@@ -43,18 +40,25 @@
4340
}
4441

4542
for (let n = 0; n < elements.length; n++) {
46-
eval(js.replace(/this/g, `document.querySelectorAll('${selector}')[${n}]`));
43+
eval(
44+
js.replace(
45+
/this/g,
46+
`document.querySelectorAll('${selector}')[${n}]`
47+
)
48+
);
4749
}
4850
}
4951
}
5052
}
5153
}
5254

53-
import('https://www.googletagmanager.com/gtag/js?id=UA-83446952-2').then(() => {
54-
window.dataLayer = window.dataLayer || [];
55-
window.dataLayer.push('js', new Date());
56-
window.dataLayer.push('config', 'UA-83446952-2');
57-
});
55+
import('https://www.googletagmanager.com/gtag/js?id=UA-83446952-2').then(
56+
() => {
57+
window.dataLayer = window.dataLayer || [];
58+
window.dataLayer.push('js', new Date());
59+
window.dataLayer.push('config', 'UA-83446952-2');
60+
}
61+
);
5862

5963
for (let sheet of document.styleSheets) {
6064
const rules = sheet.rules || sheet.cssRules;

0 commit comments

Comments
 (0)