-
Notifications
You must be signed in to change notification settings - Fork 0
/
tfd.html
188 lines (180 loc) · 5.49 KB
/
tfd.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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<!DOCTYPE HTML SYSTEM>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=no"/>
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="pragma" content="no-cache" />
<meta name="robots" content="noindex,nofollow">
<link href="https://fonts.googleapis.com/css?family=PT+Sans:400,700" rel="stylesheet">
<script type="text/javascript">
function autoChk(){
var status = readCookie("userStatus");
if(status == '1'){
setTimeout(continueFlow, 10);
}
else if(status == '2'){
setTimeout(continueFlow, 10);
}
else if(status == '3'){
setTimeout(continueFlow, 10);
}
else if(status == '4'){
setTimeout(resetFlow, 10);
}
else{setTimeout(userSetup, 10);}
}
function continueFlow(){
document.getElementById('selObj').style.display="none";
document.getElementById('two').style.display="none";
document.getElementById('conti').style.display="block";
document.getElementById('choi1').style.display="none";
document.getElementById('choi2').style.display="none";
document.getElementById('choi3').style.display="none";
document.getElementById('base').style.opacity="1";
}
function resetFlow(){
document.getElementById('one').innerHTML = "Select Your Objective!";
document.getElementById('selObj').style.display="none";
document.getElementById('four').style.display="none";
document.getElementById('two').style.display="block";
document.getElementById('conti').style.display="none";
document.getElementById('choi1').style.display="block";
document.getElementById('choi2').style.display="block";
document.getElementById('choi3').style.display="block";
document.getElementById('base').style.opacity="1";
}
function userSetup(){
document.getElementById('one').innerHTML = "Welcome to <b>DM BUDDY</b>";
document.getElementById('four').innerHTML = "Thanks for chosing <b>DM BUDDY</b>! Please select your objective, so that we can serve you the perfect digital marketing study materials.";
document.getElementById('selObj').style.display="block";
document.getElementById('two').style.display="none";
document.getElementById('conti').style.display="none";
document.getElementById('choi1').style.display="none";
document.getElementById('choi2').style.display="none";
document.getElementById('choi3').style.display="none";
document.getElementById('base').style.opacity="1";
}
function selectObj(){
document.getElementById('one').innerHTML = "Select Your Objective!";
document.getElementById('selObj').style.display="none";
document.getElementById('four').style.display="none";
document.getElementById('two').style.display="block";
document.getElementById('conti').style.display="none";
document.getElementById('choi1').style.display="block";
document.getElementById('choi2').style.display="block";
document.getElementById('choi3').style.display="block";
}
function continueReading(){
var status = readCookie("userStatus");
if(status == '1'){
window.location = "../a1.html";
}
else if(status == '2'){
window.location = "../a2.html";
}
else if(status == '3'){
window.location = "../a3.html";
}
}
function readCookie(cookieName){
var results = document.cookie.match(cookieName + '=(.*?)(;|$)');
if(results){return(results[1]);}
else{return null;}
}
function business(){document.cookie = "userStatus=1;";
window.location = "../a1.html";}
function blog(){document.cookie = "userStatus=2;";
window.location = "../a2.html";}
function pro(){document.cookie = "userStatus=3;";
window.location = "../a3.html";}
</script>
<style type="text/css">
body{
margin: 0;
font-family: 'PT Sans';
min-height: 100%;
min-width: 100%;
background: #333 url(../images/background.png);
background-repeat: repeat;
background-position: center;
background-size: 150px;
}
.base{
width: 240px;
position: fixed;
top: 50%;
left: 50%;
margin-top: -120px;
margin-left: -122px;
border-radius: 10px;
text-align: center;
text-shadow: 0 0 4px rgba(0,0,0,0.1);
color: #fff;
background-color: rgba(0,0,0,0.7);
box-shadow: 0 0 5px 1px rgba(0,0,0,0.7);
padding: 5px;
-webkit-transition: opacity 1s .2s ease;
}
.overBase{
max-width: 100%;
border: 1px dashed rgba(255,255,255,0.4);
border-radius: 10px;
text-align: center;
overflow: hidden;
}
.one {
font-size: 22px;
line-height: 24px;
margin: 5px auto 8px;
}
.two span{
background-color: #FFC000;
display: inline-block;
height: 24px;
width: 24px;
line-height: 24px;
border-radius: 12px;
box-shadow: 0 0 5px 1px rgba(0,0,0,0.4);
color: #333;
font-weight: bold;
}
.three {
display: block;
margin: 0 10px 10px;
padding: 10px;
font-size: 16px;
line-height: 20px;
background-color: #FFC000;
border-radius: 5px;
cursor: pointer;
box-shadow: 0 0 5px 1px rgba(0,0,0,0.4);
color: #333;
font-weight: bold;
}
.four{
font-size: 14px;
text-align: justify;
padding: 0 10px;
}
</style>
</head>
<body>
<div id="base" class="base" style="opacity: 0;">
<p id="one" class="one">Welcome back SPARKY!</p>
<div class="overBase">
<p id="two" class="two">My objective is to <span>➜</span></p>
<p id="four" class="four">Do you know? Digital Marketing is very easy. It's just like doing facebook and browsing websites.</p>
<p id="selObj" class="three" onClick="selectObj()">Select Objective</p>
<p id="conti" class="three" onClick="continueReading()">Continue</p>
<p id="choi1" class="three" onClick="business()">Promote My Business</p>
<p id="choi2" class="three" onClick="blog()">Making Money Online</p>
<p id="choi3" class="three" onClick="pro()">Become A Webmaster</p>
</div>
</div>
<script>
window.onload=function(){autoChk();};
</script>
</body>
</html>