File tree Expand file tree Collapse file tree 2 files changed +29
-4
lines changed
Expand file tree Collapse file tree 2 files changed +29
-4
lines changed Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html lang ="en ">
3+ < head >
4+ < title > Simple Draggable</ title >
5+ < link rel ="stylesheet " href ="all.css " type ="text/css " media ="screen ">
6+ < script type ="text/javascript " src ="../../jquery-1.2.6.js "> </ script >
7+ < script type ="text/javascript " src ="../../ui/ui.core.js "> </ script >
8+ < script type ="text/javascript " src ="../../ui/ui.draggable.js "> </ script >
9+ < script type ="text/javascript ">
10+ $ ( function ( ) {
11+ $ ( "#draggable" ) . draggable ( { handle : "span" } ) ;
12+ } ) ;
13+ </ script >
14+ </ head >
15+ < body >
16+
17+ < ul class ="plugins ">
18+ < li >
19+ Draggable
20+ < div id ="draggable ">
21+ < span > Handle</ span >
22+ </ div >
23+ </ li >
24+ </ ul >
25+
26+ </ body >
27+ </ html >
Original file line number Diff line number Diff line change 88 < script type ="text/javascript " src ="../../ui/ui.draggable.js "> </ script >
99 < script type ="text/javascript ">
1010 $ ( function ( ) {
11- $ ( "#draggable" ) . draggable ( { handle : "span" , drag : function ( ) { console . log ( 1 ) ; } } ) ;
11+ $ ( "#draggable" ) . draggable ( ) ;
1212 } ) ;
1313 </ script >
1414</ head >
1717< ul class ="plugins ">
1818< li >
1919 Draggable
20- < div id ="draggable "> < span > Handle</ span > </ div >
21- < div style ="height: 1000px; "> </ div >
20+ < div id ="draggable "> </ div >
2221</ li >
2322</ ul >
2423
25- < div style ="height: 1000px; "> </ div >
2624</ body >
2725</ html >
You can’t perform that action at this time.
0 commit comments