-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.html
More file actions
96 lines (82 loc) · 5.01 KB
/
Copy pathindex.html
File metadata and controls
96 lines (82 loc) · 5.01 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
<script src='https://code.responsivevoice.org/responsivevoice.js'></script>
<button onclick="nextQuestion()" style="width:100%; height: 300px;background: blue;color:white;cursor: pointer;font-size:30px;">ASK QUESTION</button>
<div id="question" style="text-align: center; margin-top:30px;font-size:30px;">
Enable sound, and click the button to ask a question. You will be notified at the 30 and 60 second mark.
</div>
<script>
function getRndInteger(min, max) {
return Math.floor(Math.random() * (max - min) ) + min;
}
function Timer(callback, delay) {
var timerId, start, remaining = delay;
this.stop = function() {
window.clearTimeout(timerId);
remaining -= new Date() - start;
};
this.start = function() {
start = new Date();
window.clearTimeout(timerId);
timerId = window.setTimeout(callback, remaining);
};
}
var questions = [
'Describe a situation in which you were able to use persuasion to successfully convince someone to see things your way.',
'Describe a time when you were faced with a stressful situation that demonstrated your coping skills.',
'Give me a specific example of a time when you used good judgment and logic in solving a problem.',
'Give me an example of a time when you set a goal and were able to meet or achieve it.',
'Tell me about a time when you had to use your presentation skills to influence someone\'s opinion.',
'Give me a specific example of a time when you had to conform to a policy with which you did not agree.',
'Please discuss an important written document you were required to complete.',
'Tell me about a time when you had to go above and beyond the call of duty in order to get a job done.',
'Tell me about a time when you had too many things to do and you were required to prioritize your tasks.',
'Give me an example of a time when you had to make a split second decision.',
'What is your typical way of dealing with conflict? Give me an example.',
'Tell me about a time you were able to successfully deal with another person even when that individual may not have personally liked you (or vice versa).',
'Tell me about a difficult decision you\'ve made in the last year.',
'Give me an example of a time when something you tried to accomplish and failed.',
'Give me an example of when you showed initiative and took the lead.',
'Tell me about a recent situation in which you had to deal with a very upset customer or co-worker.',
'Give me an example of a time when you motivated others.',
'Tell me about a time when you delegated a project effectively.',
'Give me an example of a time when you used your fact-finding skills to solve a problem.',
'Tell me about a time when you missed an obvious solution to a problem.',
'Describe a time when you anticipated potential problems and developed preventive measures.',
'Tell me about a time when you were forced to make an unpopular decision.',
'Please tell me about a time you had to fire a friend.',
'Describe a time when you set your sights too high (or too low).',
'Why Amazon?',
'Tell me about a time when you disagreed with a boss. What did you do?',
'If your engineer tells you that a product launch will be delayed for 6 months, what would you do?',
'Tell me a time when you fail?',
'Why product manager? ',
'What is your biggest accomplishment?',
'When was the last time you created a metric and implemented it?',
'A time when you dealt with ambiguity?',
'What do you think is Amazon\'s challenge right now? ',
'How did you lead the team?',
'How did you motivate the team? ',
'What was your biggest challenge?',
'Tell me of a time when you made a gut decision, without looking into any data?',
'What is the difference between management and leadership? ',
'Tell me about a time you made a large mistake at work. What was the mistakes, how did you escalate to your management, and how did you rectify?',
'What\'s the most revolutionary thing you\'ve done in your job?',
'What\'s the most innovative thing you\'ve done in your job?',
'Tell me of a time when you made a gut decision, without looking into any data?'
];
var timer30 = new Timer(function() {
responsiveVoice.speak("30", "US English Female", {volume: .4});
}, 30000);
var timer60 = new Timer(function() {
responsiveVoice.speak("60", "US English Female", {volume: .4});
}, 60000);
function nextQuestion() {
//timer.stop();
var num = getRndInteger(0, questions.length);
responsiveVoice.speak(questions[num], "US English Female");
// display question
document.getElementById('question').innerHTML = questions[num];
// set timer
timer30.start();
timer60.start();
}
</script>