Skip to content

Commit

Permalink
Make pages draggable too.
Browse files Browse the repository at this point in the history
  • Loading branch information
heyLu committed Sep 20, 2013
1 parent 69d1915 commit eb14719
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion obj.html
Expand Up @@ -34,8 +34,12 @@
"page": function(obj) {
var pageEl = document.createElement("iframe");
pageEl.src = obj.url;
pageEl.style.pointerEvents = "none";
pageEl.style.backgroundColor = "white";
pageEl.classList.add("block", "resizable");
return pageEl;
var div = document.createElement("div");
div.appendChild(pageEl);
return div;
},
"image": function(obj) {
var imgEl = document.createElement("img");
Expand Down
8 changes: 6 additions & 2 deletions obj.json
Expand Up @@ -11,11 +11,15 @@
"img1": {
"type": "image",
"url": "http://octodex.github.com/images/femalecodertocat.png"
}, "video1":
{
},
"video1": {
"type": "video/vimeo",
"id": "23557395",
"time": 120
},
"page1": {
"type": "page",
"url": "http://papill0n.org"
}
}
}

0 comments on commit eb14719

Please sign in to comment.