1 2jQuery(document).ready(function($) { 3 var f = $("#main_folding"), 4 l = $("#main_left"); 5 // r=$("#main_right") 6 // intervalf 7 8 // f.removeClass("open"); 9 // l.addClass("reduce").removeClass("unfold"); 10 f.click(function(e) { 11 if (!$(this).hasClass("open")) { 12 $(this).addClass("open"); 13 l.addClass("unfold"); 14 $("#main_left .searchBox").removeClass("open") 15 } else { 16 $(this).removeClass("open"); 17 l.removeClass("unfold"); 18 $("#main_left .searchBox").removeClass("open") 19 } 20 }); 21 22 /* 23 l.mouseleave(function(e) { 24 function out(e){ 25 f.removeClass("open"); 26 l.removeClass("unfold"); 27 $("#main_left .searchBox").removeClass("open"); 28 } 29 interval = setInterval(out,500); 30 }) 31 l.mouseover(function(e) { 32 clearTimeout(interval); 33 }) 34 */ 35 36 $("#main_left.reduce #searchaction").click(function(e) { 37 if ($(this).parent(".searchBox").hasClass("open")) { 38 $(this).parent(".searchBox").removeClass("open") 39 } else { 40 $(this).parent(".searchBox").addClass("open") 41 } 42 }); 43 $("#main_left #dnngo_megamenu .primary_structure").children("li").each(function() { 44 if ($(this).children("a").children("span").find("img").length < 1) { 45 $(this).children("a").children("span").append("<i>" + $(this).children("a").children("span").html().substring(0, 1) + "</i>") 46 } 47 }); 48 49 //menu 50 var leftsubmenu = l.find("#dnngo_megamenu").find(".dnngo_boxslide"); 51 leftsubmenu.each(function() { 52 var e = $(this); 53 e.parent().parent().mouseenter(function() { 54 if (e.height() > $(window).height()) { 55 e.css({ 56 "height": $(window).height(), 57 "overflow": "auto", 58 "marginRight": "-20px", 59 "width": e.parent(".dnngo_menuslide").width() + 18 60 }); 61 if (!e.parent().hasClass("submenu_box")) { 62 e.wrap("<div class='submenu_box'></div>").parent(".submenu_box").css({ 63 "overflow": "hidden" 64 }) 65 } 66 } else { 67 e.attr("style", " ") 68 if (e.parent().hasClass("submenu_box")) { 69 e.unwrap(); 70 } 71 } 72 }) 73 74 75 }); 76 77}) 78 79jQuery(document).ready(function($) { 80 var f = $("#right_folding"), 81 r = $("#main_right"), 82 c = $("#rightClose"); 83 f.click(function(e) { 84 if (!$(this).hasClass("open")) { 85 $(this).addClass("open"); 86 r.addClass("unfold"); 87 } else { 88 $(this).removeClass("open"); 89 r.removeClass("unfold"); 90 } 91 }); 92 c.click(function(e) { 93 f.removeClass("open"); 94 r.removeClass("unfold"); 95 }); 96}) 97 98jQuery(document).ready(function($) { 99 if ($(".Login").find(".buttonGroup").find("li").length > 2) { 100 $(".Login").addClass("info"); 101 } 102}) 103 104//Top: 105jQuery(document).ready(function($) { 106 jQuery('#to_top').click(function() { 107 jQuery('body,html').animate({ 108 scrollTop: 0 109 }, 110 800); 111 }); 112 113 var backtop=function(){ 114 Math.max.call(window.scrollTop, document.body.scrollTop, document.documentElement.scrollTop)>245?jQuery('#to_top').fadeIn(300):jQuery('#to_top').fadeOut(300) 115 } 116 $(window).load(function(){ 117 backtop(); 118 }) 119 $(window).scroll(function(){ 120 backtop(); 121 }) 122 123}); 124 125 126function animationShow(e,option){ 127 var e=$(e), 128 option=$(option); 129 e.click(function() { 130 var interval; 131 132 if(!e.hasClass("Open")){ 133 e.addClass("Open"); 134 option.fadeIn(); 135 } 136 else{ 137 e.removeClass("Open"); 138 option.fadeOut(); 139 } 140 e.parent().mouseover(function() { 141 clearTimeout(interval); 142 }) 143 e.parent().mouseout(function() { 144 interval = setInterval(function(){e.removeClass("Open");option.fadeOut();clearTimeout(interval);},1000); 145 }) 146 }) 147} 148 149jQuery(document).ready(function($) { 150 animationShow(".searchbut",".searchBox"); 151}) 152 153 154 155 156//For Menu Lavalamp: 157 158/*jQuery(document).ready(function($) { 159 animatedcollapse.addDiv('search', 'fade=1,speed=200,group=mobile,hide=1') 160 animatedcollapse.init() 161}); 162*/ 163//Mega_menu 164 165jQuery(document).ready(function($) { 166 167$(".HeadPane_mobile").html($(".HeadPane .Normal").html()) 168}) 169 170 171jQuery(document).ready(function ($) { 172 var e=$(".roll_menu"); 173 if(e.length!=0){ 174 e.roll_menu({ MTop:e.offset().top+e.height()+100 }); 175 } 176}); 177 178 179$(window).load(function () { 180 181 182 /* Set CSS3 Animations via class: http://daneden.me/animate/ 183 ---------------------------------------------*/ 184 $("#dnn_pnav li").hover( 185 function () { $("ul", this).removeClass().addClass('fadeInDown'); }, 186 function () { $("ul", this).removeClass().addClass('fadeOutUp'); } 187 ); 188 $("#dnn_pnav li ul li").hover( 189 function () { $("ul", this).removeClass().addClass('fadeInLeft'); }, 190 function () { $("ul", this).removeClass().addClass('fadeOutRight'); } 191 ); 192}); 193 194 195 196if (navigator.userAgent.match(/IEMobile\/10\.0/)) { 197 var msViewportStyle = document.createElement("style"); 198 msViewportStyle.appendChild( 199 document.createTextNode(
200 "@-ms-viewport{width:auto!important}" 201 ) 202 ); 203 document.getElementsByTagName("head")[0]. 204 appendChild(msViewportStyle); 205} 206 207 208 209(function($,window,undefined) { 210 211 var nua = navigator.userAgent; 212 var is_android = ((nua.indexOf('Mozilla/5.0') > -1 && nua.indexOf('Android ') > -1 && nua.indexOf('AppleWebKit') > -1) && !(nua.indexOf('Chrome') > -1)); 213 214 function browserSize(){ 215 wh = $(window).height(); 216 ww = $(window).width(); 217 dh = $(document).height(); 218 ar = ww/wh; 219 }; 220 221function init() { 222 browserSize(); 223 if (is_android) { 224 $('html').addClass('android-browser'); 225 } else { 226 $('html').addClass('no-android-browser'); 227 } 228 $('html').addClass('loaded'); 229 eventHandlersOnce(); 230}; 231 232function eventHandlersOnce() { 233 $('.switchOpen').on('click', function(e) { 234 $(this).addClass('SwitchClose'); 235 var hh = $('header').height(), 236 ch = $('.navigation_mobile').height(), 237 max = Math.max(wh,ch,hh); 238 $('.navigation_mobile').css({'minHeight':wh}); 239 240 if ($('html').hasClass('navigation_is-visible')) { 241 $('#dnn_wrapper').css({'height': ''}); 242 $(this).removeClass('SwitchClose'); 243 } else { 244 $('#dnn_wrapper').css({'height': max}); 245 } 246 $('html').toggleClass('navigation_is-visible'); 247 248 249 $('.navigation_mobile').resize(function(){ 250 if ($('html').hasClass('navigation_is-visible')) { 251 $('#dnn_wrapper').css({'height':$('.navigation_mobile').height()}); 252 } 253 else { 254 $('#dnn_wrapper').css({'height': ' '}); 255 } 256 257 }); 258 259 260 }); 261}; 262 263$(function(){ 264 init() 265}); 266 267})(jQuery, window); 268 269 270//chart 271$(window).load(function() { 272 "use strict"; 273 var e_1 = $(".percentage"); 274 e_1.easyPieChart({ 275 animate: 2000, 276 barColor: e_1.css('color'), 277 trackColor: "#e7e7e7", 278 size: 140, 279 lineWidth: 5, 280 lineCap: 'round', 281 scaleColor: false, 282 onStep: function(e) { 283 this.$el.find("span").text(~~e) 284 } 285 }); 286 var e_2 = $(".percentage2"); 287 e_2.easyPieChart({ 288 animate: 2000, 289 barColor: e_2.css('color'), 290 trackColor: "#e7e7e7", 291 size: 140, 292 lineWidth: 16, 293 scaleColor: false, 294 onStep: function(e) { 295 this.$el.find("span").text(~~e) 296 } 297 }) 298 299}); 300 301 302 303$(document).ready(function() { 304 $(".carousel_1").each(function() { 305 $(this).owlCarousel({ 306 items : $(this).attr("data-items") ? $(this).data("items") :4, 307 navigation : $(this).attr("data-navigation") ? $(this).data("navigation") :true, 308 pagination : $(this).attr("data-pagination") ? $(this).data("pagination") :true, 309 autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") :true, 310 autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") :true 311 }); 312 }) 313 $(".carousel_2").each(function() { 314 $(this).owlCarousel({ 315 items : $(this).attr("data-items") ? $(this).data("items") :3, 316 navigation : $(this).attr("data-navigation") ? $(this).data("navigation") :true, 317 pagination : $(this).attr("data-pagination") ? $(this).data("pagination") :true, 318 autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") :true, 319 autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") :true 320 }); 321 }) 322 $(".carousel_3").each(function() { 323 var e=$(this); 324 e.owlCarousel({ 325 singleItem : true, 326 navigation : $(this).attr("data-navigation") ? $(this).data("navigation") :true, 327 pagination : $(this).attr("data-pagination") ? $(this).data("pagination") :true, 328 autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") :true, 329 autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") :true, 330 afterAction : function () {var current = this.currentItem;e.find(".owl-item").eq(current).addClass("synced").siblings().removeClass("synced")} 331 }); 332 }) 333 $(".carousel_4").each(function() { 334 $(this).owlCarousel({ 335 items : $(this).attr("data-items") ? $(this).data("items") :5, 336 navigation : $(this).attr("data-navigation") ? $(this).data("navigation") :true, 337 pagination : $(this).attr("data-pagination") ? $(this).data("pagination") :true, 338 autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") :true, 339 autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") :true, 340 itemsDesktop : [1550,4], 341 itemsDesktopSmall : [1250,3], 342 itemsTablet : [930,2], 343 itemsMobile : [620,1] 344 }); 345 }) 346 $(".carousel_5").each(function() { 347 $(this).owlCarousel({ 348 items : $(this).attr("data-items") ? $(this).data("items") :3, 349 navigation : $(this).attr("data-navigation") ? $(this).data("navigation") :true, 350 pagination : $(this).attr("data-pagination") ? $(this).data("pagination") :true, 351 autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") :true, 352 autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") :true 353 }); 354 }) 355 $(".carousel_6").each(function() { 356 $(this).owlCarousel({ 357 items : $(this).attr("data-items") ? $(this).data("items") :4, 358 navigation : $(this).attr("data-navigation") ? $(this).data("navigation") :true, 359 pagination : $(this).attr("data-pagination") ? $(this).data("pagination") :true, 360 autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") :true, 361 autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") :true 362 }); 363 }) 364 $(".carousel_7").each(function() { 365 $(this).owlCarousel({ 366 items : $(this).attr("data-items") ? $(this).data("items") :5, 367 navigation : $(this).attr("data-navigation") ? $(this).data("navigation") :true, 368 pagination : $(this).attr("data-pagination") ? $(this).data("pagination") :true, 369 autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") :true, 370 autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") :true, 371 itemsDesktop : [1550,4], 372 itemsDesktopSmall : [1250,3], 373 itemsTablet : [930,2], 374 itemsMobile : [620,1] 375 }); 376 }) 377 378 $(".carousel_8").each(function() { 379 $(this).owlCarousel({ 380 items : $(this).attr("data-items") ? $(this).data("items") :5, 381 navigation : $(this).attr("data-navigation") ? $(this).data("navigation") :true, 382 pagination : $(this).attr("data-pagination") ? $(this).data("pagination") :true, 383 autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") :true, 384 autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") :true 385 386 }); 387 }) 388 389 390 391 392}); 393 394$(document).ready(function() { 395 $(".sync_carousel_1").each(function() { 396 var sync = $(this), 397 sync1 = sync.find(".carousel_main"), 398 sync2 = sync.find(".carousel_nav"); 399 sync1.owlCarousel({ 400 singleItem: true, 401 slideSpeed: 1000, 402 navigation: false, 403 pagination: false, 404 afterAction: syncPosition, 405 responsiveRefreshRate: 200, 406 }); 407 sync2.owlCarousel({ 408 items: 6, 409 itemsDesktop: [1199, 6], 410 itemsDesktopSmall: [979, 6], 411 itemsTablet: [768, 4],
412 itemsMobile: [479, 3], 413 pagination: false, 414 responsiveRefreshRate: 100, 415 afterInit: function(el) { 416 el.find(".owl-item").eq(0).addClass("synced"); 417 } 418 }); 419 function syncPosition(el) { 420 var current = this.currentItem; 421 sync2.find(".owl-item").removeClass("synced").eq(current).addClass("synced"); 422 if (sync2.data("owlCarousel") !== undefined) { 423 center(current) 424 } 425 } 426 sync2.on("click", ".owl-item", 427 function(e) { 428 e.preventDefault(); 429 var number = $(this).data("owlItem"); 430 sync1.trigger("owl.goTo", number); 431 }); 432 function center(number) { 433 var sync2visible = sync2.data("owlCarousel").owl.visibleItems; 434 var num = number; 435 var found = false; 436 for (var i in sync2visible) { 437 if (num === sync2visible[i]) { 438 var found = true; 439 } 440 } 441 if (found === false) { 442 if (num > sync2visible[sync2visible.length - 1]) { 443 sync2.trigger("owl.goTo", num - sync2visible.length + 2) 444 } else { 445 if (num - 1 === -1) { 446 num = 0; 447 } 448 sync2.trigger("owl.goTo", num); 449 } 450 } else if (num === sync2visible[sync2visible.length - 1]) { 451 sync2.trigger("owl.goTo", sync2visible[1]) 452 } else if (num === sync2visible[0]) { 453 sync2.trigger("owl.goTo", num - 1) 454 } 455 } 456 }) 457}) 458//source_code 459jQuery(document).ready(function($) { 460 var $source=$(".source_code"); 461 $source.find("a").click( 462 function(){ 463 $(this).siblings("pre").css("display")=="none" ? $(this).siblings("pre").slideDown(200):$(this).siblings("pre").slideUp(200); 464 return false; 465 }) 466}) 467 468 469 470jQuery(function() { 471 jQuery(".player").mb_YTPlayer({ 472 onReady: function() { 473 jQuery("#eventListener").append(" (Player is ready)"); 474 } 475 }).each(function() { 476 var e = $(this), 477 n = 1; 478 e.children(".Play").click(function() { 479 if (n == 0) { 480 e.playYTP(); 481 $(this).addClass("pause").removeClass("plays"); 482 n = 1; 483 } else { 484 e.pauseYTP(); 485 $(this).addClass("plays").removeClass("pause"); 486 n = 0; 487 } 488 }); 489 }); 490}); 491 492jQuery(document).ready(function ($) { 493 $("#header_slide").on("click",function(){ 494 var e=$(this),box=$("#box-container"),ri=$(".rightmain"); 495 if(box.length!=0){ 496 if(box.hasClass("delay")) return false; 497 if(!box.hasClass("active")){ 498 box.addClass("active"); 499 e.removeClass("active"); 500 $(this).delay(500).queue(function(){ 501 ri.one("click",function(){ 502 box.removeClass("active").addClass("delay").delay(500).queue(function(){$(this).removeClass("delay").dequeue()}); 503 e.addClass("active"); 504 }) 505 $(window).one("scroll",function(){ 506 box.removeClass("active").addClass("delay").delay(500).queue(function(){$(this).removeClass("delay").dequeue()}); 507 e.addClass("active"); 508 }) 509 $(this).dequeue(); 510 }) 511 }else{ 512 box.toggleClass("active"); 513 e.toggleClass("active"); 514 } 515 }else{ 516 e.toggleClass("active"); 517 $(".left-menu").toggleClass("active"); 518 } 519 520 }) 521}) 522 523 524jQuery(document).ready(function($) { 525 $(".full_screen_pic").each(function() { 526 var full = $(this).find("li"); 527 full.height($(window).height()); 528 $(window).resize(function() { 529 full.height($(window).height()) 530 }) 531 }); 532 $("#nextPage,#H7_nextPage").click(function() { 533 jQuery('body,html').animate({ 534 scrollTop: $(window).height() 535 }, 500); 536 }) 537 // runs(); 538 539}) 540 541 542 //Google Map 543jQuery(document).ready(function($){ 544 if(document.getElementById('gmap')){ 545 jQuery('#gmap').gMap({ 546 address:'Bear city, ny ', 547 zoom:11, 548 markers:[ 549 {address:'Bear city, ny ',html:'marker 1'}, 550 {address:' 579 Allen Road Basking Ridge, NJ 07920 ',html:'marker 1'}, 551 {address:' Mount Arlington, NJ 07856',html:'marker 1'} 552 ] 553 }); 554 } 555 if(document.getElementById('gmap2')){ 556 jQuery('#gmap2').gMap({ 557 address:'Bear city, ny ', 558 zoom:11, 559 markers:[ 560 {address:'Bear city, ny ',html:'marker 1'}, 561 {address:' 579 Allen Road Basking Ridge, NJ 07920 ',html:'marker 1'}, 562 {address:' Mount Arlington, NJ 07856',html:'marker 1'} 563 ] 564 }); 565 } 566 jQuery('#gmap3').gMap({ 567 address:'Bear city, ny ', 568 maptype:'hybrid', 569 zoom:8, 570 scaleControl:true, 571 navigationControl:true, 572 markers:[ 573 {address:'Bear city, ny ',html:'marker 1'}, 574 {address:' 579 Allen Road Basking Ridge, NJ 07920 ',html:'marker 1'}, 575 {address:' Mount Arlington, NJ 07856',html:'marker 1'} 576 ] 577 }); 578 579 580}); 581 582 583jQuery(document).ready(function ($) { 584 if($("#dnn_content").offset().top<$(".header_bg").height()){ 585 $("#dnn_content").css("paddingTop",$(".header_bg").height()) 586 } 587})
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.