File tree Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 40
40
}
41
41
42
42
# bin {
43
- background : url (images/bin.jpg) top right no-repeat;
43
+ background : url (/ images/bin.jpg) top right no-repeat;
44
44
height : 250px ;
45
45
width : 166px ;
46
46
float : left;
50
50
}
51
51
52
52
# bin .over {
53
- background : url (images/bin.jpg) top left no-repeat;
53
+ background : url (/ images/bin.jpg) top left no-repeat;
54
54
}
55
55
56
56
# bin p {
85
85
var links = document . querySelectorAll ( 'li > a' ) , el = null ;
86
86
for ( var i = 0 ; i < links . length ; i ++ ) {
87
87
el = links [ i ] ;
88
-
88
+
89
89
el . setAttribute ( 'draggable' , 'true' ) ;
90
-
90
+
91
91
addEvent ( el , 'dragstart' , function ( e ) {
92
92
e . dataTransfer . effectAllowed = 'copy' ; // only dropEffect='copy' will be dropable
93
93
e . dataTransfer . setData ( 'Text' , this . id ) ; // required otherwise doesn't work
117
117
if ( e . stopPropagation ) e . stopPropagation ( ) ; // stops the browser from redirecting...why???
118
118
119
119
var el = document . getElementById ( e . dataTransfer . getData ( 'Text' ) ) ;
120
-
120
+
121
121
el . parentNode . removeChild ( el ) ;
122
122
123
123
// stupid nom text + fade effect
133
133
if ( msie ) { // don't bother with the animation
134
134
y . style . display = 'none' ;
135
135
}
136
- clearInterval ( t ) ;
136
+ clearInterval ( t ) ;
137
137
} else {
138
138
y . style . opacity -= 0.1 ;
139
139
}
Original file line number Diff line number Diff line change 48
48
}
49
49
50
50
# bin {
51
- background : url (images/bin.jpg) top right no-repeat;
51
+ background : url (/ images/bin.jpg) top right no-repeat;
52
52
height : 250px ;
53
53
width : 166px ;
54
54
float : right;
57
57
}
58
58
59
59
# bin .over {
60
- background : url (images/bin.jpg) top left no-repeat;
60
+ background : url (/ images/bin.jpg) top left no-repeat;
61
61
}
62
62
63
63
# bin p {
116
116
117
117
addEvent ( bin , 'drop' , function ( e ) {
118
118
if ( e . stopPropagation ) e . stopPropagation ( ) ; // stops the browser from redirecting...why???
119
-
119
+
120
120
var el = document . getElementById ( e . dataTransfer . getData ( 'Text' ) ) ;
121
121
122
122
el . parentNode . removeChild ( el ) ;
134
134
if ( msie ) { // don't bother with the animation
135
135
y . style . display = 'none' ;
136
136
}
137
- clearInterval ( t ) ;
137
+ clearInterval ( t ) ;
138
138
} else {
139
139
y . style . opacity -= 0.1 ;
140
140
}
153
153
try {
154
154
var pageTracker = _gat . _getTracker ( "UA-1656750-18" ) ;
155
155
pageTracker . _trackPageview ( ) ;
156
- } catch ( err ) { } </ script >
156
+ } catch ( err ) { } </ script >
157
157
</ body >
158
158
</ html >
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ CACHE MANIFEST
3
3
# Build 2011-05-17
4
4
5
5
CACHE:
6
- images/shade.jpg
7
- images/bin.jpg
6
+ / images/shade.jpg
7
+ / images/bin.jpg
8
8
/js/h5utils-offline.js
9
9
/css/html5demos.css
10
10
You can’t perform that action at this time.
0 commit comments