Skip to content

Commit

Permalink
border-radius: 10px; (because Opera supports it!)
Browse files Browse the repository at this point in the history
  • Loading branch information
remy committed Mar 2, 2010
1 parent 74906d5 commit c21443a
Show file tree
Hide file tree
Showing 15 changed files with 34 additions and 15 deletions.
1 change: 1 addition & 0 deletions canvas.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
background: #fff url(images/shade.jpg) repeat-x center bottom;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
border-top: 1px solid #fff;
padding-bottom: 76px;
}
Expand Down
1 change: 1 addition & 0 deletions contenteditable.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
background: #fff url(images/shade.jpg) repeat-x center bottom;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
border-top: 1px solid #fff;
padding-bottom: 76px;
}
Expand Down
1 change: 1 addition & 0 deletions database-rollback.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
background: #fff url(images/shade.jpg) repeat-x center bottom;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
border-top: 1px solid #fff;
padding-bottom: 76px;
}
Expand Down
1 change: 1 addition & 0 deletions database.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
background: #fff url(images/shade.jpg) repeat-x center bottom;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
border-top: 1px solid #fff;
padding-bottom: 76px;
}
Expand Down
8 changes: 7 additions & 1 deletion drag-anything.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
background: #fff url(images/shade.jpg) repeat-x center bottom;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
border-top: 1px solid #fff;
padding-bottom: 76px;
}
Expand Down Expand Up @@ -164,7 +165,12 @@ <h1>Simple Drag and Drop</h1>

/** THIS IS THE MAGIC: we read from getData based on the content type - so it grabs the item matching that format **/
if (getDataType.checked == false && e.dataTransfer.types) {
li.innerHTML = entities(e.dataTransfer.getData(e.dataTransfer.types[0]) + ' (content-type: ' + e.dataTransfer.types[0] + ')');
li.innerHTML = '<ul>';
[].forEach.call(e.dataTransfer.types, function (type) {
li.innerHTML += '<li>' + entities(e.dataTransfer.getData(type) + ' (content-type: ' + type + ')') + '</li>';
});
li.innerHTML += '</ul>';

} else {
// ... however, if we're IE, we don't have the .types property, so we'll just get the Text value
li.innerHTML = e.dataTransfer.getData('Text');
Expand Down
28 changes: 14 additions & 14 deletions drag.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,17 @@
var msie = /*@cc_on!@*/0;
yum.style.opacity = 1;

var links = document.querySelectorAll('li > a'), el = null;
for (var i = 0; i < links.length; i++) {
el = links[i];

el.setAttribute('draggable', 'true');

addEvent(el, 'dragstart', function (e) {
e.dataTransfer.effectAllowed = 'move';
e.dataTransfer.setData('Text', this.id); // required otherwise doesn't work
});
}
// var links = document.querySelectorAll('li > a'), el = null;
// for (var i = 0; i < links.length; i++) {
// el = links[i];
//
// el.setAttribute('draggable', 'true');
//
// addEvent(el, 'dragstart', function (e) {
// // e.dataTransfer.effectAllowed = 'move';
// e.dataTransfer.setData('Text', this.id); // required otherwise doesn't work
// });
// }

var bin = document.querySelector('#bin');

Expand All @@ -123,10 +123,10 @@

addEvent(bin, 'drop', function (e) {
if (e.stopPropagation) e.stopPropagation(); // stops the browser from redirecting...why???

var el = document.getElementById(e.dataTransfer.getData('Text'));

el.parentNode.removeChild(el);
// var el = document.getElementById(e.dataTransfer.getData('Text'));
//
// el.parentNode.removeChild(el);

// stupid nom text + fade effect
bin.className = '';
Expand Down
1 change: 1 addition & 0 deletions geo.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
background: #fff url(images/shade.jpg) repeat-x center bottom;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
border-top: 1px solid #fff;
padding-bottom: 76px;
}
Expand Down
1 change: 1 addition & 0 deletions non-worker.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
background: #fff url(images/shade.jpg) repeat-x center bottom;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
border-top: 1px solid #fff;
padding-bottom: 76px;
}
Expand Down
1 change: 1 addition & 0 deletions offline.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
background: #fff url(images/shade.jpg) repeat-x center bottom;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
border-top: 1px solid #fff;
padding-bottom: 76px;
}
Expand Down
1 change: 1 addition & 0 deletions offlineapp.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
background: #fff url(images/shade.jpg) repeat-x center bottom;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
border-top: 1px solid #fff;
padding-bottom: 76px;
}
Expand Down
1 change: 1 addition & 0 deletions postmessage.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
background: #fff url(images/shade.jpg) repeat-x center bottom;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
border-top: 1px solid #fff;
padding-bottom: 76px;
}
Expand Down
1 change: 1 addition & 0 deletions postmessage2.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
background: #fff url(images/shade.jpg) repeat-x center bottom;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
border-top: 1px solid #fff;
padding-bottom: 76px;
}
Expand Down
1 change: 1 addition & 0 deletions storage.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
background: #fff url(images/shade.jpg) repeat-x center bottom;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
border-top: 1px solid #fff;
padding-bottom: 76px;
}
Expand Down
1 change: 1 addition & 0 deletions video.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
background: #fff url(images/shade.jpg) repeat-x center bottom;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
border-top: 1px solid #fff;
padding-bottom: 76px;
}
Expand Down
1 change: 1 addition & 0 deletions worker.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
background: #fff url(images/shade.jpg) repeat-x center bottom;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
border-top: 1px solid #fff;
padding-bottom: 76px;
}
Expand Down

0 comments on commit c21443a

Please sign in to comment.