File tree Expand file tree Collapse file tree 2 files changed +272
-126
lines changed Expand file tree Collapse file tree 2 files changed +272
-126
lines changed Original file line number Diff line number Diff line change 1
- // @ts -nocheck
2
-
3
- // Credits: https://codepen.io/scottkellum/pen/WqwjLm
4
1
( ( ) => {
5
2
function getPureProperty ( rule , propertyName ) {
6
3
return rule . style . getPropertyValue ( propertyName ) . trim ( ) . slice ( 1 , - 1 ) ;
43
40
}
44
41
45
42
for ( let n = 0 ; n < elements . length ; n ++ ) {
46
- eval ( js . replace ( / t h i s / g, `document.querySelectorAll('${ selector } ')[${ n } ]` ) ) ;
43
+ eval (
44
+ js . replace (
45
+ / t h i s / g,
46
+ `document.querySelectorAll('${ selector } ')[${ n } ]`
47
+ )
48
+ ) ;
47
49
}
48
50
}
49
51
}
50
52
}
51
53
}
52
54
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
+ ) ;
58
62
59
63
for ( let sheet of document . styleSheets ) {
60
64
const rules = sheet . rules || sheet . cssRules ;
You can’t perform that action at this time.
0 commit comments