-
Notifications
You must be signed in to change notification settings - Fork 0
/
scriptSV.js
105 lines (95 loc) · 5.42 KB
/
scriptSV.js
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
// mic unmuted svg
const MIC_UNMUTED = `<svg aria-hidden="false" viewBox="0 0 24 24" class="unmuted">
<path fill-rule="evenodd" clip-rule="evenodd"
d="M14.99 11C14.99 12.66 13.66 14 12 14C10.34 14 9 12.66 9 11V5C9 3.34 10.34 2 12 2C13.66 2 15 3.34 15 5L14.99 11ZM12 16.1C14.76 16.1 17.3 14 17.3 11H19C19 14.42 16.28 17.24 13 17.72V21H11V17.72C7.72 17.23 5 14.41 5 11H6.7C6.7 14 9.24 16.1 12 16.1ZM12 4C11.2 4 11 4.66667 11 5V11C11 11.3333 11.2 12 12 12C12.8 12 13 11.3333 13 11V5C13 4.66667 12.8 4 12 4Z"
></path>
<path fill-rule="evenodd" clip-rule="evenodd"
d="M14.99 11C14.99 12.66 13.66 14 12 14C10.34 14 9 12.66 9 11V5C9 3.34 10.34 2 12 2C13.66 2 15 3.34 15 5L14.99 11ZM12 16.1C14.76 16.1 17.3 14 17.3 11H19C19 14.42 16.28 17.24 13 17.72V22H11V17.72C7.72 17.23 5 14.41 5 11H6.7C6.7 14 9.24 16.1 12 16.1Z"
></path>
</svg>`
// mic muted svg
const MIC_MUTED = `<svg aria-hidden="false" viewBox="0 0 24 24" class="muted">
<path d="M6.7 11H5C5 12.19 5.34 13.3 5.9 14.28L7.13 13.05C6.86 12.43 6.7 11.74 6.7 11Z"></path>
<path
d="M9.01 11.085C9.015 11.1125 9.02 11.14 9.02 11.17L15 5.18V5C15 3.34 13.66 2 12 2C10.34 2 9 3.34 9 5V11C9 11.03 9.005 11.0575 9.01 11.085Z"
></path>
<path
d="M11.7237 16.0927L10.9632 16.8531L10.2533 17.5688C10.4978 17.633 10.747 17.6839 11 17.72V22H13V17.72C16.28 17.23 19 14.41 19 11H17.3C17.3 14 14.76 16.1 12 16.1C11.9076 16.1 11.8155 16.0975 11.7237 16.0927Z"
></path>
<path d="M21 4.27L19.73 3L3 19.73L4.27 21L8.46 16.82L9.69 15.58L11.35 13.92L14.99 10.28L21 4.27Z"
class="icon-strikethrough"></path>
</svg>`
// undeaf svg
const UNDEAF = `<svg aria-hidden="false" viewBox="0 0 24 24" class="deafen">
<svg width="24" height="24" viewBox="0 0 24 24">
<path
d="M12 2.00305C6.486 2.00305 2 6.48805 2 12.0031V20.0031C2 21.1071 2.895 22.0031 4 22.0031H6C7.104 22.0031 8 21.1071 8 20.0031V17.0031C8 15.8991 7.104 15.0031 6 15.0031H4V12.0031C4 7.59105 7.589 4.00305 12 4.00305C16.411 4.00305 20 7.59105 20 12.0031V15.0031H18C16.896 15.0031 16 15.8991 16 17.0031V20.0031C16 21.1071 16.896 22.0031 18 22.0031H20C21.104 22.0031 22 21.1071 22 20.0031V12.0031C22 6.48805 17.514 2.00305 12 2.00305Z"
></path>
</svg>
</svg>`
// deaf svg
const DEAF = `<svg aria-hidden="false" viewBox="0 0 24 24" class="undeafen">
<path
d="M6.16204 15.0065C6.10859 15.0022 6.05455 15 6 15H4V12C4 7.588 7.589 4 12 4C13.4809 4 14.8691 4.40439 16.0599 5.10859L17.5102 3.65835C15.9292 2.61064 14.0346 2 12 2C6.486 2 2 6.485 2 12V19.1685L6.16204 15.0065Z"
></path>
<path
d="M19.725 9.91686C19.9043 10.5813 20 11.2796 20 12V15H18C16.896 15 16 15.896 16 17V20C16 21.104 16.896 22 18 22H20C21.105 22 22 21.104 22 20V12C22 10.7075 21.7536 9.47149 21.3053 8.33658L19.725 9.91686Z"
></path>
<path d="M3.20101 23.6243L1.7868 22.2101L21.5858 2.41113L23 3.82535L3.20101 23.6243Z" class="icon-strikethrough"
></path>
</svg>`
// settings svg
const SETTINGS = `<svg aria-hidden="false" viewBox="0 0 24 24" class="settings">
<path fill-rule="evenodd" clip-rule="evenodd"
d="M19.738 10H22V14H19.739C19.498 14.931 19.1 15.798 18.565 16.564L20 18L18 20L16.565 18.564C15.797 19.099 14.932 19.498 14 19.738V22H10V19.738C9.069 19.498 8.203 19.099 7.436 18.564L6 20L4 18L5.436 16.564C4.901 15.799 4.502 14.932 4.262 14H2V10H4.262C4.502 9.068 4.9 8.202 5.436 7.436L4 6L6 4L7.436 5.436C8.202 4.9 9.068 4.502 10 4.262V2H14V4.261C14.932 4.502 15.797 4.9 16.565 5.435L18 3.999L20 5.999L18.564 7.436C19.099 8.202 19.498 9.069 19.738 10ZM12 16C14.2091 16 16 14.2091 16 12C16 9.79086 14.2091 8 12 8C9.79086 8 8 9.79086 8 12C8 14.2091 9.79086 16 12 16Z">
</path>
</svg>`
// elements
const freeFire = document.getElementById("freeFire")
const shadical = document.getElementById('shadical')
const mcWorld = document.getElementById('mc-world')
const ediMania = document.getElementById('edi-mania')
const chinezi = document.getElementById('chinezi')
const legendaryGuns = document.getElementById('legendary-guns')
const kround = document.getElementById('kround')
const micToggle = document.getElementById("micToggle")
const headphoneToggle = document.getElementById("headphoneToggle")
const settingsToggle = document.getElementById("settingsToggle")
// setup icon on ready
function setupIcon() {
micToggle.innerHTML = MIC_MUTED
headphoneToggle.innerHTML = UNDEAF
settingsToggle.innerHTML = SETTINGS
}
setupIcon()
micToggle.addEventListener("click", () => {
// just a test
if (micToggle.innerHTML.includes(`class="unmuted"`)) micToggle.innerHTML = MIC_MUTED
else micToggle.innerHTML = MIC_UNMUTED
})
headphoneToggle.addEventListener("click", () => {
// just a test
if (headphoneToggle.innerHTML.includes(`class="undeafen"`)) headphoneToggle.innerHTML = UNDEAF
else headphoneToggle.innerHTML = DEAF
})
mcWorld.addEventListener("click", () => {
dute("istorieMcWorld.html")
})
ediMania.addEventListener("click", () => {
dute("istorieEDI MANIA.html")
})
chinezi.addEventListener("click", () => {
alert("Chinezi")
})
legendaryGuns.addEventListener("click", () => {
alert("Legendary Guns")
})
kround.addEventListener("click", () => {
dute("istorie[-----KROUND-----].html")
})
shadical.addEventListener("click", () => {
dute("istorieShadical.html")
})
freeFire.addEventListener("click", () => {
alert("FreeFire")
})