-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.html
81 lines (69 loc) · 2.31 KB
/
demo.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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Bootstrap railmap demo</title>
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet">
<link rel="stylesheet" href="css/bootstrap-railmap.css">
<!-- from the bootstrap narrow container template -->
<style type="text/css">
body {
padding-top: 20px;
padding-bottom: 40px;
}
/* Custom container */
.container-narrow {
margin: 0 auto;
max-width: 700px;
}
.container-narrow > hr {
margin: 30px 0;
}
</style>
<!--[if lte IE 8]>
<style>
li.railstop {
float: left;
}
</style>
<![endif]-->
</head>
<body>
<div class="container-narrow">
<div class="page-header">
<h2>Bootstrap railmap <small>v. 0.4</small></h2>
</div>
<div id="railmap" class="alert alert-info hide">
<p>Optional header text explaining what you are doing</p>
<ul>
<li data-name="grand central station">Grand Central Station</li>
<li data-name="berlin hauptbahnhof">Berlin Hauptbahnhof</li>
<li data-name="kanazawa station">Kanazawa Station</li>
<li data-name="Shanghai South">Shanghai South</li>
<li data-name="kings cross station">King's Cross Station</li>
</ul>
</div>
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script>
<script type="text/javascript">
String.prototype.format = function(col) {
col = typeof col === 'object' ? col : Array.prototype.slice.call(arguments, 0);
return this.replace(/\{\{|\}\}|\{(\w+)\}/g, function (m, n) {
if (m == "{{") { return "{"; }
if (m == "}}") { return "}"; }
return col[n];
});
};
</script>
<script src="js/bootstrap-railmap.js"></script>
<script type="text/javascript">
$(function() {
var railmap = $('#railmap');
railmap.railmap().fadeIn('slow', function() {
railmap.railmap('next');
});
});
</script>
</body>
</html>