-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
134 lines (109 loc) · 3.96 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<!doctype html>
<!--
Material Design Lite
Copyright 2015 Google Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License
-->
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="TimeEngine JavaScript FRP Library">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>TimeEngine</title>
<!-- Page styles -->
<link href="https://fonts.googleapis.com/css?family=Roboto:regular,bold,italic,thin,light,bolditalic,black,medium&lang=en" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="./css/material.min.css">
<link rel="stylesheet" href="./css/index.css">
<link rel="stylesheet" href="./css/agate.css">
<script src="./js/highlight.min.js"></script>
<script type="text/javascript" src="./js/jquery-2.2.0.min.js"></script>
<script type="text/javascript" src="./js/marked.js"></script>
<script src="./cdn/timeengine.js"></script>
<script src="./js/immutable.min.js"></script>
<script src="./js/react-0.14.6.js"></script>
<script src="./js/react-dom-0.14.6.js"></script>
<script src="./cdn/timeengine-react.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.13.0/moment.min.js"></script>
<script src="http://cytoscape.github.io/cytoscape.js/api/cytoscape.js-latest/cytoscape.min.js"></script>
<script src="./js/dagre.min.js"></script>
<script src="./js/cytoscape-dagre.js"></script>
<style>
body {
font-family: helvetica;
font-size: 14px;
}
.cyte {
width: 300px;
height: 300px;
left: 0;
top: 0;
z-index: 999;
}
.cyte2 {
width: 400px;
height: 400px;
left: 0;
top: 0;
z-index: 999;
}
.cyte3 {
width: 500px;
height: 500px;
left: 0;
top: 0;
z-index: 999;
}
.demo {
font-size: 30px;
background-color: #eeeeee;
}
.demo button {
font-size: 30px;
}
</style>
<script>
var editing =false;
if(editing) alert("Editing Mode!!");
$(document).ready(function(){
//===============================
var target = $("#markdown_content");
var data0 ="";
var reload = function(){
$.ajax({
url: target[0].attributes["src"].value,
}).success(function(data){
if(data !== data0){
data0 = data;
target.html(marked(data));
$('#markdown_content pre')
.each(function(i, block) {
hljs.highlightBlock(block, block.className);
});}
}).error(function(data){
target.append("This content failed to load.");
});};
reload();//initial load
if(editing){
setInterval(reload, 1000);
}
//===============================
});
</script>
</head>
<body>
<!-- Content -->
<div class="container">
<div id="markdown_content" src="./content.md"> </div>
</div>
</body>
</html>