Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Reversed Android/Raphael detection logic to avoid FOUC for everything…

… else
  • Loading branch information...
commit bebf00d5b3c6aa794cf339946dc6de4bb75dfd9f 1 parent b42e352
@gilmoreorless gilmoreorless authored
Showing with 10 additions and 10 deletions.
  1. +1 −1  data/meetings.js
  2. +7 −7 static/syd.js
  3. +2 −2 views/index.html
View
2  data/meetings.js
@@ -108,7 +108,7 @@ meetings.push({
meetings.push({
date: "2012-05-16 18:00:00",
speakers: [
- {name: "Vaughan Knight", topic: "Way Out Wars and Dodo GoGo & what I've learnt between"},
+ {name: "Vaughan Knight", topic: "Way Out Wars and Dodo GoGo; what I've learnt between"},
{name: "Rob Hawkes", topic: "Boot to Gecko (B2G): Building an OS for the open web"}
]
});
View
14 static/syd.js
@@ -26,8 +26,8 @@ window.onload = function () {
d = r.path(),
tixi = {};
- if(Raphael.type !== ''){
- document.body.className = document.body.className.replace(/\bno-raphael\b/,'raphael');
+ if(Raphael.type === ''){
+ document.body.className = document.body.className.replace(/\braphael\b/, 'no-raphael');
}
function getAnchors(p1x, p1y, p2x, p2y, p3x, p3y, value) {
@@ -107,7 +107,7 @@ window.onload = function () {
}
return newp;
}
-
+
tixi.xhr = null;
tixi.getCORS = function () {
var xhr,
@@ -122,7 +122,7 @@ window.onload = function () {
}
}
xhr && (tixi.xhr = xhr);
-
+
return function (method, url, callback) {
if (!xhr) {
return;
@@ -137,7 +137,7 @@ window.onload = function () {
}
}
}
-
+
xhr.open(method, url, true);
xhr.send();
}
@@ -207,11 +207,11 @@ window.onload = function () {
setInterval(function () {d.animate({path: path2, "stroke-width": 1}, 9500, ">");}, 20000);
}, 10000);
+ var y = 180;
if ($("next")) {
r.path(when).attr({fill: "#fff", stroke: "none", transform: "t600,88 s2"});
r.print(670, 110, $("when").innerHTML, museo, 24).attr({fill: "#fff"});
i = 1;
- var y = 180;
while ($("speaker" + i)) {
i == 1 && r.path(who).attr({fill: "#fff", stroke: "none", transform: "t600,170 s2"});
r.print(670, y, $("topic" + i).innerHTML.replace('&', '&'), museo, 24).attr({fill: "#fff"});
@@ -230,7 +230,7 @@ window.onload = function () {
tixi.set = r.setFinish();
tixi.print();
tixi.link = r.rect(600, y + 84, 500, 64).attr({href: $("register").href, fill: "#000", opacity: 0});
-
+
tixi.checkStatus();
}
View
4 views/index.html
@@ -5,7 +5,7 @@
<title>SydJS &mdash; JavaScript in Sydney has a new home</title>
<link type="text/css" rel="stylesheet" href="style.css">
</head>
- <body class="no-raphael no-js">
+ <body class="raphael no-js">
<div id="content" class="vevent">
<h1 class="summary">Sydney JavaScript Group</h1>
<h2 id="next">Next Meeting:</h2>
@@ -45,7 +45,7 @@ <h2 id="group">The Group</h2>
</dd>
</dl>
</div>
- <script>document.body.className = document.body.className.replace(/\bno-js\b/,'js');</script>
+ <script>document.body.className = document.body.className.replace(/\bno-js\b/,'js');</script>
<script src="libs.js"></script>
<script src="syd.js"></script>
</body>
Please sign in to comment.
Something went wrong with that request. Please try again.