-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathindex.html
105 lines (98 loc) · 3.25 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdnjs.cloudflare.com/ajax/libs/qrcodejs/1.0.0/qrcode.js" defer></script>
<script src="servicenow.js" defer></script>
<script src="webex.js" defer></script>
<script src="index.js" defer></script>
<script src="alpine.js" defer></script>
<title>Report Issue</title>
<link rel="icon" href="./assets/logo.png">
<link href="style.css" rel="stylesheet">
</head>
<body x-data="dataModel" :class="theme || ''" x-cloak>
<main>
<div class="logo left"></div>
<section x-show="step === 'start'">
<h1>How was your experience?</h1>
<div class="choices">
<button class="choice" @click="answer(step, 'awesome')">🎉 Awesome!</button>
<button class="choice" @click="answer(step, 'ok')">😐 OK</button>
<button class="choice" @click="answer(step, 'notgood')">😡 Not good</button>
</div>
</section>
<section
x-show="step === 'whatwaswrong'"
x-transition:leave="fadeup"
x-transition:enter="fadein"
>
<div>
<h1>What went wrong?</h1>
<div class="choices">
<button
class="choice icon audio"
@click="answer(step, 'audiovideo')"
>Audio / video quality</button>
<button
class="choice icon room"
@click="answer(step, 'room')"
>Something in the room</button>
<button
class="choice icon other"
@click="answer(step, 'other')"
>Other</button>
</div>
</div>
</section>
<section
x-show="step === 'moreinfo'"
x-transition:enter="fadein"
x-transition:leave="fadeup"
>
<div>
<textarea x-model="answers.comments" placeholder="Describe the problem"></textarea>
</div>
<div>
<input class="name" x-model="answers.name" placeholder="Your name here" />
</div>
<div>
<button @click="back" x-show="step === 'moreinfo'">Back</button>
<button
@click="submit()"
:class="busy ? 'busy' : ''"
:disabled="busy"
x-text="busy ? 'Send' : 'Send'"
class="submit"
></button>
</div>
</section>
<section
x-show="step === 'done'"
x-transition:leave="fadeup"
x-transition:enter="fadein"
>
<div class="error" x-show="createIncident && !incidentNumber">Sorry! Something went wrong when creating a ServiceNow incident.</div>
<div x-show="incidentNumber">
<div class="done"></div>
<h1>Issue reported</h1>
<div x-show="createIncident">Thanks for your feedback.
<p/>A ServiceNow incident has been created.
<p/>Incident number: <b x-text="incidentNumber"></b>
</div>
</div>
<h1 x-show="!createIncident">Thanks for your feedback!</h1>
</section>
</main>
<div class="qr-dialog" x-show="showQr" @click="showQr = false">
<div id="qr-code"></div>
<div>Tap to close</div>
</div>
<footer>
<img src="./assets/qrlogo.png" class="qr-logo"/>
<a @click="showQr = true">Report with phone instead</a>
</footer>
</body>
</html>