forked from 4storia/4storia.github.io
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathduoe.html
173 lines (158 loc) · 6.98 KB
/
duoe.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
<html>
<head>
<title>Classy Town</title>
</head>
<style>
body {
margin: 0;
padding: 0;
height: 100%;
width: 100%;
}
.title {
width: 100%;
text-align: center;
font-size: 20px;
font-weight: bold;
margin-top: 10px;
margin-bottom: 20px;
}
.alert {
width: 100%;
font-size: 16px;
font-weight: bold;
margin-top: 10px;
margin-bottom: 20px;
background: magenta;
}
.blockedP {
display: block;
}
.input {
width: 100px;
}
.inputHolder {
margin-top: 50px;
}
</style>
<script>
(function(apiKey){
(function(p,e,n,d,o){var v,w,x,y,z;o=p[d]=p[d]||{};o._q=o._q||[];
v=['initialize','identify','updateOptions','pageLoad','track'];for(w=0,x=v.length;w<x;++w)(function(m){
o[m]=o[m]||function(){o._q[m===v[0]?'unshift':'push']([m].concat([].slice.call(arguments,0)));};})(v[w]);
y=e.createElement(n);y.async=!0;y.src='https://cdn.pendo-atlas.pendo-dev.com/agent/static/'+apiKey+'/pendo.js';
z=e.getElementsByTagName(n)[0];z.parentNode.insertBefore(y,z);})(window,document,'script','pendo');
// This function creates anonymous visitor IDs in Pendo unless you change the visitor id field to use your app's values
// This function uses the placeholder 'ACCOUNT-UNIQUE-ID' value for account ID unless you change the account id field to use your app's values
// Call this function after users are authenticated in your app and your visitor and account id values are available
// Please use Strings, Numbers, or Bools for value types.
pendo.initialize({
visitor: {
id: '[email protected]' // Required if user is logged in, default creates anonymous ID
// email: // Recommended if using Pendo Feedback, or NPS Email
// full_name: // Recommended if using Pendo Feedback
// role: // Optional
// You can add any additional visitor level key-values here,
// as long as it's not one of the above reserved names.
},
account: {
id: 'ACCOUNT-UNIQUE-ID' // Required if using Pendo Feedback, default uses the value 'ACCOUNT-UNIQUE-ID'
// name: // Optional
// is_paying: // Recommended if using Pendo Feedback
// monthly_value:// Recommended if using Pendo Feedback
// planLevel: // Optional
// planPrice: // Optional
// creationDate: // Optional
// You can add any additional account level key-values here,
// as long as it's not one of the above reserved names.
}
});
})('c925f8cd-7d23-4862-55d0-9773495d9230');
</script>
<script>
function addAlert() {
const ele = document.createElement('div');
ele.innerText = 'This alert will hide after a lil bit';
ele.className = 'alert';
ele.setAttribute('id', 'alert');
document.body.appendChild(ele);
setTimeout(() => ele.remove(), 10000)
}
function onInput(event) {
console.log(event);
}
function onChange(event) {
console.log(event);
}
setTimeout(() => {
const changeInput = document.getElementById('change');
changeInput.addEventListener('change', onChange);
const inputInput = document.getElementById('input');
inputInput.addEventListener('input', onChange);
}, 1000);
</script>
<body>
<div class="title">Welcome yo ole travelers to classic town</div>
<div class="buttonHolder">
<p class="blockedP">This gizmo will display a banner </p>
<button class="addAlert" onclick="addAlert()">Add alert! </button>
<p class="blockedP">Send your fan mail too... </p>
<select class="pets">
<option value="">Pick a pet</option>
<option value="dog" class="dogOption">Dog</option>
<option value="cat" class="catOption">Cat</option>
<option value="hamster" class="hamOption">Hamster</option>
<option value="goldfish" class="fishOption">Goldfish</option>
</select>
<div>
<input type="radio" id="html" name="fav_language" value="HTML">
<label for="html">HTML</label><br>
<input type="radio" id="css" name="fav_language" value="CSS">
<label for="css">CSS</label><br>
<input type="radio" id="javascript" name="fav_language" value="JavaScript">
<label for="javascript">JavaScript</label>
</div>
</div>
<div class="inputHolder">
<p class="blockedP">Valid autofill inputs</p>
<input id="myInput" class="input">
<input class="input" type="date">
<input class="input" type="datetime-local">
<input class="input" type="email">
<input class="input" type="month">
<input class="input" type="number">
<input class="input" type="password">
<input class="input" type="search">
<input class="input" type="tel">
<input class="input" type="text">
<input class="input" type="time">
<input class="input" type="url">
<input class="input" type="week">
<input class="input" type="hidden">
<input class="input" type="range">
</div>
<div class="inputHolder">
<p class="blockedP">Invalid autofill inputs</p>
<input class="input" type="button">
<input class="input" type="checkbox">
<input class="input" type="color">
<input class="input" type="image">
<input class="input" type="radio">
<input class="input" type="reset">
<input class="input" type="submit">
<input class="input" type="file">
</div>
<div class="inputHolder">
<div>
<label>I change: </label>
<input id="change" class="input" type="text" onchange="onChange(this)">
<button id="changeBtn" disabled>Do I have power</button>
</div>
<div>
<label>I input: </label>
<input id="input" class="input" type="text" oninput="onInput(this)">
<button id="inputBtn" disabled>Can I be clicked</button>
</div>
</div>
</body>
</html>