main.js: remove init style chooser

This commit is contained in:
Zankaria 2025-02-06 00:00:10 +01:00
parent a7f4864cd9
commit 95f8d2a159

View file

@ -231,28 +231,6 @@ var resourceVersion = document.currentScript.getAttribute('data-resource-version
{% endif %}
{% raw %}
function initStyleChooser() {
var newElement = document.createElement('div');
newElement.className = 'styles';
for (styleName in styles) {
if (styleName) {
var style = document.createElement('a');
style.innerHTML = '[' + styleName + ']';
style.onclick = function() {
changeStyle(this.innerHTML.substring(1, this.innerHTML.length - 1), this);
};
if (styleName == selectedstyle) {
style.className = 'selected';
}
style.href = 'javascript:void(0);';
newElement.appendChild(style);
}
}
document.getElementById('bottom-hud').before(newElement);
}
function getCookie(cookie_name) {
let results = document.cookie.match('(^|;) ?' + cookie_name + '=([^;]*)(;|$)');
if (results) {
@ -528,7 +506,6 @@ var script_settings = function(script_name) {
};
function init() {
initStyleChooser();
initCaptcha();
{% endraw %}