/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { /******/ configurable: false, /******/ enumerable: true, /******/ get: getter /******/ }); /******/ } /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = "/"; /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 1); /******/ }) /************************************************************************/ /******/ ({ /***/ "./resources/assets/js/public.js": /***/ (function(module, exports) { var screenHeight = $(window).height(), headImageLoaded = false; function loadImg() { $("img.lazyload").lazyload({ effect: 'fadeIn', skip_invisible: false, threshold: screenHeight }); } function loadHeadImg() { if (headImageLoaded) { return; } $("img.headImageLazyload").lazyload({ effect: 'fadeIn', skip_invisible: false, threshold: screenHeight }); } $(document).ready(function () { loadImg(); $(document).scroll(function () { var LookHeight = $(window).height(); var WindHeight = $(window).scrollTop(); if (WindHeight > LookHeight) { $('#go .top').fadeIn(300); } else { $('#go .top').fadeOut(300); } }); $("#go .top").click(function () { $("html,body").animate({ scrollTop: 0 }, 500); }); $(document).on('click', '.goToLogin', function () { window.location.href = window.location.protocol + '//' + window.location.host + "/account/login?backUrl=" + window.location.href; }); $(document).on('mouseover', '#header .menu', function () { loadHeadImg(); headImageLoaded = true; }); $(document).on("mouseover", "#header .user_control .user", function () { $(this).children('.user_box').show(); }); $(document).on("mouseleave", "#header .user_control .user", function () { $(this).children('.user_box').hide(); }); $(document).on('mouseover', '#header .menu .links li', function () { $(this).addClass('hoverLi').siblings('li').removeClass('hoverLi'); if ($(this).hasClass('hide_pro')) { var index = $(this).index(); var content = $(this).parents('#header').children('.headMoreContent').find('.contentItem').eq(index); $('#header .headMoreContent').height($(this).attr('data-height') * 1 + 80); content.addClass('active').siblings('div').removeClass('active'); } else { $('#header .headMoreContent').height(0); } }); $(document).on('mouseleave', '#header .headMoreContent', function () { $('#header .menu .links li').removeClass('hoverLi'); $('#header .headMoreContent').height(0); }); $(document).on('mouseleave', '#header', function () { $('#header .menu .links li').removeClass('hoverLi'); $('#header .headMoreContent').height(0); }); $(document).on('mouseover', '#header .contentItem .links li', function () { var index = $(this).index(); $(this).addClass('activeLi').siblings('li').removeClass('activeLi'); $(this).parents('.contentItem').children('.choose_pro').children('dl').eq(index).addClass('activeDl').siblings('dl').removeClass('activeDl'); }); $(document).on("click", "#header .search_box .searchNow", function () { var target = $(this).siblings("input"), val = target.val(), reval = target.attr('placeholder'); if (val == "" || val == " ") { val = reval; } location.href = "/search?key=" + val; }); $(document).keyup(function (event) { if (event.keyCode == 13) { if ($('.body .search .search_text')) { $(".body .search .search_btn").trigger("click"); } else { $("#header .search_box .searchNow").trigger("click"); } } }); $(document).on("click", "#header .search_box .searchCloseBtn", function () { $('.appBlackModal').remove(); $('#header').css({ 'z-index': 1001 }); $(this).parents(".search_box").addClass('searchClose'); }); $(document).on("click", "#header .search_box_icon", function () { $('#header').css({ 'z-index': 1010 }); $('#header .search_box').removeClass('searchClose'); $('#header .search_box .searchBoxContent input').focus(); $('body').append('
'); }); $(document).bind("click", function (e) { var target = $(e.target); if (target.closest(".searchInput").length == 0 && target.closest('.search_box_icon').length == 0) { $('.appBlackModal').remove(); $("#header .search_box").addClass("searchClose"); } }); $(document).on("click", "#header .layout", function () { var token = $.cookie('_ws_a_token'); $.cookie('_ws_a_token', null, { path: '/', expires: -1 }); $.cookie('_ws_a_username', null, { path: '/', expires: -1 }); $.cookie('_ws_a_logged', null, { path: '/', expires: -1 }); $.ajax({ type: "get", url: '/api/account/account/logout', headers: { Authorization: 'Bearer ' + token }, complete: function complete() { window.location.href = "/"; } }); }); }); /***/ }), /***/ 1: /***/ (function(module, exports, __webpack_require__) { module.exports = __webpack_require__("./resources/assets/js/public.js"); /***/ }) /******/ });