forked from Commit451/skyhook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.ejs
85 lines (78 loc) · 3.38 KB
/
index.ejs
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="theme-color" content="#009688">
<title>skyhook</title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/material-components-web.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<header class="mdc-toolbar mdc-toolbar--fixed">
<div class="mdc-toolbar__row">
<section class="mdc-toolbar__section mdc-toolbar__section--align-start">
<span class="mdc-toolbar__title">skyhook</span>
</section>
</div>
</header>
<main>
<body class="mdc-typography">
<div class="mdc-card demo-card">
<p>
Skyhook parses webhooks and forwards them in the proper format to Discord.
</p>
<p>
In order to have skyhook parse your webhooks properly, you must generate a webhook URL. Once you have the
URL generated,
you can pass it along to the provider you selected.
</p>
<div class="mdc-form-field">
<div class="mdc-text-field mdc-text-field--multiline"
data-mdc-auto-init="MDCTextField" style="width: 100%;">
<input id="url" type="text" class="mdc-text-field__input">
<label for="url" class="mdc-text-field__label">Discord Webhook URL</label>
<div class="mdc-text-field__bottom-line"></div>
</div>
</div>
<p>Provider</p>
<section>
<% providers.forEach(function (c, i){ %>
<div class="mdc-form-field">
<div class="mdc-radio">
<input class="mdc-radio__native-control" type="radio" id="ex2-radio<%= i %>" name="ex2"
value="<%= c[0] %>">
<div class="mdc-radio__background">
<div class="mdc-radio__outer-circle"></div>
<div class="mdc-radio__inner-circle"></div>
</div>
</div>
<label id="ex2-radio1-labe<%= i %>" for="ex2-radio<%= i %>"><%= c[1] %></label>
</div>
<% }) %>
</section>
<br/>
<button id="button-generate" class="mdc-button
mdc-button--raised
mdc-button--primary
mdc-ripple-surface" data-mdc-auto-init="MDCRipple">
Generate
</button>
<div id="mdc-js-snackbar" class="mdc-snackbar" aria-live="assertive" aria-atomic="true" aria-hidden="true">
<div class="mdc-snackbar__text"></div>
<div class="mdc-snackbar__action-wrapper">
<button type="button" class="mdc-button mdc-snackbar__action-button"></button>
</div>
</div>
</div>
</body>
</main>
<script src="https://unpkg.com/[email protected]/dist/material-components-web.min.js"></script>
<script src="./copyToClipboard.min.js"></script>
<script src="https://code.jquery.com/jquery-2.2.1.min.js"
integrity="sha256-gvQgAFzTH6trSrAWoH1iPo9Xc96QxSZ3feW6kem+O00="
crossorigin="anonymous"></script>
<script src="./client.js"></script>
</html>