-
Notifications
You must be signed in to change notification settings - Fork 1
/
new1.html
161 lines (145 loc) · 5.84 KB
/
new1.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
<!DOCTYPE html>
<html>
<head>
<link href="https://fonts.googleapis.com/css?family=Abel|Quicksand|Pacifico|Play|Cinzel|Courgette|Lato" rel="stylesheet">
<title>Personality Analyser</title>
<link rel="shortcut icon" type="image/png" href="img/hh1.png">
<script>
function myfunction()
{
document.getElementById("myDropdown").classList.toggle("show");
}
</script>
<style type="text/css">
.header{
height: 70px;
padding-left: 20px;
padding-top:20px;
color: rgb(68, 68, 88);
font-family: 'Quicksand';
font-size: 50px;
font-weight: bold;
text-transform: lowercase;
}
font:hover{
color:rgb(33, 33, 39);
animation:w3-effect 4s 1;
}
</style>
<link rel="stylesheet" type="text/css" href="css/styleIndex.css">
</head>
<body style="background-image: url(img/111.jpg);">
<div class="header "><a style="text-decoration: none;" href="index.html"><font color="grey">personalyser</font>.com</a>
<div style="float:right;margin-right:5px;margin-bottom:0px;font-size:40px;color:rgb(22, 67, 75);padding:0px">Learn,Discover,Grow</div>
</div>
<div class="d2">
<div class="dropbtn" onclick="myfunction()"><img src="img/images.png"height="25px" width="30px" >
<div id="myDropdown" class="dropdown-content">
<a href="index.html">Home</a>
<a href="about.html">About</a>
<a href="#contact">Contact</a>
</div>
</div>
<a href="about.html"><div class="d1"><font>ABOUTUS</font></div></a>
<a href="desc.html"><div class="d1" ><font>Personalities</font></div></a>
<a href="https://en.wikipedia.org/wiki/Myers%E2%80%93Briggs_Type_Indicator"><div class="d1"><font>Explore</font></div></a>
<a href="Signinpage.html"><div class="d1"><font>Signin</font></div></a>
<button style="float:right;margin-top:10px;border-radius:5px;background-color:rgb(209, 228, 209)" onclick="window.location='https://www.google.co.in/'">Search</button>
<input type="search"placeholder="Search here" style="float:right;margin:5px;width:300px;height:30px;">
</div>
<form name="quiz">
<div style="height: 75px"></div>
<center><div style="padding: 1%;font-family: helvetica;">
6. You rarely get carried away by fantasies and ideas.<br>
Agree<input style="margin-left: 10px;margin-top: 1%;" type="radio" name="q1" value="in" id="q1s">
<input style="margin-left: 5%;margin-top: 1%;" type="radio" name="q1" value="ex" id="q1i">Disagree<br>
</div>
<div style="padding: 1%;font-family: helvetica;">
7. You often find yourself lost in thought when you are walking in nature.<br>
Agree<input style="margin-left: 10px;margin-top: 1%;" type="radio" name="q2" value="ex" id="q2i">
<input style="margin-left: 5%;margin-top: 1%;" type="radio" name="q2" value="in" id="q2s">Disagree<br>
</div>
<div style="padding: 1%;font-family: helvetica;">
8. You do not let other people influence your actions.<br>
Agree<input style="margin-left: 10px;margin-top: 1%;" type="radio" name="q3" value="ex" id="q3s">
<input style="margin-left: 5%;margin-top: 1%;" type="radio" name="q3" value="in" id="q3i">Disagree<br>
</div>
<div style="padding: 1%;font-family: helvetica;">
9. Your dreams tend to focus on the real world and its events.<br>
Agree<input style="margin-left: 10px;margin-top: 1%;" type="radio" name="q4" value="in" id="q4s">
<input style="margin-left: 5%;margin-top: 1%;" type="radio" name="q4" value="ex" id="q4i">Disagree<br>
</div>
<div style="padding: 1%;font-family: helvetica;">
10. Logic is usually more important than heart when it comes to making important decisions.<br>
Agree<input style="margin-left: 10px;margin-top: 1%;" type="radio" name="q5" value="in" id="q5s">
<input style="margin-left: 5%;margin-top: 1%;" type="radio" name="q5" value="ex" id="q5i">Disagree<br>
</div></center>
</form>
<p style="padding: 1%"><center><button onclick="validate()">Next</button></center></p>
<script>
sessionStorage.s=0;
sessionStorage.in=0;
function op(){ window.open("new2.html","_self");}
function myFunction() {
if (document.getElementById('q1s').checked) {
sessionStorage.s++;
}
if (document.getElementById('q1i').checked) {
sessionStorage.in++;
}
if (document.getElementById('q2s').checked) {
sessionStorage.s++;
}
if (document.getElementById('q2i').checked) {
sessionStorage.in++;
}
if (document.getElementById('q3s').checked) {
sessionStorage.s++;
}
if (document.getElementById('q3i').checked) {
sessionStorage.in++;
}
if (document.getElementById('q4s').checked) {
sessionStorage.s++;
}
if (document.getElementById('q4i').checked) {
sessionStorage.i++;
}
if (document.getElementById('q5s').checked) {
sessionStorage.s++;
}
if (document.getElementById('q5i').checked) {
sessionStorage.i++;
}}
function validate(){
if (!(document.getElementById('q1s').checked)&&!(document.getElementById('q1i').checked))
{
alert("Please select an answer for the question 6!!!");
return false;
}
else if (!(document.getElementById('q2s').checked)&&!(document.getElementById('q2i').checked))
{
alert("Please select an answer for the question 7!!!");
return false;
}
else if (!(document.getElementById('q3s').checked)&&!(document.getElementById('q3i').checked))
{
alert("Please select an answer for the question 8!!!");
return false;
}
else if (!(document.getElementById('q4s').checked)&&!(document.getElementById('q4i').checked))
{
alert("Please select an answer for the question 9!!!");
return false;
}
else if (!(document.getElementById('q5s').checked)&&!(document.getElementById('q5i').checked))
{
alert("Please select an answer for the question 10!!!");
return false;
}
myFunction();
op();
}
</script>
</body>
</html>