{"version":3,"sources":["webpack://hooboo2.0/./node_modules/_lib-flexible@0.3.2@lib-flexible/flexible.js","webpack://hooboo2.0/./public/scss/case.scss","webpack://hooboo2.0/./public/scss/common.scss","webpack://hooboo2.0/./public/scss/index.scss","webpack://hooboo2.0/./public/scss/inside.scss","webpack://hooboo2.0/./public/scss/inside2.scss","webpack://hooboo2.0/./public/js/young.js","webpack://hooboo2.0/webpack/bootstrap","webpack://hooboo2.0/webpack/runtime/compat get default export","webpack://hooboo2.0/webpack/runtime/define property getters","webpack://hooboo2.0/webpack/runtime/hasOwnProperty shorthand","webpack://hooboo2.0/webpack/runtime/make namespace object","webpack://hooboo2.0/./entry.js"],"names":[],"mappings":";;;;;;;;;;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD;;AAErD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,aAAa;AACb;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;AACL;AACA;AACA,SAAS;AACT;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,8CAA8C;;;;;;;;;;;;;ACrH/C;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;;;;ACAA;AACA;AACA;;;;;;;UCFA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA,cAAc,0BAA0B,EAAE;WAC1C,cAAc,eAAe;WAC7B,gCAAgC,YAAY;WAC5C;WACA,E;;;;;WCPA;WACA;WACA;WACA;WACA,wCAAwC,yCAAyC;WACjF;WACA;WACA,E;;;;;WCPA,6CAA6C,wDAAwD,E;;;;;WCArG;WACA;WACA;WACA,sDAAsD,kBAAkB;WACxE;WACA,+CAA+C,cAAc;WAC7D,E;;;;;;;;;;;;;;;;;;;;ACNqB;AACqB;AACR;AACD;AACD;AACE;AACC;AACnC,GAAG,sDAAC;AACJ;AACA;AACA;AACA,GAAG;;AAEH,CAAC;AACD,KAAK,sDAAC;AACN;AACA;AACA;AACA,MAAM,uDAAC;AACP;AACA;AACA;AACA,KAAK;AACL;;AAEA,KAAK,sDAAC;AACN;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,EAAE,uDAAC;AACH,gDAAgD,kBAAkB,MAAM,iBAAiB,GAAG,MAAM;AAClG,GAAG;AACH,CAAC;AACD,uDAAC;AACD;AACA;AACA,GAAG;AACH,EAAE,uDAAC;AACH;AACA,8BAA8B,kBAAkB,MAAM,iBAAiB,GAAG,MAAM;AAChF,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD,mBAAmB,MAAM,iBAAiB,GAAG,MAAM;AACxG;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA,gFAAgF,eAAe;AAC/F;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,CAAC;AACD,2E","file":"entry.bundle.js","sourcesContent":["\n;(function(win, lib) {\n var doc = win.document;\n var docEl = doc.documentElement;\n var metaEl = doc.querySelector('meta[name=\"viewport\"]');\n var flexibleEl = doc.querySelector('meta[name=\"flexible\"]');\n var dpr = 0;\n var scale = 0;\n var tid;\n var flexible = lib.flexible || (lib.flexible = {});\n\n if (metaEl) {\n console.warn('将根据已有的meta标签来设置缩放比例');\n var match = metaEl.getAttribute('content').match(/initial\\-scale=([\\d\\.]+)/);\n if (match) {\n scale = parseFloat(match[1]);\n dpr = parseInt(1 / scale);\n }\n } else if (flexibleEl) {\n var content = flexibleEl.getAttribute('content');\n if (content) {\n var initialDpr = content.match(/initial\\-dpr=([\\d\\.]+)/);\n var maximumDpr = content.match(/maximum\\-dpr=([\\d\\.]+)/);\n if (initialDpr) {\n dpr = parseFloat(initialDpr[1]);\n scale = parseFloat((1 / dpr).toFixed(2));\n }\n if (maximumDpr) {\n dpr = parseFloat(maximumDpr[1]);\n scale = parseFloat((1 / dpr).toFixed(2));\n }\n }\n }\n\n if (!dpr && !scale) {\n var isAndroid = win.navigator.appVersion.match(/android/gi);\n var isIPhone = win.navigator.appVersion.match(/iphone/gi);\n var devicePixelRatio = win.devicePixelRatio;\n if (isIPhone) {\n // iOS下,对于2和3的屏,用2倍的方案,其余的用1倍方案\n if (devicePixelRatio >= 3 && (!dpr || dpr >= 3)) {\n dpr = 3;\n } else if (devicePixelRatio >= 2 && (!dpr || dpr >= 2)){\n dpr = 2;\n } else {\n dpr = 1;\n }\n } else {\n // 其他设备下,仍旧使用1倍的方案\n dpr = 1;\n }\n scale = 1 / dpr;\n }\n\n docEl.setAttribute('data-dpr', dpr);\n if (!metaEl) {\n metaEl = doc.createElement('meta');\n metaEl.setAttribute('name', 'viewport');\n metaEl.setAttribute('content', 'initial-scale=' + scale + ', maximum-scale=' + scale + ', minimum-scale=' + scale + ', user-scalable=no');\n if (docEl.firstElementChild) {\n docEl.firstElementChild.appendChild(metaEl);\n } else {\n var wrap = doc.createElement('div');\n wrap.appendChild(metaEl);\n doc.write(wrap.innerHTML);\n }\n }\n\n function refreshRem(){\n var width = docEl.getBoundingClientRect().width;\n // if (width / dpr > 540) {\n // width = 540 * dpr;\n // }\n var rem = width / 10;\n docEl.style.fontSize = rem + 'px';\n flexible.rem = win.rem = rem;\n }\n\n win.addEventListener('resize', function() {\n clearTimeout(tid);\n tid = setTimeout(refreshRem, 300);\n }, false);\n win.addEventListener('pageshow', function(e) {\n if (e.persisted) {\n clearTimeout(tid);\n tid = setTimeout(refreshRem, 300);\n }\n }, false);\n\n if (doc.readyState === 'complete') {\n doc.body.style.fontSize = 12 * dpr + 'px';\n } else {\n doc.addEventListener('DOMContentLoaded', function(e) {\n doc.body.style.fontSize = 12 * dpr + 'px';\n }, false);\n }\n\n\n refreshRem();\n\n flexible.dpr = win.dpr = dpr;\n flexible.refreshRem = refreshRem;\n flexible.rem2px = function(d) {\n var val = parseFloat(d) * this.rem;\n if (typeof d === 'string' && d.match(/rem$/)) {\n val += 'px';\n }\n return val;\n }\n flexible.px2rem = function(d) {\n var val = parseFloat(d) / this.rem;\n if (typeof d === 'string' && d.match(/px$/)) {\n val += 'rem';\n }\n return val;\n }\n\n})(window, window['lib'] || (window['lib'] = {}));\n","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","function y(DOM){\r\n return Array.prototype.slice.call(document.querySelectorAll(DOM))\r\n}\r\nexport {\r\n y\r\n}","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import 'lib-flexible'\r\nimport { y } from './public/js/young.js'\r\nimport './public/scss/common.scss'\r\nimport './public/scss/index.scss'\r\nimport './public/scss/case.scss'\r\nimport './public/scss/inside.scss'\r\nimport './public/scss/inside2.scss'\r\nif(y('.index')[0]){\r\n let hooboo = new Swiper(\".hooboo\", {\r\n autoplay: true,\r\n speed: 0,\r\n });\r\n \r\n}else{\r\n if(y('body>.website')[0]){\r\n let flag = 0\r\n let timer = setInterval(function(){\r\n flag++\r\n y('.websiteSloganNumber div .number span')[0].innerText = flag\r\n if(flag>=900){\r\n clearInterval(timer)\r\n }\r\n },3)\r\n }\r\n \r\n if(y('body>.about')[0]){\r\n new Swiper('.about .banner .swiper-container',{\r\n slidesPerView : 'auto',\r\n autoplay:true,\r\n spaceBetween:10,\r\n loop:true,\r\n speed:1000\r\n })\r\n }\r\n}\r\nlet ulheight = []\r\ndocument.addEventListener('click',function(){\r\n y('.y-select').forEach(function (item, index) {\r\n item.querySelector('ul').style = `height:0 ;visibility:hidden;top:${-ulheight[index]}px;top:0;`;\r\n })\r\n})\r\ny('.y-select').forEach(function (item, index) {\r\n item.addEventListener('click',function(e){\r\n window.event? window.event.cancelBubble = true : e.stopPropagation();\r\n },false)\r\n y('.y-select ul').forEach(function (item, index) {\r\n ulheight.push(item.offsetHeight);\r\n item.style = `height:0 ;visibility:hidden;top:${-ulheight[index]}px;top:0;`;\r\n });\r\n item.querySelector('span').onclick = function () {\r\n let that = this;\r\n if (this.nextElementSibling.style.visibility === 'visible') {\r\n this.nextElementSibling.style.height = '0';\r\n this.nextElementSibling.style.visibility = 'hidden';\r\n that.nextElementSibling.style.top = '0';\r\n this.classList.remove('icon');\r\n }\r\n else {\r\n this.classList.add('icon');\r\n this.nextElementSibling.style = `height:0 ;visibility:visible;top:${-ulheight[index]}px;top:0;`;\r\n setTimeout(function () {\r\n that.nextElementSibling.style.height = ulheight[index] + 'px';\r\n that.nextElementSibling.style.top = -ulheight[index]+ 'px';\r\n }, 0);\r\n }\r\n };\r\n item.querySelectorAll('li').forEach(function (item, index) {\r\n item.onclick = function () {\r\n this.parentNode.parentNode.querySelector('span').innerHTML = `${this.innerText}`;\r\n this.parentNode.parentNode.querySelector('span').classList.remove('icon');\r\n this.parentNode.parentNode.querySelector('input').value = this.innerText;\r\n this.parentNode.style.height = '0';\r\n this.parentNode.style.top = '0';\r\n this.parentNode.style.visibility = 'hidden';\r\n };\r\n });\r\n});\r\ndocument.body.offsetWidth<1440?window.location.replace('/redirect.html'):''"],"sourceRoot":""}