vendor: 3,618 bytes, lines 1-88
1/******/ (function(modules) { // webpackBootstrap 2/******/ // The module cache 3/******/ var installedModules = {}; 4/******/ 5/******/ // The require function 6/******/ function __webpack_require__(moduleId) { 7/******/ 8/******/ // Check if module is in cache 9/******/ if(installedModules[moduleId]) { 10/******/ return installedModules[moduleId].exports; 11/******/ } 12/******/ // Create a new module (and put it into the cache) 13/******/ var module = installedModules[moduleId] = { 14/******/ i: moduleId, 15/******/ l: false, 16/******/ exports: {} 17/******/ }; 18/******/ 19/******/ // Execute the module function 20/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); 21/******/ 22/******/ // Flag the module as loaded 23/******/ module.l = true; 24/******/ 25/******/ // Return the exports of the module 26/******/ return module.exports; 27/******/ } 28/******/ 29/******/ 30/******/ // expose the modules object (__webpack_modules__) 31/******/ __webpack_require__.m = modules; 32/******/ 33/******/ // expose the module cache 34/******/ __webpack_require__.c = installedModules; 35/******/ 36/******/ // define getter function for harmony exports 37/******/ __webpack_require__.d = function(exports, name, getter) { 38/******/ if(!__webpack_require__.o(exports, name)) { 39/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); 40/******/ } 41/******/ }; 42/******/ 43/******/ // define __esModule on exports 44/******/ __webpack_require__.r = function(exports) { 45/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { 46/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); 47/******/ } 48/******/ Object.defineProperty(exports, '__esModule', { value: true }); 49/******/ }; 50/******/ 51/******/ // create a fake namespace object 52/******/ // mode & 1: value is a module id, require it 53/******/ // mode & 2: merge all properties of value into the ns 54/******/ // mode & 4: return value when already ns object 55/******/ // mode & 8|1: behave like require 56/******/ __webpack_require__.t = function(value, mode) { 57/******/ if(mode & 1) value = __webpack_require__(value); 58/******/ if(mode & 8) return value; 59/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; 60/******/ var ns = Object.create(null); 61/******/ __webpack_require__.r(ns); 62/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); 63/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); 64/******/ return ns; 65/******/ }; 66/******/ 67/******/ // getDefaultExport function for compatibility with non-harmony modules 68/******/ __webpack_require__.n = function(module) { 69/******/ var getter = module && module.__esModule ? 70/******/ function getDefault() { return module['default']; } : 71/******/ function getModuleExports() { return module; }; 72/******/ __webpack_require__.d(getter, 'a', getter); 73/******/ return getter; 74/******/ }; 75/******/ 76/******/ // Object.prototype.hasOwnProperty.call 77/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; 78/******/ 79/******/ // __webpack_public_path__ 80/******/ __webpack_require__.p = ""; 81/******/ 82/******/ 83/******/ // Load entry module and return exports 84/******/ return __webpack_require__(__webpack_require__.s = "./dev-assets/js/main.js"); 85/******/ }) 86/************************************************************************/ 87/******/ ({ 88
89/***/ "./dev-assets/js/main.js": 90/*!*******************************!*\ 91 !*** ./dev-assets/js/main.js ***! 92 \*******************************/ 93/*! no static exports found */ 94/***/ (function(module, exports, __webpack_require__) { 95 96"use strict"; 97 98 99__webpack_require__(/*! ./starter */ "./dev-assets/js/starter.js"); 100 101+function ($) { 102 var slickArrLeft = "\n <div class=\"slick-prev newslist-arrow newslist-arrow-prev\">\n <svg class=\"svg-icon\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"1.1\" id=\"Layer_1\" x=\"0px\" y=\"0px\" viewBox=\"0 0 511.991 511.991\" style=\"enable-background:new 0 0 511.991 511.991;\" xml:space=\"preserve\" width=\"50px\" height=\"50px\">\n <path d=\"M153.433,255.991L381.037,18.033c4.063-4.26,3.917-11.01-0.333-15.083c-4.229-4.073-10.979-3.896-15.083,0.333 L130.954,248.616c-3.937,4.125-3.937,10.625,0,14.75L365.621,508.7c2.104,2.188,4.896,3.292,7.708,3.292 c2.646,0,5.313-0.979,7.375-2.958c4.25-4.073,4.396-10.823,0.333-15.083L153.433,255.991z\" data-original=\"#000000\" class=\"active-path\" data-old_color=\"#000000\" />\n </svg>\n </div>"; 103 var slickArrRight = "\n <div class=\"slick-prev newslist-arrow newslist-arrow-next\">\n <svg class=\"svg-icon\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"1.1\" id=\"Layer_1\" x=\"0px\" y=\"0px\" viewBox=\"0 0 511.995 511.995\" style=\"enable-background:new 0 0 511.995 511.995;\" xml:space=\"preserve\" width=\"50px\" height=\"50px\">\n <path d=\"M381.039,248.62L146.373,3.287c-4.083-4.229-10.833-4.417-15.083-0.333c-4.25,4.073-4.396,10.823-0.333,15.083 L358.56,255.995L130.956,493.954c-4.063,4.26-3.917,11.01,0.333,15.083c2.063,1.979,4.729,2.958,7.375,2.958 c2.813,0,5.604-1.104,7.708-3.292L381.039,263.37C384.977,259.245,384.977,252.745,381.039,248.62z\" data-original=\"#000000\" class=\"active-path\" data-old_color=\"#000000\" />\n </svg>\n </div>"; 104 105 function searchToggler() { 106 $("#search-toggler").on("click", function (event) { 107 event.preventDefault(); 108 $(".top-search-form").slideToggle(); 109 $(".top-search-form .search-field").focus(); 110 }); 111 } 112 113 jQuery(document).on("focus", ".circular-focus", function () { 114 jQuery(jQuery(this).data("goto")).focus(); 115 }); 116 jQuery(document).on("click", '.mr-mobile-menu ul li:not(".menu-item-has-children") a', function () { 117 jQuery("button#mr-close").trigger("click"); 118 }); 119 120 function updateClock() { 121 var currentTimeString, 122 hours, 123 minutes, 124 seconds, 125 ampm, 126 currentTime = new Date(), 127 timeWrapper = $('.newslist-time'); 128 hours = currentTime.getHours(); 129 minutes = currentTime.getMinutes(); 130 seconds = currentTime.getSeconds(); 131 ampm = hours >= 12 ? 'PM' : 'AM'; 132 hours = hours % 12; 133 hours = hours ? hours : 12; // the hour '0' should be '12' 134 135 minutes = minutes < 10 ? '0' + minutes : minutes; 136 seconds = (seconds < 10 ? "0" : "") + seconds; 137 currentTimeString = hours + ":" + minutes + ":" + seconds + ' ' + ampm; 138 139 if (timeWrapper.length > 0) { 140 $(timeWrapper).show(); 141 $(timeWrapper).html(currentTimeString); 142 } 143 } 144 145 function footerMissedSlider() { 146 var sliderWrapper = $('.newslist-feature-news-inner'); 147 148 if (sliderWrapper.length > 0) { 149 var numOfSlide = $(sliderWrapper).find('.newslist-you-missed-space'); 150 151 if ($(window).width() < 480 || numOfSlide.length > 3) { 152 $('.newslist-feature-news-inner').slick({ 153 infinite: true, 154 slidesToShow: 3, 155 slidesToScroll: 1, 156 arrows: true, 157 dots: false, 158 autoplay: true, 159 autoplaySpeed: 2000, 160 prevArrow: slickArrLeft, 161 nextArrow: slickArrRight, 162 responsive: [{ 163 breakpoint: 768, 164 settings: { 165 centerMode: true, 166 centerPadding: '40px', 167 slidesToShow: 3 168 } 169 }, { 170 breakpoint: 480, 171 settings: { 172 centerMode: true, 173 centerPadding: '40px', 174 slidesToShow: 1 175 } 176 }] 177 }); 178 } 179 } 180 } 181 /* DOM ready event */ 182 183 184 $(document).ready(function () { 185 searchToggler(); 186 footerMissedSlider(); 187 setInterval(function () { 188 updateClock(); 189 }, 1000); 190 $('.newslist-latest-post-slider').marquee({ 191 speed: 50, 192 duplicated: true, 193 pauseOnHover: true, 194 startVisible: true 195 }); 196 }); 197 $(window).load(function () { 198 $("#loader-wrapper").fadeOut(); 199 $("#loaded").delay(1000).fadeOut("slow"); 200 }); 201}(jQuery); 202 203/***/ }), 204
205/***/ "./dev-assets/js/mobile-menu.js": 206/*!**************************************!*\ 207 !*** ./dev-assets/js/mobile-menu.js ***! 208 \**************************************/ 209/*! no static exports found */ 210/***/ (function(module, exports, __webpack_require__) { 211 212"use strict"; 213 214 215// shiftMenu 216+function ($) { 217 var classToggler = function classToggler(param) { 218 this.animation = param.animation, this.toggler = param.toggler, this.className = param.className, this.exceptions = param.exceptions; 219 220 this.init = function () { 221 var that = this; // for stop propagation 222 223 var stopToggler = this.implode(this.exceptions); 224 225 if (typeof stopToggler !== 'undefined') { 226 $(document).on('click', stopToggler, function (e) { 227 e.stopPropagation(); 228 }); 229 } // for toggle class 230 231 232 var toggler = this.implode(this.toggler); 233 234 if (typeof toggler !== 'undefined') { 235 $(document).on('click', toggler, function (e) { 236 e.stopPropagation(); 237 e.preventDefault(); 238 that.toggle(); 239 }); 240 } 241 }; //class toggler 242 243 244 this.toggle = function () { 245 var selectors = this.implode(this.animation); 246 247 if (typeof selectors !== 'undefined') { 248 $(selectors).toggleClass(this.className); 249 250 if ($(selectors).hasClass(this.className)) { 251 $('.mr-menu-list > li:first-child a').focus(); 252 } else { 253 $('#menu-icon').focus(); 254 } 255 } 256 }; // array selector maker 257 258 259 this.implode = function (arr, imploder) { 260 // checking arg is array or not 261 if (!(arr instanceof Array)) { 262 return arr; 263 } // setting default imploder 264 265 266 if (typeof imploder == 'undefined') { 267 imploder = ','; 268 } // making selector 269 270 271 var data = arr; 272 var ele = ''; 273 274 for (var j = 0; j < arr.length; j++) { 275 ele += arr[j]; 276 277 if (j !== arr.length - 1) { 278 ele += imploder; 279 } 280 } 281 282 data = ele; 283 return data; 284 }; 285 }; //End mobileMenu 286 287 288 $.fn.mrMobileMenu = function (config) { 289 /* defining default config*/ 290 var defaultConfig = { 291 icon: '#menu-icon', 292 closeIcon: true, 293 overlay: true 294 }; 295 $.extend(defaultConfig, config); 296 var wrapperId = '#' + this.attr('id'); 297 298 if (!$(wrapperId).length) { 299 console.error('Selected Element not found in DOM (Mobile menu plugin)'); 300 return this; 301 } 302 303 var _this = this; 304 305 var shiftMenu = function shiftMenu() { 306 var mobileMenuHTML = '<div>' + $(wrapperId).html() + '</div>', 307 that = this; 308 mobileMenuHTML = $(mobileMenuHTML).find('*').each(function (index, value) { 309 var id = $(value).attr('id'); 310 311 if (id) { 312 $(value).attr('id', 'mr-' + id); 313 } 314 }); 315 /* constructor function */ 316 317 this.init = function () { 318 $(document).ready(function () { 319 that.createMenu(); 320 that.addDownArrow(); 321 that.toggleSubUl(); 322 that.menuToggler(); 323 that.addClassOnFirstUl(); 324 }); 325 }; 326 327 this.createMenu = function () { 328 var closeHTML = defaultConfig.closeIcon ? this.closeMenuIcon() : null, 329 overlayHTML = defaultConfig.overlay ? this.addOverlay() : null; 330 $('body').append('<div class="mr-mobile-menu" id="mr-mobile-menu">' + closeHTML + '<ul class="mr-menu-list">' + mobileMenuHTML.html() + '</ul><button class="circular-focus screen-reader-text" data-goto=".mr-inner-box">Circular focus</button></div>' + overlayHTML); 331 }; 332 333 this.closeMenuIcon = function () { 334 return '<div class="mr-close-wrapper"><button data-goto=".mr-menu-list > li:last-child a" class="circular-focus screen-reader-text">circular focus</button> <button tabindex="0" class="mr-inner-box" id="mr-close"><span class="mr-inner"></span></button> </div>'; 335 }; 336 337 this.addOverlay = function () { 338 return '<div class="mr-mobile-menu-overlay"></div>'; 339 }; 340 341 this.addClassOnFirstUl = function () { 342 if ($('#mr-mobile-menu ul').first().hasClass('menu')) {} else { 343 $('#mr-mobile-menu ul').first().addClass('menu'); 344 } 345 }; 346 347 this.addDownArrow = function () { 348 var $mobileMenu = $('#mr-mobile-menu'), 349 $hasSubUl = $('#mr-mobile-menu .menu-item-has-children'), 350 haveClassOnLi = $mobileMenu.find('.menu-item-has-children'); 351 352 if (haveClassOnLi.length > 0) { 353 $hasSubUl.children('a').append('<a href="#" class="mr-arrow-box"><span class="mr-down-arrow"></span></a>'); 354 } else { 355 $('#mr-mobile-menu ul li:has(ul)').children('a').append('<a href="#" class="mr-arrow-box"><span class="mr-down-arrow"></span></a>'); 356 } 357 }; 358 359 this.toggleSubUl = function () { 360 $(document).on('click', '.mr-arrow-box', toggleSubMenu); 361 362 function toggleSubMenu(e) { 363 e.stopPropagation(); 364 e.preventDefault(); 365 $(this).toggleClass('open').parent().next().slideToggle(); 366 } 367 }; 368 369 this.menuToggler = function () { 370 var menuConfig = { 371 animation: ['.mr-mobile-menu-overlay', '#mr-mobile-menu', 'body', '#menu-icon'], 372 //where class add element 373 exceptions: ['#mr-mobile-menu'], 374 //stop propagation 375 toggler: ['#menu-icon', '.mr-mobile-menu-overlay', '#mr-close'], 376 //class toggle on click
377 className: 'mr-menu-open' 378 }; 379 new classToggler(menuConfig).init(); 380 }; 381 }; 382 /* End shiftMenu */ 383 384 /* instance of shiftmenu */ 385 386 387 new shiftMenu().init(); 388 }; 389 /* End shiftMenu */ 390 391}(jQuery); 392 393/***/ }), 394
395/***/ "./dev-assets/js/skip-link-focus-fix.js": 396/*!**********************************************!*\ 397 !*** ./dev-assets/js/skip-link-focus-fix.js ***! 398 \**********************************************/ 399/*! no static exports found */ 400/***/ (function(module, exports, __webpack_require__) { 401 402"use strict"; 403 404 405(function () { 406 var isIe = /(trident|msie)/i.test(navigator.userAgent); 407 408 if (isIe && document.getElementById && window.addEventListener) { 409 window.addEventListener('hashchange', function () { 410 var id = location.hash.substring(1), 411 element; 412 413 if (!/^[A-z0-9_-]+$/.test(id)) { 414 return; 415 } 416 417 element = document.getElementById(id); 418 419 if (element) { 420 if (!/^(?:a|select|input|button|textarea)$/i.test(element.tagName)) { 421 element.tabIndex = -1; 422 } 423 424 element.focus(); 425 } 426 }, false); 427 } 428})(); 429 430/***/ }), 431
432/***/ "./dev-assets/js/starter.js": 433/*!**********************************!*\ 434 !*** ./dev-assets/js/starter.js ***! 435 \**********************************/ 436/*! no static exports found */ 437/***/ (function(module, exports, __webpack_require__) { 438 439"use strict"; 440 441 442__webpack_require__(/*! ./mobile-menu */ "./dev-assets/js/mobile-menu.js"); 443 444__webpack_require__(/*! ./skip-link-focus-fix.js */ "./dev-assets/js/skip-link-focus-fix.js"); 445 446function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 447 448function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } 449 450function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } 451 452+function ($) { 453 var Starter = /*#__PURE__*/function () { 454 function Starter() { 455 _classCallCheck(this, Starter); 456 457 this.$body = $("body"); 458 this.toggleSearchWithOverlay(); 459 this.mobileMenuInit(); 460 this.triggerEventEscButtonPress(); 461 this.closeMobileMenuOnEscKeyPress(); 462 } 463 464 _createClass(Starter, [{ 465 key: "mobileMenuInit", 466 value: function mobileMenuInit() { 467 var $mrMenu = $("#site-navigation"); 468 $mrMenu.length && $mrMenu.mrMobileMenu(); 469 } 470 }, { 471 key: "triggerEventEscButtonPress", 472 value: function triggerEventEscButtonPress() { 473 document.addEventListener("keydown", function (e) { 474 e = e || window.event; 475 476 if (e.keyCode == 27) { 477 /* Creating custom event */ 478 var event = new Event("onEscKeypressed"); 479 document.dispatchEvent(event); 480 } 481 }); 482 } 483 }, { 484 key: "closeMobileMenuOnEscKeyPress", 485 value: function closeMobileMenuOnEscKeyPress() { 486 var _this = this; 487 488 document.addEventListener("onEscKeypressed", function () { 489 return _this.$body.hasClass("mr-menu-open") && document.getElementById("menu-icon").click(); 490 }); 491 } 492 }, { 493 key: "toggleSearchWithOverlay", 494 value: function toggleSearchWithOverlay() { 495 var _this2 = this; 496 497 var $searchToggler = $(".newslist-toggle-search"); 498 var className = "newslist-search-opened"; 499 var $searchInput = $(".newslist-header-search .search-field"); 500 /* Overlay */ 501 502 var overlayClassName = "newslist-search-overlay"; 503 var overlayHtml = "<div class=\"".concat(overlayClassName, "\"></div>"); 504 var delayAmountToFocusInput = 300; 505 506 var toggleSearech = function toggleSearech() { 507 _this2.$body.toggleClass(className); 508 509 if (_this2.$body.hasClass(className)) { 510 setTimeout(function () { 511 var searchInputValue = $searchInput.val(); 512 $searchInput.val(""); 513 $searchInput.focus().val(searchInputValue); 514 }, delayAmountToFocusInput); 515 516 _this2.$body.prepend(overlayHtml); 517 } else { 518 $(document).find(".".concat(overlayClassName)).remove(); 519 $(".newslist-header-icons .newslist-toggle-search").focus(); 520 } 521 }; 522 523 $searchToggler.length && $searchToggler.on("click", function () { 524 toggleSearech(); 525 }); 526 $(document).on('click', '.newslist-search-overlay', function (e) { 527 toggleSearech(); 528 }); 529 /* Close if Esc key pressed */ 530 531 document.addEventListener("onEscKeypressed", function () { 532 return $(_this2.$body).hasClass(className) && toggleSearech(); 533 }); 534 } 535 }]); 536 537 return Starter; 538 }(); 539 540 $(document).ready(function () { 541 new Starter(); 542 }); 543}(jQuery); 544 545/***/ })
545 546 547/******/ }); 548//# sourceMappingURL=main.js.map
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.