File tree Expand file tree Collapse file tree 3 files changed +6
-15
lines changed Expand file tree Collapse file tree 3 files changed +6
-15
lines changed Original file line number Diff line number Diff line change 3
3
< head >
4
4
< meta http-equiv ="content-type " content ="text/html; charset=utf-8 ">
5
5
< title > jQuery Test</ title >
6
- < style >
7
- .hide {display : none;}
8
- </ style >
9
6
< script src ="//ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js "> </ script >
10
7
< script >
11
8
$ ( document ) . ready ( function ( ) {
12
- $ ( 'p.hide ' ) . show ( ) ;
9
+ $ ( 'p.djdt-hidden ' ) . show ( ) ;
13
10
$ ( '#v' ) . text ( $ . fn . jquery ) ;
14
11
} ) ;
15
12
</ script >
16
13
</ head >
17
14
< body >
18
15
< h1 > jQuery Test</ h1 >
19
- < p class ="hide "> If you see this, jQuery < strong id ="v "> </ strong > is working.</ p >
16
+ < p class ="djdt-hidden "> If you see this, jQuery < strong id ="v "> </ strong > is working.</ p >
20
17
</ body >
21
18
</ html >
Original file line number Diff line number Diff line change 3
3
< head >
4
4
< meta http-equiv ="content-type " content ="text/html; charset=utf-8 ">
5
5
< title > MooTools Test</ title >
6
- < style >
7
- .hide {display : none;}
8
- </ style >
9
6
< script src ="//ajax.googleapis.com/ajax/libs/mootools/1.6.0/mootools.min.js "> </ script >
10
7
< script >
11
8
window . addEvent ( 'domready' , function ( ) {
12
- $$ ( 'p.hide ' ) . setStyle ( 'display' , 'block' ) ;
9
+ $$ ( 'p.djdt-hidden ' ) . setStyle ( 'display' , 'block' ) ;
13
10
$ ( 'v' ) . set ( 'text' , MooTools . version ) ;
14
11
} ) ;
15
12
</ script >
16
13
</ head >
17
14
< body >
18
15
< h1 > MooTools Test</ h1 >
19
- < p class ="hide "> If you see this, MooTools < strong id ="v "> </ strong > is working.</ p >
16
+ < p class ="djdt-hidden "> If you see this, MooTools < strong id ="v "> </ strong > is working.</ p >
20
17
</ body >
21
18
</ html >
Original file line number Diff line number Diff line change 3
3
< head >
4
4
< meta http-equiv ="content-type " content ="text/html; charset=utf-8 ">
5
5
< title > Prototype Test</ title >
6
- < style >
7
- .hide {display : none;}
8
- </ style >
9
6
< script src ="//ajax.googleapis.com/ajax/libs/prototype/1.7.3.0/prototype.js "> </ script >
10
7
< script >
11
8
document . observe ( 'dom:loaded' , function ( ) {
12
- $ ( 'showme' ) . removeClassName ( 'hide ' ) ;
9
+ $ ( 'showme' ) . removeClassName ( 'djdt-hidden ' ) ;
13
10
$ ( 'v' ) . textContent = Prototype . Version ;
14
11
} ) ;
15
12
</ script >
16
13
</ head >
17
14
< body >
18
15
< h1 > Prototype Test</ h1 >
19
- < p class ="hide " id ="showme "> If you see this, Prototype < strong id ="v "> </ strong > is working.</ p >
16
+ < p class ="djdt-hidden " id ="showme "> If you see this, Prototype < strong id ="v "> </ strong > is working.</ p >
20
17
</ body >
21
18
</ html >
You can’t perform that action at this time.
0 commit comments