-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex6.html
97 lines (81 loc) · 2.6 KB
/
index6.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
<!DOCTYPE html>
<head>
<title> 6 Anneaux </title>
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/style6.css">
</head>
<body>
<div id="menu">
<div id="tolerance">
<div id="gold" onclick="colorer('#D4AF37')"></div>
<div id="silver" onclick="colorer('#CECECE')"></div>
</div>
<div id="container2" >
<div id="black" onclick="couleur('#000')"></div>
<div id="brown" onclick="couleur('#2A120A')"></div>
<div id="red" onclick="couleur('#B40404')"></div>
<div id="orange" onclick="couleur('#FF8000')" ></div>
<div id="yellow" onclick="couleur('#FFFF00')" ></div>
<div id="green" onclick="couleur('#0B610B')" ></div>
<div id="blue" onclick="couleur('#08088A')" ></div>
<div id="purple" onclick="couleur('#6A0888')"></div>
<div id="gray" onclick="couleur('#6E6E6E')" ></div>
<div id="white" onclick="couleur('#fff')" ></div>
</div>
<div id="resistance">
<canvas id="forme" width="350" height="50"></canvas>
<script>
function roundRect(x, y, w, h, radius)
{
var canvas = document.getElementById("forme");
var context = canvas.getContext("2d");
var r = x + w;
var b = y + h;
context.beginPath();
context.strokeStyle="black";
context.fillStyle="#B18904";
context.lineWidth="2";
context.moveTo(x+radius, y);
context.lineTo(r-radius, y);
context.quadraticCurveTo(r, y, r, y+radius);
context.lineTo(r, y+h-radius);
context.quadraticCurveTo(r, b, r-radius, b);
context.lineTo(x+radius, b);
context.quadraticCurveTo(x, b, x, b-radius);
context.lineTo(x, y+radius);
context.quadraticCurveTo(x, y, x+radius, y);
context.stroke();
}
roundRect(5,5,180,40, 15);
</script>
<div id="car1" ></div>
<div id="car2"></div>
<div id="car3"></div>
<div id="car4"></div>
<div id="car5"></div>
<form name="form1" id="forme1">
<input type="radio" id="etat" value="car1" name="etat" onclick="verif()"/>
<input type="radio" id="etat" value="car2" name="etat" onclick="verif()"/>
<input type="radio" id="etat" value="car3" name="etat" onclick="verif()"/>
<input type="radio" id="etat" value="car4" name="etat" onclick="verif()"/>
<input type="radio" id="etat" value="car5" name="etat" onclick="verif()"/>
</form>
</div>
<div id="resultat">
<textarea type="text" name="" id="textresult" disabled>1 k Ω =1000 Ω </textarea>
</div>
<div id="calcul">
<input type="range" size="10" name="calcul" id="calc" onclick="showcalcul('calc')"/>
<select id="unite">
<option>Ω </option>
<option >K Ω </option>
<option >M Ω </option>
</select>
±<select id="toler">
<option>5%</option>
<option>10%</option>
</select>
</div>
</div>
</body>
</html>