-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
130 lines (120 loc) · 3.68 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
<!DOCTYPE html>
<html lang="en">
<head>
<link href="css/bootstrap.css" rel="stylesheet" type="text/css"/>
<link href="css/bootstrap-slider.css" rel="stylesheet" type="text/css"/>
<link href="css/bootstrap-colorpicker.css" rel="stylesheet" type="text/css">
<style>
html{
width:100%;
height:100%;
padding:0;
overflow: hidden;
}
body {
width: 100%;
height: 100%;
padding:0;
margin: 0;
}
</style>
<style>
#canvas{
}
#ex1Slider .slider-selection {
background: #BABABA;
}
#controls{
position: absolute;
top:0;
right:0;
width:400px;
//overflow: auto;
background: rgba(186, 186, 186,.2);
float:right;
border:0;
}
#hidden{
position: absolute;
top:0;
right:0;
width:80px;
//overflow: auto;
//background: rgba(186, 186, 186,.1);
float:right;
border:0;
display:none;
}
#about{
float:right;
}
#title{
text-align:center;
color: rgb(0,0,0);
}
well{
background: rgba(186, 186, 186,.2);
}
<!-- #num{
position: relative;
top:0;
right:0;
width:50px;
overflow: auto;
max-height: 100%;
/*background: rgba(255,255,255,0.5);*/
float:right;
} -->
</style>
</head>
<body>
<canvas id="canvas">Your browser doesn't support canvas</canvas>
<div class="well" id="hidden">
<button type="button" id = "show" class="btn btn-default" aria-label="Menu Left">
<span class="glyphicon glyphicon-menu-left" aria-hidden="true"></span>
</button>
<button type="button" id = "save" class="btn btn-default" aria-label="Menu Left">
<span class="glyphicon glyphicon-floppy-save" aria-hidden="true"></span>
</button>
<button type="button" id = "fullscreen" class="btn btn-default" aria-label="Menu Left">
<span class="glyphicon glyphicon-fullscreen" aria-hidden="true"></span>
</button>
</div>
<div class="well" id="controls">
<button type="button" id = "hide" class="btn btn-default" aria-label="Menu Right">
<span class="glyphicon glyphicon-menu-right" aria-hidden="true"></span>
</button>
<button type="button" onclick="location.href='https://github.com/AndersSundheim/DungeonBoxes'" id = "about" class="btn btn-default" aria-label="Menu Right">
<span class="glyphicon glyphicon-question-sign" aria-hidden="true"></span>
</button>
<br></br>
<div class="well" id = "boxes">
Boxes:
<input id="ex1" data-slider-id='ex1Slider' type="text" data-slider-min="0" data-slider-max="100" data-slider-step="1" data-slider-value="25"/>
</div>
<div class="well" id = "widths">
Width:
<input id="ex2" type="text" class="span2" value="" data-slider-min="1" data-slider-max="200" data-slider-step="1" data-slider-value="[10,100]"/>
</div>
<div class="well" id = "heights">
Height:
<input id="ex3" type="text" class="span2" value="" data-slider-min="1" data-slider-max="200" data-slider-step="1" data-slider-value="[10,100]"/>
</div>
<div class="well" id = "gradients">
Gradient:
<input id="ex4" type="text" class="span2" value="" data-slider-min="1" data-slider-max="200" data-slider-step="1" data-slider-value="[10,100]"/>
</div>
<div id = "instructions">
<h1><span class="label label-default">Press R to Regenerate</span></h1>
</div>
<h1><a href="#" class="btn btn-default" id="cp5">Change box color</a></h1>
<h1><a href="#" class="btn btn-default" id="cp4">Change background color</a></h1>
</div>
</body>
<script src="js/jquery.js" type="text/javascript"></script>
<script src="js/bootstrap.js" type="text/javascript"></script>
<script src="js/bootstrap-colorpicker.js"></script>
<script src="js/bootstrap-slider.js" type="text/javascript"></script>
<script src="js/delaunay.js" type="text/javascript"></script>
<script src="js/main.js" type="text/javascript"></script>
</html>