forked from LorittaBot/LorittaWebsiteOld
-
Notifications
You must be signed in to change notification settings - Fork 0
/
base.html
456 lines (418 loc) · 17.7 KB
/
base.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
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script src="https://www.googletagmanager.com/gtag/js?id=UA-53518408-9"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-53518408-9');
</script>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% block title %}{% block subtitle %}{{ WEBSITE_DEFAULT_TITLE }}{% endblock %} • Loritta{% endblock %}</title>
<meta name="description" content="{{ WEBSITE_MetaDescription }}">
<script src="https://code.jquery.com/jquery-3.2.1.min.js" crossorigin="anonymous"></script>
<script src='https://www.google.com/recaptcha/api.js?render=explicit'></script>
<script src="{{ websiteUrl }}assets/js/countUp.min.js"></script>
<script src="https://cdn.rawgit.com/showdownjs/showdown/1.7.6/dist/showdown.min.js"></script>
<script src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script src="{{ websiteUrl }}assets/js/tingle.min.js"></script>
<script src="{{ websiteUrl }}assets/js/autosize.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js"></script>
<script type="text/javascript" src="{{ websiteUrl }}assets/js/phaser.min.js"></script>
<script type="text/javascript" src="{{ websiteUrl }}assets/js/kotlin.min.js?v=3"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/css/select2.min.css" rel="stylesheet" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/js/select2.min.js"></script>
<script type="text/javascript" src="{{ websiteUrl }}assets/js/kotlinx-html-js.min.js?v=3"></script>
<script type="text/javascript" src="{{ websiteUrl }}assets/js/LoriJS.js"></script>
<script type="text/javascript" src="{{ websiteUrl }}assets/js/moment-with-locales.min.js"></script>
<link rel="stylesheet" href="{{ websiteUrl }}assets/css/style.css?v={{ cssAssetVersion }}">
<meta name="author" content="MrPowerGamerBR">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="icon" href="/favicon.ico" type="image/x-icon">
{% block metaproperty %}
<meta property="og:site_name" content="Website da Loritta">
<meta property="og:description" content="{{ WEBSITE_MetaDescription }}">
<meta property="og:title" content="Meu Website!">
<meta property="og:image" content="http://loritta.website/assets/img/loritta_gabizinha_v1.png">
<meta property="og:ttl" content="600">
<meta property="og:image:width" content="320">
<meta property="twitter:site" content="loritta">
<meta property="twitter:card" content="summary">
<meta property="twitter:title" content="Página inicial">
<meta name="theme-color" content="#00c1df">
{% endblock %}
<link rel="alternate" hreflang="en" href="https://loritta.website/us{{ pathNL }}" />
<link rel="alternate" hreflang="pt" href="https://loritta.website/pt{{ pathNL }}" />
<link rel="alternate" hreflang="pt-BR" href="https://loritta.website/br{{ pathNL }}" />
<link rel="alternate" hreflang="es" href="https://loritta.website/es{{ pathNL }}" />
</head>
<body class="light">
<div class="totallyHidden">
</div>
<div id="loading-screen" style="position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 100000; text-align: center; display: none; pointer-events: none;">
<img alt="Loading Spinner" src="{{ websiteUrl }}assets/img/loritta_loading.png">
<div id="loading-screen-text">Salvando...</div>
</div>
{% block body %}
<div id="container">
{% block container %}
<div class="topnav navbar-fixed-top" id="myTopnav">
<div class="topnavWrapper">
<div class="topnavLeft">
<a href="{{ loriUrl }}" style="font-family: 'Pacifico', cursive; text-transform: none;" class="left-border">Loritta</a>
<a href="{{ loriUrl }}support"><i class="fab fa-discord" aria-hidden="true"></i> {{ WEBSITE_MY_DISCORD }}</a>
<a href="{{ loriUrl }}fanarts"><i class="fa fa-paint-brush" aria-hidden="true"></i> {{ WEBSITE_FAN_ARTS }}</a>
<a href="{{ loriUrl }}donate"><i class="fa fa-gift" aria-hidden="true"></i> {{ WEBSITE_DONATE }}</a>
<a href="{{ loriUrl }}servers" style="position: relative;"><i class="fas fa-comments"></i> Servers{% if environment.name != "CANARY" %}<span style="background-color: rgb(223, 0, 241);
color: white;
font-weight: 600;
text-transform: uppercase;
border-radius: 3px;
padding: 3px;
font-size: 0.75em;
margin: 1px;
position: absolute;
display: block;
right: 0px;
transform: rotate(-10deg);
bottom: 5px;">beta</span></a>{% endif %}
<a href="{{ loriUrl }}extras"><i class="fa fa-star" aria-hidden="true"></i> Extras</a>
{% if environment.name == "CANARY" %}
<a href="https://perfectdreams.net/"><i class="fas fa-gamepad" aria-hidden="true"></i> Minecraft</a>
{% endif %}
</div>
<div class="topnavRight">
<div class="rightEntries">
<a id="themeChanger" class="left-border" onclick="changeTheme(this)"><i class="fas fa-moon" aria-hidden="true"></i></a>
<a id="localeChanger" onclick="openLocaleChanger(this)"><i class="fas fa-language" aria-hidden="true"></i></a>
{% if discordAuth != null %}
<a href="{{ websiteUrl }}?logout"><i class="fa fa-sign-out-alt" aria-hidden="true"></i></a>
<a href="{{ loriUrl }}dashboard">
<span style="position: relative;"><span style="width: 0; height: 0; position: relative;"><img alt="Avatar do Usuário" src="https://cdn.discordapp.com/avatars/{{ userIdentification.id }}/{{ userIdentification.avatar }}.png" style="height: 40px; border-radius: 99999px; bottom: -8px; position: absolute;"><img alt="Avatar do Usuário" src="https://cdn.discordapp.com/avatars/{{ userIdentification.id }}/{{ userIdentification.avatar }}.png" style="height: 0px; width: 40px; border-radius: 99999px; visibility: hidden;"></span> {{ userIdentification.username }}</span>
</a>
{% else %}
<a href="{{ loriUrl }}dashboard">
<i class="fas fa-sign-in-alt" aria-hidden="true"></i> Login</a>
{% endif %}
</div>
<a href="javascript:void(0);" class="icon" onclick="myFunction()">☰</a>
</div>
</div>
</div>
{% block afterNavbar %}
{% block header %}
<div style="height: 49.95px"></div>
{% endblock %}
<div id="belowHeader">
<div id="wrapper" style="min-height: 100vh; background-color: rgb(243, 243, 243);">
<div id="wrapperBlur">
{% block wrapper %}
{% endblock %}
</div>
</div>
{% block footer %}
<footer style="background-color: rgb(114, 137, 218); color: hsla(0,0%,100%,.6);">
<div style="padding: 30px;">
<div style="text-align: center; font-size: 18px; font-weight: 600;">© MrPowerGamerBR & PerfectDreams 2017-<script>document.write(new Date().getFullYear());</script> — Todos os direitos reservados</div>
<div style="text-align: center; font-weight: 600;"><a style="color: hsla(0,0%,100%,.6);" href="https://mrpowergamerbr.com/">https://mrpowergamerbr.com/</a></div>
<hr>
<div style="text-align: center; font-size: 14px; padding-bottom: 8px;">A Loritta não está de forma alguma afiliado ao Discord. Nem deve ser considerada uma empresa endossada pelo Discord.</div>
<div style="text-align: center; font-size: 10px;">Discord ®/™ & © 2015-<script>document.write(new Date().getFullYear());</script> Discord Inc.</div>
<div style="text-align: center; font-size: 14px; padding-bottom: 8px;">By using Loritta and/or this website, you agree to our <a href="{{ loriUrl }}privacy" style="color: hsla(0,0%,100%,.6);">Terms of Service & Privacy Policy</a></div>
</div>
</div>
</div>
{% endblock %}
{% endblock %}
{% endblock %}
<div class="totallyHidden">
<div class="tingle-demo locale-changer-modal">
<div class="test">
<div class="category-name">Escolha sua linguagem</div>
<a class="button-discord button-discord-info pure-button" href="{{ websiteUrl }}br{{ pathNL }}">Português (Brasil)</a>
<a class="button-discord button-discord-info pure-button" href="{{ websiteUrl }}pt{{ pathNL }}">Português (Portugal)</a>
<a class="button-discord button-discord-info pure-button" href="{{ websiteUrl }}us{{ pathNL }}">English (United States)</a>
<a class="button-discord button-discord-info pure-button" href="{{ websiteUrl }}es{{ pathNL }}">Español</a>
</div>
</div>
</div>
<script>
function createCookie(name,value,days) {
var expires = "";
if (days) {
var date = new Date();
date.setTime(date.getTime() + (days*24*60*60*1000));
expires = "; expires=" + date.toUTCString();
}
document.cookie = name + "=" + value + expires + "; path=/";
}
function readCookie(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
}
return null;
}
function eraseCookie(name) {
createCookie(name,"",-1);
}
function applyChanges(obj, classes, delay) {
setTimeout(function(){
obj.removeClass("is-invisible");
obj.addClass("animated " + classes);
}, delay);
}
function unblink() {
$("#loritta").attr("src", "{{ websiteUrl }}assets/img/loritta.png");
setTimeout(function(){
blink()
}, 10000);
}
function blink() {
$("#loritta").attr("src", "{{ websiteUrl }}assets/img/loritta_blinking.png");
setTimeout(function(){
unblink()
}, 140);
}
$(document).ready(function () {
$('#loritta').click(function(e) {
var offset = $(this).offset();
var x = (e.pageX - offset.left) / $(this).width()
var y = (e.pageY - offset.top) / $(this).height()
if (x >= 0.6 && y >= 0.36 && 0.7 >= x && 0.41 >= y) {
$("#loritta").attr("src", "{{ websiteUrl }}assets/img/loritta_blush.png");
}
});
applyChanges($("#animate_myNameIs"), "fadeInRight", 1000)
applyChanges($("#animate_myName"), "fadeInRight", 1650)
applyChanges($("#loritta"), "fadeInLeft", 2350)
applyChanges($("#animate_subtext"), "fadeInRight", 3200)
applyChanges($("#animate_textbutton"), "fadeInRight", 3600)
applyChanges($("#animate_textbutton2"), "fadeInRight", 4200)
unblink();
});
$('#dummyNavbar').css("height", $('#myTopnav').height())
if (readCookie("darkTheme") == 'true') {
$("html").removeClass("light");
$("html").addClass("dark");
$("#themeChanger").html("<i class=\"fas fa-sun\" aria-hidden=\"true\"></i>");
}
function changeTheme() {
if($("html").hasClass('dark')) {
$("html").removeClass("dark");
$("html").addClass("light");
createCookie("darkTheme", false)
$("#themeChanger").html("<i class=\"fas fa-moon\" aria-hidden=\"true\"></i>");
}else{
$("html").removeClass("light");
$("html").addClass("dark");
createCookie("darkTheme", true)
$("#themeChanger").html("<i class=\"fas fa-sun\" aria-hidden=\"true\"></i>");
}
}
function openBadModal() {
var modal = new tingle.modal({
closeMethods: [],
footer: true
});
modal.addFooterBtn('<i class="far fa-thumbs-up"></i> {{ LORITTA_DisabledAdblock }}!', "button-discord button-discord-info pure-button button-discord-modal", function(){
modal.close();
location.reload();
});
modal.addFooterBtn('{{ LORITTA_MaybeLater }}', "button-discord button-discord-info pure-button button-discord-modal button-discord-modal-secondary-action", function(){
modal.close();
createCookie("doNotShowAdblockPopup",true,3)
});
var cloned = $(".please-disable-modal").clone()
modal.setContent(cloned.html());
modal.open();
}
function openLocaleChanger() {
var modal = new tingle.modal({
closeMethods: [],
footer: true
});
modal.addFooterBtn('Fechar', "button-discord button-discord-info pure-button button-discord-modal", function(){
modal.close();
});
var cloned = $(".locale-changer-modal").clone()
modal.setContent(cloned.html());
modal.open();
}
/* Toggle between adding and removing the "responsive" class to topnav when the user clicks on the icon */
function myFunction() {
var element = $("#myTopnav");
if (!element.hasClass("responsive")) {
element.addClass("responsive")
} else {
element.removeClass("responsive")
}
}
/* When the user clicks on the button,
toggle between hiding and showing the dropdown content */
function toggleDropdown() {
document.getElementById("myDropdown").classList.toggle("show");
}
// Close the dropdown if the user clicks outside of it
window.onclick = function(event) {
if (!event.target.matches('.dropbtn')) {
var dropdowns = document.getElementsByClassName("dropdown-content");
var i;
for (i = 0; i < dropdowns.length; i++) {
var openDropdown = dropdowns[i];
if (openDropdown.classList.contains('show')) {
openDropdown.classList.remove('show');
}
}
}
}
function onViewport(el, elClass, offset, callback) {
/*** Based on http://ejohn.org/blog/learning-from-twitter/ ***/
var didScroll = true;
var this_top;
var height;
var top;
if(!offset) { var offset = 0; }
$(window).scroll(function() {
didScroll = true;
});
setInterval(function() {
if (didScroll) {
didScroll = false;
top = $(this).scrollTop();
$(el).each(function(i){
height = $(this).height();
this_top = $(this).offset().top - offset - window.innerHeight + height;
// Scrolled within current section
if (top >= this_top && !$(this).hasClass(elClass)) {
$(this).addClass(elClass);
if (typeof callback == "function") callback($(this));
}
});
}
}, 100);
}
</script>
{% block afterScripts %}
{% endblock %}
{% endblock %}
<div class="totallyHidden">
<div class="tingle-demo please-disable-modal">
<div class="test">
<div class="pure-g vertically-centered-content" style="text-align: left;">
<div class="pure-u-1 pure-u-md-1-4" style="overflow: hidden;">
<img class="animated fadeInUp" src="https://loritta.website/assets/img/loritta_pobre.png" alt="Loritta Pobre" style="width: 100%;">
</div>
<div class="pure-u-1 pure-u-md-3-4">
<div class="sectionText">
<h2 class="sectionHeader">
{{ LORITTA_PleaseDisableAdblock }}
</h2>
{{ LORITTA_WhyDisableAdblock | raw }}
</div>
</div>
</div>
</div>
</div>
</div>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css" integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" crossorigin="anonymous">
<script src="{{ websiteUrl }}adsbygoogle.js"></script>
<script>
function openBadModal() {
var modal = new tingle.modal({
closeMethods: [],
footer: true
});
modal.addFooterBtn('<i class="far fa-thumbs-up"></i> {{ LORITTA_DisabledAdblock }}!', "button-discord button-discord-info pure-button button-discord-modal", function(){
modal.close();
location.reload();
});
modal.addFooterBtn('{{ LORITTA_MaybeLater }}', "button-discord button-discord-info pure-button button-discord-modal button-discord-modal-secondary-action", function(){
modal.close();
createCookie("doNotShowAdblockPopup",true,3)
});
var cloned = $(".please-disable-modal").clone()
modal.setContent(cloned.html());
modal.open();
}
function createCookie(name,value,days) {
var expires = "";
if (days) {
var date = new Date();
date.setTime(date.getTime() + (days*24*60*60*1000));
expires = "; expires=" + date.toUTCString();
}
document.cookie = name + "=" + value + expires + "; path=/";
}
function readCookie(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
}
return null;
}
function eraseCookie(name) {
createCookie(name,"",-1);
}
if( window.canRunAds === undefined ){
console.log("I'm sad... why are you blocking my ads? :(");
var rand = Math.random().toString().replace(".", "")
$(".adsbygoogle").each(function( index ) {
$("<div class='lori" + rand + "-helpplz'><img src='{{ websiteUrl }}assets/img/lori_helpplz.png'></img></div>").insertAfter(this);
})
if (!(readCookie("doNotShowAdblockPopup") == 'true')) {
openBadModal()
}
setTimeout(function(){ console.log("owo whats this???");
$(".lori" + rand + "-helpplz img").each(function( index ) {
if ($(this).css("display") == "none") {
$("body").empty()
$("<img src='https://i.imgur.com/MZWtUzB.png'></img>").insertAfter($("body"))
return;
}
})
}, 4000)
} else {
console.log("Thanks for keeping my ads! You are helping me to stay online, i luv u ^-^");
}
</script>
<div id="locale-json" class="totallyHidden">{{ localeAsJson|raw }}</div>
<script>
LoriUtils.loadEmbeddedLocale()
</script>
{% block afterlocale %}
{% endblock %}
<style>
/* latin */
@font-face {
font-family: 'Pacifico';
font-style: normal;
font-weight: 400;
src: local('Pacifico Regular'), local('Pacifico-Regular'), url(https://fonts.gstatic.com/s/pacifico/v12/FwZY7-Qmy14u9lezJ-6H6Mk.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
font-family: 'Oswald';
font-style: normal;
font-weight: 400;
src: local('Oswald Regular'), local('Oswald-Regular'), url(https://fonts.gstatic.com/s/oswald/v16/TK3iWkUHHAIjg752GT8G.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
</style>
</body>
</html>