summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-04-22 12:53:56 +0200
committerJules Laplace <julescarbon@gmail.com>2018-04-22 12:53:56 +0200
commit88f7735483779d7b90e03faff00203ac0d77ec46 (patch)
tree04c9261082556da4400a85cbd6d838cdeb6f1079
parent1d6e01a44ea9f23b2a7fcc63de12c132e74fc0bb (diff)
fixing the harpHEADmaster
-rw-r--r--index.html2
-rw-r--r--js/lib/app.js6
-rw-r--r--js/vendor/util.js5
3 files changed, 7 insertions, 6 deletions
diff --git a/index.html b/index.html
index 3bf7924..e05bb6f 100644
--- a/index.html
+++ b/index.html
@@ -3,7 +3,7 @@
<head>
<title>harp</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"/>
-<link rel="stylesheet" href="../css/css.css">
+<link rel="stylesheet" href="./css/css.css">
<style>
html,body { font-size: 12px; font-weight: normal; background: black; color: white; overflow: hidden; }
circle { cursor: pointer }
diff --git a/js/lib/app.js b/js/lib/app.js
index 9c07de6..b9dd0f7 100644
--- a/js/lib/app.js
+++ b/js/lib/app.js
@@ -10,9 +10,9 @@ var app = (function() {
app.bind()
app.build()
// check if we're in an iframe
- if (window.self === window.top) {
- app.ready()
- }
+ // if (window.self === window.top) {
+ app.ready()
+ //}
}
app.bind = function() {
diff --git a/js/vendor/util.js b/js/vendor/util.js
index b1b39e9..8ccc135 100644
--- a/js/vendor/util.js
+++ b/js/vendor/util.js
@@ -93,7 +93,8 @@ function has3d(){
// Add it to the body to get the computed style
// Sandbox it inside an iframe to avoid Android Browser quirks
- $iframe.appendTo('body').contents().find('body').append( el );
+ // $iframe.appendTo('body').contents().find('body').append( el );
+ $('body').append(el)
for (t in transforms) {
if (el.style[t] !== undefined) {
@@ -102,7 +103,7 @@ function has3d(){
}
}
- $iframe.remove();
+ $(el).remove();
return has3d !== undefined && has3d.length > 0 && has3d !== "none";
}