Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-capstone-design1
/
Triz_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
MinsoftK
2020-04-16 18:24:19 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
abb66db30d4ac9519741d4fff10db28f9fa832c4
abb66db3
1 parent
3bd7d509
test how to convey parameter by self
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
front/web/ex/js.html
front/web/ex/js.html
View file @
abb66db
...
...
@@ -7,11 +7,11 @@
<script>
function
nightDayHandler
(
self
){
var
target
=
document
.
querySelector
(
'body'
);
if
(
this
.
value
===
'night'
)
if
(
self
.
value
===
'night'
)
{
target
.
style
.
backgroundColor
=
'black'
;
target
.
style
.
color
=
'white'
;
this
.
value
=
'day'
;
self
.
value
=
'day'
;
var
alist
=
document
.
querySelectorAll
(
'a'
);
var
i
=
0
;
...
...
@@ -23,7 +23,7 @@ function nightDayHandler(self){
}
else
{
target
.
style
.
backgroundColor
=
'white'
;
target
.
style
.
color
=
'black'
;
this
.
value
=
'night'
;
self
.
value
=
'night'
;
var
alist
=
document
.
querySelectorAll
(
'a'
);
var
i
=
0
;
...
...
Please
register
or
login
to post a comment