-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
65 lines (56 loc) · 1.42 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
53
54
55
56
57
58
59
60
61
62
63
64
65
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>JS | Lesson 5 | Clocks</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- <div id = "menu">
<button data-action = "save">Save</button>
<button data-action = "load">Load</button>
<button data-action = "search">Search</button>
</div> -->
<!-- <input type="text" id = "fname" placeholder = "Your name..." oninput="myFunction()">
<p id = "text"></p> -->
<div class="clock">
<div class="clock-face">
<div class="hand hour-hand"></div>
<div class="hand min-hand"></div>
<div class="hand second-hand"></div>
</div>
</div>
<script>
// var input = document.getElementById('fname');
// var text = document.getElementById('text');
// function myFunction() {
// text.innerText = input.value;
// //input.value = '';
// }
// function Menu(elem){
// this.save = function(){
// alert("Save");
// };
// this.load = function(){
// alert("Load");
// };
// this.search = function(){
// alert("Search");
// };
//
// var self = this;
//
// elem.onclick = function(event){
// var target = event.target;
// var action = target.getAttribute('data-action');
// if(action) {
// self[action] ();
// }
// }
// }
//
// new Menu(menu)
</script>
<script src="main.js"></script>
</body>
</html>