forked from leftypol/leftypol
main.js: remove init style chooser
This commit is contained in:
parent
a7f4864cd9
commit
95f8d2a159
1 changed files with 0 additions and 23 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue