Showing
1 changed file
with
3 additions
and
3 deletions
... | @@ -7,11 +7,11 @@ | ... | @@ -7,11 +7,11 @@ |
7 | <script> | 7 | <script> |
8 | function nightDayHandler(self){ | 8 | function nightDayHandler(self){ |
9 | var target=document.querySelector('body'); | 9 | var target=document.querySelector('body'); |
10 | - if(this.value==='night') | 10 | + if(self.value==='night') |
11 | { | 11 | { |
12 | target.style.backgroundColor= 'black'; | 12 | target.style.backgroundColor= 'black'; |
13 | target.style.color= 'white'; | 13 | target.style.color= 'white'; |
14 | - this.value= 'day'; | 14 | + self.value= 'day'; |
15 | 15 | ||
16 | var alist=document.querySelectorAll('a'); | 16 | var alist=document.querySelectorAll('a'); |
17 | var i =0; | 17 | var i =0; |
... | @@ -23,7 +23,7 @@ function nightDayHandler(self){ | ... | @@ -23,7 +23,7 @@ function nightDayHandler(self){ |
23 | }else{ | 23 | }else{ |
24 | target.style.backgroundColor= 'white'; | 24 | target.style.backgroundColor= 'white'; |
25 | target.style.color= 'black'; | 25 | target.style.color= 'black'; |
26 | - this.value= 'night'; | 26 | + self.value= 'night'; |
27 | 27 | ||
28 | var alist=document.querySelectorAll('a'); | 28 | var alist=document.querySelectorAll('a'); |
29 | var i =0; | 29 | var i =0; | ... | ... |
-
Please register or login to post a comment