質問編集履歴

3

不要な記述の削除

2018/01/23 06:12

投稿

shingosuchin
shingosuchin

スコア24

test CHANGED
File without changes
test CHANGED
@@ -50,20 +50,6 @@
50
50
 
51
51
 
52
52
 
53
- setClock('firstHours', 0);
54
-
55
- setClock('secondHours', 1);
56
-
57
- setClock('firstdMinutes', 3);
58
-
59
- setClock('secondMinutes', 4);
60
-
61
- setClock('firstdSecond', 6);
62
-
63
- setClock('secondSecond', 7);
64
-
65
-
66
-
67
53
  window.setTimeout( "digitalClock()", 60000); //60秒
68
54
 
69
55
  }

2

追記

2018/01/23 06:12

投稿

shingosuchin
shingosuchin

スコア24

test CHANGED
File without changes
test CHANGED
@@ -71,3 +71,29 @@
71
71
  window.onload = digitalClock;
72
72
 
73
73
  ```
74
+
75
+
76
+
77
+ ```HTML
78
+
79
+ <div id="digital_clock">
80
+
81
+ <span id="firstHours" class="firstHours"></span>
82
+
83
+ <span id="secondHours" class="secondHours"></span>
84
+
85
+ <span>:</span>
86
+
87
+ <span id="firstdMinutes" class="firstdMinutes"></span>
88
+
89
+ <span id="secondMinutes" class="secondMinutes"></span>
90
+
91
+ <span>:</span>
92
+
93
+ <span id="firstdSecond" class="firstdSecond"></span>
94
+
95
+ <span id="secondSecond" class="secondSecond"></span>
96
+
97
+ </div>
98
+
99
+ ```

1

追記

2018/01/23 05:09

投稿

shingosuchin
shingosuchin

スコア24

test CHANGED
File without changes
test CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  以下のような、JS(例:デジタル時計)を綺麗に記述するにはどのようにしたらよろしいでしょうか。
4
4
 
5
- 「実行処理を外に出す」などと、綺麗にかけると見たのですが、初心者なもので、理解できておりません。
5
+ 「実行処理を分ける」「実行処理を外に出す」などと、綺麗にかけると見たのですが、初心者なもので、理解できておりません。
6
6
 
7
7
  ご教授お願い致します。
8
8