1$(window).bind("load", function () { 2 3 //****** set acc menu style 4 //$('head').append('<style type="text/css" id="' + "wcag-css-sub" + '">' + ".open_accessibility_panel{padding:5px 10px 4px 10px;}.open_accessibility_panel:before{content:'';background:url('https://www.senseforce.co.il/widget/images/accessible_icon.png') no-repeat;display:inline-block;width:20px;height:23px;margin-left:5px;}.accessibility_panel{top:40px;}" + '</style>'); 5 //$('.open_accessibility_panel').html('<span>× ××ש×ת</span>') 6 7$('head').append('<style type="text/css" id="' + "wcag-css-sub" + '">' + ":focus{border:0px solid #1DBAA8 !important} .open_accessibility_panel{padding:5px 10px 4px 10px;}.open_accessibility_panel:before{content:'';background:url('https://www.senseforce.co.il/widget/images/accessible_icon.png');display:block;width:20px;height:23px;}.accessibility_panel{top:40px;}" + '</style>'); 8 9 $('.open_accessibility_panel').text('') 10 11 $("body").on("click", "#wcagStopAnimation", function() { 12 $('#wcagStopAnimation').focus(); 13 }); 14 15 $("body").on("click", "#defaultColors", function() { 16 $('#defaultColors').focus(); 17 }); 18 19 $('.skip_to_main_content').attr('data-wcag', 'skip-to-main-2').on( "click", function() { 20 scrollToAnchorOffset(); 21 $('h1').attr('tabindex', '0'); 22 $('h1').focus(); 23 }); 24 25 //--------------- focus keyboard only ---------------// 26 $('*').on('keydown.tab', function(e){ 27 if ( 9== e.which && this == e.target ){ 28 window.setTimeout( function(){ 29 $('.keyboard_focus').removeClass('keyboard_focus'); 30 $(document.activeElement).addClass('keyboard_focus'); 31 }, 100 ); 32 } 33 }); 34 35 $("#header nav").accessibleDropDown(); 36 37 $('.custom-control, .scroll-to-top').append( "<span style='font-size:0px'>arrow</span>"); 38 $('.wcag-link-icon-only').append( "<span style='font-size:0px;width:1px;'>link</span>"); 39 $('.revolutionSlider_stop_button').addClass('tparrows_pause') 40 $('.revolutionSlider_resume_button').addClass('tparrows_resume') 41 $('.tparrows_resume').attr('title', '×××©× ×פק×'); 42 $('.tparrows_pause').attr('title', '×ש×× ×פק×'); 43 $('.tparrows_pause').text(""); 44 $('.tparrows_resume').text(""); 45 $(".owl-carousel-pre-nav .owl-nav").each(function( i ) { 46 $(this).prependTo($(this).parent('.owl-carousel')); 47 }); 48 $(".toggle label").each(function( i ) { 49 $(this).attr('tabindex', '0'); 50 $(this).keypress(function(e){ 51 if(e.which == 13){//Enter key pressed 52 $(this).click(); 53 } 54 }); 55 }); 56 57 //****** set sidebar_skip_button 58 jQuery('.sidebar_skip_button').on('click', function (e) { 59 if (jQuery(this).closest('div').next('div').length) { 60 if (jQuery(this).closest('div').next('div').find('button').length) { 61 jQuery(this).closest('div').next('div').find('button:first').focus(); 62 } 63 else{ 64 jQuery(this).closest('div').next('div').find('a:first').focus(); 65 } 66 67 } 68 }); 69 jQuery('.sidebar_skip_button').keypress(function (e) { 70 if (e.which == 13) {//Enter key pressed 71 jQuery('.sidebar_skip_button').click(); 72 } 73 }); 74 75 //****** set share focus 76 //$('.article_share > span').attr('tabindex', '0'); 77// $('.article_share').find('*').focusin(function() { 78// $('.article_share').addClass('focused_wrapper') 79// }); 80// $('.article_share').find('*').focusout(function() { 81// $('.article_share').removeClass('focused_wrapper') 82// }); 83 84 85}); 86 87$.fn.accessibleDropDown = function () 88{ 89 var el = $(this); 90 91 /* Setup dropdown menus for IE 6 */ 92 93 $("li", el).mouseover(function() { 94 $(this).addClass("hover"); 95 }).mouseout(function() { 96 $(this).removeClass("hover"); 97 }); 98 99 /* Make dropdown menus keyboard accessible */ 100 101 $("a", el).focus(function() { 102 $(this).parents("li").addClass("hover"); 103 }).blur(function() { 104 $(this).parents("li").removeClass("hover"); 105 }); 106} 107 108function scrollToAnchorOffset() { 109 $('html,body').animate({ scrollTop: 100 }, 'slow'); 110} 111 112 113function initIMGelement() { 114 for (var i = 0; i < document.images.length; i++) { 115 //console.log(document.images[i].src); 116 if (!document.images[i].alt && document.images[i].alt != "") { 117 document.images[i].alt = "ת××× × ××× ××תרת"; 118 } 119 } 120} 121 122function addBackToTopLink() { 123 if (jQuery('[data-wcag="main-content"]').length) 124 jQuery('[data-wcag="main-content"]').append('<a data-wcag="back-to-top" data-wcag-stat="15" title="××עת ×ס××£ ×ת××× ×ר××©× ×××£-×××¥ ××× ××××ר ×ר×ש ×××£" href="javascript:void(0);">×××¨× ×ר×ש ×××£</a>'); 125 else 126 jQuery('footer:last >
126 div:first-child').prepend('<a data-wcag="back-to-top" data-wcag-stat="15" title="××עת ×ס××£ ×ת××× ×ר××©× ×××£-×××¥ ××× ××××ר ×ר×ש ×××£" href="javascript:void(0);">×××¨× ×ר×ש ×××£</a>'); 127} 128 129function setOwlCarouselPlugin() { 130 //todo set dynamic text 131 132 if (jQuery().owlCarousel) { 133 var jQueryowl = jQuery('.owl-carousel'); 134 jQuery('.owl-prev').attr({ 135 'tabindex': 0, 136 'aria-label': '×××¨× ×ת××× × ××§×××ת', 137 'role': 'button' 138 }); 139 140 jQuery('.owl-prev').keypress(function (e) { 141 if (e.which == 13) {//Enter key pressed 142 jQueryowl.trigger('prev.owl') 143 } 144 }); 145 146 jQuery('.owl-next').attr({ 147 'tabindex': 0, 148 'aria-label': '×××©× ×ת××× × ××××', 149 'role': 'button' 150 }); 151 152 jQuery('.owl-next').keypress(function (e) { 153 if (e.which == 13) {//Enter key pressed 154 jQueryowl.trigger('next.owl') 155 } 156 }); 157 158 jQuery(".owl-carousel:not(.product_gallery):not(.product_thumb_gallery):not(.timeline_owl)").prepend("<button class='owl_stop_button' title='×ש×× ×פק×'></button>"); 159 jQuery(".owl-carousel:not(.product_gallery):not(.product_thumb_gallery):not(.timeline_owl)").prepend("<button class='owl_resume_button' title='×××©× ×פק×'></button>"); 160 161 jQuery(".owl-carousel:not(.product_gallery):not(.product_thumb_gallery)").prepend("<button class='owl_skip_button'>××× ××××ר ×××</button>"); 162 163 if(!jQuery(".homepage_casualty_title").length){ 164 jQuery(".homepage_casualties_carousel .owl_stop_button").hide(); 165 jQuery(".homepage_casualties_carousel .owl_resume_button").hide(); 166 jQuery(".homepage_casualties_carousel .owl_skip_button").hide(); 167 } 168 169 // When skip button is clicked... 170 jQuery('.owl_skip_button').on('click', function (e) { 171 if (jQuery(this).closest('section').next('section').length) { 172 jQuery(this).closest('section').next('section').find('a:first').focus(); 173 } 174 }); 175 jQuery('.timeline_owl .owl_skip_button').on('click', function (e) { 176 jQuery('.post').find('a:first').focus(); 177 }); 178 jQuery('.owl_skip_button').keypress(function (e) { 179 if (e.which == 13) {//Enter key pressed 180 jQuery('.owl_skip_button').click(); 181 } 182 }); 183 184 // When stop button is clicked... 185 jQuery('.owl_stop_button').on('click', function (e) { 186 jQuery('.owl_stop_button').css("display", "none"); 187 jQuery('.owl_resume_button').css("display", "block"); 188 jQueryowl.trigger('stop.owl.autoplay') 189 jQuery(this).siblings('.owl_resume_button').focus(); 190 }); 191 jQuery('.owl_stop_button').keypress(function (e) { 192 if (e.which == 13) {//Enter key pressed 193 jQuery('.owl_stop_button').click(); 194 } 195 }); 196 jQuery('.owl_stop_button').attr({ 197 'aria-label': '×ש×××ת ×צ×ת', 198 'role': 'button' 199 }); 200 201 // When resume button is clicked... 202 jQuery('.owl_resume_button').on('click', function (e) { 203 jQuery('.owl_resume_button').css("display", "none"); 204 jQuery('.owl_stop_button').css("display", "block"); 205 jQueryowl.trigger('play.owl.autoplay',[6000]) 206 jQuery(this).siblings('.owl_stop_button').focus(); 207 }); 208 jQuery('.owl_resume_button').keypress(function (e) { 209 if (e.which == 13) {//Enter key pressed 210 jQuery('.owl_resume_button').click(); 211 } 212 }); 213 jQuery('.owl_resume_button').attr({ 214 'aria-label': '×פע×ת ×צ×ת', 215 'role': 'button' 216 }); 217 218 219 } 220} 221 222function initAelement() { 223 for (var i = 0; i < document.links.length; i++) { 224 document.links[i].className += ' wcag-underline'; 225 } 226 227 var tmpTitle = ""; 228 //jQuery("a[href]").each(function () { 229 230 // checks empty links 231 // if (jQuery.trim(jQuery(this).text()) == '' && jQuery.trim(jQuery(this).html()) == '') { 232 // jQuery(this).addClass('wcag-empty-link'); 233 // tmpTitle = jQuery(this).attr("title"); 234 // if (typeof tmpTitle == typeof undefined || tmpTitle == false || tmpTitle == '') { 235 // jQuery(this).text('×§×ש×ר ××× ××תרת'); 236 // } 237 // else { 238 // jQuery(this).text(tmpTitle); 239 // jQuery(this).removeAttr('title'); 240 // } 241 // } 242 243 //}); 244 245 jQuery("a[href]").each(function () { 246 247 //checks empty links 248 var html = jQuery(this).html(); 249 html = jQuery.trim(html.replace(/<!--(.*?)-->/ig, '')); 250 if (jQuery(this).text().trim() == '' && html == '') { 251 jQuery(this).addClass('wcag-empty-link'); 252 tmpTitle = jQuery(this).attr("title"); 253 if (typeof tmpTitle == typeof undefined || tmpTitle == false) { 254 jQuery(this).text('×§×ש×ר ××× ××תרת'); 255 } 256 else { 257 jQuery(this).text(tmpTitle); 258 jQuery(this).removeAttr('title'); 259 } 260 } 261 262 });
263 264 tmpTitle = ""; 265 jQuery("[target='_blank']").each(function () { 266 tmpTitle = jQuery(this).attr("title"); 267 if (typeof tmpTitle == typeof undefined || tmpTitle == false) 268 tmpTitle = ""; 269 jQuery(this).attr("title", tmpTitle+" ××¤×ª× ××××× ××ש").attr('rel', 'external'); 270 }); 271} 272 273 274 275
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.