-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfooter.php
More file actions
150 lines (142 loc) · 8.01 KB
/
footer.php
File metadata and controls
150 lines (142 loc) · 8.01 KB
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
</div> <!-- End of main-app div -->
<div class="footer-container">
<section id="welcomeMessage">
<div class="body container-fluid">
<p class="scroll-ani scroll-80">Search through Escape From Tarkov databases with Tarkov API. This tool is designed to help you
find items and their information in the game. You can search for items by their name or by their
ID. The search results will show you the item's name, ID, and other information. This tool is
perfect for modders, developers, and players who want to learn more about the game's items and
their properties.</p>
<p class="scroll-ani scroll-80">This website takes advantage of Local storage and IndexedDB. If you want to clear the data before expiry (2 days),
you can do it in your browser settings. When a new SPT version is released and the website is not yet updated,
you can clear Local storage and IndexedDB to get the latest data.</p>
</div>
</section>
<footer>
<div class="container-fluid">
<div class="row">
<div class="col-md-6 copyright">
<div>© 2025 - <a href="https://github.com/emilanderss0n/tarkynator" target="_blank"
data-tooltip="Github Repo">Tarkynator</a> - Made by <a href="https://moxopixel.com/"
target="_blank">MoxoPixel</a> / <a href="https://emilandersson.com" target="_blank">Emil
Andersson</a></div>
</div>
<div class="col-md-6 donate">
<div class="text-end">
<a class="kofi" href="https://ko-fi.com/moxopixel" target="_blank"></a>
</div>
</div>
</div>
</div>
</footer>
</div>
<script src="<?= BASE_URL ?>/assets/js/core/themeManager.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.5/codemirror.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.5/addon/edit/closebrackets.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.5/addon/fold/brace-fold.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.5/addon/fold/foldgutter.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.5/addon/fold/foldcode.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.5/mode/javascript/javascript.min.js"></script>
<?php if ($activePage === 'template' || $activePage === 'quests' || $activePage === 'assorts'): ?>
<script>
var editor; // Global scope
document.addEventListener("DOMContentLoaded", function () {
var jsonEditorElement = document.getElementById("jsoneditor");
if (jsonEditorElement) {
editor = CodeMirror.fromTextArea(jsonEditorElement, {
lineNumbers: true,
mode: "application/json",
theme: "mbo",
lineNumbers: true,
closeBrackets: true,
autoCloseBrackets: true,
foldCode: true,
readOnly: true,
foldGutter: true,
gutters: ['CodeMirror-linenumbers', 'CodeMirror-foldgutter'],
readOnly: true
});
editor.on("renderLine", function (cm, line, element) {
const lineText = line.text.trim();
if (lineText.endsWith("{") || lineText.includes(":")) {
const copyLink = document.createElement("a");
copyLink.href = "#";
copyLink.className = "json-edit-btn";
copyLink.innerHTML = "<i class='bi bi-copy'></i>";
copyLink.onclick = function (event) {
event.preventDefault();
let jsonText;
if (lineText.endsWith("{")) {
const startLine = line.lineNo();
let endLine = startLine;
let openBraces = 1;
while (openBraces > 0 && endLine < cm.lineCount()) {
endLine++;
const lineContent = cm.getLine(endLine).trim();
if (lineContent.includes("{")) openBraces++;
if (lineContent.includes("}")) openBraces--;
}
jsonText = cm.getRange(
{ line: startLine, ch: line.text.indexOf("{") },
{ line: endLine, ch: cm.getLine(endLine).length }
).trim();
} else {
const valueMatch = lineText.match(/:\s*(.*),?$/);
jsonText = valueMatch ? valueMatch[1].replace(/,$/, '') : lineText;
}
navigator.clipboard.writeText(jsonText).then(() => {
event.target.classList.add('copied');
setTimeout(() => {
event.target.classList.remove('copied');
}, 1400);
// Show notification toast
import('<?= BASE_URL ?>/assets/js/components/notifications.js').then(({ Notification }) => {
const notif = new Notification("jsonCopyNotification", { type: "info", autoClose: true, duration: 5000 });
notif.setContent("Copied to clipboard!");
notif.show();
});
}).catch(err => {
console.error("Failed to copy text: ", err);
});
};
element.appendChild(copyLink);
}
});
}
});
</script>
<?php endif; ?>
<script type="module" src="<?= BASE_URL ?>/assets/js/features/main.js"></script>
<script src="<?= BASE_URL ?>/assets/js/components/swiper-bundle.min.js"></script>
<?php if ($activePage === 'template'): ?>
<script type="module" src="<?= BASE_URL ?>/assets/js/items/ItemManager.js"></script>
<?php endif; ?>
<?php if ($activePage === 'crafts'): ?>
<script type="module" src="<?= BASE_URL ?>/assets/js/pages/crafts.js"></script>
<?php endif; ?>
<?php if ($activePage === 'achievements'): ?>
<script type="module" src="<?= BASE_URL ?>/assets/js/pages/achievements.js"></script>
<?php endif; ?>
<?php if ($activePage === 'assorts'): ?>
<script type="module" src="<?= BASE_URL ?>/assets/js/pages/assorts.js"></script>
<script src="https://unpkg.com/isotope-layout@3/dist/isotope.pkgd.min.js"></script>
<?php endif; ?>
<?php if ($activePage === 'quests'): ?>
<script type="module" src="<?= BASE_URL ?>/assets/js/pages/quests.js"></script>
<?php endif; ?>
<?php if ($activePage === 'mongo-gen'): ?>
<script type="module" src="<?= BASE_URL ?>/assets/js/pages/mongoGen.js"></script>
<?php endif; ?>
<?php if ($activePage === 'common-id'): ?>
<script type="module" src="<?= BASE_URL ?>/assets/js/pages/commonIds.js"></script>
<?php endif; ?>
<?php if ($activePage === 'resources'): ?>
<script type="module" src="<?= BASE_URL ?>/assets/js/features/sptApi.js"></script>
<?php endif; ?>
<?php if ($activePage === 'custom-trader'): ?>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.10.1/jszip.min.js"></script>
<script type="module" src="<?= BASE_URL ?>/assets/js/features/customTraderEdit.js"></script>
<script type="module" src="<?= BASE_URL ?>/assets/js/features/customTrader.js"></script>
<?php endif; ?>
</body>
</html>