File tree 1 file changed +23
-2
lines changed
1 file changed +23
-2
lines changed Original file line number Diff line number Diff line change 19
19
text-decoration : underline;
20
20
}
21
21
22
+ a .disabled {
23
+ text-decoration : none;
24
+ color : inherit;
25
+ }
26
+
22
27
div # header {
23
28
display : block;
24
29
margin-top : 0.5em ;
94
99
$ ( '#content' ) . html ( items . join ( "<br><br>" ) ) ;
95
100
96
101
} ) ;
102
+
103
+ if ( ! check4ArrowFunctions ( ) ) {
104
+ //dotabap.org needs full ES6 support
105
+ $ ( "#poweredby" ) . removeAttr ( 'href' ) . addClass ( "disabled" ) ;
106
+ }
107
+
97
108
}
109
+
110
+ function check4ArrowFunctions ( ) {
111
+ try {
112
+ eval ( "var arrowFunction = (x) => x" ) ;
113
+ }
114
+ catch ( e ) {
115
+ return false ;
116
+ }
117
+ return true ;
118
+ }
98
119
</ script >
99
120
</ head >
100
121
101
122
< body onload ="run() ">
102
123
< div id ="header ">
103
124
< h1 > Explore</ h1 > Powered by
104
- < a href ="http://dotabap.org "> dotabap.org</ a >
125
+ < a href ="http://dotabap.org " id =" poweredby " > dotabap.org</ a >
105
126
</ div >
106
127
< div id ="toc ">
107
128
< div id ="content "> </ div >
@@ -111,4 +132,4 @@ <h1>Explore</h1> Powered by
111
132
</ div >
112
133
</ body >
113
134
114
- </ html >
135
+ </ html >
You can’t perform that action at this time.
0 commit comments