forked from EvanMu96/rgb-hex-transfer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
52 lines (48 loc) · 1.94 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="http://cdn.bootcss.com/semantic-ui/2.1.8/components/form.min.css">
<link rel="stylesheet" href="http://cdn.bootcss.com/semantic-ui/2.1.8/components/button.min.css">
<link rel="stylesheet" type="text/css" href="http://cdn.bootcss.com/semantic-ui/2.1.8/components/message.min.css">
<style type="text/css">
.container {
margin: 10px auto;
padding: 40px;
width: auto;
height: 400px;
overflow: hidden;
border-radius: 10px;
border-style: solid;
border-color: #000000;
}
</style>
<title>RGB16进制转换器</title>
</head>
<body>
<div class="container">
<form class="ui form">
<div class="ui field fluid">
<label>R</label>
<input type="text" name="R" id="rValue" class="fluid" onchange="able()">
</div>
<div class="ui field fluid" >
<label>G</label>
<input type="text" name="G" id="gValue" class="input-bar" onchange="able()">
</div>
<div class="field fluid">
<label>B</label>
<input type="text" name="B" id="bValue" class="input-bar" onchange="able()">
</div>
<br />
<br />
<button class="ui submit button" id="submit" type="submit" onclick="btnHandle()" disabled="disabled">Transfer</button>
<div class="ui error message"></div>
</form>
</div>
<script type="text/javascript" src="http://cdn.bootcss.com/jquery/3.0.0-beta1/jquery.min.js"></script>
<script type="text/javascript" src="http://cdn.bootcss.com/semantic-ui/2.1.8/semantic.min.js"></script>
<script type="text/javascript" src="main.js"></script>
<script type="text/javascript" src="formcheck.js"></script>
</body>
</html>