-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathjoinzone.html
56 lines (48 loc) · 1.65 KB
/
joinzone.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
---
title: Join Zone
layout: page
class: header--white
permalink: /joinzone/
nav:
---
<script>
var url = new URL(document.location.toString());
if (url.hash.slice(1).length < 32) {
window.location.replace((url.origin + url.pathname).replace("/joinzone/", "/"));
}
function CopyToClipboard(id)
{
var r = document.createRange();
r.selectNode(document.getElementById(id));
window.getSelection().removeAllRanges();
window.getSelection().addRange(r);
document.execCommand('copy');
window.getSelection().removeAllRanges();
document.querySelector("#notify").style.display = "";
setTimeout(function(){
document.querySelector("#notify").style.display = "none";
}, 3000);
}
</script>
<div class="text-center joinzone">
<h2 class="title">Join Code</h2>
<hr class="title_line">
<p class="subtitle">Click the "Join" button on the Zones page in Diode and enter this Join Code!</p>
<h3 type="text" class="joincode" id="joincode">
<script>
document.write(url.hash.slice(1))
</script>
</h3>
<button onclick="CopyToClipboard('joincode')" class="btn popup-open" id="cc-copy">
Copy to Clipboard
</button>
<div class="download-prompt" id="notify" role="alert" style="display: none;">
Copied!
</div>
<br/><br/>
<img style="display:block; margin-left:auto; margin-right: auto; width: 520px;" src="{{ "joinzone/joincode-entry-example.gif" | prepend: site.path.images | relative_url}}" alt="how to join zone with join code">
<p class="download-prompt">Need Diode?</p>
<div>
<a href="#download-app" class="btn popup-open" target="">{{ site.links.download.title }}</a>
</div>
</div>