-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
86 lines (82 loc) · 3.38 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Fractals</title>
<link rel="stylesheet" href="mazs.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div id="achievement-template" style="display: none;">
<div class="achievement-container ::class::" data-fractalid="::fractal-id::">
<span class="toggle-unwanted ::class-unwanted::">::unwanted-text::</span>
<img ::icon:: class="icon">
<p class="title">::title::</p>
::bits::
</div>
</div>
<div class="the-father-of-containers">
<div class="container">
<div id="today-header" class="header"></div>
<div class="section" id="fractal-tiers"></div>
<div class="section" id="fractal-recommended"></div>
<div class="section" id="daily-strike"></div>
<div class="section" id="daily-eod-strike"></div>
</div>
<div class="container">
<div id="tomorrow-header" class="header"></div>
<div class="section" id="tomorrow-fractal-tiers"></div>
<div class="section" id="tomorrow-fractal-recommended"></div>
<div class="section" id="tomorrow-daily-strike"></div>
<div class="section" id="tomorrow-eod-strike"></div>
</div>
<div class="container">
<div class="section">
<h3 class="section-title" id="ar-header"></h3>
<div class="section text-center">
<span class="ar-plus text-ar">+</span> <input type="text" class="ar-input" maxlength="2" value="1">
<div class="ar-result-container">
<img src="https://wiki-es.guildwars2.com/images/thumb/f/f2/Infusi%C3%B3n_de_agon%C3%ADa.png/40px-Infusi%C3%B3n_de_agon%C3%ADa.png" alt="+1" title="+1"> x <span class="ar-result text-ar">1</span>
</div>
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
<script src="fractals.js"></script>
<script src="Mazs.js"></script>
<script src="strikes.js"></script>
<script>
if(window.location.href.indexOf('lang=') !== -1){
Mazs.setLanguage(window.location.href.split('lang=')[1])
}
$(document).ready(function(){
$('#today-header').text(Mazs.titleHeaders.today[Mazs.lang])
$('#tomorrow-header').text(Mazs.titleHeaders.tomorrow[Mazs.lang])
$('#ar-header').text(Mazs.titleHeaders.ar[Mazs.lang])
$('.ar-input').keyup(function(e){
e.preventDefault()
let val = +$(this).val()
if(!val) val = 0
$('.ar-result').text(Mazs.calcAr(val))
})
$('.ar-input').change(function(e){
e.preventDefault()
let val = +$(this).val()
if(!val) val = 0
$('.ar-result').text(Mazs.calcAr(val))
})
Mazs.getFractals()
Mazs.getTomorrowsFractals()
const todayS = getTodaysStrike(ibsStrikes)
$('#daily-strike').html('').append('<h3 class="section-title">' + Mazs.headers.dailystrike[Mazs.lang] + '</h3>').append(todayS[Mazs.lang])
const tomorrowS = getTomorrowsStrike(ibsStrikes)
$('#tomorrow-daily-strike').html('').append('<h3 class="section-title">' + Mazs.headers.tomorrowstrike[Mazs.lang] + '</h3>').append(tomorrowS[Mazs.lang])
const todayEodS = getTodaysStrike(eodStrikes)
$('#daily-eod-strike').html('').append('<h3 class="section-title">' + Mazs.headers.dailyeodstrike[Mazs.lang] + '</h3>').append(todayEodS[Mazs.lang])
const tomorrowEodS = getTomorrowsStrike(eodStrikes)
$('#tomorrow-eod-strike').html('').append('<h3 class="section-title">' + Mazs.headers.tomorroweodstrike[Mazs.lang] + '</h3>').append(tomorrowEodS[Mazs.lang])
})
</script>
</body>
</html>