2014-04-07 00:33:49 +00:00
|
|
|
<!DOCTYPE html>
|
2014-12-26 03:05:07 +00:00
|
|
|
<html ng-controller="PadCtrl">
|
2014-04-07 00:33:49 +00:00
|
|
|
<head>
|
2014-12-26 03:05:07 +00:00
|
|
|
<meta charset="utf-8">
|
|
|
|
<title fp-title="padName + ' – FacilPad'">FacilPad</title>
|
2014-04-26 13:04:18 +00:00
|
|
|
<meta name="robots" content="index,nofollow" />
|
2016-10-03 12:49:58 +00:00
|
|
|
<link rel="shortcut icon" href="assets/img/favicon.png">
|
2016-02-26 15:36:00 +00:00
|
|
|
<link rel="stylesheet" href="build/all.css">
|
2014-12-26 03:05:07 +00:00
|
|
|
<style type="text/css">
|
|
|
|
#loading {
|
|
|
|
position: absolute;
|
|
|
|
top: 0; left: 0; right: 0; bottom: 0;
|
|
|
|
padding: 10px;
|
|
|
|
font-size: 1.5em;
|
|
|
|
font-weight: bold;
|
|
|
|
background: #fff url('data:image/gif;base64,R0lGODlhIAAgAOfzAAABAAACAAEEAAIFAQQHAgUIBAcJBQgLBwoMCAsNCgwPCw4QDA8RDRASDxETEBIUERMUEhQVExUWFBYYFRcYFhgZFxkbGBocGRscGhwdGx0fHB4fHR8gHiAhHyEjICIkISMkIiQlIyUnJCYoJScoJigpJykrKCosKSstKiwtKy0uLC4vLS8xLjAyLzEzMDIzMTM0MjQ2MzU3NDY4NTc5Njg5Nzk6ODo7OTs9Ojw+Oz0/PD5APT9APkBBP0FCQEFDQUNFQkRGQ0VHREZIRUdJRkhJR0lKSEpLSUpMSkxOS01PTE5QTU9RTlBST1FTUFJUUVNUUlRVU1VWVFZXVVZYVVdZVllbWFpcWVtdWlxeW11fXF5gXV9hXmBiX2FjYGJkYWNlYmRlY2VmZGZnZWdoZmhpZ2hqZ2lraGpsaWttamxua21vbG5wbW9xbnFzcHJ0cXN1cnR2c3V3dHZ4dXd5dnh6d3l7eHp8eXt9enx+e31/fH6AfX+BfoCCf4GDgIKEgYOFgoSGg4WHhIaIhYeJ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CJPOysYgNyR6T2kjzIGAaATsiVYZMlIZwEwyzUNQQPMp1xqNYVzuUCxQUdlNFMiQ01U8QBsskmAR6rgeOKIIsEw1xIq5mjiHE6QXDELTDF9E047dBYF0zPFOJDCi+EgcqB4klpIjzudKOLKasgQw519V0oXGPuuFMTjaIpow1IJrITJWsMTaNHD2Ug815FziACy5B1uYPKCihZAhx578DiAyAHkucOLUVEwEMqhLI
|
|
|
|
}
|
|
|
|
</style>
|
2014-04-07 00:33:49 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
2014-12-26 03:05:07 +00:00
|
|
|
<div id="introContainer">
|
|
|
|
<h1>FacilPad</h1>
|
|
|
|
<p>Welcome to FacilPad.</p>
|
|
|
|
<noscript><p><strong>FacilPad requires JavaScript to work.</strong></p></noscript>
|
|
|
|
<p><a id="create-pad-link" rel="nofollow">Create a new pad</a></p>
|
|
|
|
</div>
|
|
|
|
<div id="loading" style="display:none">Loading...</div>
|
|
|
|
<div id="mapContainer" style="display:none">
|
|
|
|
<fp-map id="map" fp-pad-id="{{padId}}"></fp-map>
|
|
|
|
</div>
|
|
|
|
|
2014-04-07 00:33:49 +00:00
|
|
|
<script>
|
2014-12-26 03:05:07 +00:00
|
|
|
(function() {
|
|
|
|
var loaded = 0;
|
2014-04-07 00:33:49 +00:00
|
|
|
|
2014-12-26 03:05:07 +00:00
|
|
|
var l = document.getElementById("create-pad-link");
|
|
|
|
|
|
|
|
var LETTERS = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
|
|
|
|
var LENGTH = 12;
|
|
|
|
|
|
|
|
var randomPadId = "";
|
|
|
|
for(var i=0; i<LENGTH; i++) {
|
|
|
|
randomPadId += LETTERS[Math.floor(Math.random() * LETTERS.length)];
|
|
|
|
}
|
|
|
|
|
|
|
|
l.href = randomPadId;
|
2014-04-07 00:33:49 +00:00
|
|
|
|
2014-12-26 03:05:07 +00:00
|
|
|
l.onclick = function() {
|
|
|
|
if(window.history && history.pushState) {
|
|
|
|
history.pushState(null, null, randomPadId);
|
|
|
|
check();
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2015-01-06 13:09:22 +00:00
|
|
|
var interval = setInterval(check, 100);
|
2014-12-26 03:05:07 +00:00
|
|
|
|
|
|
|
function check() {
|
|
|
|
if(loaded == 0 && !location.pathname.match(/\/$/)) {
|
|
|
|
document.getElementById("introContainer").style.display = "none";
|
|
|
|
document.getElementById("loading").style.display = "";
|
|
|
|
|
|
|
|
loaded = 1;
|
|
|
|
}
|
2014-12-31 14:54:48 +00:00
|
|
|
if(loaded == 1 && window.FacilPad != null && window.io != null && $("#map").css("height") == "100%") {
|
2014-12-26 03:05:07 +00:00
|
|
|
$("#introContainer,#loading").remove();
|
|
|
|
$("#map").unwrap();
|
|
|
|
angular.bootstrap(document, [ "facilpad" ]);
|
|
|
|
loaded = 2;
|
2015-01-06 13:09:22 +00:00
|
|
|
clearInterval(interval);
|
2014-12-26 03:05:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
check();
|
|
|
|
})();
|
|
|
|
</script>
|
|
|
|
<script src="https://api.facilmap.org/facilmap_ol.js"></script>
|
|
|
|
<script>
|
|
|
|
jQuery = $ = FacilMap.$;
|
2014-04-07 00:33:49 +00:00
|
|
|
</script>
|
2016-02-26 15:36:00 +00:00
|
|
|
<script src="build/all.js"></script>
|
2014-12-26 03:05:07 +00:00
|
|
|
<script src="http://localhost:40829/socket.io/socket.io.js"></script>
|
2014-04-07 00:33:49 +00:00
|
|
|
</body>
|
|
|
|
</html>
|