1jQuery.noConflict(); 2jQuery(document).ready(function($) { 3 $(document).ready(function(){ 4 //JQuery ready is quicker than onload 5 6 7 $(".contenttable tr").mouseover(function() {$(this).addClass("over");}).mouseout(function() {$(this).removeClass("over");}); 8 $(".contenttable tr:nth-child(odd)").addClass("alt"); 9 var jetzt = new Date(); 10 $.tools.dateinput.localize('de', { 11 months: 'Januar,Februar,März,April,Mai,Juni,Juli,August,September,Oktober,November,Dezember', 12 shortMonths: 'Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Okt,Nov,Dez', 13 days: 'Sonntag,Montag,Dienstag,Mittwoch,Donnerstag,Freitag,Samstag', 14 shortDays: 'So,Mo,Di,Mi,Do,Fr,Sa' 15 16 }); 17 $(":date,#powermail_field_datum").dateinput({ 18 format: 'dd. mmmm yyyy', 19 max: jetzt, 20 firstDay: 1, 21 lang: 'de' 22 }); 23 24 /*------------------------------------------------------Kalender Dateinput ANFANG----------------------------------------------------------------------*/ 25 $(".formobjektCalenderSmall").dateinput({ 26 trigger: true, 27 lang: 'de', 28 firstDay: 1, 29 //min: -1, 30 format: 'dd.mm.yyyy' 31 32 }) 33 $(".formobjektCalenderSmall").bind("onShow onHide", function() { 34 $(this).parent().toggleClass("active"); 35 }); 36 /*------------------------------------------------------Kalender Dateinpu ENDE----------------------------------------------------------------------*/ 37 38 /*------------------------------------------------------Nach oben ANFANG----------------------------------------------------------------------*/ 39 $(function(){ 40 $('a[href=#oben]').click(function(){ 41 $('html, body').animate({scrollTop:0}, 'slow'); 42 return false; 43 }); 44 /*------------------------------------------------------Nach oben Ende----------------------------------------------------------------------*/ 45 46 /*------------------------------------------------------bgSlider ANFANG----------------------------------------------------------------------*/ 47 $('.bgSlider').bxSlider({ 48 mode: 'fade', 49 auto: true, 50 easing: 'linear', 51 pause: 10000, 52 speed: 1000, 53 pagerCustom: '#bx-pager' 54 }); 55 $('.bgSlider2').bxSlider({ 56 minSlides: 3, 57 maxSlides: 3, 58 auto: true, 59 easing: 'linear', 60 pause: 10000, 61 speed: 1000, 62 captions: false, 63 nextText: '', 64 prevText: '' 65 }); 66 }); 67 68 /*------------------------------------------------------bgSlider ENDE----------------------------------------------------------------------*/ 69 70 /*------------------------------------------------------Contentblocksmall ANFANG----------------------------------------------------------------------*/ 71 $( ".contentblocksmall" ).wrapAll( "<div class='contentblocksmallWrap' />"); 72 //---------- Zähler begin ------------------ 73 74 var image = document.getElementsByClassName('contentblocksmall'); 75 76 77 $('.contentblocksmall:nth-child(2n)').addClass('contentblocksmallnone'); 78 79 /*---------------- Zähler end ------------------------*/ 80 81 82 83 84 //---------- maximale Höhe H4 begin ------------------ 85 86 /* Variable zum Merken der maximalen Höhe */ 87 var h4_height = 0; 88 /* alle Elemente mit der CSS-Klasse durchlaufen */ 89 $('#contentbereich .contentblocksmall h4, #contentbereich .contentblocksmallnone h4').each(function(e) { 90 /* Höhe des aktuellen Elements */ 91 h = $(this).height(); 92 /* Wenn Höhe erfolgreich bestimmt werden konnte */ 93 if(typeof(h) != "undefined") { 94 /* Wenn aktuelle Höhe grösser unserer maximalen, Höhe merken */ 95 if(h > h4_height) { 96 h4_height = h; 97 } 98 } 99 }); 100 /* maximale Höhe gröÃer als 0 dann setze sie für die CSS-Klasse */ 101 if(h4_height > 0) { 102 $('#contentbereich .contentblocksmall h4, #contentbereich .contentblocksmallnone h4').height(h4_height); 103 } 104 105 /*---------------- maximale Höhe H4 end ------------------------*/ 106 107 //---------- maximale Höhe Contentblock begin ------------------ 108 109 var cb_height = 0; 110 $('#contentbereich .contentblocksmall, #contentbereich .contentblocksmallnone').each(function(e) { 111 hoe = $(this).height(); 112 if(typeof(h) != "undefined") { 113 if(hoe > cb_height) { 114 cb_height = hoe; 115 } 116 } 117 }); 118 if(cb_height > 0) { 119 $('#contentbereich .contentblocksmall, #contentbereich .contentblocksmallnone').height(cb_height); 120 } 121 122 //---------- maximale Höhe Contentblock end ------------------ 123 /*------------------------------------------------------Contentblocksmall ENDE----------------------------------------------------------------------*/ 124 125 /*------------------------------------------------------Caption berechnen ANFANG----------------------------------------------------------------------*/ 126 $('#contentbereich .ce-gallery img').addClass('img'); 127 var image = document.getElementsByClassName('ce-gallery'); 128 129 for (var i =image.length-1 ; i >=0; i--) { 130 image[i].className += ' ce-gallery'+i; 131 var imageCounter = '#contentbereich .ce-gallery'+i; 132 var m= $('#contentbereich .ce-gallery'+i+' .img').outerWidth(); 133 //Beispiel für padding // .css('width',m -20) 134 $(imageCounter).find('.image-caption').css('width',m -38); 135 } 136 /*------------------------------------------------------Caption berechnen ENDE----------------------------------------------------------------------*/ 137 138 /*------------------------------------------------------Menü FallBack ANFANG----------------------------------------------------------------------*/ 139 $('#menue ul#nav ul li:nth-child(4n+5)').addClass('clearleft'); 140 /*------------------------------------------------------Menü FallBack ENDE----------------------------------------------------------------------*/ 141 142 /*------------------------------------------------------Minigalerie ANFANG----------------------------------------------------------------------*/ 143 //Klasse .minigal wird mit Klasse .minigalXY erweitert 144 $(".minigal").attr('class', function(index) { 145 return 'minigal minigal' + index; 146 }); 147 148 $('.minigal').each(function(i) { 149
150 //Variablen werden gesetzt und hochgecountet 151 var prev = 'prev'+ i +' browse left'; 152 var next = 'next'+ i +' browse right'; 153 var selector = '.minigal' + i; 154 155 $('<div id="image_wrap'+ i +'"><a href="#" titel="#" rel="lightbox[bigImg'+ i +']" class="bigImg"><img src="fileadmin/templates/images/clear.gif" /><div class="caption"></div></a></div>').prependTo($(selector)); 156 157 $(selector + " .ce-gallery").wrap('<div class="scrollWrap"><div class="scrollable"><div class="items"></div></div></div>'); 158 159 $('<a class="' + prev + '"></a>').insertBefore($(selector + ' .scrollable')); 160 $('<a class="' + next + '"></a>').insertAfter($(selector + ' .scrollable')); 161 $(selector + ' .scrollable').removeAttr("rel"); 162 $(selector + ' .scrollable a, ' + selector + ' .scrollable img').removeAttr("alt"); 163 $(selector + ' .scrollable').removeAttr("title"); 164 $(selector + ' .scrollable a').removeAttr("href"); 165 $(function() { 166 var count = $(selector+' .ce-row').length; 167 for(var c = 0; c<=count;c+=3){ 168 $(selector+' .ce-row').slice(c, c+3).wrapAll('<div class="itemsinnerwrap"></div>'); 169 } 170 171 //initalisierung für jedes einzelne Scrollable Objekt 172 $(selector+' .items').scrollable({prev: '.prev'+i, next: '.next'+i }); 173 174 $(selector+' .items img').click(function() { 175 // see if same thumb is being clicked 176 //if ($(this).hasClass("active")) { return; } 177 // calclulate large image's 178 var url = $(this).attr("src").replace("_t", ""); 179 // get handle to element that wraps the image and make it semi-transparent 180 var wrap = $(selector + ' #image_wrap'+i).fadeTo("fast", 0.7); 181 // the large image 182 var img = new Image(); 183 // call this function after it's loaded 184 img.onload = function() { 185 // make wrapper fully visible 186 wrap.fadeTo("fast", 1); 187 // change the image 188 wrap.find("img").attr("src", url); 189 }; 190 // begin loading the image 191 img.src = url; 192 // activate item 193 $(selector+' .items img').removeClass("active"); 194 195 $(this).addClass("active"); 196 $(selector+ ' #image_wrap'+i+' a.bigImg').each(function() { 197 var src = $(selector+ ' .active').attr('src'); 198 //console.info(src); 199 $(this).attr('href', src); 200 var title = $(selector+ ' .active').attr('title'); 201 $(this).attr('title', title); 202 var caption = $(selector+ ' .active').attr('title'); 203 //console.info (caption); 204 //$(this).class('caption', caption); 205 $(".caption").html(caption).css("display","block"); 206 $(".caption:empty").css("display","none") 207 }); 208 // when page loads simulate a "click" on the first image 209 //}); 210 }).eq(1).click(); 211 }); 212 }); 213 /*------------------------------------------------------Minigalerie ENDE----------------------------------------------------------------------*/ 214 215 /*------------------------------------------------------Javascript für Projekt ANFANG----------------------------------------------------------------------*/ 216 $('.slider').bxSlider({ 217 minSlides: 3, 218 maxSlides: 3, 219 moveSlides: 1, 220 slideWidth: 300, 221 slideMargin: 72 222 }); 223 224 $('a[href=#unten]').click(function(){ 225 $('html, body').animate({scrollTop:1046}, 'slow'); 226 return false; 227 }); 228 /*Infobox class hinzufügen, falls Bild vorhanden ist ANFANG*/ 229 $(".minigal .ce-column FIGURE img.active").closest('dt').addClass("gross"); 230 $('.minigal .ce-column FIGURE img').click(function(){ 231 if ($('.minigal .ce-column FIGURE img').each(function(){ 232 if($(this).hasClass('active')) { 233 $(this).closest('dt').addClass("gross"); 234 } 235 else {$(this).closest('dt').removeClass("gross"); 236 } 237 })); 238 }); 239 /*Infobox class hinzufügen, falls Bild vorhanden ist ENDE*/ 240 241 /*$(".ce-gallery").each(function () { 242 $( this).find(".itemsinnerwrap" ).eq( 1 ).addClass( "gross" ); 243 });*/ 244 245 var klick = 0; 246 $('.minigal a.next0').click(function(){ 247 klick++; 248 $('.minigal .ce-column FIGURE').removeClass("gross"); 249 $('.minigal .ce-column FIGURE').eq(klick*4).addClass("gross"); 250 }); 251 $('.minigal a.prev0').click(function(){
252 console.info(klick); 253 $('.minigal .ce-column FIGURE').removeClass("gross"); 254 $('.minigal .ce-column FIGURE').eq(klick*1).addClass("gross"); 255 klick--; 256 }); 257 258 var minigalBilder = $(".minigal .ce-row").length; 259 for (var i =minigalBilder-1; i >=0; i--) 260 { 261 /* news[i].id = "news"+i;*/ 262 $( ".minigal .ce-row" ).eq( i ).attr( "id", "minigalBild"+i ); 263 264 } 265 /*------------------------------------------------------Javascript für Projekt ENDE----------------------------------------------------------------------*/ 266 267 268 /*------------------------------------------------------Platzhalterbilder ANFANG----------------------------------------------------------------------*/ 269 $("#contentbereich .teaserPicture a").each(function(){ 270 if ($(this).children().length == 0){ 271 $(this).append("<img src='fileadmin/templates/images/platzhalter.jpg' />") 272 } 273 }); 274 /*Home*/ 275 $("#homenews .teaserPicture a").each(function(){ 276 if ($(this).children().length == 0){ 277 $(this).append("<img src='fileadmin/templates/images/platzhalter-home.jpg' />") 278 } 279 }); 280 /*------------------------------------------------------Platzhalterbilder ENDE----------------------------------------------------------------------*/ 281 282 /*------------------------------------------------------Dropdown ANFANG----------------------------------------------------------------------*/ 283 $(document).ready(function () { 284 $('.dropdownSlide').css('display', 'none') 285 $("#menue ul li").mouseenter(function() { 286 $(this).find(".dropdownSlide").stop(true, true).slideDown(0); 287 }).mouseleave(function() { 288 $(this).find(".dropdownSlide").stop(true, true).slideUp(0); 289 }); 290 /*$("#menue ul li ul li").find("ul").css('display', 'none') 291 $("#menue ul li ul li").mouseenter(function() { 292 $(this).find("ul").stop(true, true).slideDown(400); 293 }).mouseleave(function() { 294 $(this).find("ul").stop(true, true).slideUp(200); 295 });*/ 296 }); 297 /*------------------------------------------------------Dropdown ENDE----------------------------------------------------------------------*/ 298 299 /*------------------------------------------------------hide / show MainNavi ANFANG----------------------------------------------------------------------*/ 300 $(".nav_responsive_activate").click(function(){ 301 $(".responsiveMenue").addClass("show"); 302 $("#center").css("margin-top", "230px"); 303 $(".nav_responsive_active").show(); 304 $(this).hide(); 305 }); 306 307 $(".nav_responsive_active").click(function(){ 308 $(".responsiveMenue").removeClass("show"); 309 $("#center").css("margin-top", "135px"); 310 $(".nav_responsive_activate").show(); 311 $(this).hide(); 312 }); 313 314 // hide / show subnavi 315 $(".activatesub").click(function(){ 316 $("#subnavi").addClass("show"); 317 $(".activesub").show(); 318 $(this).hide(); 319 }); 320 321 $(".activesub").click(function(){ 322 $("#subnavi").removeClass("show"); 323 $(".activatesub").show(); 324 $(this).hide(); 325 }); 326 }); 327 /*------------------------------------------------------hide / show MainNavi ENDE----------------------------------------------------------------------*/ 328 329 function createCookie(name,value,days){ 330 if (days){ 331 var date = new Date(); 332 date.setTime(date.getTime()+(days*24*60*60*1000)); 333 var expires = "; expires="+date.toGMTString(); 334 } 335 else var expires = ""; 336 document.cookie = name+"="+value+expires+"; path=/"; 337 } 338 339 function readCookie(name){ 340 var nameEQ = name + "="; 341 var ca = document.cookie.split(';'); 342 for(var i=0;i < ca.length;i++){ 343 var c = ca[i]; 344 while (c.charAt(0)==' ') c = c.substring(1,c.length); 345 if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); 346 } 347 return null; 348 } 349 350 function eraseCookie(name){ 351 createCookie(name,"",-1); 352 } 353 function AllMessages() { 354 for(var x=0;x<document.SEARCH.elements.length;x++) { 355 var y=document.SEARCH.elements[x]; 356 if(y.name!='ALLMSGS') y.checked=document.SEARCH.ALLMSGS.checked; 357 } 358 } 359 }); 360 361 function MM_jumpMenu(targ,selObj,restore){ //v3.0 362 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); 363 if (restore) selObj.selectedIndex=0; 364 } 365 366 function MM_swapImgRestore() { //v3.0 367 var i,x,a=document.MM_sr;
367 for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; 368 } 369 370 function MM_preloadImages() { //v3.0 371 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); 372 var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) 373 if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} 374 } 375 376 function MM_findObj(n, d) { //v4.01 377 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { 378 d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} 379 if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; 380 for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); 381 if(!x && d.getElementById) x=d.getElementById(n); return x; 382 } 383 384 function MM_swapImage() { //v3.0 385 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) 386 if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} 387 } 388jQuery(function(){ 389 jQuery("a[href='#top']").click(function(){ 390 jQuery('html, body').animate({scrollTop:0}, 'slow'); 391 return false; 392 }); 393});
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.