-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnew 2.html
73 lines (70 loc) · 1.77 KB
/
new 2.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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="style.css" type="text/css" rel="stylesheet" />
<title>TIMESPOON</title>
</head>
<body>
<input type="number">
<form>
<input name="n" type="range">
<input type="submit" value="Go">
</form>
<form>
<input name="t" type="time">
<input type="submit" value="Go">
</form>
<div class="span-20">
<button>Button</button>
<p>Button</p>
<button class="native">Button</button>
</div>
<div>text shadow</div>
<canvas id="a" width="300" height="225"></canvas>
<video src="pre6.webm" width="320" height="240" controls></video>
<form>
<input name="q" placeholder="Search Bookmarks and History">
<input type="submit" value="Search">
</form>
</body>
</html>
<style type="text/css">
body { padding-top: 40px; }
button {
font-size: 48px;
margin: 0 2px;
vertical-align: top;
}
button.native {
-moz-appearance: none;
-webkit-appearance: none;
}
p {
display: inline-block;
-moz-appearance: button;
-webkit-appearance: button;
font-size: 48px;
line-height: 60px;
margin-bottom: 0;
padding: 0 6px;
text-align: center;
}
div {
width:80%;
margin:0 auto;
font-size:10em;
box-shadow: -3px 0px 15px #999, 10px -0px 15px #999;
}
</style>
<script type="text/javascript" charset="utf-8">
window.onload = function() {
var d_canvas = document.getElementById("a");
var context = d_canvas.getContext("2d");
var my_gradient = context.createLinearGradient(0, 0, 0, 225);
my_gradient.addColorStop(0, "red");
my_gradient.addColorStop(0.5, "yellow");
my_gradient.addColorStop(1, "green");
context.fillStyle = my_gradient;
context.fillRect(0, 0, 300, 225);
}