File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1010 < script type ="text/javascript ">
1111 $ ( document ) . ready ( function ( ) {
1212 $ ( 'p.hide' ) . show ( ) ;
13- $ ( '#v' ) . append ( $ . fn . jquery ) ;
13+ $ ( '#v' ) . text ( $ . fn . jquery ) ;
1414 } ) ;
1515 </ script >
1616</ head >
Original file line number Diff line number Diff line change 1010 < script type ="text/javascript ">
1111 window . addEvent ( 'domready' , function ( ) {
1212 $$ ( 'p.hide' ) . setStyle ( 'display' , 'block' ) ;
13+ $ ( 'v' ) . set ( 'text' , MooTools . version ) ;
1314 } ) ;
1415 </ script >
1516</ head >
1617< body >
1718 < h1 > MooTools Test</ h1 >
18- < p class ="hide "> If you see this, MooTools is working.</ p >
19+ < p class ="hide "> If you see this, MooTools < strong id =" v " > </ strong > is working.</ p >
1920</ body >
2021</ html >
Original file line number Diff line number Diff line change 1010 < script type ="text/javascript ">
1111 document . observe ( 'dom:loaded' , function ( ) {
1212 $ ( 'showme' ) . removeClassName ( 'hide' ) ;
13+ $ ( 'v' ) . textContent = Prototype . Version ;
1314 } ) ;
1415 </ script >
1516</ head >
1617< body >
1718 < h1 > Prototype Test</ h1 >
18- < p class ="hide " id ="showme "> If you see this, Prototype is working.</ p >
19+ < p class ="hide " id ="showme "> If you see this, Prototype < strong id =" v " > </ strong > is working.</ p >
1920</ body >
2021</ html >
You can’t perform that action at this time.
0 commit comments