summaryrefslogtreecommitdiff
path: root/index.html
blob: 2178d7d6a06f29b2fc89e2f84ff353aab93c2fca (plain)
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
<html>
<head>
<title>subphatty</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=yes">
<style>
* {
  box-sizing: border-box;
}
html {
  margin: 0; padding: 0;
  width: 100%; height: 100%;
}
body {
  background: #000;
  color: #fff;
  margin: 0; padding: 0;
  width: 100%; height: 100%;
  font-weight: 300;
/*  overflow: hidden;
  -webkit-overflow-scrolling: auto;
*/
  font-family: Helvetica, sans-serif;
  background: linear-gradient(35deg, rgba(35,10,10,1), rgba(18,23,35,1));
  background-attachment: fixed;
}
h3 {
  margin: 0 0 5px 0;
}
label {
  display: block;
  text-transform: lowercase;
  font-size: 10px;
  height: 20px;
}
label span {
  display: inline-block;
  width: 120px;
  white-space: pre;
  text-overflow: ellipsis;
  overflow: hidden;
}
#params > div {
  background: black;
  padding: 10px;
  margin: 10px;
  float: left;
}
#controls {
  background: black;
  padding: 10px;
  margin: 10px;
  display: inline-block;
}
</style>
</head>
<body>

<div id='controls'>
  <button id='randomize'>Randomize</button>
</div>

<div id='params'></div>

<script type="text/html" id="section_template">
  <div>
    <h3>{name}</h3>
    {els}
  </div>
</script>
<script type="text/html" id="range_template">
  <label class='param'>
    <span>{name}</span>
    <input type='range' name='{param_name}' min='{min}' max='{max}' value='{value}' data-index='{index}' />
  </label>
</script>
<script type="text/html" id="checkbox_template">
  <label class='param'>
    <span>{name}</span>
    <input type='checkbox' name='{param_name}' data-index='{index}' />
  </label>
</script>
<script type="text/html" id="enum_template">
  <label class='param'>
    <span>{name}</span>
    <select value='{value}' name='{param_name}' data-index='{index}'>{options}</select>
  </label>
</script>
</body>
<script src='dist/bundle.js'></script>
</html>