123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481 |
- // modules are defined as an array
- // [ module function, map of requires ]
- //
- // map of requires is short require name -> numeric require
- //
- // anything defined in a previous bundle is accessed via the
- // orig method which is the require for previous bundles
- parcelRequire = (function (modules, cache, entry, globalName) {
- // Save the require from previous bundle to this closure if any
- var previousRequire = typeof parcelRequire === 'function' && parcelRequire;
- var nodeRequire = typeof require === 'function' && require;
- function newRequire(name, jumped) {
- if (!cache[name]) {
- if (!modules[name]) {
- // if we cannot find the module within our internal map or
- // cache jump to the current global require ie. the last bundle
- // that was added to the page.
- var currentRequire = typeof parcelRequire === 'function' && parcelRequire;
- if (!jumped && currentRequire) {
- return currentRequire(name, true);
- }
- // If there are other bundles on this page the require from the
- // previous one is saved to 'previousRequire'. Repeat this as
- // many times as there are bundles until the module is found or
- // we exhaust the require chain.
- if (previousRequire) {
- return previousRequire(name, true);
- }
- // Try the node require function if it exists.
- if (nodeRequire && typeof name === 'string') {
- return nodeRequire(name);
- }
- var err = new Error('Cannot find module \'' + name + '\'');
- err.code = 'MODULE_NOT_FOUND';
- throw err;
- }
- localRequire.resolve = resolve;
- localRequire.cache = {};
- var module = cache[name] = new newRequire.Module(name);
- modules[name][0].call(module.exports, localRequire, module, module.exports, this);
- }
- return cache[name].exports;
- function localRequire(x){
- return newRequire(localRequire.resolve(x));
- }
- function resolve(x){
- return modules[name][1][x] || x;
- }
- }
- function Module(moduleName) {
- this.id = moduleName;
- this.bundle = newRequire;
- this.exports = {};
- }
- newRequire.isParcelRequire = true;
- newRequire.Module = Module;
- newRequire.modules = modules;
- newRequire.cache = cache;
- newRequire.parent = previousRequire;
- newRequire.register = function (id, exports) {
- modules[id] = [function (require, module) {
- module.exports = exports;
- }, {}];
- };
- var error;
- for (var i = 0; i < entry.length; i++) {
- try {
- newRequire(entry[i]);
- } catch (e) {
- // Save first error but execute all entries
- if (!error) {
- error = e;
- }
- }
- }
- if (entry.length) {
- // Expose entry point to Node, AMD or browser globals
- // Based on https://github.com/ForbesLindesay/umd/blob/master/template.js
- var mainExports = newRequire(entry[entry.length - 1]);
- // CommonJS
- if (typeof exports === "object" && typeof module !== "undefined") {
- module.exports = mainExports;
- // RequireJS
- } else if (typeof define === "function" && define.amd) {
- define(function () {
- return mainExports;
- });
- // <script>
- } else if (globalName) {
- this[globalName] = mainExports;
- }
- }
- // Override the current require with this new one
- parcelRequire = newRequire;
- if (error) {
- // throw error from earlier, _after updating parcelRequire_
- throw error;
- }
- return newRequire;
- })({"node_modules/amfe-flexible/index.js":[function(require,module,exports) {
- (function flexible (window, document) {
- var docEl = document.documentElement
- var dpr = window.devicePixelRatio || 1
- // adjust body font size
- function setBodyFontSize () {
- if (document.body) {
- document.body.style.fontSize = (12 * dpr) + 'px'
- }
- else {
- document.addEventListener('DOMContentLoaded', setBodyFontSize)
- }
- }
- setBodyFontSize();
- // set 1rem = viewWidth / 10
- function setRemUnit () {
- var rem = docEl.clientWidth / 10
- docEl.style.fontSize = rem + 'px'
- }
- setRemUnit()
- // reset rem unit on page resize
- window.addEventListener('resize', setRemUnit)
- window.addEventListener('pageshow', function (e) {
- if (e.persisted) {
- setRemUnit()
- }
- })
- // detect 0.5px supports
- if (dpr >= 2) {
- var fakeBody = document.createElement('body')
- var testElement = document.createElement('div')
- testElement.style.border = '.5px solid transparent'
- fakeBody.appendChild(testElement)
- docEl.appendChild(fakeBody)
- if (testElement.offsetHeight === 1) {
- docEl.classList.add('hairlines')
- }
- docEl.removeChild(fakeBody)
- }
- }(window, document))
- },{}],"C:/Users/Administrator.PC-20170415TVUO/AppData/Roaming/nvm/v10.6.0/node_modules/parcel-bundler/src/builtins/bundle-url.js":[function(require,module,exports) {
- var bundleURL = null;
- function getBundleURLCached() {
- if (!bundleURL) {
- bundleURL = getBundleURL();
- }
- return bundleURL;
- }
- function getBundleURL() {
- // Attempt to find the URL of the current script and use that as the base URL
- try {
- throw new Error();
- } catch (err) {
- var matches = ('' + err.stack).match(/(https?|file|ftp|chrome-extension|moz-extension):\/\/[^)\n]+/g);
- if (matches) {
- return getBaseURL(matches[0]);
- }
- }
- return '/';
- }
- function getBaseURL(url) {
- return ('' + url).replace(/^((?:https?|file|ftp|chrome-extension|moz-extension):\/\/.+)\/[^/]+$/, '$1') + '/';
- }
- exports.getBundleURL = getBundleURLCached;
- exports.getBaseURL = getBaseURL;
- },{}],"C:/Users/Administrator.PC-20170415TVUO/AppData/Roaming/nvm/v10.6.0/node_modules/parcel-bundler/src/builtins/css-loader.js":[function(require,module,exports) {
- var bundle = require('./bundle-url');
- function updateLink(link) {
- var newLink = link.cloneNode();
- newLink.onload = function () {
- link.remove();
- };
- newLink.href = link.href.split('?')[0] + '?' + Date.now();
- link.parentNode.insertBefore(newLink, link.nextSibling);
- }
- var cssTimeout = null;
- function reloadCSS() {
- if (cssTimeout) {
- return;
- }
- cssTimeout = setTimeout(function () {
- var links = document.querySelectorAll('link[rel="stylesheet"]');
- for (var i = 0; i < links.length; i++) {
- if (bundle.getBaseURL(links[i].href) === bundle.getBundleURL()) {
- updateLink(links[i]);
- }
- }
- cssTimeout = null;
- }, 50);
- }
- module.exports = reloadCSS;
- },{"./bundle-url":"C:/Users/Administrator.PC-20170415TVUO/AppData/Roaming/nvm/v10.6.0/node_modules/parcel-bundler/src/builtins/bundle-url.js"}],"styles/reset.css":[function(require,module,exports) {
- var reloadCSS = require('_css_loader');
- module.hot.dispose(reloadCSS);
- module.hot.accept(reloadCSS);
- },{"_css_loader":"C:/Users/Administrator.PC-20170415TVUO/AppData/Roaming/nvm/v10.6.0/node_modules/parcel-bundler/src/builtins/css-loader.js"}],"styles/index.scss":[function(require,module,exports) {
- var reloadCSS = require('_css_loader');
- module.hot.dispose(reloadCSS);
- module.hot.accept(reloadCSS);
- },{"./..\\images\\nav.png":[["nav.19a98149.png","images/nav.png"],"images/nav.png"],"./..\\images\\play.png":[["play.8ed3ebf5.png","images/play.png"],"images/play.png"],"./..\\images\\title1.png":[["title1.5a1f657e.png","images/title1.png"],"images/title1.png"],"./..\\images\\title2.png":[["title2.53b0571a.png","images/title2.png"],"images/title2.png"],"./..\\images\\title3.png":[["title3.aae81641.png","images/title3.png"],"images/title3.png"],"./..\\images\\title4.png":[["title4.9a876b00.png","images/title4.png"],"images/title4.png"],"./..\\images\\title5.png":[["title5.21676772.png","images/title5.png"],"images/title5.png"],"./..\\images\\title6.png":[["title6.6f12d040.png","images/title6.png"],"images/title6.png"],"./..\\images\\top.png":[["top.9a364590.png","images/top.png"],"images/top.png"],"_css_loader":"C:/Users/Administrator.PC-20170415TVUO/AppData/Roaming/nvm/v10.6.0/node_modules/parcel-bundler/src/builtins/css-loader.js"}],"scripts/index.js":[function(require,module,exports) {
- "use strict";
- require("amfe-flexible");
- require("../styles/reset.css");
- require("../styles/index.scss");
- var pxPerREM = Number(document.documentElement.getAttribute('style').match(/\d+\.?\d+/)[0]);
- var bottom = document.documentElement.offsetHeight + 'px';
- var E_top = document.querySelector('#top');
- function REM2Px(rem) {
- if (rem !== 'number') {
- rem = Number(rem);
- return rem * pxPerREM;
- } else {
- return rem;
- }
- }
- var nav_links = Array.from(document.querySelectorAll('.nav a'));
- var Heights = ['33.351351rem', '55.032432rem', '76.216216rem', bottom];
- nav_links.forEach(function (_link, _index) {
- _link.addEventListener('click', function () {
- var _height = Number(Heights[_index].match(/\d+\.?\d+/)[0]);
- window.scroll(0, REM2Px(_height));
- });
- });
- E_top.addEventListener('click', function () {
- window.scroll(0, 0);
- });
- },{"amfe-flexible":"node_modules/amfe-flexible/index.js","../styles/reset.css":"styles/reset.css","../styles/index.scss":"styles/index.scss"}],"C:/Users/Administrator.PC-20170415TVUO/AppData/Roaming/nvm/v10.6.0/node_modules/parcel-bundler/src/builtins/hmr-runtime.js":[function(require,module,exports) {
- var global = arguments[3];
- var OVERLAY_ID = '__parcel__error__overlay__';
- var OldModule = module.bundle.Module;
- function Module(moduleName) {
- OldModule.call(this, moduleName);
- this.hot = {
- data: module.bundle.hotData,
- _acceptCallbacks: [],
- _disposeCallbacks: [],
- accept: function (fn) {
- this._acceptCallbacks.push(fn || function () {});
- },
- dispose: function (fn) {
- this._disposeCallbacks.push(fn);
- }
- };
- module.bundle.hotData = null;
- }
- module.bundle.Module = Module;
- var checkedAssets, assetsToAccept;
- var parent = module.bundle.parent;
- if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {
- var hostname = "" || location.hostname;
- var protocol = location.protocol === 'https:' ? 'wss' : 'ws';
- var ws = new WebSocket(protocol + '://' + hostname + ':' + "54163" + '/');
- ws.onmessage = function (event) {
- checkedAssets = {};
- assetsToAccept = [];
- var data = JSON.parse(event.data);
- if (data.type === 'update') {
- var handled = false;
- data.assets.forEach(function (asset) {
- if (!asset.isNew) {
- var didAccept = hmrAcceptCheck(global.parcelRequire, asset.id);
- if (didAccept) {
- handled = true;
- }
- }
- }); // Enable HMR for CSS by default.
- handled = handled || data.assets.every(function (asset) {
- return asset.type === 'css' && asset.generated.js;
- });
- if (handled) {
- console.clear();
- data.assets.forEach(function (asset) {
- hmrApply(global.parcelRequire, asset);
- });
- assetsToAccept.forEach(function (v) {
- hmrAcceptRun(v[0], v[1]);
- });
- } else {
- window.location.reload();
- }
- }
- if (data.type === 'reload') {
- ws.close();
- ws.onclose = function () {
- location.reload();
- };
- }
- if (data.type === 'error-resolved') {
- console.log('[parcel] ✨ Error resolved');
- removeErrorOverlay();
- }
- if (data.type === 'error') {
- console.error('[parcel] 🚨 ' + data.error.message + '\n' + data.error.stack);
- removeErrorOverlay();
- var overlay = createErrorOverlay(data);
- document.body.appendChild(overlay);
- }
- };
- }
- function removeErrorOverlay() {
- var overlay = document.getElementById(OVERLAY_ID);
- if (overlay) {
- overlay.remove();
- }
- }
- function createErrorOverlay(data) {
- var overlay = document.createElement('div');
- overlay.id = OVERLAY_ID; // html encode message and stack trace
- var message = document.createElement('div');
- var stackTrace = document.createElement('pre');
- message.innerText = data.error.message;
- stackTrace.innerText = data.error.stack;
- overlay.innerHTML = '<div style="background: black; font-size: 16px; color: white; position: fixed; height: 100%; width: 100%; top: 0px; left: 0px; padding: 30px; opacity: 0.85; font-family: Menlo, Consolas, monospace; z-index: 9999;">' + '<span style="background: red; padding: 2px 4px; border-radius: 2px;">ERROR</span>' + '<span style="top: 2px; margin-left: 5px; position: relative;">🚨</span>' + '<div style="font-size: 18px; font-weight: bold; margin-top: 20px;">' + message.innerHTML + '</div>' + '<pre>' + stackTrace.innerHTML + '</pre>' + '</div>';
- return overlay;
- }
- function getParents(bundle, id) {
- var modules = bundle.modules;
- if (!modules) {
- return [];
- }
- var parents = [];
- var k, d, dep;
- for (k in modules) {
- for (d in modules[k][1]) {
- dep = modules[k][1][d];
- if (dep === id || Array.isArray(dep) && dep[dep.length - 1] === id) {
- parents.push(k);
- }
- }
- }
- if (bundle.parent) {
- parents = parents.concat(getParents(bundle.parent, id));
- }
- return parents;
- }
- function hmrApply(bundle, asset) {
- var modules = bundle.modules;
- if (!modules) {
- return;
- }
- if (modules[asset.id] || !bundle.parent) {
- var fn = new Function('require', 'module', 'exports', asset.generated.js);
- asset.isNew = !modules[asset.id];
- modules[asset.id] = [fn, asset.deps];
- } else if (bundle.parent) {
- hmrApply(bundle.parent, asset);
- }
- }
- function hmrAcceptCheck(bundle, id) {
- var modules = bundle.modules;
- if (!modules) {
- return;
- }
- if (!modules[id] && bundle.parent) {
- return hmrAcceptCheck(bundle.parent, id);
- }
- if (checkedAssets[id]) {
- return;
- }
- checkedAssets[id] = true;
- var cached = bundle.cache[id];
- assetsToAccept.push([bundle, id]);
- if (cached && cached.hot && cached.hot._acceptCallbacks.length) {
- return true;
- }
- return getParents(global.parcelRequire, id).some(function (id) {
- return hmrAcceptCheck(global.parcelRequire, id);
- });
- }
- function hmrAcceptRun(bundle, id) {
- var cached = bundle.cache[id];
- bundle.hotData = {};
- if (cached) {
- cached.hot.data = bundle.hotData;
- }
- if (cached && cached.hot && cached.hot._disposeCallbacks.length) {
- cached.hot._disposeCallbacks.forEach(function (cb) {
- cb(bundle.hotData);
- });
- }
- delete bundle.cache[id];
- bundle(id);
- cached = bundle.cache[id];
- if (cached && cached.hot && cached.hot._acceptCallbacks.length) {
- cached.hot._acceptCallbacks.forEach(function (cb) {
- cb();
- });
- return true;
- }
- }
- },{}]},{},["C:/Users/Administrator.PC-20170415TVUO/AppData/Roaming/nvm/v10.6.0/node_modules/parcel-bundler/src/builtins/hmr-runtime.js","scripts/index.js"], null)
- //# sourceMappingURL=/scripts.bcf3243b.js.map
|