-
-
+
-
-
-
- 12 FPS
-
-
- diff --git a/cheap-partials.js b/cheap-partials.js new file mode 100644 index 00000000..0b4dae45 --- /dev/null +++ b/cheap-partials.js @@ -0,0 +1,7 @@ +// SUPER CHEAP TEMPLATES ! +window._ctl = function (event) { + var iframe=event.target || event.srcElement, div=document.createElement("div"); + div.innerHTML = iframe.contentWindow.document.body.innerHTML; + if (div.children.length == 1) div = div.children[0]; + iframe.parentNode.replaceChild(div, iframe); +}; \ No newline at end of file diff --git a/index.html b/index.html index e453d74c..cbf0d05e 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,6 @@
-