forked from borismus/spectrogram
-
Notifications
You must be signed in to change notification settings - Fork 0
/
g-spectrogram-controls.html
53 lines (51 loc) · 1.53 KB
/
g-spectrogram-controls.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
<link rel="import" href="./bower_components/polymer/polymer.html">
<polymer-element name="g-spectrogram-controls" attributes="log labels ticks speed color">
<template>
<style>
:host {
display: block;
padding: 1em;
background: rgba(255, 255, 255, 0.5);
margin: 1em;
border: rgba(0, 0, 0, 0.3);
border-width: 1px;
border-style: solid;
font-family: 'Inconsolata', sans-serif;
z-index: 10;
}
h1 {
font-size: 20px;
margin: 0;
margin-bottom: 20px;
}
.config {
font-size: 14px;
margin-top: 0.5em;
}
</style>
<h1>Spectrogram Controls</h1>
<div class="config">
<label for="log">Log scale</label>
<input type="checkbox" id="log" checked="{{log}}">
</div>
<div class="config">
<label for="color">Full color</label>
<input type="checkbox" id="color" checked="{{color}}">
</div>
<div class="config">
<label for="speed">Speed</label>
<input type="range" id="speed" value="{{speed}}" min="1" max="5" />
</div>
<div class="config">
<label for="labels">Show labels</label>
<input type="checkbox" id="labels" checked="{{labels}}">
</div>
<template if="{{labels}}">
<div class="config">
<label for="ticks">Number of ticks</label>
<input type="range" id="ticks" value="{{ticks}}" min="2" max="10" />
</div>
</template>
</template>
<script src="g-spectrogram-controls.js"></script>
</polymer-element>