forked from 4storia/4storia.github.io
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvds.html
94 lines (86 loc) · 3.95 KB
/
vds.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
<html>
<head>
<title>VDS 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;
}
.button {
margin-right: 8px;
}
</style>
<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 testLocation() {
console.log('im locating');
pendo.location.setUrl('https://relytred.github.io/fakeLocation');
}
</script>
<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: 12345 // 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>
<body>
<div class="title">Welcome to the guide building playground!</div>
<button class='button' onclick="addAlert()">Add alert! </button>
<button class='button' onclick="testLocation()">Locate me </button>
<iframe sandbox="allow-scripts allow-popups allow-popups-to-escape-sandbox" allow="" frameborder="0" src="/sandboxed.html"></iframe>
</body>
</html>