1/*! pojo-accessibility - v2.1.0 - 18-12-2022 */ ! function() { 2 var t = -1 < navigator.userAgent.toLowerCase().indexOf("webkit"), 3 e = -1 < navigator.userAgent.toLowerCase().indexOf("opera"), 4 o = -1 < navigator.userAgent.toLowerCase().indexOf("msie"); 5 (t || e || o) && document.getElementById && window.addEventListener && window.addEventListener("hashchange", function() { var t, e = location.hash.substring(1); /^[A-z0-9_-]+$/.test(e) && (t = document.getElementById(e)) && (/^(?:a|select|input|button|textarea)$/i.test(t.tagName) || (t.tabIndex = -1), t.focus()) }, !1) 6}(), 7 8 9 10function(n, t, o, e) { 11 12 13 var info2 = 175; 14 var text = 70; 15 var infos_h3 = 43; 16 var spanHome = 190; 17 18 19 "use strict"; 20 var i = { 21 cache: { $document: n(o), $window: n(t) }, 22 cacheElements: function() { this.cache.$toolbar = n("#pojo-a11y-toolbar"), this.cache.$toolbarLinks = this.cache.$toolbar.find("a.pojo-a11y-toolbar-link"), this.cache.$toolbarToolsLinks = this.cache.$toolbar.find(".pojo-a11y-tools a.pojo-a11y-toolbar-link"), this.cache.$btnToolbarToggle = this.cache.$toolbar.find("div.pojo-a11y-toolbar-toggle > a"), this.cache.$skipToContent = n("#pojo-a11y-skip-content"), this.cache.$body = n("body") }, 23 settings: { minFontSize: 120, maxFontSize: 160, buttonsClassPrefix: "pojo-a11y-btn-", bodyClassPrefix: "pojo-a11y-", body
23FontClassPrefix: "pojo-a11y-resize-font-", storageKey: "pojo-a11y", expires: PojoA11yOptions.save_expiration ? 36e5 * PojoA11yOptions.save_expiration : 432e5 }, 24 variables: { currentFontSize: 120, currentSchema: null }, 25 activeActions: {}, 26 buildElements: function() { this.cache.$body.prepend(this.cache.$toolbar), this.cache.$body.prepend(this.cache.$skipToContent) }, 27 bindEvents: function() { 28 var e = this; 29 e.cache.$btnToolbarToggle.on("click", function(t) { 30 31 if (!e.cache.$toolbar.hasClass("pojo-a11y-toolbar-open")) { 32 if ($("body").hasClass("pojo-a11y-resize-font-160")) { 33 $(".pojo-a11y-toolbar-toggle").addClass("open-comp"); 34 } 35 } else { 36 /* if ($("body").hasClass("pojo-a11y-resize-font-150")) { 37 $(".pojo-a11y-toolbar-toggle").removeClass("open-comp"); 38 } */ 39 } 40 41 42 t.preventDefault(), 43 e.cache.$toolbar.toggleClass("pojo-a11y-toolbar-open"), e.cache.$toolbar.hasClass("pojo-a11y-toolbar-open") ? e.cache.$toolbarLinks.attr("tabindex", "0") : e.cache.$toolbarLinks.attr("tabindex", "-1") 44 }), n(o).on("keyup", 45 46 function(t) { 9 === t.which && e.cache.$btnToolbarToggle.is(":focus") && (e.cache.$toolbar.addClass("pojo-a11y-toolbar-open"), e.cache.$toolbarLinks.attr("tabindex", "0")) }), e.bindToolbarButtons() 47 }, 48 bindToolbarButtons: function() { 49 var s = this; 50 s.cache.$toolbarToolsLinks.on("click", function(t) { 51 t.preventDefault(); 52 var e = n(this), 53 o = e.data("action"), 54 i = e.data("action-group"), 55 a = !1; 56 "reset" !== o ? (-1 !== ["toggle", "schema"].indexOf(i) && (a = e.hasClass("active")), s.activateButton(o, a)) : s.reset() 57 }) 58 }, 59 activateButton: function(t, e) { 60 var o = this.getButtonByAction(t).data("action-group"); 61 this.activeActions[t] = !e, this.actions[o].call(this, t, e), this.saveToLocalStorage() 62 }, 63 getActiveButtons: function() { return this.cache.$toolbarToolsLinks.filter(".active") }, 64 getButtonByAction: function(t) { return this.cache.$toolbarToolsLinks.filter("." + this.settings.buttonsClassPrefix + t) }, 65 actions: { 66 toggle: function(t, e) { 67 var o = this.getButtonByAction(t), 68 i = e ? "removeClass" : "addClass"; 69 e ? o.removeClass("active") : o.addClass("active"), this.cache.$body[i](this.settings.bodyClassPrefix + t) 70 }, 71 resize: function(t, e) { 72 var o = this.variables.currentFontSize; 73 "resize-plus" === t && this.settings.maxFontSize > o && (this.variables.currentFontSize += 10), "resize-minus" === t && this.settings.minFontSize < o && (this.variables.currentFontSize -= 10), e && (this.variables.currentFontSize = this.settings.minFontSize), this.cache.$body.removeClass(this.settings.bodyFontClassPrefix + o); 74 var i = 120 < this.variables.currentFontSize, 75 a = i ? "addClass" : "removeClass"; 76 /* debugger 77 console.log(">>>>", o, " ----- ", e, " ----- ", this.settings.bodyClassPrefix + t); */ 78 79 var cache = this.settings.bodyClassPrefix + t; 80 81 82 if (t == "resize-plus" || cache == "pojo-a11y-resize-plus") { 83 84 if (o == '120') { 85 info2 = 190; 86 text = 180; 87 infos_h3 = 80; 88 spanHome = 160; 89 } else if (o == '130') { 90 info2 = 220; 91 text = 200; 92 infos_h3 = 100; 93 spanHome = 195; 94 } else if (o == '140') { 95 info2 = 250; 96 text = 280; 97 infos_h3 = 140; 98 spanHome = 290; 99 } else if (o == '150') { 100 info2 = 250; 101 text = 360; 102 infos_h3 = 160; 103 spanHome = 400; 104 } else if (o == '160') { 105 info2 = 250; 106 text = 360; 107 infos_h3 = 160; 108 spanHome = 400; 109 } else { 110 info2 = 175; 111 text = 70; 112 infos_h3 = 43; 113 spanHome = 190; 114 } 115 $(".infos>h3").css({ "height": infos_h3 + "px", "line-height": "1" }); 116 $(".info2").css({ "height": info2 + "px", "line-height": "1" });
117 $(".text").css({ "height": text + "px", "line-height": "1" }); 118 $("body main>#videos .box.featured>.infos").css({ "height": "auto", "line-height": "1" }); 119 $("body main>#videos .box>.description>span").css({ "height": spanHome + "px", "line-height": "1" }); 120 } 121 122 123 if (t == "resize-minus") { 124 if (o == '130') { 125 info2 = 190; 126 text = 70; 127 infos_h3 = 43; 128 spanHome = 45; 129 } else if (o == '140') { 130 info2 = 190; 131 text = 170; 132 infos_h3 = 63; 133 spanHome = 170; 134 } else if (o == '150') { 135 info2 = 190; 136 text = 260; 137 infos_h3 = 75; 138 spanHome = 240; 139 } 140 141 /* else if (o == '130') { 142 info2 = 220; 143 text = 200; 144 infos_h3 = 100; 145 spanHome = 180; 146 } else if (o == '140') { 147 info2 = 250; 148 text = 280; 149 infos_h3 = 140; 150 spanHome = 290; 151 } else if (o == '150') { 152 info2 = 250; 153 text = 360; 154 infos_h3 = 160; 155 spanHome = 400; 156 } else if (o == '160') { 157 info2 = 250; 158 text = 360; 159 infos_h3 = 160; 160 spanHome = 400; 161 } */ 162 /* else { 163 info2 = 175; 164 text = 70; 165 infos_h3 = 43; 166 spanHome = 45; 167 } */ 168 $(".infos>h3").css({ "height": infos_h3 + "px", "line-height": "1" }); 169 $(".info2").css({ "height": info2 + "px", "line-height": "1" }); 170 $(".text").css({ "height": text + "px", "line-height": "1" }); 171 $("body main>#videos .box.featured>.infos").css({ "height": "auto", "line-height": "1" }); 172 $("body main>#videos .box>.description>span").css({ "height": spanHome + "px", "line-height": "1" }); 173 } 174 175 176 /* if (t == "resize-plus" || cache == "pojo-a11y-resize-plus") { 177 178 if (o >= 130) { 179 info2 += 300; 180 text += 320; 181 infos_h3 += 140; 182 spanHome += 100; 183 } else { 184 info2 += 60; 185 text += 30; 186 infos_h3 += 20; 187 spanHome += 45; 188 189 190 } 191 if (info2 > 300) { 192 info2 = 300; 193 } 194 if (infos_h3 > 140) { 195 infos_h3 = 140; 196 } 197 if (text > 320) { 198 text = 320; 199 } 200 201 202 203 console.log(spanHome); 204 205 if (spanHome > 400) { 206 spanHome = 400; 207 } 208 209 210 $(".infos>h3").css({ "height": infos_h3 + "px", "line-height": "1" }); 211 $(".info2").css({ "height": info2 + "px", "line-height": "1" });
212 $(".text").css({ "height": text + "px", "line-height": "1" }); 213 $("body main>#videos .box.featured>.infos").css({ "height": "auto", "line-height": "1" }); 214 215 $("body main>#videos .box>.description>span").css({ "height": spanHome + "px", "line-height": "1" }); 216 217 218 } */ 219 /* if (t == "resize-minus") { 220 221 222 info2 -= 60; 223 text -= 70; 224 infos_h3 -= 25; 225 spanHome -= 50; 226 227 if (info2 < 175) { 228 info2 = 175; 229 } 230 if (text < 170) { 231 text = 70; 232 } 233 if (infos_h3 < 50) { 234 infos_h3 = 50; 235 } 236 237 238 console.log(spanHome); 239 if (spanHome < 325) { 240 spanHome = 45; 241 } else { 242 243 } 244 245 $(".infos>h3").css({ "height": infos_h3 + "px", "line-height": "1" }); 246 $(".info2").css({ "height": info2 + "px", "line-height": "1" }); 247 $(".text").css({ "height": text + "px", "line-height": "1" }); 248 $("body main>#videos .box>.description>span").css({ "height": spanHome + "px", "line-height": "1" }); 249 } */ 250 251 252 this.getButtonByAction("resize-plus")[a]("active"), i && this.cache.$body.addClass(this.settings.bodyFontClassPrefix + this.variables.currentFontSize), this.activeActions["resize-minus"] = !1, this.activeActions["resize-plus"] = i, this.cache.$window.trigger("resize") 253 }, 254 schema: function(t, e) { 255 var o = this.variables.currentSchema; 256 o && (this.cache.$body.removeClass(this.settings.bodyClassPrefix + o), this.getButtonByAction(o).removeClass("active"), this.activeActions[o] = !1, this.saveToLocalStorage()), e ? this.variables.currentSchema = null : (o = this.variables.currentSchema = t, this.cache.$body.addClass(this.settings.bodyClassPrefix + o), this.getButtonByAction(o).addClass("active")) 257 } 258 }, 259 reset: function() { 260 setTimeout(function() { 261 info2 = 175; 262 text = 70; 263 infos_h3 = 43; 264 spanHome = 45; 265 266 $(".infos>h3").css({ "height": infos_h3 + "px", "line-height": "1" }); 267 $(".info2").css({ "height": info2 + "px", "line-height": "1" }); 268 $(".text").css({ "height": text + "px", "line-height": "1" }); 269 $("body main>#videos .box.featured>.infos").css({ "height": "auto", "line-height": "1" }); 270 $("body main>#videos .box>.description>span").css({ "height": spanHome + "px", "line-height": "1" }); 271 }, 200); 272 273 for (var t in this.activeActions) this.activeActions.hasOwnProperty(t) && this.activeActions[t] && this.activateButton(t, !0); 274 localStorage.removeItem(this.settings.storageKey) 275 }, 276 saveToLocalStorage: function() { 277 if ("1" === PojoA11yOptions.enable_save) { 278 this.variables.expires || (this.variables.expires = (new Date).getTime() + this.settings.expires); 279 var t = { actions: this.activeActions, variables: { currentFontSize: this.variables.currentFontSize, expires: this.variables.expires } }; 280 localStorage.setItem(this.settings.storageKey, JSON.stringify(t)) 281 } 282 }, 283 setFromLocalStorage: function() { 284 if ("1" === PojoA11yOptions.enable_save) { 285 var t = JSON.parse(localStorage.getItem(this.settings.storageKey)); 286 if (t) { 287 var e = new Date; 288 if (t.variables.expires < e) localStorage.removeItem(this.settings.storageKey); 289 else { var o = t.actions; for (var i in 120 < t.variables.currentFontSize && (t.variables.currentFontSize -= 10), n.extend(this.variables, t.variables), o) o.hasOwnProperty(i) && o[i] && this.activateButton(i, !1) } 290 } 291 } 292 }, 293 handleGlobalOptions: function() { "1" === PojoA11yOptions.focusable && this.cache.$body.addClass("pojo-a11y-focusable"), "1" === PojoA11yOptions.remove_link_target && n('a[target="_blank"]').attr("target", ""), "1" === PojoA11yOptions.add_role_links && n("a").attr("role", "link") }, 294 init: function() { this.cacheElements(), this.buildElements(), this.bindEvents(), this.handleGlobalOptions() } 295 }; 296 n(o).ready(function(t) { i.init(), i.setFromLocalStorage() }) 297}(jQuery, window, document);
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.