-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjavascript.js
More file actions
45 lines (37 loc) · 1.01 KB
/
Copy pathjavascript.js
File metadata and controls
45 lines (37 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
var windowW = 400;
var windowH = 430;
var left = Math.ceil((window.screen.width - windowW)/2);
var to = Math.ceil((window.screen.height - windowH)/2);
var write;
search = function() {
window.open("./search_book.php", "pop_01", "top="+to+", left="+left+", height="+windowH+", width="+windowW);
return false;
}
write = function(){
window.open('','_self').close();
}
function modal() {
document.getElementById("modal").style.display="block";
}
function modal2() {
document.getElementById("modal2").style.display="block";
}
function close_modal() {
document.getElementById('modal').style.display="none";
return false;
}
function close_modal2() {
document.getElementById('modal2').style.display="none";
return false;
}
function check_pw(str) {
if(str =="modify") {
document.getElementById("modify_pw").style.display="block";
}
else if(str == "delete") {
document.getElemntById("delete_pw").style.display = "block";
}
}
function comment(index) {
document.getElementById("hide_comment"+index).style.display="block";
}