- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPopup_Modal_Using_JS.html
More file actions
Latest commit
92 lines (82 loc) · 3.15 KB
/
Copy pathPopup_Modal_Using_JS.html
File metadata and controls
92 lines (82 loc) · 3.15 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!DOCTYPE html>
<htmllang="en">
<head>
<metacharset="UTF-8" />
<metaname="viewport" content="width=device-width, initial-scale=1.0" />
<title>🏴‍☠️ Complete Javascripts Course</title>
<linkhref="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous" />
<style>
#overlay {
visibility: hidden;
position: absolute;
left:0;
right:0;
top:50px;
margin-left: auto;
margin-right: auto;
width:400px;
height:200px;
background-color: black;
border:1px solid black;
z-index:1000;
}
</style>
</head>
<bodyonload="start()">
<br/>
<br/>
<center>
<!-- <input type="text" id="item"> -->
<br/>
<divid="wrapper">📃 🏪 👾</div>
<br/>
<divid="message">Message 1</div>
<divid="message1">Message 2</div>
<divid="message">Message 1</div>
<divclass="output">Test Me 1</div>
<divclass="output">Test Me 2</div>
<divid="pickme1">
<divclass="output highlight">Test Me 3</div>
</div>
<inputtype="text" name="queryStuff" id="queryStuff">
<inputtype="button" class="btn btn-outline-warning" onclick="mySel()" value="Get Query">
<inputtype="button" class="btn btn-outline-info" id="oLay" value="Pop Up Window">
<divid="pickme2">
<divclass="output">Test Me 4</div>
<divclass="output">Test Me 5</div>
<divclass="output">Test Me 6</div>
</div>
<divclass="output highlight">Test Me 7</div>
<divclass="output">Test Me 8</div>
<divclass="output">Test Me 9</div>
<divclass="output">Test Me 10</div>
</center>
<br><br>
<divalign="center">
<divid="overlay">
<div>
<p>Some Default Here Nothing Important Shubham Kumar NMAM Institute of Technology..</p>
</div>
</div>
</div>
<script>
varmessage=document.getElementById("message");
message.style.display="none"
message.style.display="block"
message.style.color="red"
message.style.borderBottomColor="blue"
message.style.border="1px solid"
message.style.backgroundColor="yellow"
varbtn=document.getElementById("oLay");
btn.onclick=function(){
varel=document.getElementById("overlay");
el.style.visibility=(el.style.visibility=="visible") ? "hidden" : "visible";
}
</script>
<scriptsrc="https://code.jquery.com/jquery-3.5.0.js"
integrity="sha256-r/AaFHrszJtwpe+tHyNi/XCfMxYpbsRg2Uqn0x3s2zc=" crossorigin="anonymous"></script>
<scriptsrc="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>
<scriptsrc="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.bundle.min.js"></script>
</body>
</html>