-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
85 lines (82 loc) · 2.98 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Javelin UI</title>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/prettify.css">
<link rel="stylesheet" type="text/css" href="css/demos.css">
<script type="text/javascript" src="js/prettify.js"></script>
<style>
html,body
{
margin:0;
padding:0;
font-family: Arial, Helvetica, sans-serif;
}
iframe
{
border:none;
width:100%;
height:1000px;
display:none;
}
iframe.current
{
display: block;
}
</style>
<script>
function init(){
prettyPrint();
document.body.addEventListener('click', function(e){
var isBtn = e.target.classList.contains('btn');
if(isBtn){
var current = document.querySelector('.current');
current.style.display = 'none';
current.classList.remove('current');
var id = e.target.id;
var iframeId = '#' + id + '-plugin';
var iframe = document.querySelector(iframeId);
iframe.style.display = '';
iframe.classList.add('current');
}
})
}
</script>
</head>
<body onload="init();">
<div class="container">
<div class="content">
<h1>Javelin UI</h1>
<h2>A set of UI plugins to be used with Javelin</h2>
<p></p>
<h2>Common Files required</h2>
<pre class="prettyprint linenums">
<script>
var __DEV__ = 1;
</script>
<script src="javelin/pkg/init.dev.js" type="text/javascript"></script>
<script src="javelin/pkg/javelin.dev.js" type="text/javascript"></script></pre>
<div class="btn-group">
<div id="modal" class="btn">Modal</div>
<div id="button" class="btn">Button</div>
<div id="carousel" class="btn">Carousel</div>
<div id="dropdown" class="btn">Dropdown</div>
<div id="tooltip" class="btn">Tooltip</div>
<div id="form" class="btn">Form</div>
<div id="typeahead" class="btn">Typeahead</div>
<div id="tokenizer" class="btn">Tokenizer</div>
</div>
<hr/>
<iframe id="modal-plugin" class="current" src="plugins/modal/modal.html"></iframe>
<iframe id="button-plugin" src="plugins/button/button.html"></iframe>
<iframe id="carousel-plugin" src="plugins/carousel/carousel.html"></iframe>
<iframe id="dropdown-plugin" src="plugins/dropdown/dropdown.html"></iframe>
<iframe id="tooltip-plugin" src="plugins/tooltip/tooltip.html"></iframe>
<iframe id="form-plugin" src="plugins/form/form.html"></iframe>
<iframe id="typeahead-plugin" src="plugins/typeahead/typeahead.html"></iframe>
<iframe id="tokenizer-plugin" src="plugins/tokenizer/tokenizer.html"></iframe>
</div>
</div>
</body>