function refreshCSS(){ $('#reloadcss').replaceWith(''); } function refreshNAV(){ //$('#nav').replaceWith(''); $("#nav").load("menu.php?t=" + Date.now() + "#nav"); } $('#loading-image').hide(); /*$('#loading-image').hide(); $('#loading-image').bind('ajaxStart', function(){ $(this).show(); }).bind('ajaxStop', function(){ $(this).hide(); });*/ $(document).ready(function() { var playing = true; var patternAColor ='FF0000'; $('#clearview').click(function() { if (playing == false) { playing = true; document.getElementById("clearview").src="/images/hideview.svg"; $('#passview').get(0).type = 'password'; $('#clearview').addClass('invert'); } else { playing = false; document.getElementById("clearview").src="/images/clearview.svg"; $('#passview').get(0).type = 'text'; } }); }); $('#formoptions').submit(function() { var id1 = $('#newpass').text(); //if #id1 is input element change from .text() to .val() var id2 = $('#repeatnewpass').text(); //if #id2 is input element change from .text() to .val() if (id1 == id2) { //alert('Error, cant do that'); document.getElementById('result').innerHTML='the password inputs are note the same' return false; } else { return true; } }); setInterval(function(){document.getElementById("sysmsg").style.display = "none"; }, 3000); function showtalk(){ document.getElementById("uibox").style.display = "block"; } function login(){ document.getElementById("loginbox").style.display = "block"; } function logout(){ window.location.href="logout.php"; } function options(){ document.getElementById("uibox").style.display = "block"; } $("#uibox").prependTo("#copy"); function clsmsg(){ var talki = document.getElementById("uibox"); //$(this).prev("div"); talki.classList.add("moveout"); //document.getElementById("talk").style.top = "-512px"; //document.getElementById("talk").style.display = "none"; //talki.classList.remove("moveout"); //talki.style.webkitAnimationPlayState="running"; //document.getElementById("talk").style.display = "none"; setTimeout(function(){talki.classList.remove("moveout");document.getElementById("uibox").style.display = "none"; }, 1000); } function clsmsgl(){ var talki = document.getElementById("loginbox"); //$(this).prev("div"); talki.classList.add("moveout"); //document.getElementById("talk").style.top = "-512px"; //document.getElementById("talk").style.display = "none"; //talki.classList.remove("moveout"); //talki.style.webkitAnimationPlayState="running"; //document.getElementById("talk").style.display = "none"; setTimeout(function(){talki.classList.remove("moveout");document.getElementById("loginbox").style.display = "none"; }, 1000); } function loadaj(id) { $('#loading-image').show(); //alert(id); with (new Ajax()){ url="check.php"; method="POST"; params="id="+id; onSuccess=successHandler; onError=errorHandler; doRequest(); } //Den Text in die Seite einfuegen function successHandler(txt,xml){ document.getElementById("ajcontent").innerHTML=txt; $('#loading-image').hide(); //return false; //return true; } //Fehler function errorHandler(msg){ document.getElementById("ajtext").innerHTML=msg; } } function rmvjq() { var element = document.getElementById("jq"); element.parentNode.removeChild(element); } /*content editing start */ function transformTag(){ //alert(); var d = document.getElementById('contentbody'); d.contentEditable = true; d.className += " editable"; $('#sve').show(); $("ol").prepend("
  • EditMode
  • "); $('#contentbody').each(function(){ $(this).replaceWith( "" ); }); /* $('#contentbody').replaceWith(function(){ return $("
    ", {html: $(this).html()});
    });*/
    }
    /*
    $('#editcnt').submit(function () {
    		alert();
            $.post('check.php', $(this).serialize(), function(data) {
                // Update the result area
                $('#ajcontent').html(data);
                //$jq('#pre').html(data);
            });
        });
    });*/
    /* content editing end*/
    
      /*
      $('#uibox').click(function(){ 
      });
    */