-
Notifications
You must be signed in to change notification settings - Fork 0
/
tattestpage.html
191 lines (160 loc) · 6.02 KB
/
tattestpage.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
189
190
191
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>tattestpage</title>
<link rel="stylesheet" href="tattestpage.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
<body>
<div id="navbar">
<div id="top">
<div><i class="fa-solid fa-bars fa-xl" style="color: #fcfcfc;"></i></div>
<div id="logo"></div>
<div><F4>PsychoDrill</F4></div>
</div>
<div id="options">
<button id="analytics" class="opt">
<div><i class="fa-solid fa-chart-simple fa-lg" style="color: #fafafa;"></i></div>
<div id="text1">Analytics</div>
</button>
<button id="instructions" class="opt">
<div><i class="fa-solid fa-book-open-reader fa-lg" style="color: #ffffff;"></i></div>
<div id="text2">Instructions</div>
</button>
<button id="tat" class="opt">TAT</button>
<button id="wat" class="opt">WAT</button>
<button id="sdt" class="opt">SRT</button>
<button id="srt" class="opt">SDT</button>
<button id="quit" class="opt">
<div><i class="fa-solid fa-door-open fa-lg" style="color: #ffffff;"></i></div>
<a href="index.html"><div id="quit"> Quit</div></a>
</button>
</div>
</div>
<div id="rec13">
<a href="index.html"><div><button id="back"><i class="fa-solid fa-arrow-left fa-2xl" style="color: #000000;"></i></button></div></a>
<div id="textname">SSB</div>
</div>
<div id="questionbox">
<div id="quesboxa">
<button class="quebut" id="prev">
<i class="fa-solid fa-backward fa-xl" style="color: #000000;"></i>
<p11 >Previous </p11>
</button>
<p10 id="no"> Question no.</p10>
<button class="quebut" id="next">
<p11>Next</p11>
<i class="fa-solid fa-backward fa-flip-horizontal fa-xl" style="color: #000000;"></i>
</button>
</div>
<div id="quesboxb" style="background-image: url('tatimg/set2.1tat.jpg');">
</div>
<div id="quesboxc">
<textarea id="ans" name="gans" rows="15" cols="70">
</textarea>
</div>
</div>
<div id="testboxfour">
<p id="testboxtextone">Test</p>
<p id="testboxtexttwo">Thematic Appercepation Test (TAT)</p>
</div>
<div id="nexttest">
<p id="nexttestone">Next Test</p>
<p id="nexttesttwo">Word Association Test (WAT)</p>
</div>
<div id="timer">
<p id="timerone">Timer</p>
<p id="timertwo">00:00:00</p>
</div>
<div id="quesopt">
<p id="quesoptone">Questions</p>
<div id="quesoptwo">
<div class="three">
<button class="Q"><a>Q</a></button>
<button class="Q"><a>Q</a></button>
<button class="Q"><a>Q</a></button>
</div>
<div class="three">
<button class="Q"><a>Q</a></button>
<button class="Q"><a>Q</a></button>
<button class="Q"><a>Q</a></button>
</div>
<div class="three">
<button class="Q"><a>Q</a></button>
<button class="Q"><a>Q</a></button>
<button class="Q"><a>Q</a></button>
</div>
<div class="three">
<button class="Q"><a>Q</a></button>
<button class="Q"><a>Q</a></button>
<button class="Q"><a>Q</a></button>
</div>
</div>
</div>
<body>
<div id="subbut"><div id="submit">submit</div>
</body>
<!-- <script>
let qu=['tatimg\set2.1tat.jpg','tatimg\set2.4tat.jpg','tatimg\set2.2tat.jpg','tatimg\set2.3tat.jpg'];
const questionbox=document.querySelector("#quesboxb");
console.log(questionbox);
previous=document.querySelector("#prev");
next=document.querySelector("#next");
var text = document.getElementById("ans").value;
console.log(previous);
console.log(next);
let i=0
previous.addEventListener("click",()=>{
i=i-1;
questionbox.textContent=qu[i];
if (i<0) {
questionbox.textContent="no previous question";
}
})
next.addEventListener("click",()=>{
document.getElementById("ans").value="";
i=i+1;
questionbox.textContent=qu[i];
if (i>(qu.length)-1) {
questionbox.textContent="no noext questions";
}
})
let timeInSeconds = 3240;
let timerElement = document.getElementById('timertwo');
function displayTime() {
let minutes = Math.floor(timeInSeconds / 60);
let seconds = timeInSeconds % 60;
minutes = minutes < 10 ? '0' + minutes : minutes;
seconds = seconds < 10 ? '0' + seconds : seconds;
timerElement.textContent = minutes + ':' + seconds;
}
function startTimer() {
displayTime();
let timer = setInterval(function() {
timeInSeconds--;
displayTime();
if (timeInSeconds === 0) {
clearInterval(timer);
timerElement.textContent = 'Time\'s up!';
}
}, 1000);
}
startTimer();
let answers=[]
function saveText() {
var text = document.getElementById("ans").value;
console.log("Text saved:", text);
}
let submit=document.querySelector("#submit");
submit.addEventListener("click",()=>{
answers.push(text);
console.log("Text saved:", text);
document.getElementById("ans").value="";
})
</script>
-->
<script defer src="./tat.js"></script>
</body>
</html>