var pfad = '/'; var $J=jQuery.noConflict(); var seiteSel=0; $J(document).ready(function () { var lastScrollTop = 0; var nachOben = 0; var nachOnten = 0; $J(window).scroll(function(event){ var st = $J(this).scrollTop(); if (st > lastScrollTop){ // downscroll if(nachOnten == 30){ //$J( "#titelleiste" ).fadeOut( "slow", function() {}); } nachOnten = nachOnten + 1; nachOben = 0; } else { // upscroll if(nachOben == 10){ //$J( "#titelleiste" ).fadeIn( "slow", function() {}); } nachOben = nachOben + 1; nachOnten = 0; } lastScrollTop = st; }); $J(".schriftText").click(function (){ //alert('Hello'); selFont = $J(this).attr('id'); farbe = $J(this).css('color'); //alert('Hello ' + farbe); if(farbe != 'rgb(255, 0, 0)'){ //alert('Nicht Rot ' + farbe); farbeSet = 1; }else{ //alert('Nur Rot ' + farbe); //$J('#' + selFont).css('color','0'); farbeSet = 0; } $J.ajax({ url: "/selFont.htm", type: "POST", data: ({ "mod":"sel", "set":farbeSet, "id":selFont }), success: function (results) { //verzNeu = results; console.log(results); if(farbeSet){ $J('#' + selFont).css('color','red'); }else{ $J('#' + selFont).css('color','0'); } } }); }); $J(".delAusw").click(function (){ //alert('Hello'); delSel = $J(this).attr('id'); //alert('Hello ' + delSel); $J.ajax({ url: "/selFont.htm", type: "POST", data: ({ "mod":"del", "id":delSel }), success: function (results) { //verzNeu = results; console.log(results); location.reload(); } }); }); });