1/* jquery custom funktions */ 2 3jQuery(document).ready(function ($) { 4 5 6 function scCustomFunctions() { 7 8 9 //skiplinks targets 10 //accessibility improvements 11 if ($('#main').length > 0) { 12 $('#main').prepend('<div><a name="inhalt"></a><h6 class="hidden">Inhaltsbereich</h6></div>'); 13 } 14 if ($('#header_main .main_menu').length > 0) { 15 $('#header_main .main_menu').prepend('<div><a name="navigation"></a><h6 class="hidden">Navigationsbereich</h6></div>'); 16 } 17 18 //dropdownnav 19 //accessibility improvements 20 if ($("#header_main .main_menu .avia-menu").length > 0) { 21 $("#header_main .main_menu ul#avia-menu > li.menu-item > a").on("focus", function () { 22 var temId = $(this).parent().attr("id"); 23 $("#header_main .main_menu ul#avia-menu > li.menu-item").each(function () { 24 var temId2 = $(this).attr("id"); 25 if (temId != temId2) { 26 $(this).find("ul.sub-menu").removeClass("active"); 27 } 28 }); 29 }); 30 31 $(".logo a").on("focus", function () { 32 $("#header_main .main_menu ul#avia-menu > li.menu-item").each(function () { 33 $(this).find("ul.sub-menu").removeClass("active"); 34 }); 35 }); 36 37 $("#header_main .main_menu ul#avia-menu > li.menu-item-has-children > a").on("focus", function () { 38 console.log("has-children a focus"); 39 $(this).parent().find("ul.sub-menu").addClass("active"); 40 }); 41 } 42 43 //remove aria hidden - set text in empty links 44 //accessibility improvements 45 if ($("ul.social_bookmarks").length > 0) { 46 $("ul.social_bookmarks a").each(function () { 47 $(this).removeAttr("aria-hidden"); 48 }); 49 } 50 if ($("li.menu-item-search-dropdown").length > 0) { 51 $("li.menu-item-search-dropdown a").removeAttr("aria-hidden"); 52 } 53 if ($(".avia-slideshow-arrows").length > 0) { 54 $(".avia-slideshow-arrows a").removeAttr("aria-hidden"); 55 } 56 if ($(".av_font_icon a.av-icon-char").length > 0) { 57 $(".av_font_icon a.av-icon-char").each(function () { 58 $(this).removeAttr("aria-hidden"); 59 var tempTxt = $(this).next().text(); 60 $(this).html('<span class="texthidden">' + tempTxt + '</span>'); 61 }); 62 } 63 if ($("#advanced_menu_hide").length > 0) { 64 $("#advanced_menu_hide").removeAttr("aria-hidden"); 65 $("#advanced_menu_hide").html('<span class="texthidden">schliessen</span>'); 66 } 67 if ($("#advanced_menu_toggle").length > 0) { 68 $("#advanced_menu_toggle").removeAttr("aria-hidden"); 69 $("#advanced_menu_toggle").html('<span class="texthidden">navigation</span>'); 70 } 71 if ($(".scroll-down-link").length > 0) { 72 $(".scroll-down-link").html('<span class="texthidden">weiter</span>'); 73 } 74 75 76 //map icon 77 //accessibility improvements 78 if ($("#avia-menu").length > 0) { 79 $("#avia-menu li.menu-item a").each(function () { 80 if ($(this).attr("title") == "Karte") { 81 $(this).addClass("mapicon"); 82 } 83 }); 84 } 85 86 //search label 87 //accessibility improvements 88 if ($("input#s").length > 0) { 89 $("input#s").before('<label for="s" class="hidden">Suche</label>'); 90 } 91 92 //post image below headline 93 //code idea from http://www.kriesi.at/support/topic/move-featured-image-below-post-title-date-etc/ 94 //enfold improvements 95 if ($('body.single #main article.post-entry.post-entry-type-standard').length > 0) { 96 $('body.single #main article.post-entry.post-entry-type-standard').each(function () { 97 console.log('move it'); 98 $(this).find('.big-preview').insertAfter($(this).find('.entry-content-header')); 99 }) 100 } 101 //biglinks slider 102 //enfold improvements 103 if ($("#newslider1").length > 0) { 104 $("#newslider1 .slide-entry").each(function () { 105 $(this).on('click', '', function () { 106 var tempUrl = $(this).find("h3.slide-entry-title a").attr("href"); 107 window.open(tempUrl, '_blank'); 108 }); 109 }); 110 } 111 } 112 113 scCustomFunctions(); 114 115});
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.