-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.htm
75 lines (65 loc) · 1.64 KB
/
index.htm
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
<!DOCTYPE html>
<html>
<head>
<title>expansion model</title>
<script src="js/jquery-2.1.4.min.js"></script>
<script src="js/app.js"></script>
<style>
#panel {
position: absolute;
top: 0;
right: 0;
width: 100px;
border:1px solid #008;
padding: 10px;
}
.radio-group { margin-bottom: 10px; }
#field {
background:#eee;
margin: 50px auto 0 auto;
width:800px;
height:800px;
border-top: 1px solid black;
border-left:1px solid black;
}
#field div {
float: left;
width: 15px;
height: 15px;
border-bottom: 1px solid #008;
border-right: 1px solid #008;
}
#field div.c1 {
background: #888;
}
.inkA { color: #e00; }
.inkB { color: #0e0; }
.inkC { color: #00e; }
div.coreA {background: #e00;}
div.coreB {background: #0e0;}
div.coreC {background: #00e;}
div.areaA {background: #fbb;}
div.areaB {background: #bfb;}
div.areaC {background: #bbf;}
</style>
</head>
<body>
<div id="panel">
<div class="radio-group">
<input type="radio" name="ink" id="ink_A" value="A" checked/><label for="ink_A" class="inkA"/>Alpha</label><br>
<input type="radio" name="ink" id="ink_B" value="B"/><label for="ink_B" class="inkB"/>Beta</label><br>
<input type="radio" name="ink" id="ink_C" value="C"/><label for="ink_C" class="inkC"/>Gamma</label>
</div>
<button id="clear-btn">Clear</button>
</div>
<div id="field"></div>
<script>
//==============================================================================
$(document).ready(function() {
const app = new cApp()
// app.fillTpl()
})
//==============================================================================
</script>
</body>
</html>