1 |
- {"version":3,"sources":["node_modules/amfe-flexible/index.js","scripts/index.js","C:/Users/Administrator.PC-20170415TVUO/AppData/Roaming/nvm/v10.6.0/node_modules/parcel-bundler/src/builtins/bundle-url.js","C:/Users/Administrator.PC-20170415TVUO/AppData/Roaming/nvm/v10.6.0/node_modules/parcel-bundler/src/builtins/css-loader.js"],"names":["pxPerREM","Number","document","documentElement","getAttribute","match","bottom","offsetHeight","E_top","querySelector","REM2Px","rem","nav_links","Array","from","querySelectorAll","Heights","forEach","_link","_index","addEventListener","_height","window","scroll","bundleURL","getBundleURLCached","getBundleURL","Error","err","matches","stack","getBaseURL","url","replace","exports","bundle","require","updateLink","link","newLink","cloneNode","onload","remove","href","split","Date","now","parentNode","insertBefore","nextSibling","cssTimeout","reloadCSS","setTimeout","links","i","length","module"],"mappings":"AEAA,ACAA,AHAA,IEAIwB,ACAAW,MAAM,GDAG,ACAAC,GDAG,IAAhB,ACAoB,CAAC,cAAD,CAApB;AHCA;AEAA,ACCA,AHAA,ACFA,SCCSX,ACCAY,UAAT,CAAoBC,IAApB,EAA0B,CDD1B,GAA8B;AAC5B,ACCA,AHAF,MEDM,ACCAC,CDDCf,MCCM,GDDX,ACCcc,EDDE,ECCE,CAACE,SAAL,EAAd;ADAEhB,AFCJ,ACHA,ICEIA,SAAS,GAAGE,YAAY,EAAxB;AACD,ACADa,AHCF,EGDEA,OAAO,CAACE,MAAR,GAAiB,YAAY;AAC3BH,AHCJ,ACJA,IEGIA,IAAI,CAACI,MAAL;ADCF,ACAC,AHCH,GGHE,MDEOlB,SAAP;AACD,AFCD,ACHA,IAAMxB,QAAQ,GAAGC,MAAM,CAACC,QAAQ,CAACC,eAAT,CAAyBC,YAAzB,CAAsC,OAAtC,EAA+CC,KAA/C,CAAqD,WAArD,EAAkE,CAAlE,CAAD,CAAvB;AEEEkC,AHEF,ACHA,EECEA,EFDIjC,KECG,CAACqC,AFDE,GAAGzC,CECb,GAAeoC,IAAI,AFDE,CECDK,AFDExC,IECP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ACFC,CAFD;AECAiC,AHIA,MGJM,CAACtB,OAAP,GAAiBiB,SAAjB;AHKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"scripts.bcf3243b.js","sourceRoot":"..","sourcesContent":["(function flexible (window, document) {\n var docEl = document.documentElement\n var dpr = window.devicePixelRatio || 1\n\n // adjust body font size\n function setBodyFontSize () {\n if (document.body) {\n document.body.style.fontSize = (12 * dpr) + 'px'\n }\n else {\n document.addEventListener('DOMContentLoaded', setBodyFontSize)\n }\n }\n setBodyFontSize();\n\n // set 1rem = viewWidth / 10\n function setRemUnit () {\n var rem = docEl.clientWidth / 10\n docEl.style.fontSize = rem + 'px'\n }\n\n setRemUnit()\n\n // reset rem unit on page resize\n window.addEventListener('resize', setRemUnit)\n window.addEventListener('pageshow', function (e) {\n if (e.persisted) {\n setRemUnit()\n }\n })\n\n // detect 0.5px supports\n if (dpr >= 2) {\n var fakeBody = document.createElement('body')\n var testElement = document.createElement('div')\n testElement.style.border = '.5px solid transparent'\n fakeBody.appendChild(testElement)\n docEl.appendChild(fakeBody)\n if (testElement.offsetHeight === 1) {\n docEl.classList.add('hairlines')\n }\n docEl.removeChild(fakeBody)\n }\n}(window, document))\n","import 'amfe-flexible'\r\nimport '../styles/reset.css'\r\nimport '../styles/index.scss'\r\n\r\n\r\nconst pxPerREM = Number(document.documentElement.getAttribute('style').match(/\\d+\\.?\\d+/)[0])\r\nconst bottom = document.documentElement.offsetHeight + 'px'\r\nconst E_top = document.querySelector('#top')\r\n\r\nfunction REM2Px(rem){\r\n if(rem !== 'number') {\r\n rem = Number(rem)\r\n return rem * pxPerREM\r\n } else {\r\n return rem\r\n }\r\n}\r\n\r\nlet nav_links = Array.from(document.querySelectorAll('.nav a'))\r\nconst Heights = ['33.351351rem','55.032432rem','76.216216rem', bottom]\r\n\r\nnav_links.forEach((_link, _index) => {\r\n _link.addEventListener('click', () => {\r\n let _height = Number(Heights[_index].match(/\\d+\\.?\\d+/)[0])\r\n window.scroll(0, REM2Px(_height))\r\n })\r\n})\r\n\r\nE_top.addEventListener('click', () => {\r\n window.scroll(0,0)\r\n})\r\n","var bundleURL = null;\nfunction getBundleURLCached() {\n if (!bundleURL) {\n bundleURL = getBundleURL();\n }\n\n return bundleURL;\n}\n\nfunction getBundleURL() {\n // Attempt to find the URL of the current script and use that as the base URL\n try {\n throw new Error;\n } catch (err) {\n var matches = ('' + err.stack).match(/(https?|file|ftp|chrome-extension|moz-extension):\\/\\/[^)\\n]+/g);\n if (matches) {\n return getBaseURL(matches[0]);\n }\n }\n\n return '/';\n}\n\nfunction getBaseURL(url) {\n return ('' + url).replace(/^((?:https?|file|ftp|chrome-extension|moz-extension):\\/\\/.+)\\/[^/]+$/, '$1') + '/';\n}\n\nexports.getBundleURL = getBundleURLCached;\nexports.getBaseURL = getBaseURL;\n","var bundle = require('./bundle-url');\n\nfunction updateLink(link) {\n var newLink = link.cloneNode();\n newLink.onload = function () {\n link.remove();\n };\n newLink.href = link.href.split('?')[0] + '?' + Date.now();\n link.parentNode.insertBefore(newLink, link.nextSibling);\n}\n\nvar cssTimeout = null;\nfunction reloadCSS() {\n if (cssTimeout) {\n return;\n }\n\n cssTimeout = setTimeout(function () {\n var links = document.querySelectorAll('link[rel=\"stylesheet\"]');\n for (var i = 0; i < links.length; i++) {\n if (bundle.getBaseURL(links[i].href) === bundle.getBundleURL()) {\n updateLink(links[i]);\n }\n }\n\n cssTimeout = null;\n }, 50);\n}\n\nmodule.exports = reloadCSS;\n"]}
|