User:Yottabyte/vector.js

From translatewiki.net
Jump to: navigation, search
/* Geo */
Geo = {
    'city': '*',
    'lat': '*',
    'lon': '*',
    'IP': '*'
}

/* FUNCTIONS */
function showHide(elementId) {
    if(document.getElementById(elementId).style.display == 'none') {
        document.getElementById(elementId).style.display = 'block';
    } else {
        document.getElementById(elementId).style.display = 'none';
    }
}

/* EditTools */

var editTools = document.getElementById('specialcharss');
editTools.style.display = 'none';

var editButtons = document.getElementsByClassName('editButtons');
[].slice.call(editButtons).forEach(function (addHTML) {
    addHTML.innerHTML += '<div class="ybEditButtons" onclick="showHide(\'specialcharss\');" >Sonderzeichen</div>';
});