Skip to content

Commit 924a08e

Browse files
committed
fix: missing bin image
1 parent 529e4ee commit 924a08e

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

demos/drag.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
}
4141

4242
#bin {
43-
background: url(images/bin.jpg) top right no-repeat;
43+
background: url(/images/bin.jpg) top right no-repeat;
4444
height: 250px;
4545
width: 166px;
4646
float: left;
@@ -50,7 +50,7 @@
5050
}
5151

5252
#bin.over {
53-
background: url(images/bin.jpg) top left no-repeat;
53+
background: url(/images/bin.jpg) top left no-repeat;
5454
}
5555

5656
#bin p {
@@ -85,9 +85,9 @@
8585
var links = document.querySelectorAll('li > a'), el = null;
8686
for (var i = 0; i < links.length; i++) {
8787
el = links[i];
88-
88+
8989
el.setAttribute('draggable', 'true');
90-
90+
9191
addEvent(el, 'dragstart', function (e) {
9292
e.dataTransfer.effectAllowed = 'copy'; // only dropEffect='copy' will be dropable
9393
e.dataTransfer.setData('Text', this.id); // required otherwise doesn't work
@@ -117,7 +117,7 @@
117117
if (e.stopPropagation) e.stopPropagation(); // stops the browser from redirecting...why???
118118

119119
var el = document.getElementById(e.dataTransfer.getData('Text'));
120-
120+
121121
el.parentNode.removeChild(el);
122122

123123
// stupid nom text + fade effect
@@ -133,7 +133,7 @@
133133
if (msie) { // don't bother with the animation
134134
y.style.display = 'none';
135135
}
136-
clearInterval(t);
136+
clearInterval(t);
137137
} else {
138138
y.style.opacity -= 0.1;
139139
}

drag2.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
}
4949

5050
#bin {
51-
background: url(images/bin.jpg) top right no-repeat;
51+
background: url(/images/bin.jpg) top right no-repeat;
5252
height: 250px;
5353
width: 166px;
5454
float: right;
@@ -57,7 +57,7 @@
5757
}
5858

5959
#bin.over {
60-
background: url(images/bin.jpg) top left no-repeat;
60+
background: url(/images/bin.jpg) top left no-repeat;
6161
}
6262

6363
#bin p {
@@ -116,7 +116,7 @@
116116

117117
addEvent(bin, 'drop', function (e) {
118118
if (e.stopPropagation) e.stopPropagation(); // stops the browser from redirecting...why???
119-
119+
120120
var el = document.getElementById(e.dataTransfer.getData('Text'));
121121

122122
el.parentNode.removeChild(el);
@@ -134,7 +134,7 @@
134134
if (msie) { // don't bother with the animation
135135
y.style.display = 'none';
136136
}
137-
clearInterval(t);
137+
clearInterval(t);
138138
} else {
139139
y.style.opacity -= 0.1;
140140
}
@@ -153,6 +153,6 @@
153153
try {
154154
var pageTracker = _gat._getTracker("UA-1656750-18");
155155
pageTracker._trackPageview();
156-
} catch(err) {}</script>
156+
} catch(err) {}</script>
157157
</body>
158158
</html>

html5demo.appcache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ CACHE MANIFEST
33
# Build 2011-05-17
44

55
CACHE:
6-
images/shade.jpg
7-
images/bin.jpg
6+
/images/shade.jpg
7+
/images/bin.jpg
88
/js/h5utils-offline.js
99
/css/html5demos.css
1010

0 commit comments

Comments
 (0)