1// BEGIN: Convert HTTP into HTTPS 2 3$(document).ready(function () { 4 if (location.href.indexOf("https://") == -1) { 5 location.href = location.href.replace("http://", "https://"); 6 } 7}); 8 9// END: Convert HTTP into HTTPS 10 11 12 13// BEGIN: New Responsive Menu 14/* 15(function ($) { 16 17 $.fn.menumaker = function (options) { 18 19 var cssmenu = $(this), settings = $.extend({ 20 title: "Menu", 21 format: "dropdown", 22 sticky: false 23 }, options); 24 25 return this.each(function () { 26 cssmenu.prepend('<div id="menu-button">' + settings.title + '</div>'); 27 $(this).find("#menu-button").on('click', function () { 28 $(this).toggleClass('menu-opened'); 29 var mainmenu = $(this).next('ul'); 30 if (mainmenu.hasClass('open')) { 31 mainmenu.hide().removeClass('open'); 32 } 33 else { 34 mainmenu.show().addClass('open'); 35 if (settings.format === "dropdown") { 36 mainmenu.find('ul').show(); 37 } 38 } 39 }); 40 41 cssmenu.find('li ul').parent().addClass('has-sub'); 42 43 multiTg = function () { 44 cssmenu.find(".has-sub").prepend('<span class="submenu-button"></span>'); 45 cssmenu.find('.menubodyhorizontal').on('click', function () { 46 $(this).toggleClass('submenu-opened'); 47 if ($(this).siblings('ul').hasClass('open')) { 48 $(this).siblings('ul').removeClass('open').hide(); 49 } 50 51 else { 52 $(this).siblings('ul').addClass('open').show(); 53 } 54 }); 55 cssmenu.find('.submenu-button').on('click', function () { 56 $(this).parents('li').toggleClass('submenu-opened'); 57 if ($(this).siblings('ul').hasClass('open')) { 58 $(this).siblings('ul').removeClass('open').hide(); 59 } 60 61 else { 62 $(this).siblings('ul').addClass('open').show(); 63 } 64 }); 65 }; 66 67 if (settings.format === 'multitoggle') multiTg(); 68 else cssmenu.addClass('dropdown'); 69 70 if (settings.sticky === true) cssmenu.css('position', 'fixed'); 71 72 resizeFix = function () { 73 if ($(window).width() > 1024) { 74 cssmenu.find('ul').show(); 75 } 76 77 if ($(window).width() <= 1024) { 78 cssmenu.find('ul').hide().removeClass('open'); 79 } 80 }; 81 resizeFix(); 82 return $(window).on('resize', resizeFix); 83 84 }); 85 }; 86})(jQuery); 87 88(function ($) { 89 $(document).ready(function () { 90 91 $(document).ready(function () { 92 $("#cssmenu").menumaker({ 93 title: "Menu", 94 format: "multitoggle" 95 }); 96 97 $("#cssmenu").prepend(""); 98 99 var foundActive = false, activeElement, linePosition = 0, menuLine = $("#cssmenu #menu-line"), lineWidth, defaultPosition, defaultWidth; 100 101 $("#cssmenu > ul > li").each(function () { 102 if ($(this).hasClass('active')) { 103 activeElement = $(this); 104 foundActive = true; 105 } 106 }); 107 108 if (foundActive === false) { 109 activeElement = $("#cssmenu > ul > li").first(); 110 } 111 112 defaultWidth = lineWidth = activeElement.width(); 113 114 defaultPosition = linePosition = activeElement.position().left; 115 116 menuLine.css("width", lineWidth); 117 menuLine.css("left", linePosition); 118 119 $("#cssmenu > ul > li").hover(function () { 120 activeElement = $(this); 121 lineWidth = activeElement.width(); 122 linePosition = activeElement.position().left; 123 menuLine.css("width", lineWidth);
124 menuLine.css("left", linePosition); 125 }, 126 function () { 127 menuLine.css("left", defaultPosition); 128 menuLine.css("width", defaultWidth); 129 }); 130 131 }); 132 133 134 }); 135})(jQuery); 136 137$(document).ready(function () { 138 $(window).load(function () { 139 $('a.menubodyhorizontal[href*="#"]').prev('.submenu-button').css('visibility', 'visible'); 140 }); 141}); 142 143$(document).ready(function () { 144 if ($(window).width() <= 1024) { 145 $('#cssmenu > ul').css('background-color', $('#cssmenu').parent('div').css('backgroundColor')); 146 $('#cssmenu').parent('div').css('border-width', 0); 147 $('#menu-button').css('display', 'none'); 148 } 149}); 150$(window).bind('load', function () { 151 if ($(window).width() <= 1024) { 152 $('#menu-button').css('display', 'block'); 153 $('#menu-button').css('background-color', $('#cssmenu').parent('div').css('backgroundColor')); 154 // $('#menu-button').toggle(function () { 155 // setInterval(function () { 156 // $('body').css('overflow', 'hidden'); 157 // $('#cssmenu').css({ 'height': $(window).height(), 'z-index': '9999', 'top': 0, 'position': 'fixed', 'display': 'block' }); 158 // $('#cssmenu > ul').css({ 'height': $(window).height(), 'overflow-y': 'auto' }); 159 // }, 10); 160 // }, function () { 161 // setInterval(function () { 162 // $('body').css('overflow', 'visible'); 163 // $('#cssmenu').css({ 'height': 'auto', 'overflow-y': 'visible', 'z-index': 'auto', 'top': 0, 'position': 'relative', 'display': 'flex' }); 164 // $('#cssmenu > ul').css('height', 'auto'); 165 // }, 10); 166 // }); 167 } 168}); 169*/ 170// ENDS: New Responsive Menu 171 172 173// BEGIN: Hide date on page 174 175$(document).ready(function () { 176 if (window.location.href.indexOf('index178') > 0) { 177 $('.article-section-date').css('display', 'none'); 178 } else { 179 $('.article-section-date').css('display', 'block'); 180 } 181}); 182 183// END: Hide date on page 184 185 186// BEGIN: Ads Gallery-1 script 187 188jQuery(document).ready(function ($) { 189 if (document.querySelector("#slideradg1_container")) { 190 var options = { 191 $AutoPlay: true, //[Optional] Whether to auto play, to enable slideshow, this option must be set to true, default value is false 192 $AutoPlaySteps: 4, //[Optional] Steps to go for each navigation request (this options applys only when slideshow disabled), the default value is 1 193 $AutoPlayInterval: 6000, //[Optional] Interval (in milliseconds) to go for next slide since the previous stopped if the slider is auto playing, default value is 3000 194 $PauseOnHover: 1, //[Optional] Whether to pause when mouse over if a slider is auto playing, 0 no pause, 1 pause for desktop, 2 pause for touch device, 3 pause for desktop and touch device, 4 freeze for desktop, 8 freeze for touch device, 12 freeze for desktop and touch device, default value is 1 195 $ArrowKeyNavigation: true, //[Optional] Allows keyboard (arrow key) navigation or not, default value is false 196 $SlideDuration: 0, //[Optional] Specifies default duration (swipe) for slide in milliseconds, default value is 500 197 $MinDragOffsetToSlide: 20, //[Optional] Minimum drag offset to trigger slide , default value is 20 198 $SlideWidth: 200, //[Optional] Width of every slide in pixels, default value is width of 'slides' container 199 $SlideHeight: 80, //[Optional] Height of every slide in pixels, default value is height of 'slides' container 200 $SlideSpacing: 10, //[Optional] Space between each slide in pixels, default value is 0 201 $DisplayPieces: 5, //[Optional] Number of pieces to display (the slideshow would be disabled if the value is set to greater than 1), the default value is 1 202 $ParkingPosition: 0, //[Optional] The offset position to park slide (this options applys only when slideshow disabled), default value is 0. 203 $UISearchMode: 1, //[Optional] The way (0 parellel, 1 recursive, default value is 1) to search UI components (slides container, loading screen, navigator container, arrow navigator container, thumbnail navigator container etc). 204 $PlayOrientation: 1, //[Optional] Orientation to play slide (for auto play, navigation), 1 horizental, 2 vertical, 5 horizental reverse, 6 vertical reverse, default value is 1 205 $DragOrientation: 1, //[Optional] Orientation to drag slide, 0 no drag, 1 horizental, 2 vertical, 3 either, default value is 1 (Note that the $DragOrientation should be the same as $PlayOrientation when $DisplayPieces is greater than 1, or parking position is not 0) 206 $BulletNavigatorOptions: { //[Optional] Options to specify and enable navigator or not 207 $Class: $JssorBulletNavigator$, //[Required] Class to create navigator instance 208 $ChanceToShow: 0, //[Required] 0 Never, 1 Mouse Over, 2 Always 209 $AutoCenter: 1, //[Optional] Auto center navigator in parent container, 0 None, 1 Horizontal, 2 Vertical, 3 Both, default value is 0 210 $Steps: 1, //[Optional] Steps to go for each navigation request, default value is 1 211 $Lanes: 1, //[Optional] Specify lanes to arrange items, default value is 1 212 $SpacingX: 8, //[Optional] Horizontal space between each item in pixel, default value is 0 213 $SpacingY: 8, //[Optional] Vertical space between each item in pixel, default value is 0 214 $Orientation: 1 //[Optional] The orientation of the navigator, 1 horizontal, 2 vertical, default value is 1 215 }, 216 $ArrowNavigatorOptions: { 217 $Class: $JssorArrowNavigator$, //[Requried] Class to create arrow navigator instance 218 $ChanceToShow: 1, //[Required] 0 Never, 1 Mouse Over, 2 Always 219 $AutoCenter: 2, //[Optional] Auto center navigator in parent container, 0 None, 1 Horizontal, 2 Vertical, 3 Both, default value is 0 220 $Steps: 3 //[Optional] Steps to go for each navigation request, default value is 1 221 } 222 }; 223 var jssor_slider1 = new $JssorSlider$("slideradg1_container", options); 224 //responsive code begin 225 //you can remove responsive code if you don't want the slider scales while window resizes 226 function ScaleSlider() { 227 var bodyWidth = document.body.clientWidth; 228 if (bodyWidth) 229 jssor_slider1.$ScaleWidth(Math.min(bodyWidth, 1145)); 230 else 231 window.setTimeout(ScaleSlider, 30); 232 } 233 ScaleSlider(); 234 $(window).bind("load", ScaleSlider); 235 $(window).bind("resize", ScaleSlider); 236 $(window).bind("orientationchange", ScaleSlider); 237 } 238 //responsive code end 239}); 240 241jQuery(document).ready(function ($) { 242 if (document.querySelector("#slideradg101_container")) { 243 var options = { 244 $AutoPlay: true, //[Optional] Whether to auto play, to enable slideshow, this option must be set to true, default value is false 245 $AutoPlaySteps: 4, //[Optional] Steps to go for each navigation request (this options applys only when slideshow disabled), the default value is 1 246 $AutoPlayInterval: 6000, //[Optional] Interval (in milliseconds) to go for next slide since the previous stopped if the slider is auto playing, default value is 3000 247 $PauseOnHover: 1, //[Optional] Whether to pause when mouse over if a slider is auto playing, 0 no pause, 1 pause for desktop, 2 pause for touch device, 3 pause for desktop and touch device, 4 freeze for desktop, 8 freeze for touch device, 12 freeze for desktop and touch device, default value is 1 248 $ArrowKeyNavigation: true, //[Optional] Allows keyboard (arrow key) navigation or not, default value is false 249 $SlideDuration: 0, //[Optional] Specifies default duration (swipe) for slide in milliseconds, default value is 500 250 $MinDragOffsetToSlide: 20, //[Optional] Minimum drag offset to trigger slide , default value is 20 251 $SlideWidth: 200, //[Optional] Width of every slide in pixels, default value is width of 'slides' container 252 $SlideHeight: 80, //[Optional] Height of every slide in pixels, default value is height of 'slides' container 253 $SlideSpacing: 10, //[Optional] Space between each slide in pixels, default value is 0 254 $DisplayPieces: 5, //[Optional] Number of pieces to display (the slideshow would be disabled if the value is set to greater than 1), the default value is 1 255 $ParkingPosition: 0, //[Optional] The offset position to park slide (this options applys only when slideshow disabled), default value is 0. 256 $UISearchMode: 1, //[Optional] The way (0 parellel, 1 recursive, default value is 1) to search UI components (slides container, loading screen, navigator container, arrow navigator container, thumbnail navigator container etc). 257 $PlayOrientation: 1, //[Optional] Orientation to play slide (for auto play, navigation), 1 horizental, 2 vertical, 5 horizental reverse, 6 vertical reverse, default value is 1 258 $DragOrientation: 1, //[Optional] Orientation to drag slide, 0 no drag, 1 horizental, 2 vertical, 3 either, default value is 1 (Note that the $DragOrientation should be the same as $PlayOrientation when $DisplayPieces is greater than 1, or parking position is not 0) 259 $BulletNavigatorOptions: { //[Optional] Options to specify and enable navigator or not 260 $Class: $JssorBulletNavigator$, //[Required] Class to create navigator instance 261 $ChanceToShow: 0, //[Required] 0 Never, 1 Mouse Over, 2 Always 262 $AutoCenter: 1, //[Optional] Auto center navigator in parent container, 0 None, 1 Horizontal, 2 Vertical, 3 Both, default value is 0 263 $Steps: 1, //[Optional] Steps to go for each navigation request, default value is 1 264 $Lanes: 1, //[Optional] Specify lanes to arrange items, default value is 1 265 $SpacingX: 8, //[Optional] Horizontal space between each item in pixel, default value is 0 266 $SpacingY: 8, //[Optional] Vertical space between each item in pixel, default value is 0 267 $Orientation: 1 //[Optional] The orientation of the navigator, 1 horizontal, 2 vertical, default value is 1 268 }, 269 $ArrowNavigatorOptions: { 270 $Class: $JssorArrowNavigator$, //[Requried] Class to create arrow navigator instance 271 $ChanceToShow: 1, //[Required] 0 Never, 1 Mouse Over, 2 Always 272 $AutoCenter: 2, //[Optional] Auto center navigator in parent container, 0 None, 1 Horizontal, 2 Vertical, 3 Both, default value is 0 273 $Steps: 3 //[Optional] Steps to go for each navigation request, default value is 1 274 } 275 }; 276 var jssor_slider1 = new $JssorSlider$("slideradg101_container", options); 277 //responsive code begin 278 //you can remove responsive code if you don't want the slider scales while window resizes 279 function ScaleSlider() { 280 var bodyWidth = document.body.clientWidth; 281 if (bodyWidth) 282 jssor_slider1.$ScaleWidth(Math.min(bodyWidth, 1145)); 283 else 284 window.setTimeout(ScaleSlider, 30); 285 } 286 ScaleSlider(); 287 $(window).bind("load", ScaleSlider); 288 $(window).bind("resize", ScaleSlider); 289 $(window).bind("orientationchange", ScaleSlider); 290 } 291 //responsive code end 292}); 293 294// END: Ads Gallery-1 script 295 296// BEGIN: Form loader 297 298$(document).ready(function () { 299 $('a').click(function () { 300 setTimeout(function () { 301 $('.mfp-iframe-scaler').css('background-image', 'none'); 302 $('.mfp-iframe-scaler iframe').css('visibility', 'visible'); 303 }, 4500); 304 });
305}); 306 307// END: Form loader 308 309// BEGIN: Display Highlight 310 311$(window).bind('load', function () { 312 if ($('#ARG-scroll').css('display') == 'none') { $('#ARG-scroll').remove(); } 313 if ($('#Highlight1').css('display') == 'none') { $('#Highlight1').remove(); } 314}); 315 316// END: Display Highlight 317 318 319// BEGIN: PreLoader 320 321$(document).ready(function () { 322 $('.mainbody').stop().animate({ 'opacity': 1 }, 5000); 323 setTimeout(function () { 324 $('.pre-load').stop().animate({ 'opacity': 0 }, 600, 325 function () { $('.pre-load').css('display', 'none'); }); 326 }, 2000); 327}); 328 329// END: PreLoader 330 331 332// BEGIN: Slide Contents 333 334$(document).ready(function () { 335 setTimeout(function () { $('#Highlight1').removeClass('slide'); }, 1000); 336 setTimeout(function () { $('#Highlight7').removeClass('slide'); }, 2000); 337 setTimeout(function () { $('.firstColumn').removeClass('slide'); }, 3000); 338 setTimeout(function () { $('.secondColumn').removeClass('slide'); }, 4000); 339}); 340 341// END: Slide Contents 342 343 344// BEGIN: Sticky Header 345 346/*$(document).ready(function () { 347 $('.mainbody').css('padding-top', $('.header').outerHeight(true)); 348 if (!$('#logo').length) { 349 $('.logo > a').each(function () { 350 var jqt = $(this); 351 var txt = jqt.text(); 352 jqt.html('<span class="logo-text1">' + txt.substring(10, (txt.indexOf(' '))) + '</span>' + txt.substring((txt.indexOf(' ')))); 353 }); 354 } 355 if ($(window).width() > 768) { // Logo image size decrease on scroll 356 $(window).scroll(function () { 357 if ($('#logo').length) { 358 $('.mainbody').css('padding-top', $('.header').outerHeight(true)); 359 } 360 if ($(document).scrollTop() > 50) { 361 //$('#logo img').addClass('logo-scroll'); 362 } 363 else { 364 //$('#logo img').removeClass('logo-scroll'); 365 } 366 }); 367 } 368}); 369*/ 370// END: Sticky Header 371 372 373 374// BEGIN: Google Custom Search 375 376$(document).ready(function () { 377 $('.search-icon-desk, .searchIcons').click(function () { 378 $('.search_content').addClass('search-flex'); 379 $('.search_remove').css('display', 'block'); 380 $('.gsib_a > input').attr('value', 'Type keywords and press Enter'); 381 }); 382 $('.search_remove').click(function () { 383 $('.search_content').removeClass('search-flex'); 384 $('.search_remove').css('display', 'none'); 385 }); 386 $('.gsib_a > input').attr('value', 'Type keywords and press Enter'); 387 388 setInterval(function () { 389 $('.gsc-results-close-btn-visible').click(function () { 390 $('.search_content').removeClass('search-flex'); 391 $('.gsib_a > input').attr('value', 'Type keywords and press Enter'); 392 }); 393 }, 10); 394}); 395 396$(window).bind('load', function () { 397 $('.gsib_a > input').attr('value', 'Type keywords and press Enter'); 398 $('.gsib_a > input').focus(function () { 399 if (this.value == 'Type keywords and press Enter') 400 this.value = ''; 401 }); 402 $('.gsib_a > input').blur(function () { 403 if (this.value === '') 404 this.value = 'Type keywords and press Enter'; 405 }); 406}); 407 408// END: Google Custom Search 409 410 411// BEGIN: Breaking News 412 413$(document).ready(function () { 414 if (window.location.href.indexOf("#page") > -1) { 415 $('#Highlight1').css('display', 'none'); 416 } 417 else if (window.location.href.indexOf("#page1") > -1) { 418 $('#Highlight1').css('display', 'block'); 419 } 420}); 421 422// END: Breaking News 423 424// BEGIN: News ticker - count articles 425 426$(document).ready(function () { 427 if ($('.Breaking_News ul li').length == 1) $('.Breaking_News ul').addClass('tr1'); 428 if ($('.Breaking_News ul li').length == 2) $('.Breaking_News ul').addClass('tr2'); 429 if ($('.Breaking_News ul li').length == 3) $('.Breaking_News ul').addClass('tr3'); 430 if ($('.Breaking_News ul li').length == 4) $('.Breaking_News ul').addClass('tr4'); 431 if ($('.Breaking_News ul li').length == 5) $('.Breaking_News ul').addClass('tr5'); 432 if ($('.Breaking_News ul li').length == 6) $('.Breaking_News ul').addClass('tr6'); 433 if ($('.Breaking_News ul li').length == 7) $('.Breaking_News ul').addClass('tr7'); 434 if ($('.Breaking_News ul li').length == 8) $('.Breaking_News ul').addClass('tr8'); 435 if ($('.Breaking_News ul li').length == 9) $('.Breaking_News ul').addClass('tr9'); 436}); 437 438// END: News ticker - count articles 439 440// BEGIN: Script scroll top 441 442$(window).bind('load', function () { 443 var offset = 600; 444 var duration = 300; 445 $(window).scroll(function () { 446 if (jQuery(this).scrollTop() > offset) { 447 jQuery('.back-to-top').slideDown(duration); 448 } else {
449 jQuery('.back-to-top').slideUp(duration); 450 } 451 }); 452 jQuery('.back-to-top').click(function (event) { 453 event.preventDefault(); 454 jQuery('html, body').animate({ 455 scrollTop: 0 456 }, duration); 457 return false; 458 }); 459}); 460 461// END: Script scroll top 462 463 464// BEGIN: Read Cookie 465 466/*$(document).ready(function () { 467 setInterval(function () { 468 if (readCookie('loginStatus') != 'Yes') { 469 $('.login-box').css('display', 'block'); 470 $('.logout-box').css('display', 'none'); 471 } 472 else { 473 $('.login-box').css('display', 'none'); 474 $('.logout-box').css('display', 'block'); 475 } 476 }, 10); 477});*/ 478 479// END: Read Cookie 480 481// BEGIN: Tooltitle 482/* 483$(document).ready(function () { 484 $('img, span, div').each(function () { if ($(this).is("[title]")) { $(this).addClass('tt'); } }); 485 $('#logo img').removeClass('tt'); 486 $.fn.myFunction = function () { Tipped.create('.tt', { ajax: false, closeButton: false, showOn: 'hover', skin: 'black', fixed: true, target: 'mouse', maxWidth: 500 }); } 487 $.fn.myFunction(); 488}); 489*/ 490// END: Tooltitle 491 492 493 494 495// BEGIN: Popup Height 496/* 497$(document).ready(function () { 498 if ($(document).width() < 769) { 499 setInterval(function () { 500 $('.popup4-article').css('height', $(window).height() - 100); 501 }, 10); 502 } 503}); 504*/ 505// END: Popup Height 506 507 508// BEGIN: Section Layout 509 510$(document).ready(function () { 511 512 if (!$('.uncommentx').length) { $('.archive-load_more').remove(); } // Remove load more when previous article per page = 0 513 514 $('.archive-load_more').click(function () { // Click to view more archived articles 515 $('.uncommentx').uncomment(true); 516 $('.archive-load_more').css('display', 'none'); 517 }); 518 519 $('.article-section-body').each(function () { 520 if ($(this).children('span').hasClass('pagemore')) { 521 $(this).next('.article-section-more').css('display', 'inline-block'); 522 } 523 else { 524 $(this).next('.article-section-more').css('display', 'none'); 525 } 526 $('.article-section-body').css('max-height', 'none'); 527 if ($(this).height() > 72) { 528 $(this).next('.article-section-more').css('display', 'inline-block'); 529 } 530 else { 531 if ($(this).children('span').hasClass('pagemore')) 532 $(this).next('.article-section-more').css('display', 'inline-block'); 533 else 534 $(this).next('.article-section-more').css('display', 'none'); 535 } 536 $('.article-section-body').css('max-height', '72px'); 537 $('.article-section-image img[src^=\'/images/blank.gif\']').parents('.article-section-image').css('display', 'none'); 538 if ($(window).width() > 768) { 539 $('.article-section-image img[src^=\'/images/blank.gif\']').parents('.article-section-image').siblings('.article-section-heading').css('width', '100%'); 540 $('.article-section-image img[src^=\'/images/blank.gif\']').parents('.article-section-image').siblings('.article-section-date').css('width', '100%'); 541 $('.article-section-image img[src^=\'/images/blank.gif\']').parents('.article-section-image').siblings('.article-section-body').css('width', '100%'); 542 } 543 }); 544}); 545 546// END: Section Layout 547 548 549// BEGIN: Popup 550 551function OpenPopup4(pageUrl, window_type, fwidth, fheight) { 552 $.magnificPopup.open({ 553 items: [ 554 { 555 src: pageUrl, // can be a HTML string, jQuery object, or CSS selector 556 type: window_type 557 } 558 ], 559 gallery: { enabled: true }, 560 modal: true, 561 iframe: { markup: '<div class="popup4-article">' + '<div class="mfp-iframe-scaler" >' + '<button title="Close (Esc)" type="button" class="mfp-close">â</button>' + '<iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe>' + '</div></div>' } 562 }); 563} 564 565function OpenPopup2(pageUrl, window_type, fwidth, fheight) { 566 $.magnificPopup.open({ 567 items: [ 568 { 569 src: pageUrl, // can be a HTML string, jQuery object, or CSS selector 570 type: window_type 571 } 572 ], 573 gallery: { enabled: true }, 574 modal: true, 575 iframe: { markup: '<div class="popup4-article">' + '<div class="mfp-iframe-scaler" >' + '<button title="Close (Esc)" type="button" class="mfp-close">â</button>' + '<iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe>' + '</div></div>' } 576 });
577} 578 579// END: Popup 580 581 582// BEGIN: Load More 583 584(function ($) { 585 $.fn.uncomment = function (recurse) { 586 $(this).contents().each(function () { 587 if (recurse && this.hasChildNodes()) { 588 $(this).uncomment(recurse); 589 } else if (this.nodeType == 8) { 590 var e = $('<span>' + this.nodeValue + '</span>'); 591 $(this).replaceWith(e.contents()); 592 } 593 }); 594 }; 595})(jQuery); 596 597 598$(document).ready(function () { 599 600 if (!$('.uncomment2').length) { // If there are no more article after Load more 601 $('.load_more').css('display', 'none'); 602 } 603 604 $('.load_more').click(function () { // Load more articles on click 605 606 if ($('.uncomment1').css('display') == 'block' && $('.uncomment2').css('display') == 'none') { 607 $('.uncomment2').css('display', 'block'); 608 $('.uncomment2').uncomment(true); 609 } 610 else if ($('.uncomment2').css('display') == 'block' && $('.uncomment3').css('display') == 'none') { 611 $('.uncomment3').css('display', 'block'); 612 $('.uncomment3').uncomment(true); 613 } 614 else if ($('.uncomment3').css('display') == 'block' && $('.uncomment4').css('display') == 'none') { 615 $('.uncomment4').css('display', 'block'); 616 $('.uncomment4').uncomment(true); 617 } 618 else if ($('.uncomment4').css('display') == 'block' && $('.uncomment5').css('display') == 'none') { 619 $('.uncomment5').css('display', 'block'); 620 $('.uncomment5').uncomment(true); 621 } 622 else if ($('.uncomment5').css('display') == 'block' && $('.uncomment6').css('display') == 'none') { 623 $('.uncomment6').css('display', 'block'); 624 $('.uncomment6').uncomment(true); 625 } 626 else if ($('.uncomment6').css('display') == 'block' && $('.uncomment7').css('display') == 'none') { 627 $('.uncomment7').css('display', 'block'); 628 $('.uncomment7').uncomment(true); 629 } 630 else if ($('.uncomment7').css('display') == 'block' && $('.uncomment8').css('display') == 'none') { 631 $('.uncomment8').css('display', 'block'); 632 $('.uncomment8').uncomment(true); 633 } 634 else if ($('.uncomment8').css('display') == 'block' && $('.uncomment9').
634css('display') == 'none') { 635 $('.uncomment9').css('display', 'block'); 636 $('.uncomment9').uncomment(true); 637 } 638 else if ($('.uncomment9').css('display') == 'block' && $('.uncomment10').css('display') == 'none') { 639 $('.uncomment10').css('display', 'block'); 640 $('.uncomment10').uncomment(true); 641 } 642 else if ($('.uncomment10').css('display') == 'block' && $('.uncomment11').css('display') == 'none') { 643 $('.uncomment11').css('display', 'block'); 644 $('.uncomment11').uncomment(true); 645 } 646 else if ($('.uncomment11').css('display') == 'block' && $('.uncomment12').css('display') == 'none') { 647 $('.uncomment12').css('display', 'block'); 648 $('.uncomment12').uncomment(true); 649 } 650 else if ($('.uncomment12').css('display') == 'block' && $('.uncomment13').css('display') == 'none') { 651 $('.uncomment13').css('display', 'block'); 652 $('.uncomment13').uncomment(true); 653 } 654 else if ($('.uncomment13').css('display') == 'block' && $('.uncomment14').css('display') == 'none') { 655 $('.uncomment14').css('display', 'block'); 656 $('.uncomment14').uncomment(true); 657 } 658 }); 659 660 $('.load_more').click(function () { // Remove "Load More" if next pages not available 661 662 if ($('.uncomment2').length) { } 663 else { 664 if ($('.uncomment1').css('display') == 'block') { 665 $('.load_more').css('display', 'none'); 666 } 667 } 668 669 if ($('.uncomment3').length) { } 670 else { 671 if ($('.uncomment2').css('display') == 'block') { 672 $('.load_more').css('display', 'none'); 673 } 674 } 675 if ($('.uncomment4').length) { } 676 else { 677 if ($('.uncomment3').css('display') == 'block') { 678 $('.load_more').css('display', 'none'); 679 } 680 } 681 if ($('.uncomment5').length) { } 682 else { 683 if ($('.uncomment4').css('display') == 'block') { 684 $('.load_more').css('display', 'none'); 685 } 686 } 687 if ($('.uncomment6').length) { } 688 else { 689 if ($('.uncomment5').css('display') == 'block') { 690 $('.load_more').css('display', 'none'); 691 } 692 } 693 if ($('.uncomment7').length) { } 694 else { 695 if ($('.uncomment6').css('display') == 'block') { 696 $('.load_more').css('display', 'none'); 697 } 698 } 699 if ($('.uncomment8').length) { } 700 else { 701 if ($('.uncomment7').css('display') == 'block') { 702 $('.load_more').css('display', 'none'); 703 } 704 } 705 if ($('.uncomment9').length) { } 706 else { 707 if ($('.uncomment8').css('display') == 'block') { 708 $('.load_more').css('display', 'none'); 709 } 710 } 711 if ($('.uncomment10').length) { } 712 else {
713 if ($('.uncomment9').css('display') == 'block') { 714 $('.load_more').css('display', 'none'); 715 } 716 } 717 718 if ($('.uncomment11').length) { } 719 else { 720 if ($('.uncomment10').css('display') == 'block') { 721 $('.load_more').css('display', 'none'); 722 } 723 } 724 725 if ($('.uncomment12').length) { } 726 else { 727 if ($('.uncomment11').css('display') == 'block') { 728 $('.load_more').css('display', 'none'); 729 } 730 } 731 732 if ($('.uncomment13').length) { } 733 else { 734 if ($('.uncomment12').css('display') == 'block') { 735 $('.load_more').css('display', 'none'); 736 } 737 } 738 739 if ($('.uncomment14').length) { } 740 else { 741 if ($('.uncomment13').css('display') == 'block') { 742 $('.load_more').css('display', 'none'); 743 } 744 } 745 746 }); 747}); 748 749// END: Load More 750 751 752// BEGIN: Preview Group1 753 754 755 756// END: Preview Group1 757 758// BEGIN: Window resize on iPad 759 760$(window).bind('load', function () { 761 $(window).resize(function () { 762 if ($(window).width() == 768 || $(window).width() == 1024) { 763 location.reload(); 764 } 765 }); 766}); 767 768// END: Window resize on iPad 769 770// BEGIN: Remove Logo Title 771 772$(document).ready(function () { 773 $('#logo img').removeAttr('title'); 774}); 775 776// END: Remove Logo Title 777 778// BEGIN: Additional JS for more menus 779 780$(window).bind('load', function () { 781 if ($(window).width() > 1023) { 782 var mh = $('div.menubodyhorizontal').outerHeight(true) + 5; 783 if ($('.menu_div').outerHeight(true) > mh) { 784 $('.menu_div').addClass('menu_div1'); 785 } 786 } 787}); 788 789// END: Additional JS for more menus 790 791 792 793// Read More About Us 794document.addEventListener("DOMContentLoaded", function() { 795document.querySelectorAll('.read-more-about').forEach(link => { 796link.addEventListener('click', function(event) { 797event.preventDefault(); 798document.getElementById('modalTitle-about').innerText = this.getAttribute('data-title'); 799let contentId = this.getAttribute('data-target'); 800document.getElementById('modalBody-about').innerHTML = document.getElementById(contentId).innerHTML; 801document.getElementById('readMoreModal-about').style.display = 'block'; 802}); 803}); 804}); 805 806function closeModalAbout() { 807document.getElementById('readMoreModal-about').style.display = 'none'; 808}
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.