-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathradius.html
55 lines (55 loc) · 1.86 KB
/
radius.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="./style.css">
<title>Iron Style</title>
</head>
<body>
<div id="heading">
<h1><link href=index.html>The Iron Style Generator</link></h1>
<img src="./watson.jpg">
<div id="navigation">
<ul>
<li><link href=background.html>Background Color</link></li>
<li><link href=color.html>Text Color</link></li>
<li><link href=width.html>Page Width</link></li>
<li><link href=line.html>Line Height</link></li>
<li><link href=size.html>Font Size</link></li>
<li><link href=radius.html>Border Radius</link></li>
<li><link href=shadow.html>Box Shadow</link></li>
</ul>
</div>
</div>
<div id="wrapper">
<div id="content">
<h2>Border Radius Picker</h2>
<p>Set the <code>border-radius</code> property on the <code>#sidebar</code> element with the selector below.</p>
<form>
<label>Border Radius</label>
<select>
<option value="0">Zero</option>
<option value="10px">10px</option>
<option value="20px">20px</option>
</select>
</form>
</div>
<div id="sidebar">
<h3>Aside goes here</h3>
<p>Also, a link to the <link href="generated_stylesheet.html">stylesheet you generated.</link></p>
</div>
</div>
<div id="footer">Footer</div>
<script src="./app.js"></script>
<script>
var select = document.querySelector("select");
if(sessionStorage["borderRadius"]){
setSelect(select, "borderRadius")
}
select.addEventListener("change", function(){
document.querySelector("#sidebar").style.borderRadius = select.value;
sessionStorage.setItem("borderRadius", select.value);
});
</script>
</body>
</html>