-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
300 lines (279 loc) · 10.2 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
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<link href="https://fonts.googleapis.com/css?family=Montserrat:100,200,300,400,500,600,700,800,900" rel="stylesheet">
<title>Dr-Discord</title>
<!-- Bootstrap core CSS -->
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Additional CSS Files -->
<link rel="stylesheet" href="assets/css/fontawesome.css">
<link rel="stylesheet" href="assets/css/style.css">
<link rel="stylesheet" href="assets/css/owl.css">
<link rel="stylesheet" href="assets/css/lightbox.css">
</head>
<body>
<!--header-->
<header class="main-header clearfix" role="header">
<div class="logo">
<a href="#"><em>DR</em> DISCORD</a>
</div>
<a href="#menu" class="menu-link"><i class="fa fa- eeexbars"></i></a>
<nav id="menu" class="main-nav" role="navigation">
<ul class="main-menu">
<li><a target="_blank" href="https://github.com/Dr-Discord/Discord-Re-envisioned/releases">download</a></li>
<li><a id="invite" href="#" class="external">Discord</a></li>
</ul>
</nav>
</header>
<section class="section main-banner" id="top" data-section="section1">
<video autoplay muted loop id="bg-video">
<source src="assets/images/course-video.mp4" type="video/mp4" />
</video>
<div class="video-overlay header-text">
<div class="caption">
<h2><em>DR</em> Discord</h2>
<div class="main-button">
<div><a href='javascript:lightbox()'>Download</a></div>
</div>
</div>
</div>
</section>
<section class="section why-us" data-section="section2">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="section-heading">
<h2>Want more?</h2>
</div>
</div>
<div class="col-md-12">
<div id='tabs'>
<ul>
<li><a href='#tabs-1'>Plugins</a></li>
<li><a href='#tabs-2'>Themes</a></li>
<li><a href='#tabs-3'>Develop</a></li>
</ul>
<section class='tabs-content'>
<article id='tabs-1'>
<div class="row">
<!-- <div class="col-md-6">
<img alt="">
</div> -->
<div class="col-md-6">
<h4>Plugins</h4>
<p>Want to inhance your discord-ines? Get some plugins made by the community [here]!</p>
</div>
</div>
</article>
<article id='tabs-2'>
<div class="row">
<!-- <div class="col-md-6">
<img alt="">
</div> -->
<div class="col-md-6">
<h4>Themes</h4>
<p>Need a beatufull client? Choose from hundreds of themes that the community has made for free! [browse]</p>
</div>
</div>
</article>
<article id='tabs-3'>
<div class="row">
<!-- <div class="col-md-6">
<img alt="">
</div> -->
<div class="col-md-6">
<h4>Development</h4>
<p>Want to help test and developt with the growing development team? click [here] to get started!</p>
</div>
</div>
</article>
</section>
</div>
</div>
</div>
</div>
</section>
<!-- Scripts -->
<!-- Bootstrap core JavaScript -->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="assets/js/isotope.min.js"></script>
<script src="assets/js/owl-carousel.js"></script>
<script src="assets/js/lightbox.js"></script>
<script src="assets/js/tabs.js"></script>
<script src="assets/js/video.js"></script>
<script src="assets/js/slick-slider.js"></script>
<script src="assets/js/custom.js"></script>
<script>
$('.nav li:first').addClass('active');
var showSection = function showSection(section, isAnimate) {
var
direction = section.replace(/#/, ''),
reqSection = $('.section').filter('[data-section="' + direction + '"]'),
reqSectionPos = reqSection.offset().top - 0;
if (isAnimate) {
$('body, html').animate({
scrollTop: reqSectionPos },
800);
} else {
$('body, html').scrollTop(reqSectionPos);
}
};
var checkSection = function checkSection() {
$('.section').each(function () {
var
$this = $(this),
topEdge = $this.offset().top - 80,
bottomEdge = topEdge + $this.height(),
wScroll = $(window).scrollTop();
if (topEdge < wScroll && bottomEdge > wScroll) {
var
currentId = $this.data('section'),
reqLink = $('a').filter('[href*=\\#' + currentId + ']');
reqLink.closest('li').addClass('active').
siblings().removeClass('active');
}
});
};
$(window).scroll(function () {
checkSection();
});
let outMost//bug: cant reopen after close
document.getElementById("invite").onclick = () => {
if (typeof outMost?.remove === "function") return outMost?.remove()
outMost = document.createElement("div")
outMost.id = "popout-invite"
outMost.innerHTML = `<iframe id="popout-invite-iframe" src="https://discord.com/widget?id=864267123694370836&theme=dark" width="300" height="440" allowtransparency="true" frameborder="0" sandbox="allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts"></iframe>`
document.body.appendChild(outMost)
outMost.style.right = "-300px"
outMost.style.transform = "translatex(0)"
outMost.style.transition = "transform .3s"
const iframe = document.getElementById("popout-invite-iframe")
iframe.onload = () => outMost.style.transform = "translatex(-308px)"
outMost.style.position = "fixed"
outMost.style.top = "80px"
nextTick(oneTimeEventListener, "click", () => {
outMost.remove()
outMost = null
})
}
</script>
<script>
async function getRelease(os){
x=await fetch('https://api.github.com/repos/dr-discord/installer/releases').then(r=>r.json()).then(j=>j)
return x[0].assets.find(e=>e.name.includes(os))}
async function lightbox(){
x=navigator.platform;
y=await getRelease(x.includes`Win`?'win':(x.includes`Mac`?'mac':'linux'))
if(!document.getElementById('popoutStyle')){
const style = document.createElement('style');
style.id='popoutStyle'
style.innerText=`
.lb-popup{
position: fixed;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
z-index: 10000;
}
.lb-bg{
position: absolute;
inset: 0;
background: #0000008f;
}
.lb-main{
width: 350px;
height: 450px;
background: rgb(24 35 58);
z-index: 1;
border-radius: 10px;
box-shadow: 4px 4px 20px 0px #00000085;
overflow: hidden;
display: flex;
flex-direction: column;
align-items: center;
}
.lb-main>.body{
background: rgb(57 67 87);
width: 100%;
height: 100%;
padding: 20px;
color: white;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-around;
}
.lb-main h2{
color:white;
font-size: 36px;
font-weight: 700;
margin: 1rem;
}
.lb-main em{
font-style: normal;
color: #f52590;
font-weight: 900;
}
.lb-main a.download{
background-color: #f52590;
color: #fff;
font-size: 13px;
text-transform: uppercase;
letter-spacing: 0.5px;
font-weight: 700;
padding: 12px 20px;
display: inline-block;
outline: none;
}
`.replaceAll('\n','');
document.head.appendChild(style);
}
const br = document.createElement('br')
const lb = document.createElement('div')
lb.className='lb-popup'
const bg = document.createElement('div')
bg.className='lb-bg'
bg.addEventListener('click',removeLb)
const main = document.createElement('div')
main.className='lb-main'
const title = document.createElement('h2')
title.appendChild((()=>{x=document.createElement('em');x.innerText='DR';return x})())
title.appendChild((()=>{x=document.createTextNode('DISCORD');return x})())
main.appendChild(title)
const body = document.createElement('div')
body.className='body'
const osName = document.createElement('h4')
osName.innerText=y.name.includes`win`?'Windows':(y.name.includes`mac`?'MacOS':'Lynux')
body.appendChild(osName);
const description = document.createElement('p')
description.innerText=`click the button down below to downlaod the dr.discord installer for this OS.`
body.appendChild(description);
const downloadButton = document.createElement('a')
downloadButton.className='download';
downloadButton.target='_blank';
downloadButton.href=y.browser_download_url;
downloadButton.innerText='download';
body.appendChild(downloadButton);
body.appendChild(br);
const altDownloadButton = document.createElement('a');
altDownloadButton.target='_blank';
altDownloadButton.href='https://github.com/Dr-Discord/installer/releases';
altDownloadButton.innerText='or download from git';
body.appendChild(altDownloadButton);
main.appendChild(body);
function removeLb(){
lb.parentElement.removeChild(lb)
}
lb.appendChild(bg)
lb.appendChild(main)
document.body.appendChild(lb)
}
</script>
</body>
</html>