Skip to content

Commit 44f678f

Browse files
committed
[refactor] fix a word
1 parent 4d4d866 commit 44f678f

File tree

7 files changed

+28
-28
lines changed

7 files changed

+28
-28
lines changed

‎css/clock.css‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
flex-wrap: nowrap;
1414
}
1515

16-
.clock-seperator,
16+
.clock-separator,
1717
.clock-hours,
1818
.clock-minutes,
1919
.clock-seconds,
@@ -24,7 +24,7 @@
2424
align-items: center;
2525
}
2626

27-
.clock-seperator{
27+
.clock-separator{
2828
min-width:0.5em;
2929
color:rgb(var(--accent));
3030
}

‎css/date.css‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
flex-wrap: nowrap;
1414
}
1515

16-
.date-seperator,
16+
.date-separator,
1717
.date-date,
1818
.date-day,
1919
.date-month,
@@ -24,7 +24,7 @@
2424
align-items: center;
2525
}
2626

27-
.date-seperator{
27+
.date-separator{
2828
min-width:0.5em;
2929
color:rgb(var(--accent));
3030
}

‎index.html‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ <h1 class="menu-header">Clock</h1>
115115
<labelfor="control-header-clock-show-seconds"><spanclass="label-icon"></span>Seconds</label>
116116
</div>
117117
<divclass="checkbox-wrap">
118-
<inputid="control-header-clock-show-seperator" class="control-header-clock-show-seperator" type="checkbox" tabindex="1">
119-
<labelfor="control-header-clock-show-seperator"><spanclass="label-icon"></span>Seperators</label>
118+
<inputid="control-header-clock-show-separator" class="control-header-clock-show-separator" type="checkbox" tabindex="1">
119+
<labelfor="control-header-clock-show-separator"><spanclass="label-icon"></span>Separators</label>
120120
</div>
121121
<divclass="checkbox-wrap">
122122
<inputid="control-header-clock-24" class="control-header-clock-24" type="checkbox" tabindex="1">
@@ -146,8 +146,8 @@ <h1 class="menu-header">Date</h1>
146146
<labelfor="control-header-date-show-year"><spanclass="label-icon"></span>Year</label>
147147
</div>
148148
<divclass="checkbox-wrap">
149-
<inputid="control-header-date-show-seperator" class="control-header-date-show-seperator" type="checkbox" tabindex="1">
150-
<labelfor="control-header-date-show-seperator"><spanclass="label-icon"></span>Seperators</label>
149+
<inputid="control-header-date-show-separator" class="control-header-date-show-separator" type="checkbox" tabindex="1">
150+
<labelfor="control-header-date-show-separator"><spanclass="label-icon"></span>Separators</label>
151151
</div>
152152
<divclass="radio-wrap">
153153
<inputid="control-header-date-character-length-short" class="control-header-date-character-length-short" type="radio" tabindex="1" name="control-header-date-character-length" value="short">

‎js/clock.js‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,20 +88,20 @@ var clock = (function(){
8888
if(!state.get().header.clock.hour24&&state.get().header.clock.show.meridiem){
8989
clock.appendChild(meridiem);
9090
};
91-
if(state.get().header.clock.show.seperator){
91+
if(state.get().header.clock.show.separator){
9292
varparts=clock.querySelectorAll("span");
9393
if(parts.length>1){
9494
parts.forEach(function(arrayItem,index){
9595
if(index>0&&!arrayItem.classList.contains("clock-meridiem")){
96-
varseperator=helper.makeNode({
96+
varseparator=helper.makeNode({
9797
tag: "span",
9898
text: sepCha,
9999
attr: [{
100100
key: "class",
101-
value: "clock-seperator"
101+
value: "clock-separator"
102102
}]
103103
});
104-
clock.insertBefore(seperator,arrayItem);
104+
clock.insertBefore(separator,arrayItem);
105105
};
106106
});
107107
};

‎js/control.js‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ var control = (function(){
118118
};
119119
});
120120
if(activeCount>=2&&(state.get().header.date.show.date||state.get().header.date.show.day||state.get().header.date.show.month||state.get().header.date.show.year)){
121-
helper.e(".control-header-date-show-seperator").disabled=false;
121+
helper.e(".control-header-date-show-separator").disabled=false;
122122
}else{
123-
helper.e(".control-header-date-show-seperator").disabled=true;
123+
helper.e(".control-header-date-show-separator").disabled=true;
124124
};
125125
if(state.get().header.date.show.day||state.get().header.date.show.month){
126126
helper.e(".control-header-date-character-length-short").disabled=false;
@@ -139,9 +139,9 @@ var control = (function(){
139139
};
140140
});
141141
if(activeCount>=2&&(state.get().header.clock.show.seconds||state.get().header.clock.show.minutes||state.get().header.clock.show.hours)){
142-
helper.e(".control-header-clock-show-seperator").disabled=false;
142+
helper.e(".control-header-clock-show-separator").disabled=false;
143143
}else{
144-
helper.e(".control-header-clock-show-seperator").disabled=true;
144+
helper.e(".control-header-clock-show-separator").disabled=true;
145145
};
146146
if(state.get().header.clock.show.seconds||state.get().header.clock.show.minutes||state.get().header.clock.show.hours){
147147
helper.e(".control-header-clock-24").disabled=false;
@@ -327,9 +327,9 @@ var control = (function(){
327327
header.render();
328328
data.save();
329329
},false);
330-
helper.e(".control-header-date-show-seperator").addEventListener("change",function(){
330+
helper.e(".control-header-date-show-separator").addEventListener("change",function(){
331331
state.change({
332-
path: "header.date.show.seperator",
332+
path: "header.date.show.separator",
333333
value: this.checked
334334
});
335335
render();
@@ -388,9 +388,9 @@ var control = (function(){
388388
header.render();
389389
data.save();
390390
},false);
391-
helper.e(".control-header-clock-show-seperator").addEventListener("change",function(){
391+
helper.e(".control-header-clock-show-separator").addEventListener("change",function(){
392392
state.change({
393-
path: "header.clock.show.seperator",
393+
path: "header.clock.show.separator",
394394
value: this.checked
395395
});
396396
clock.clear();
@@ -482,11 +482,11 @@ var control = (function(){
482482
helper.e(".control-header-date-show-day").checked=state.get().header.date.show.day;
483483
helper.e(".control-header-date-show-month").checked=state.get().header.date.show.month;
484484
helper.e(".control-header-date-show-year").checked=state.get().header.date.show.year;
485-
helper.e(".control-header-date-show-seperator").checked=state.get().header.date.show.seperator;
485+
helper.e(".control-header-date-show-separator").checked=state.get().header.date.show.separator;
486486
helper.e(".control-header-clock-show-seconds").checked=state.get().header.clock.show.seconds;
487487
helper.e(".control-header-clock-show-minutes").checked=state.get().header.clock.show.minutes;
488488
helper.e(".control-header-clock-show-hours").checked=state.get().header.clock.show.hours;
489-
helper.e(".control-header-clock-show-seperator").checked=state.get().header.clock.show.seperator;
489+
helper.e(".control-header-clock-show-separator").checked=state.get().header.clock.show.separator;
490490
helper.e(".control-header-clock-24").checked=state.get().header.clock.hour24;
491491
helper.e(".control-header-clock-show-meridiem").checked=state.get().header.clock.show.meridiem;
492492
helper.e(".control-header-edit-add-active").checked=state.get().header.editAdd.active;

‎js/date.js‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,20 +74,20 @@ var date = (function(){
7474
if(state.get().header.date.show.year){
7575
date.appendChild(year);
7676
};
77-
if(state.get().header.date.show.seperator){
77+
if(state.get().header.date.show.separator){
7878
varparts=date.querySelectorAll("span");
7979
if(parts.length>1){
8080
parts.forEach(function(arrayItem,index){
8181
if(index>0){
82-
varseperator=helper.makeNode({
82+
varseparator=helper.makeNode({
8383
tag: "span",
8484
text: sepCha,
8585
attr: [{
8686
key: "class",
87-
value: "date-seperator"
87+
value: "date-separator"
8888
}]
8989
});
90-
date.insertBefore(seperator,arrayItem);
90+
date.insertBefore(separator,arrayItem);
9191
};
9292
});
9393
};

‎js/state.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var state = (function(){
99
day: false,
1010
month: true,
1111
year: false,
12-
seperator: true
12+
separator: true
1313
}
1414
},
1515
clock: {
@@ -18,7 +18,7 @@ var state = (function(){
1818
seconds: true,
1919
minutes: true,
2020
hours: true,
21-
seperator: true,
21+
separator: true,
2222
meridiem: true
2323
}
2424
},

0 commit comments

Comments
(0)