1 2//----------------- CUSTOM ACCESSIBILITY ----------------- 3 4 5//Searches for all anchor tags 6$(document).ready(function() { 7 $("a").each(function() { 8 if ($(this).is(":empty")) { 9 $(this).attr("aria-hidden", "true").attr("tabindex", "-1"); 10 //console.log("XXXXXXXXXXXXXXXX"); 11 } 12 }); 13}); 14 15 16 17jQuery(document).ready(function($) { 18 $('h1 span').each(function(index) { 19 var html = $(this).html().trim(); 20 if(html == ""){ 21 $(this).parent().remove(); 22 } 23 }); 24 25 var headingArr = ['Search', 'Categories', 'Archives']; 26 $('h4 span').each(function(indx) { 27 var id = $(this).attr('id'); 28 var cssClass = $(this).attr('class'); 29 var html = $(this).html().trim(); 30 if(html == headingArr[indx]){ 31 $(this).parent().replaceWith("<h3><span id='" + id + "' class='" + cssClass + "'>" + headingArr[indx] + "</span></h3>"); 32 } 33 }); 34 35 $('h4.heading').each(function(index) { 36 var cssClass = $(this).attr('class'); 37 var html = $(this).html().trim(); 38 if(html == "Related"){ 39 $(this).replaceWith("<h3 class='" + cssClass + "'>" + html + "</h3>"); 40 } 41 }); 42}); 43 44/**********************************************************/ 45 46//For Menu Lavalamp: 47jQuery(document).ready(function($) { 48 $(".header_element > .icon").click(function (exp) { 49 var e=$(this); 50 if(!e.parent().hasClass("Open")){ 51 e.parent().addClass("Open").siblings(".header_element").removeClass("Open"); 52 exp.stopPropagation(); 53 } 54 else{ 55 e.parent().removeClass("Open"); 56 exp.stopPropagation(); 57 } 58 }) 59}) 60 61jQuery(document).ready(function($) { 62 $(".header_element > div > .icon").click(function() { 63 var e=$(this); 64 if(!e.parent().hasClass("Open")){ 65 e.parent().addClass("Open").siblings("div").removeClass("Open"); 66 } 67 else{ 68 e.parent().removeClass("Open"); 69 } 70 }) 71}) 72 73jQuery(document).ready(function($) { 74 $('.post_thum a').attr("aria-hidden","true"); 75}) 76 77jQuery(document).ready(function($) { 78 $('span.sep').remove(); 79}) 80 81 82//Top: 83jQuery(document).ready(function($) { 84 jQuery('#to_top').click(function() { 85 jQuery('body,html').animate({ 86 scrollTop: 0 87 }, 88 800); 89 }); 90 91 var backtop=function(){ 92 Math.max.call(window.scrollTop, document.body.scrollTop, document.documentElement.scrollTop)>245?jQuery('#to_top').fadeIn(300):jQuery('#to_top').fadeOut(300) 93 } 94 $(window).load(function(){ 95 backtop(); 96 }) 97 $(window).scroll(function(){ 98 backtop(); 99 }) 100 101}); 102 103jQuery(document).ready(function($) { 104 $(".roll_menu").roll_menu({MTop:300}); 105}); 106 107 108 109 110//IE10 111jQuery(document).ready(function($){ 112 if (navigator.userAgent.match(/IEMobile\/10\.0/)) { 113 var msViewportStyle = document.createElement("style"); 114 msViewportStyle.appendChild( 115 document.createTextNode( 116 "@-ms-viewport{width:auto!important}" 117 ) 118 ); 119 document.getElementsByTagName("head")[0]. 120 appendChild(msViewportStyle); 121 } 122}); 123 124//chart 125 126$(window).load(function() { 127 "use strict"; 128 var e_1 = $(".percentage"); 129 e_1.easyPieChart({ 130 animate: 2000, 131 barColor: e_1.css('color'), 132 trackColor: "#EEEEEE", 133 size: 250, 134 lineWidth: 20, 135 lineCap: 'round', 136 scaleColor: false, 137 onStep: function(from, to, percent) { 138 $(this.el).find('.percentage_inner span').text(Math.round(percent)); 139 } 140 }); 141 var e_2 = $(".percentage2"); 142 e_2.easyPieChart({ 143 animate: 2000, 144 barColor: e_2.css('color'), 145 trackColor: "#ffffff", 146 size: 94, 147 lineWidth: 3, 148 lineCap: 'round', 149 scaleColor: false, 150 onStep: function(from, to, percent) { 151 $(this.el).find('.percentage_inner span').text(Math.round(percent)); 152 } 153 }) 154 var e_3 = $(".percentage3"); 155 e_3.easyPieChart({ 156 animate: 2000, 157 barColor: e_3.css('color'), 158 trackColor: "rgba(255,255,255,0.3)", 159 size: 200, 160 lineWidth: 5, 161 lineCap: 'round', 162 scaleColor: false, 163 onStep: function(from, to, percent) { 164 $(this.el).find('.percentage_inner span').text(Math.round(percent)); 165 } 166 }) 167 168}); 169 170 171//source_code 172jQuery(document).ready(function($) { 173var $source=$(".source_code"); 174 $source.find("a").click( 175 function(){ 176 $(this).siblings("pre").css("display")=="none" ? $(this).siblings("pre").slideDown(200):$(this).siblings("pre").slideUp(200); 177 $(this).siblings(".source_box").css("display")=="none" ? $(this).siblings(".source_box").slideDown(200):$(this).siblings(".source_box").slide
177Up(200); 178 return false; 179}) 180}) 181 182 183 184 185 186 187//Carouse 188$(document).ready(function() { 189 $(".carousel_1").each(function() { 190 $(this).owlCarousel({ 191 items : $(this).attr("data-items") ? $(this).data("items") :3, 192 itemsDesktop: [1199, 3], 193 itemsDesktopSmall: [979, 2], 194 navigation : $(this).attr("data-navigation") ? $(this).data("navigation") :true, 195 pagination : $(this).attr("data-pagination") ? $(this).data("pagination") :true, 196 autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") :true, 197 autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") :true 198 }).css("marginBottom",parseInt($(this).find(".owl-pagination").height())+parseInt($(this).find(".owl-pagination").css("marginTop"))+parseInt($(this).css("marginBottom"))+"px"); 199 }) 200 201 $(".carousel_2").each(function() { 202 $(this).owlCarousel({ 203 items : $(this).attr("data-items") ? $(this).data("items") :4, 204 navigation : $(this).attr("data-navigation") ? $(this).data("navigation") :true, 205 pagination : $(this).attr("data-pagination") ? $(this).data("pagination") :true, 206 autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") :true, 207 autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") :true 208 }).css("marginBottom",parseInt($(this).find(".owl-pagination").height())+parseInt($(this).find(".owl-pagination").css("marginTop"))+parseInt($(this).css("marginBottom"))+"px"); 209 }) 210 211 $(".carousel_3").each(function() { 212 $(this).owlCarousel({ 213 items : $(this).attr("data-items") ? $(this).data("items") :3, 214 itemsDesktop: [1199, 3], 215 navigation : $(this).attr("data-navigation") ? $(this).data("navigation") :true, 216 pagination : $(this).attr("data-pagination") ? $(this).data("pagination") :true, 217 autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") :true, 218 autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") :true 219 }).css("marginBottom",parseInt($(this).find(".owl-pagination").height())+parseInt($(this).find(".owl-pagination").css("marginTop"))+parseInt($(this).css("marginBottom"))+"px"); 220 }) 221 222 $(".carousel_4").each(function () { 223 var e=$(this); 224 $(this).owlCarousel({ 225 singleItem: true, 226 navigation: $(this).attr("data-navigation") ? $(this).data("navigation") : true, 227 pagination: $(this).attr("data-pagination") ? $(this).data("pagination") : true, 228 autoPlay: $(this).attr("data-autoplay") ? $(this).data("autoplay") : true, 229 autoHeight: $(this).attr("data-autoheight") ? $(this).data("autoheight") : true, 230 afterAction: function () {var current = this.currentItem;e.find(".owl-item").eq(current).addClass("synced").siblings().removeClass("synced")} 231 }); 232 }) 233 234 $(".carousel_5").each(function() { 235 $(this).owlCarousel({ 236 items : $(this).attr("data-items") ? $(this).data("items") :5, 237 navigation : $(this).attr("data-navigation") ? $(this).data("navigation") :true, 238 pagination : $(this).attr("data-pagination") ? $(this).data("pagination") :true, 239 autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") :true, 240 autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") :true 241 }).css("marginBottom",parseInt($(this).find(".owl-pagination").height())+parseInt($(this).find(".owl-pagination").css("marginTop"))+parseInt($(this).css("marginBottom"))+"px"); 242 }) 243 244 $(".carousel_6").each(function() { 245 $(this).owlCarousel({ 246 items : $(this).attr("data-items") ? $(this).data("items") :4, 247 navigation : $(this).attr("data-navigation") ? $(this).data("navigation") :true, 248 pagination : $(this).attr("data-pagination") ? $(this).data("pagination") :true, 249 autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") :true, 250 autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") :true 251 }).css("marginBottom",parseInt($(this).find(".owl-pagination").height())+parseInt($(this).find(".owl-pagination").css("marginTop"))+parseInt($(this).css("marginBottom"))+"px"); 252 }) 253 254 $(".carousel_7").each(function() { 255 $(this).owlCarousel({ 256 items : $(this).attr("data-items") ? $(this).data("items") :4, 257 navigation : $(this).attr("data-navigation") ? $(this).data("navigation") :true, 258 pagination : $(this).attr("data-pagination") ? $(this).data("pagination") :true, 259 autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") :true, 260 autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") :true 261 }).css("marginBottom",parseInt($(this).find(".owl-pagination").height())+parseInt($(this).find(".owl-pagination").css("marginTop"))+parseInt($(this).css("marginBottom"))+"px"); 262 }) 263 264 $(".carousel_8").each(function() { 265 $(this).owlCarousel({ 266 items : $(this).attr("data-items") ? $(this).data("items") :3, 267 navigation : $(this).attr("data-navigation") ? $(this).data("navigation") :true, 268 pagination : $(this).attr("data-pagination") ? $(this).data("pagination") :true, 269 autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") :true, 270 autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") :true 271 }).css("marginBottom",parseInt($(this).find(".owl-pagination").height())+parseInt($(this).find(".owl-pagination").css("marginTop"))+parseInt($(this).css("marginBottom"))+"px"); 272 }) 273 274 $(".carousel_9").each(function() { 275 $(this).owlCarousel({ 276 items : $(this).attr("data-items") ? $(this).data("items") :3, 277 itemsCustom: [[0, 1], [600, 2], [975, 3]], 278 navigation : $(this).attr("data-navigation") ? $(this).data("navigation") :true, 279 pagination : $(this).attr("data-pagination") ? $(this).data("pagination") :true, 280 autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") :true, 281 autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") :true 282 }).css("marginBottom",parseInt($(this).find(".owl-pagination").height())+parseInt($(this).find(".owl-pagination").css("marginTop"))+parseInt($(this).css("marginBottom"))+"px"); 283 }) 284 285 $(".carousel_10").each(function() { 286 $(this).owlCarousel({ 287 items : $(this).attr("data-items") ? $(this).data("items") :4, 288 navigation : $(this).attr("data-navigation") ? $(this).data("navigation") :true, 289 pagination : $(this).attr("data-pagination") ? $(this).data("pagination") :true, 290 autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") :true, 291 autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") :true 292 }).css("marginBottom",parseInt($(this).find(".owl-pagination").height())+parseInt($(this).find(".owl-pagination").css("marginTop"))+parseInt($(this).css("marginBottom"))+"px"); 293 }) 294 295 $(".carousel_11").each(function() { 296 $(this).owlCarousel({ 297 items : $(this).attr("data-items") ? $(this).data("items") :5, 298 navigation : $(this).attr("data-navigation") ? $(this).data("navigation") :true, 299 pagination : $(this).attr("data-pagination") ? $(this).data("pagination") :true, 300 autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") :true, 301 autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") :true 302 }).css("marginBottom",parseInt($(this).find(".owl-pagination").height())+parseInt($(this).find(".owl-pagination").css("marginTop"))+parseInt($(this).css("marginBottom"))+"px"); 303 }) 304 305 306}); 307 308 309 310//CAROUSEL 311$(document).ready(function() { 312 $(".sync_carousel_1").each(function() { 313 var sync = $(this), 314 sync1 = sync.find(".carousel_main"), 315 sync2 = sync.find(".carousel_nav"); 316 sync1.owlCarousel({ 317 singleItem: true, 318 slideSpeed: 1000, 319 navigation: true, 320 pagination: false, 321 afterAction: syncPosition, 322 responsiveRefreshRate: 200, 323 }); 324 sync2.owlCarousel({ 325 items: 4, 326 itemsDesktop: [1199, 4], 327 itemsDesktopSmall: [979, 4], 328 itemsTablet: [768, 3],
329 itemsMobile: [479, 2], 330 pagination: false, 331 responsiveRefreshRate: 100, 332 afterInit: function(el) { 333 el.find(".owl-item").eq(0).addClass("synced"); 334 } 335 }); 336 function syncPosition(el) { 337 var current = this.currentItem; 338 sync2.find(".owl-item").removeClass("synced").eq(current).addClass("synced"); 339 if (sync2.data("owlCarousel") !== undefined) { 340 center(current) 341 } 342 } 343 sync2.on("click", ".owl-item", 344 function(e) { 345 e.preventDefault(); 346 var number = $(this).data("owlItem"); 347 sync1.trigger("owl.goTo", number); 348 }); 349 function center(number) { 350 var sync2visible = sync2.data("owlCarousel").owl.visibleItems; 351 var num = number; 352 var found = false; 353 for (var i in sync2visible) { 354 if (num === sync2visible[i]) { 355 var found = true; 356 } 357 } 358 if (found === false) { 359 if (num > sync2visible[sync2visible.length - 1]) { 360 sync2.trigger("owl.goTo", num - sync2visible.length + 2) 361 } else { 362 if (num - 1 === -1) { 363 num = 0; 364 } 365 sync2.trigger("owl.goTo", num); 366 } 367 } else if (num === sync2visible[sync2visible.length - 1]) { 368 sync2.trigger("owl.goTo", sync2visible[1]) 369 } else if (num === sync2visible[0]) { 370 sync2.trigger("owl.goTo", num - 1) 371 } 372 } 373 }) 374}); 375 376 377 378 379 380//ProgressBarsCounters2 381(function($) { 382 383 384 385 $.fn.sector = function(e) { 386 387 388 try{ 389 $("<canvas></canvas>")[0].getContext("2d"); 390 Supportability=1; 391 392 }catch(err){ 393 Supportability=0; 394 } 395 396 397 398 if(Supportability==1){ 399 400 CanvasRenderingContext2D.prototype.sector = function(x, y, radius, sDeg, eDeg) { 401 this.save(); 402 this.translate(x, y); 403 this.beginPath(); 404 this.arc(0, 0, radius, sDeg, eDeg); 405 this.save(); 406 this.rotate(eDeg); 407 this.moveTo(radius, 0); 408 this.lineTo(0, 0); 409 this.restore(); 410 this.rotate(sDeg); 411 this.lineTo(radius, 0); 412 this.closePath(); 413 this.restore(); 414 return this; 415 } 416 } 417 418 419 this.each(function() { 420 var e = $(this), 421 size = e.attr("data-size") ? e.attr("data-size") : 100; 422 423 if(Supportability==1){ 424 e.html("<canvas></canvas>").append("<div class='sector_info'></div>"); 425 var cxt = e.find("canvas")[0].getContext('2d'), 426 deg = Math.PI / 180; 427 e.find("canvas").attr("width", size * 2).attr("height", size * 2) 428 cxt.translate(size, size); 429 cxt.rotate( - 90 * deg); 430 cxt.fillStyle = e.attr("data-color") ? e.attr("data-color") : "#FFFFF"; 431 cxt.sector(0, 0, size, 00 * deg, 360 * deg).fill(); 432 } 433 else{ 434 e.append("<div class='sector_box'></div><div class='sector_info'></div>"); 435 e.find(".sector_box").css({"backgroundColor":e.attr("data-color") ? e.attr("data-color") : "#FFFFF","width":size * 2,"height":size * 2}) 436 } 437 438 439 440 if (e.attr("data-fan")) { 441 var number = e.attr("data-fan").split(","), 442 end = 0, 443 start = 0, 444 animation = 5; 445 function draw(i) { 446 par = number[i].split(":"); 447 if (i > 0) { 448 start = end; 449 } 450 end = Math.round(parseFloat(number[i].split(":")[2]) * 360 * 0.01) + start; 451 if(Supportability==1){ 452 cxt.fillStyle = par[1]=="AccentColour"?e.css("Color"):par[1]; 453 }else{ 454 e.find(".sector_box").append("<div class='bar" + i + "'><div>") 455 e.find(".bar" + i).html("<span></span>"); 456 e.find(".bar" + i).find("span").css({"height":"0","backgroundColor":par[1]=="AccentColour"?e.css("Color"):par[1]}) 457 var n=number.length>3?number.length:3; 458 e.find(".bar" + i).css({"width":Math.round(size/n)}) 459 } 460 if (e.attr("data-name")) { 461 e.find(".sector_info").append("<div class='item" + i + "'><span>0</span>%</div>") 462 } else { 463 e.find(".sector_info").append("<div class='item" + i + "'><b>" + par[0] + "</b>:<span>0</span>%</div>") 464 } 465 function fan() { 466 animation++; 467 if (animation >= end - start) { 468 if(Supportability==1){ 469 cxt.sector(0, 0, size, start * deg, end * deg).fill(); 470 }else{ 471 e.find(".bar" + i).find("span").css({"height":Math.round(animation / 360 / 0.01)+"%"}) 472 } 473 animation = 5; 474 clearTimeout(e.interval); 475 i++; 476 if (i < number.length) { 477 return draw(i); 478 } 479 } else {
480 e.find(".item" + i).find("span").html(Math.round(animation / 360 / 0.01)); 481 if(Supportability==1){ 482 cxt.sector(0, 0, size, start * deg, Math.round(start + animation) * deg).fill(); 483 }else{ 484 e.find(".bar" + i).find("span").css({"height":Math.round(animation / 360 / 0.01)+"%"}) 485 } 486 } 487 } 488 e.interval = setInterval(fan, 1); 489 } 490 draw(0); 491 } 492 }) 493 } 494 $.fn.sectorload = function(element) { 495 496 497 498 $(this).each(function() { 499 var el = $(this); 500 if ($(window).scrollTop() + $(window).height() >= el.offset().top && el.hasClass("achieve") == false) 501 { 502 el.addClass("achieve") 503 el.sector(); 504 } 505 }) 506 }; 507})(jQuery); 508$(window).load(function() { 509 $(".sector").sectorload(); 510}); 511$(window).scroll(function() { 512 $(".sector").sectorload(); 513}); 514 515 516 517 518 519//player 520jQuery(function() { 521 jQuery(".player").mb_YTPlayer({ 522 onReady: function() { 523 jQuery("#eventListener").append(" (Player is ready)"); 524 } 525 }).each(function() { 526 var e = $(this), 527 n = 1; 528 e.children(".Play").click(function() { 529 if (n == 0) { 530 e.playYTP(); 531 $(this).addClass("pause").removeClass("plays"); 532 n = 1; 533 } else { 534 e.pauseYTP(); 535 $(this).addClass("plays").removeClass("pause"); 536 n = 0; 537 } 538 }); 539 }); 540}); 541 542 543jQuery(document).ready(function($) { 544 $(".full_screen_pic").each(function() { 545 var full = $(this).find("li"); 546 full.height($(window).height()); 547 $(window).resize(function() { 548 full.height($(window).height()) 549 }) 550 }); 551 $("#nextPage").click(function() { 552 jQuery('body,html').animate({ 553 scrollTop: $(window).height() 554 }, 500); 555 }) 556 // runs(); 557 558}) 559 560jQuery(document).ready(function($) { 561 var f = $("#right_folding"), 562 r = $("#main_right"), 563 c = $("#rightClose"); 564 f.click(function(e) { 565 if (!$(this).hasClass("open")) { 566 $(this).addClass("open"); 567 r.addClass("unfold"); 568 } else { 569 $(this).removeClass("open"); 570 r.removeClass("unfold"); 571 } 572 }); 573 c.click(function(e) { 574 f.removeClass("open"); 575 r.removeClass("unfold"); 576 }); 577}) 578jQuery(document).ready(function($) { 579 var f = $("#main_folding"), 580 l = $("#main_left"), 581 c = $("#main_close"); 582 // r=$("#main_right") 583 // interval 584 585 f.removeClass("open"); 586 l.addClass("reduce").removeClass("unfold"); 587 f.click(function(e) { 588 if (!$(this).hasClass("open")) { 589 $(this).addClass("open"); 590 l.addClass("unfold"); 591 $("#main_left .searchBox").removeClass("open") 592 } else { 593 $(this).removeClass("open"); 594 l.removeClass("unfold"); 595 $("#main_left .searchBox").removeClass("open") 596 } 597 }); 598 c.click(function(e) { 599 f.removeClass("open"); 600 l.removeClass("unfold"); 601 $("#main_left .searchBox").removeClass("open") 602 }) 603 /* 604 l.mouseleave(function(e) { 605 function out(e){ 606 f.removeClass("open"); 607 l.removeClass("unfold"); 608 $("#main_left .searchBox").removeClass("open"); 609 } 610 interval = setInterval(out,500); 611 }) 612 l.mouseover(function(e) { 613 clearTimeout(interval); 614 }) 615 */ 616 617 $("#main_left.reduce #searchaction").click(function(e) { 618 if ($(this).parent(".searchBox").hasClass("open")) { 619 $(this).parent(".searchBox").removeClass("open") 620 } else { 621 $(this).parent(".searchBox").addClass("open") 622 } 623 }); 624 625 //menu 626 var leftsubmenu = l.find("#dnngo_megamenu").find(".dnngo_boxslide"); 627 leftsubmenu.each(function() { 628 var e = $(this); 629 e.parent().parent().mouseenter(function() { 630 if (e.height() > $(window).height()) { 631 e.css({ 632 "height": $(window).height(), 633 "overflow": "auto", 634 "marginRight": "-20px", 635 "width": e.parent(".dnngo_menuslide").width() + 18 636 }); 637 if (!e.parent().hasClass("submenu_box")) {
638 e.wrap("<div class='submenu_box'></div>").parent(".submenu_box").css({ 639 "overflow": "hidden" 640 }) 641 } 642 } else { 643 e.attr("style", " ") 644 if (e.parent().hasClass("submenu_box")) { 645 e.unwrap(); 646 } 647 } 648 }) 649 650 651 }); 652 653}) 654 655jQuery(document).ready(function ($) { 656 if($("#dnn_content").offset().top<$(".roll_menu").height()){ 657 $("#dnn_content").css("paddingTop",$(".roll_menu").height()) 658 } 659}) 660 661jQuery(document).ready(function ($) { 662 if (!$(".HeadPane").hasClass("DNNEmptyPane")) { 663 $(".HeadPane_mobile").html($(".HeadPane .Normal").html()) 664 } 665}) 666 667 668 //Google Map 669jQuery(document).ready(function($){ 670 if(document.getElementById('gmap')){ 671 jQuery('#gmap').gMap({ 672 address:'Bear city, ny ', 673 maptype:'hybrid', 674 zoom:8, 675 scrollwheel:false, 676 scaleControl:true, 677 navigationControl:true, 678 markers:[ 679 {address:'Bear city, ny ',html:'marker 1'}, 680 {address:' 579 Allen Road Basking Ridge, NJ 07920 ',html:'marker 1'}, 681 {address:' Mount Arlington, NJ 07856',html:'marker 1'} 682 ] 683 }); 684 } 685}); 686 //Google Map 687jQuery(document).ready(function($){ 688 if(document.getElementById('gmap2')){ 689 jQuery('#gmap2').gMap({ 690 address:'Bear city, ny ', 691 maptype:'hybrid', 692 zoom:8, 693 scrollwheel:true, 694 scaleControl:true, 695 navigationControl:true, 696 markers:[ 697 {address:'Bear city, ny ',html:'marker 1'}, 698 {address:' 579 Allen Road Basking Ridge, NJ 07920 ',html:'marker 1'}, 699 {address:' Mount Arlington, NJ 07856',html:'marker 1'} 700 ] 701 }); 702 } 703}); 704 705$(document).ready(function() { 706 //Breadcrumb link with empty header element 707 708 $(".bread_current").each(function() { 709 var header = $(this).find("h1"); 710 if (header.html() == "") { 711 $(this).empty(); 712 } 713 }); 714 715 //Links with target and no aria-label 716 717 $("a").each(function() { 718 if ($(this).attr("aria-label") == null) { 719 var target = $(this).attr("target"); 720 721 if (target == "_blank" || target == "_self") { 722 if ($(this).attr("title") != null) { 723 $(this).attr("aria-label", $(this).attr("title") + (target == "_blank" ? ", opens in a new window" : "")); 724 } else if ($(this).text()) { 725 $(this).attr("aria-label", $(this).text() + (target == "_blank" ? ", opens in a new window" : "")); 726 } 727 } 728 } 729 }); 730 731 //Add aria-expanded attribute 732 733 $(".collapsed").each(function() { 734 if ($(this).attr("data-toggle") == "collapse") { 735 $(this).attr("aria-expanded", "false"); 736 } 737 }); 738 739 //Update aria-expanded value 740 741 $("[aria-expanded]").click(function() { 742 if ($(this).attr("aria-expanded") == "false") { 743 $(this).attr("aria-expanded", "true"); 744 } else { 745 $(this).attr("aria-expanded", "false"); 746 } 747 }); 748 749 //Add aria-selected attribute 750 751 $(".isotope_group a").each(function(index) { 752 if (index == 0) { 753 $(this).attr("aria-selected", "true"); 754 } else { 755 $(this).attr("aria-selected", "false"); 756 } 757 }); 758 759 //District Navigator 760 761 $(".resp-tab-item a").each(function() { 762 if ($(this).parent().hasClass("resp-tab-active")) { 763 $(this).attr("aria-selected", "true"); 764 } else { 765 $(this).attr("aria-selected", "false"); 766 } 767 }); 768 769 //Update aria-selected value 770 771 $("[aria-selected]").click(function() { 772 setTimeout(function(){ 773 $("[aria-selected]").each(function() { 774 if ($(this).parent().hasClass("resp-tab-active")) { 775 $(this).attr("aria-selected", "true"); 776 } else { 777 $(this).attr("aria-selected", "false"); 778 } 779 }); 780 }, 0); 781 782 $(this).attr("aria-selected", "true"); 783 }); 784 785 //Add aria-required to form inputs 786 787 $("input").each(function() { 788 if ($(this).hasClass("required")) { 789 $(this).attr("aria-required", "true"); 790 } 791 }); 792 793 //Main Menu Items Blank Target
794 795 $("#dnngo_megamenu a").each(function() { 796 if ($(this).attr("target") == "_blank") { 797 $(this).attr("title", "Opens a new tab"); 798 $(this).attr("aria-label", "Opens a new tab"); 799 } 800 }); 801 802 //Side Multi Menu Items Blank Target 803 804 $(".menuitem").each(function() { 805 if ($(this).attr("target") == "_blank") { 806 $(this).attr("title", "Opens a new tab"); 807 $(this).attr("aria-label", "Opens a new tab"); 808 } 809 }); 810 811 //Home Video and Book an Event Focus-Hover Effect 812 813 $(".LightBox_vimeo").focus(function() { 814 $(this).closest(".photo_box").addClass("focused"); 815 }); 816 817 $(".LightBox_vimeo").blur(function() { 818 $(this).closest(".photo_box").removeClass("focused"); 819 }); 820 821 $(".LightBox_Box").focus(function() { 822 $(this).closest(".photo_box").addClass("focused"); 823 }); 824 825 $(".LightBox_Box").blur(function() { 826 $(this).closest(".photo_box").removeClass("focused"); 827 }); 828 829 //Media Gallery Photos Focus-Hover Effect 830 831 $(".LightBox_image_gallery1").focus(function() { 832 $(this).closest(".photo_box").addClass("focused"); 833 }); 834 835 $(".LightBox_image_gallery1").blur(function() { 836 $(this).closest(".photo_box").removeClass("focused"); 837 }); 838 839 //Media Gallery Videos Focus-Hover Effect 840 841 $(".prolight_vimeo_gallery1491").focus(function() { 842 $(this).closest(".pro-photo").addClass("focused"); 843 }); 844 845 $(".prolight_vimeo_gallery1491").blur(function() { 846 $(this).closest(".pro-photo").removeClass("focused"); 847 }); 848}); 849 850$(window).on("load", function() { 851 var occcTranslate = document.getElementById("occc-translate"); 852 var translateBtn = document.getElementById("translate-btn"); 853 854 translateBtn.parentNode.removeChild(translateBtn); 855 occcTranslate.insertBefore(translateBtn, occcTranslate.childNodes[0]); 856}); 857 858 859 860
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.