1var headerBigVisible = 1; 2var headerSmallVisible = 0; 3 function checkScrollPosition() { 4 5 if($(window).width() > 991 && $(window).scrollTop() > 400 && $("html").height() > 1000) { 6 if(headerSmallVisible==0){ 7 8 $("#headerBig").stop().slideUp(500); 9 $("#headerSmall").stop().slideDown(400); 10 headerBigVisible = 0; 11 headerSmallVisible=1; 12 } 13 } 14 else if($(window).width() > 991 && $(window).scrollTop() < 400 && $("html").height() > 1000){ 15 if(headerBigVisible==0){ 16 $("#headerBig").stop().slideDown(500); 17 $("#headerSmall").stop().slideUp(400); 18 headerBigVisible = 1; 19 headerSmallVisible=0; 20 } 21 } 22 else if($(window).width() < 991 && $(window).scrollTop() > 100 && $("html").height() > 500){ 23 if(headerSmallVisible==0){ 24 $("#headerBig").stop().slideUp(500); 25 $("#headerSmall").stop().slideDown(400); 26 headerBigVisible = 0; 27 headerSmallVisible=1; 28 } 29 } 30 else if($(window).width() < 991 && $(window).scrollTop() < 100 && $("html").height() > 500){ 31 if(headerBigVisible==0){ 32 $("#headerBig").stop().slideDown(500); 33 $("#headerSmall").stop().slideUp(400); 34 headerBigVisible = 1; 35 headerSmallVisible=0; 36 } 37 } 38} 39 40function ieLogoFix(){ 41 var ms_ie = false; 42 var ua = window.navigator.userAgent; 43 var old_ie = ua.indexOf('MSIE '); 44 var new_ie = ua.indexOf('Trident/'); 45 46 if ((old_ie > -1) || (new_ie > -1)) { 47 ms_ie = true; 48 } 49 50 if ( ms_ie ) { 51 if($(window).width() > 1200){ 52 $("#logo").find("img").css("margin-left","5px!important"); 53 console.log("iefix"); 54 } 55 } 56} 57 58function DisableToolTip(elements) { 59 for (var i = 0; i < elements.length; i++) { 60 var element = elements[i]; 61 element.onmouseover = function() { 62 this.setAttribute("org_title", this.title); 63 this.title = ""; 64 }; 65 element.onmouseout = function() { 66 this.title = this.getAttribute("org_title"); 67 }; 68 } 69} 70 71function mixItUpSearch (){ 72 var inputText; 73 var $matching = $(); 74 75 // Delay function 76 var delay = (function(){ 77 var timer = 0; 78 return function(callback, ms){ 79 clearTimeout (timer); 80 timer = setTimeout(callback, ms); 81 }; 82 })(); 83 84 $("#teamSearch").keyup(function(){ 85 // Delay function invoked to make sure user stopped typing 86 delay(function(){ 87 inputText = $("#teamSearch").val().toLowerCase(); 88 89 // Check to see if input field is empty 90 if ((inputText.length) > 0) { 91 $( '.mix').each(function() { 92 $this = $("this"); 93 94 // add item to be filtered out if input text matches items inside the title 95 var elementClasses = $(this).attr('class'); 96 var elementNames = $(this).find(".imageText").text(); 97 if(elementClasses.toLowerCase().match(inputText) || elementNames.toLowerCase().match(inputText)) { 98 $matching = $matching.add(this); 99 } 100 else { 101 // removes any previously matched item 102 $matching = $matching.not(this); 103 } 104 }); 105 $("#TeamContainer").mixItUp('filter', $matching); 106 } 107 108 else { 109 // resets the filter to show all item if input is empty 110 $("#TeamContainer").mixItUp('filter', 'all'); 111 } 112 }, 200 ); 113 }); 114} 115 116function fixContainerClasses(){ 117 $('.mix').each(function(){ 118 var classes = $(this).attr('class');
119 $(this).parent().parent().addClass(classes); 120 $(this).removeClass(classes); 121 }); 122 123} 124 125 126$( window ).load( function() { 127 128 var links = document.getElementsByTagName("a"); 129 DisableToolTip(links); 130 131 132 checkScrollPosition(); 133 $(window).scroll(checkScrollPosition); 134 135 ieLogoFix(); 136 137}); 138 139$(document).ready(function() { 140 141 // Mobile Navigation 142 143 //TODO: fix mmenu BUG 144 $("#mobile-nav").mmenu(); 145 146 // $("#my-menu").mmenu(); 147 148 149 150 $("#mobile-nav-toggle").click(function() { 151 $("#mobile-nav").trigger("open.mm"); 152 }); 153 $("#mobile-nav-toggle-small").click(function() { 154 $("#mobile-nav").trigger("open.mm"); 155 }); 156 157 $(".filterLink").click(function(){ 158 var dest = $(this).attr("href"); 159 var destArray = dest.split("#"); 160 var destination = "#" + destArray[1]; 161 $(".panel-collapse").each(function(){$(this).removeClass("in");}); 162 $(destination).addClass("in"); 163 $("html, body").animate({ scrollTop: $(destination).offset().top -200 }); 164 }); 165 166 //MixItUp 167 fixContainerClasses(); 168 $("#TeamContainer").mixItUp(); 169 mixItUpSearch(); 170 171 //slick Slider 172 $('.start.slick-slider').slick({ 173 centerPadding: '60px', 174 slidesToShow: 4, 175 variableWidth: false, 176 autoplay: true, 177 autoplaySpeed: 5000, 178 slidesToScroll: 1, 179 infinite: true, 180 responsive: [ 181 { 182 breakpoint: 992, 183 settings: { 184 slidesToShow: 2, 185 dots:false 186 } 187 }, 188 { 189 breakpoint: 480, 190 settings:{ 191 slidesToShow: 1, 192 dosts:false 193 } 194 } 195 ] 196 }); 197 198 $('.subpage.slick-slider').slick({ 199 centerPadding: '60px', 200 slidesToShow: 3, 201 variableWidth: false, 202 autoplay: true, 203 autoplaySpeed: 5000, 204 slidesToScroll: 1, 205 infinite: true, 206 responsive: [ 207 { 208 breakpoint: 992, 209 settings: { 210 slidesToShow: 2, 211 dots:false 212 } 213 }, 214 { 215 breakpoint: 768, 216 settings:{ 217 slidesToShow: 1, 218 dosts:false 219 } 220 } 221 ] 222 }); 223 224 225 226 // Font Sizer 227 var currentFontSize = $.cookie("font-size"); 228 if (currentFontSize !== undefined) { 229 $("body").css("font-size", currentFontSize + "px"); 230 $(".font-sizer .font-size").removeClass("active"); 231 $(".font-sizer .font-size[data-font-size=" + currentFontSize + "]").addClass("active"); 232 } 233 $(".font-sizer .font-size").click(function() { 234 $(".font-sizer .font-size").removeClass("active"); 235 $(this).addClass("active"); 236 $("body").css("font-size", $(this).attr("data-font-size") + "px"); 237 $.cookie("font-size", $(this).attr("data-font-size")); 238 }); 239 240 //Kalenderfix 241 $("#calendar-header-text").text("Kommende Termine"); 242 243 $("#km_calendar").before("<p><a style='margin-top: 15px; display: block;' href='http://www.leibnitz.at/?id=246'>Kalender abonnieren</a></p>"); 244}); 245 246
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.