-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfix_popup.html
156 lines (141 loc) · 3.71 KB
/
fix_popup.html
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<!DOCTYPE html>
<html>
<style>
form {
border: 3px solid #f1f1f1;
}
.submitbtn{
background-color: #f44336;
color: white;
padding: 14px 20px;
margin: 8px 0;
border: none;
cursor: pointer;
width: 300px;
}
button:hover {
opacity: 0.8;
}
.congrats{
font:25;
}
.workmorebtn{
background-color: #f44336;
color: white;
padding: 14px 20px;
margin: 8px 0;
border: none;
cursor: pointer;
width: 150px;
}
.homebtn{
background-color: #f44336;
color: white;
padding: 14px 20px;
margin: 8px 0;
border: none;
cursor: pointer;
width: 150px;
}
.facebookbtn {
color: white;
padding: 14px 20px;
margin: 8px 0;
border: none;
cursor: pointer;
width: auto;
background-color: #3b5998;
width: 100px;
}
.naverbtn {
color: white;
padding: 14px 20px;
margin: 8px 0;
border: none;
cursor: pointer;
width: auto;
background-color: #3EAF0E;
width: 100px;
}
.container {
padding: 16px;
}
/* The Modal (background) */
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
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 */
padding-top: 60px;
}
/* Modal Content/Box */
.modal-content {
background-color: #fefefe;
margin: 5% auto 15% auto; /* 5% from the top, 15% from the bottom and centered */
border: 1px solid #888;
width: 350px; /* Could be more or less, depending on screen size */
text-align: center;
}
/* The Close Button (x) */
.close {
position: absolute;
right: 25px;
top: 0;
color: #000;
font-size: 35px;
font-weight: bold;
}
.close:hover,
.close:focus {
color: red;
cursor: pointer;
}
/* Add Zoom Animation */
.animate {
-webkit-animation: animatezoom 0.6s;
animation: animatezoom 0.6s
}
@-webkit-keyframes animatezoom {
from {-webkit-transform: scale(0)}
to {-webkit-transform: scale(1)}
}
@keyframes animatezoom {
from {transform: scale(0)}
to {transform: scale(1)}
}
</style>
<body>
<h2 style = "text-align: center;">Generate</h2>
<button onclick="document.getElementById('id01').style.display='block'" class="submitbtn">Submit</button>
<div id = "id01" class = "modal">
<form class="modal-content animate" action="http://mangosub.com/profile_page">
<div class = "container" style = "text-align: center">
<p><font size = "15">Congratulations!</font></p>
<p><font size = "5">You earned +3 credits!</font></p>
<button onclick="location.href='http://www.mangosub.com/work'" type = "button" class = "workmorebtn">Work more</button>
<button onclick="location.href='http://www.mangosub.com'" type = "button" class = "homebtn">Home</button>
</div>
<div class = "container" style = "background-color:#f1f1f1; text-align: center">
<p><font size = "5">Share your results</font></p>
<button type = "button" onclick="location.href='http://www.facebook.com'" class = "facebookbtn">Facebook</button>
<button type = "button" onclick="location.href='http://www.naver.com'" class = "naverbtn">Naver</button>
</div>
</form>
</div>
<script>
var modal = document.getElementById('id01');
// When the user clicks anywhere outside of the modal, close it
window.onclick = function(event) {
if (event.target == modal) {
window.location.href = 'http://www.mangosub.com';
}
}
</script>
</body>
</html>