1$(window).load(function() { 2 if( $(location).attr('hash') != ""){ 3 ScrollZu( 'c' + parseInt( $(location).attr('hash').replace("#c","") ) ); 4 } 5 6 var windowHeight = $(window).height(); 7 $(".content-scroll > div").each(function() { 8 //if( windowHeight-200 < $(this).offset().top ){ 9 //if( $(this).offset().top >= ( windowHeight+$(window).scrollTop() - 200 ) ){ 10 $(this).addClass("einblenden"); 11 //} 12 }); 13 14 var windowHeight = $(window).height(); 15 $(".content-scroll > div").each(function() { 16 //console.log( $(this).offset().top + " - " + windowHeight + " - " + $(window).scrollTop() ); 17 if( $(this).offset().top < ( windowHeight+$(window).scrollTop() - 200 ) ){ 18 if( $(this).hasClass("einblenden") && !$(this).hasClass("einblendenanim")){ 19 $(this).addClass("einblendenanim"); 20 } 21 } 22 }); 23 $("#mySidenav").css("right", "-"+$("#mySidenav").width()+"px"); 24 25}); 26 27 28$(document).ready(function(){ 29 /* 30 $("a").each(function() { 31 var attr = $(this).attr('href'); 32 if (typeof attr !== typeof undefined && attr !== false) { 33 if( $(this).attr("href").indexOf("#") > 0){ 34 var ansprungmarke = $(this).attr("href").split("#")[1]; 35 $(this).attr( "onclick","ScrollZu('"+ansprungmarke+"'); return false;"); 36 37 } 38 } 39 }); 40 */ 41 42 //$("header").css("width", $("body").width()+"px"); 43 44 $('.level1 .glyphicon').on('click', function() { 45 if( $( this ).hasClass("glyphicon-chevron-down") ){ 46 $( this ).closest('.li1').find("ul").first().slideDown(500); 47 $( this ).removeClass("glyphicon-chevron-down"); 48 $( this ).addClass("glyphicon-chevron-up"); 49 $( this ).parent("div.level1").children("a").removeAttr("onClick"); 50 } 51 else{ 52 $( this ).closest('.li1').find("ul").first().slideUp(500); 53 $( this ).removeClass("glyphicon-chevron-up"); 54 $( this ).addClass("glyphicon-chevron-down"); 55 $( this ).parent("div.level1").children("a").attr("onClick","subAusklappen(this);return false;"); 56 } 57 }); 58 59 if( getCookie("menuFix") == 1 ){ 60 $(".fixbtn").addClass("setFix"); 61 $(".sidenav").addClass("sidenavfix"); 62 $(".fixbtn .menu_fixieren").hide(); 63 $(".fixbtn .menu_loesen").show(); 64 65 var menuwidth = $(".hg-container-inhalt").offset().left - 60 ; 66 if( menuwidth < 500 ){ menuwidth = 500; } 67 if( menuwidth > $( window ).width() ){ menuwidth = $( window ).width(); } 68 69 $("#mySidenav").css("width",menuwidth+"px"); 70 } 71 else{ 72 $(".fixbtn .menu_loesen").hide(); 73 $(".fixbtn .menu_fixieren").show(); 74 75 closeNavMob(); 76 } 77 78 $("#mySidenav li.li1").each(function() { 79 if( !$(this).children("ul").length ){ 80 $(this).children(".level1").children("span").remove(); 81 } 82 }); 83 84 $('.li1 .level1 a').each(function() { 85 if( $(this).parent("div.level1").children("span").length ){ 86 if( $(this).parent("div.level1").children("span").hasClass("glyphicon-chevron-down")){ 87 $(this).attr("onClick","subAusklappen(this);return false;"); 88 } 89 } 90 }); 91 92}); 93 94$(window).scroll(function (){ 95 var windowHeight = $(window).height(); 96 $(".content-scroll > div").each(function() { 97 //console.log( $(this).offset().top + " - " + windowHeight + " - " + $(window).scrollTop() ); 98 if( $(this).offset().top < ( windowHeight+$(window).scrollTop() - 200 ) ){ 99 if( $(this).hasClass("einblenden") && !$(this).hasClass("einblendenanim")){ 100 $(this).addClass("einblendenanim"); 101 } 102 } 103 }); 104 105}); 106 107$(window).resize(function() { 108 //$("header").css("width", $("body").width()+"px"); 109}); 110 111$(window).load(function() { 112 $("#mySidenav ul > li.li1").each(function() { 113 if( $(this).hasClass("active") ){ 114 } 115 else{ 116 $(this).find("ul").first().hide(); 117 } 118 }); 119}); 120 121// ScrollTo 122function ScrollZu(ziel){ 123 var posvonoben = parseInt($(document).scrollTop() + $('header').outerHeight(true) + 1); 124 var zielposausgleich = 0; 125 if(posvonoben < $('header').outerHeight(true) + 2 ){ zielposausgleich = 65; } 126 127 $('html,body').animate({ 128 //scrollTop: $("#"+ziel).position().top - $('header').outerHeight(true)+zielposausgleich 129 scrollTop: $("#"+ziel).position().top + 30 130 },2000); 131 132} 133 134function subAusklappen( element ){ 135 if( $(element).parent("div.level1").children("span").length ){ 136 $(element).parent("div.level1").children("span").click(); 137 } 138} 139 140function menuFix(){ 141 if( $(".fixbtn").hasClass("setFix" ) ){ 142 $(".fixbtn").removeClass("setFix"); 143 $(".fixbtn .menu_loesen").hide(); 144 $(".fixbtn .menu_fixieren").show(); 145 setCookie("menuFix", "0", "7"); 146 } 147 else{ 148 $(".fixbtn").addClass("setFix"); 149 $(".fixbtn .menu_fixieren").hide(); 150 $(".fixbtn .menu_loesen").show(); 151 setCookie("menuFix", "1", "7"); 152 } 153} 154 155function openNavMob() { 156 var menuwidth = $(".hg-container-inhalt").offset().left - 60 ; 157 if( menuwidth < 500 ){ menuwidth = 500; } 158 if(menuwidth > $( window ).width() ){ menuwidth = $( window ).width(); } 159 $("#mySidenav").css("right","0"); 160 $("#mySidenav").css("width",menuwidth+"px"); 161 $("#mySidenav").css("top","0"); 162 document.getElementById("mySidenav").style.height = "100%"; 163 setTimeout(function() { 164 $("#mySidenav").css("overflow-y","auto"); 165 }, 600); 166 $('#menu-ein').show(); 167 $('#menu-aus').hide(); 168 169} 170 171function closeNavMob() { 172 if( $(".sidenav").hasClass("sidenavfix") ){ 173 $(".sidenav").removeClass("sidenavfix"); 174 } 175 $("#mySidenav").css("right", "-"+$("#mySidenav").width()+"px"); 176 $("#mySidenav").css("overflow-y","hidden"); 177 $('#menu-ein').hide(); 178 $('#menu-aus').show(); 179} 180 181function setCookie(cname, cvalue, exdays) { 182 var d = new Date(); 183 d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000)); 184 var expires = "expires="+d.toUTCString(); 185 document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/"; 186} 187 188function getCookie(cname) { 189 var name = cname + "="; 190 var ca = document.cookie.split(';'); 191 for(var i = 0; i < ca.length; i++) { 192 var c = ca[i]; 193 while (c.charAt(0) == ' ') { 194 c = c.substring(1); 195 } 196 if (c.indexOf(name) == 0) { 197 return c.substring(name.length, c.length); 198 } 199 } 200 return ""; 201}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.