Skip to content

Commit b86a2fb

Browse files
committed
calculator
1 parent 718b80e commit b86a2fb

File tree

5 files changed

+241
-23
lines changed

5 files changed

+241
-23
lines changed

.idea/workspace.xml

Lines changed: 140 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

01/client_study.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
<title>Title</title>
66
</head>
77
<body>
8+
Hello
89
<script src = "client_study.js"></script>
10+
<script src = "hide.js"></script>
11+
World
12+
<button onclick="hide(this,true); debug('hide button 1')">Hide 1</button>
13+
<button onclick="hide(this); debug('hide button 2')">Hide 2</button>
914
</body>
1015
</html>

01/hide.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/**
2+
* Created by iminhyeok on 2017. 10. 21..
3+
*/
4+
5+
function hide(e, reflow) {
6+
if (reflow) {
7+
e.style.display = "none"
8+
}
9+
else {
10+
e.style.visibility = "hidden";
11+
}
12+
13+
}
14+
15+
16+
17+
function highlight(e) {
18+
if(!e.className) e.className = "hilite";
19+
else e.className += " hilite";
20+
}

0 commit comments

Comments
 (0)