diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 00000000..e69de29b diff --git a/CNAME b/CNAME index d991972b..df370b23 100644 --- a/CNAME +++ b/CNAME @@ -1 +1 @@ -academie-des-renards.dunstetter.fr \ No newline at end of file +academie-des-renards.dunstetter.fr diff --git a/ms-icon-144x144.png b/assets/icons/ms-icon-144x144.png similarity index 100% rename from ms-icon-144x144.png rename to assets/icons/ms-icon-144x144.png diff --git a/index.337a855e.js b/index.01cceba4.js similarity index 98% rename from index.337a855e.js rename to index.01cceba4.js index 4f46ed96..88aea45f 100644 --- a/index.337a855e.js +++ b/index.01cceba4.js @@ -1,2 +1,2 @@ -!function(){function t(t,e,r,n){Object.defineProperty(t,e,{get:r,set:n,enumerable:!0,configurable:!0})}function e(t){return t&&t.__esModule?t.default:t}var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},n={},u={},o=r.parcelRequire1ebe;null==o&&((o=function(t){if(t in n)return n[t].exports;if(t in u){var e=u[t];delete u[t];var r={id:t,exports:{}};return n[t]=r,e.call(r.exports,r,r.exports),r.exports}var o=new Error("Cannot find module '"+t+"'");throw o.code="MODULE_NOT_FOUND",o}).register=function(t,e){u[t]=e},r.parcelRequire1ebe=o),o.register("gm4sb",(function(e,r){var n,u;t(e.exports,"register",(function(){return n}),(function(t){return n=t})),t(e.exports,"resolve",(function(){return u}),(function(t){return u=t}));var o={};n=function(t){for(var e=Object.keys(t),r=0;rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r\n
\n
🔗
\n
\n ').concat(t.getAttribute("title"),"\n
\n sur ").concat(t.getAttribute("platform"),"\n
\n
\n \n ");var o=t.attachShadow({mode:"closed"});return o.innerHTML='\n \n \n '),o.appendChild(u),t}return n}(l.default(HTMLElement));customElements.define("adr-article-button",s)}(); -//# sourceMappingURL=index.337a855e.js.map +!function(){function t(t,e,r,n){Object.defineProperty(t,e,{get:r,set:n,enumerable:!0,configurable:!0})}function e(t){return t&&t.__esModule?t.default:t}var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},n={},u={},o=r.parcelRequire1ebe;null==o&&((o=function(t){if(t in n)return n[t].exports;if(t in u){var e=u[t];delete u[t];var r={id:t,exports:{}};return n[t]=r,e.call(r.exports,r,r.exports),r.exports}var o=new Error("Cannot find module '"+t+"'");throw o.code="MODULE_NOT_FOUND",o}).register=function(t,e){u[t]=e},r.parcelRequire1ebe=o),o.register("gm4sb",(function(e,r){var n,u;t(e.exports,"register",(function(){return n}),(function(t){return n=t})),t(e.exports,"resolve",(function(){return u}),(function(t){return u=t}));var o={};n=function(t){for(var e=Object.keys(t),r=0;rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r\n
\n
🔗
\n
\n ').concat(t.getAttribute("title"),"\n
\n sur ").concat(t.getAttribute("platform"),"\n
\n
\n \n ");var o=t.attachShadow({mode:"closed"});return o.innerHTML='\n \n \n '),o.appendChild(u),t}return n}(l.default(HTMLElement));customElements.define("adr-article-button",s)}(); +//# sourceMappingURL=index.01cceba4.js.map diff --git a/index.337a855e.js.map b/index.01cceba4.js.map similarity index 99% rename from index.337a855e.js.map rename to index.01cceba4.js.map index a66284e0..fe399adb 100644 --- a/index.337a855e.js.map +++ b/index.01cceba4.js.map @@ -1 +1 @@ -{"mappings":"8pBAsBA,IAAuBA,EACDC,E,iJArBtB,IAAIC,EAAU,CAAC,EAoBfF,E,SAlBkBG,GAGhB,IAFA,IAAIC,EAAOC,OAAOD,KAAKD,GAEdG,EAAI,EAAGA,EAAIF,EAAKG,OAAQD,IAC/BJ,EAAQE,EAAKE,IAAMH,EAAMC,EAAKE,GAElC,EAaAL,E,SAXiBO,GACf,IAAIC,EAAWP,EAAQM,GAEvB,GAAgB,MAAZC,EACF,MAAM,IAAIC,MAAM,oCAAsCF,GAGxD,OAAOC,CACT,C,mtBCpBwCE,EAAUC,GAChD,KAAMD,aAAoBC,GACxB,MA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xE,MAAM,KAAMD,UAC/B,C,iDClC0CkF,GACxC,OAA+D,IAAxDF,SAAS7B,SAAS5C,KAAK2E,GAAIC,QAAQ,gBAC5C,C,mFC4CA,IAAoBC,E,6EA5CpB,IAAIC,EAAY,CAAC,E,SA6BRC,EAAWC,GAClB,OAAQ,GAAKA,GAAKC,QAAO,wCAA0C,MAAQ,GAC7E,CAaAJ,E,SA1C4BlH,GAC1B,IAAIsD,EAAQ6D,EAAUnH,GAOtB,OALKsD,IACHA,E,WAQF,IACE,MAAM,IAAIpD,KASZ,CARE,MAAOqH,GACP,IAAIC,GAAW,GAAKD,EAAIE,OAAOC,MAAK,kCAEpC,GAAIF,EAGF,OAAOJ,EAAWI,EAAQ,GAE9B,CAEA,MAAO,GACT,CArBYG,GACRR,EAAUnH,GAAMsD,GAGXA,CACT,C,ICbAsE,EAAA,SAAAC,SAA8CC,KAAKC,MAAM,8b,qECAzDC,EAAiBJ,EAAA,SAAAK,aAA6C,SAAWL,EAAA,SAAAM,QAA6C,S,ICEhHC,EAAN,SAAQC,G,uBAAFD,EAAgBC,G,gBAAhBD,G,SAAAA,I,qBAAAA,G,eAGF,IAAIE,EAAUC,SAASC,cAAc,OACrCF,EAAQG,UAAa,8IAQJ1E,OAA0B2E,EAJ3BC,aAAa,QAAQ,+JAItB5E,OAEK2E,EAA6BC,aAF3B,SAAoB,yDAExB5E,OAAgC2E,EAIlDC,aAJyB,YAAuB,+DAKhD,IAAIC,EAAMF,EAAQG,aAAa,CAACC,KAAM,W,OACtCF,EAAOH,UAAa,iJAEsC1E,OAATgF,EAAAd,GAAS,YAE1DW,EAAOI,YAAYV,G,SAxBjBF,C,CAAN,C,UAA+BC,cA4B/BY,eAAeC,OAAO,qBAAsBd,E","sources":["node_modules/@parcel/runtime-js/lib/helpers/bundle-manifest.js","node_modules/@swc/helpers/src/_class_call_check.js","node_modules/@swc/helpers/src/_create_class.js","node_modules/@swc/helpers/src/_create_super.js","node_modules/@swc/helpers/src/_is_native_reflect_construct.js","node_modules/@swc/helpers/src/_get_prototype_of.js","node_modules/@swc/helpers/src/_possible_constructor_return.js","node_modules/@swc/helpers/src/_assert_this_initialized.js","node_modules/@swc/helpers/src/_type_of.js","node_modules/@swc/helpers/src/_inherits.js","node_modules/@swc/helpers/src/_set_prototype_of.js","node_modules/@swc/helpers/src/_object_spread.js","node_modules/@swc/helpers/src/_define_property.js","node_modules/@swc/helpers/src/_sliced_to_array.js","node_modules/@swc/helpers/src/_array_with_holes.js","node_modules/@swc/helpers/src/_iterable_to_array.js","node_modules/@swc/helpers/src/_non_iterable_rest.js","node_modules/@swc/helpers/src/_unsupported_iterable_to_array.js","node_modules/@swc/helpers/src/_array_like_to_array.js","node_modules/@swc/helpers/src/_to_consumable_array.js","node_modules/@swc/helpers/src/_array_without_holes.js","node_modules/@swc/helpers/src/_non_iterable_spread.js","node_modules/@swc/helpers/src/_wrap_native_super.js","node_modules/@swc/helpers/src/_construct.js","node_modules/@swc/helpers/src/_is_native_function.js","node_modules/@parcel/runtime-js/lib/helpers/bundle-url.js","node_modules/@parcel/runtime-js/lib/runtime-62b0fd97e0fe53b2.js","node_modules/@parcel/runtime-js/lib/runtime-adcce10a3d0bf038.js","js/adr-article-button.js"],"sourcesContent":["\"use strict\";\n\nvar mapping = {};\n\nfunction register(pairs) {\n var keys = Object.keys(pairs);\n\n for (var i = 0; i < keys.length; i++) {\n mapping[keys[i]] = pairs[keys[i]];\n }\n}\n\nfunction resolve(id) {\n var resolved = mapping[id];\n\n if (resolved == null) {\n throw new Error('Could not resolve bundle with id ' + id);\n }\n\n return resolved;\n}\n\nmodule.exports.register = register;\nmodule.exports.resolve = resolve;","export default function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}","function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nexport default function _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n","import _isNativeReflectConstruct from \"./_is_native_reflect_construct\";\nimport _getPrototypeOf from \"./_get_prototype_of\";\nimport _possibleConstructorReturn from './_possible_constructor_return';\n\nexport default function _createSuper(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct();\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived),\n result;\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n return _possibleConstructorReturn(this, result);\n };\n}","export default function _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () { }));\n return true;\n } catch (e) {\n return false;\n }\n}","function getPrototypeOf(o) {\n getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return getPrototypeOf(o);\n}\n\nexport default function _getPrototypeOf(o) {\n return getPrototypeOf(o);\n}","import assertThisInitialized from './_assert_this_initialized';\nimport _typeof from './_type_of';\n\nexport default function _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return assertThisInitialized(self);\n}\n","export default function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n","export default function _typeof(obj) {\n \"@swc/helpers - typeof\";\n return obj && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n};\n","import setPrototypeOf from './_set_prototype_of';\n\nexport default function _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}\n","function setPrototypeOf(o, p) {\n setPrototypeOf = Object.setPrototypeOf || function setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return setPrototypeOf(o, p);\n}\n\nexport default function _setPrototypeOf(o, p) {\n return setPrototypeOf(o, p);\n}\n","import defineProperty from './_define_property';\n\nexport default function _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n\n if (typeof Object.getOwnPropertySymbols === 'function') {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n\n ownKeys.forEach(function (key) {\n defineProperty(target, key, source[key]);\n });\n }\n\n return target;\n}","export default function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n","import arrayWithHoles from './_array_with_holes';\nimport iterableToArrayLimit from './_iterable_to_array';\nimport nonIterableRest from './_non_iterable_rest';\nimport unsupportedIterableToArray from './_unsupported_iterable_to_array';\n\nexport default function _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();\n}\n","export default function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n","export default function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\n","export default function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n","import _arrayLikeToArray from './_array_like_to_array';\n\nexport default function _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(n);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))\n return _arrayLikeToArray(o, minLen);\n}\n","export default function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n return arr2;\n}\n","import arrayWithoutHoles from './_array_without_holes';\nimport iterableToArray from './_iterable_to_array';\nimport nonIterableSpread from './_non_iterable_spread';\nimport unsupportedIterableToArray from './_unsupported_iterable_to_array';\n\nexport default function _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n}\n","import _arrayLikeToArray from './_array_like_to_array';\n\nexport default function _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray(arr);\n}\n","export default function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n","import construct from './_construct';\nimport isNativeFunction from './_is_native_function';\nimport getPrototypeOf from './_get_prototype_of';\nimport setPrototypeOf from './_set_prototype_of';\n\nfunction wrapNativeSuper(Class) {\n var _cache = typeof Map === \"function\" ? new Map() : undefined;\n\n wrapNativeSuper = function wrapNativeSuper(Class) {\n if (Class === null || !isNativeFunction(Class)) return Class;\n\n if (typeof Class !== \"function\") {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n if (typeof _cache !== \"undefined\") {\n if (_cache.has(Class)) return _cache.get(Class);\n\n _cache.set(Class, Wrapper);\n }\n\n function Wrapper() {\n return construct(Class, arguments, getPrototypeOf(this).constructor);\n }\n\n Wrapper.prototype = Object.create(Class.prototype, {\n constructor: {\n value: Wrapper,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n return setPrototypeOf(Wrapper, Class);\n };\n\n return wrapNativeSuper(Class);\n}\n\nexport default function _wrapNativeSuper(Class) {\n return wrapNativeSuper(Class);\n}\n","import _setPrototypeOf from \"./_set_prototype_of\";\n\nfunction isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Date.prototype.toString.call(Reflect.construct(Date, [], function () { }));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nfunction construct(Parent, args, Class) {\n if (isNativeReflectConstruct()) {\n construct = Reflect.construct;\n } else {\n construct = function construct(Parent, args, Class) {\n var a = [null];\n a.push.apply(a, args);\n var Constructor = Function.bind.apply(Parent, a);\n var instance = new Constructor();\n if (Class) _setPrototypeOf(instance, Class.prototype);\n return instance;\n };\n }\n\n return construct.apply(null, arguments);\n}\n\nexport default function _construct(Parent, args, Class) {\n return construct.apply(null, arguments);\n}\n","export default function _isNativeFunction(fn) {\n return Function.toString.call(fn).indexOf(\"[native code]\") !== -1;\n}\n","\"use strict\";\n\nvar bundleURL = {};\n\nfunction getBundleURLCached(id) {\n var value = bundleURL[id];\n\n if (!value) {\n value = getBundleURL();\n bundleURL[id] = value;\n }\n\n return value;\n}\n\nfunction getBundleURL() {\n try {\n throw new Error();\n } catch (err) {\n var matches = ('' + err.stack).match(/(https?|file|ftp):\\/\\/[^)\\n]+/g);\n\n if (matches) {\n // The first two stack frames will be this function and getBundleURLCached.\n // Use the 3rd one, which will be a runtime in the original bundle.\n return getBaseURL(matches[2]);\n }\n }\n\n return '/';\n}\n\nfunction getBaseURL(url) {\n return ('' + url).replace(/^((?:https?|file|ftp):\\/\\/.+)\\/[^/]+$/, '$1') + '/';\n} // TODO: Replace uses with `new URL(url).origin` when ie11 is no longer supported.\n\n\nfunction getOrigin(url) {\n var matches = ('' + url).match(/(https?|file|ftp):\\/\\/[^/]+/);\n\n if (!matches) {\n throw new Error('Origin not found');\n }\n\n return matches[0];\n}\n\nexports.getBundleURL = getBundleURLCached;\nexports.getBaseURL = getBaseURL;\nexports.getOrigin = getOrigin;","require('./helpers/bundle-manifest').register(JSON.parse(\"{\\\"8fetQ\\\":\\\"index.337a855e.js\\\",\\\"gbcXk\\\":\\\"style.9d159f0e.css\\\",\\\"hwmB9\\\":\\\"background.761bc37b.jpg\\\",\\\"d3YkH\\\":\\\"artwork-suzuha.09fac1ca.png\\\",\\\"aroW2\\\":\\\"artwork-ede.54057cad.png\\\",\\\"ilpGW\\\":\\\"cover-renaissance-s4-1024.6b8555ec.png\\\",\\\"6Vjqf\\\":\\\"artwork-statue-chateau-s4.d48a5537.png\\\",\\\"gR7QX\\\":\\\"artwork-lecture-s4.7439fb69.png\\\"}\"));","module.exports = require('./helpers/bundle-url').getBundleURL('8fetQ') + require('./helpers/bundle-manifest').resolve(\"gbcXk\");","import styleUrl from \"url:../styles/style.css\";\n\nclass AdrArticleButton extends HTMLElement {\n constructor() {\n super()\n var wrapper = document.createElement('div')\n wrapper.innerHTML = `\n \n
\n
🔗
\n
\n ${this.getAttribute('title')}\n
\n sur ${this.getAttribute('platform')}\n
\n
\n
\n `\n var shadow = this.attachShadow({mode: 'closed'})\n shadow.innerHTML = `\n \n \n `\n shadow.appendChild(wrapper)\n }\n}\n\ncustomElements.define('adr-article-button', AdrArticleButton)"],"names":["$be8227c7ee2b94f0$export$6503ec6e8aabbaf","$be8227c7ee2b94f0$export$f7ad0328861e2f03","$be8227c7ee2b94f0$var$mapping","pairs","keys","Object","i","length","id","resolved","Error","instance","Constructor","TypeError","$a4f76c82217442a5$var$_defineProperties","target","props","descriptor","enumerable","configurable","writable","defineProperty","key","protoProps","staticProps","prototype","Derived","hasNativeReflectConstruct","$kp1RH","default","result","Super","$jGGLe","NewTarget","this","constructor","Reflect","construct","arguments","apply","$8ESVO","sham","Proxy","Boolean","valueOf","call","e","$e5531bf2c166a394$var$getPrototypeOf","o1","setPrototypeOf","getPrototypeOf","o","__proto__","self","$iZekQ","$66M5H","ReferenceError","obj","Symbol","subClass","superClass","create","value","$jP2J1","$e6e4e4ea8e9388be$var$setPrototypeOf","p1","p","source","ownKeys","getOwnPropertySymbols","concat","filter","sym","getOwnPropertyDescriptor","forEach","$1xGLG","arr","$gvUzD","$gRAok","$3AB4U","$eGwG7","Array","isArray","iter","iterator","from","minLen","$8jXhg","n","toString","slice","name","test","len","arr2","$2cX9j","$jfxB7","$d0bf6b10b2c0b802$var$wrapNativeSuper","Class1","_cache","Map","undefined","Class","$aa7Wm","has","get","set","Wrapper","$65DSJ","$46f22560b5c494d8$var$isNativeReflectConstruct","Date","$46f22560b5c494d8$var$construct","Parent1","args1","Parent","args","a","push","Function","bind","fn","indexOf","$404858fdeb70fa97$export$bdfd709ae4826697","$404858fdeb70fa97$var$bundleURL","$404858fdeb70fa97$var$getBaseURL","url","replace","err","matches","stack","match","$404858fdeb70fa97$var$getBundleURL","parcelRequire","register","JSON","parse","$b11902ecb161d133$exports","getBundleURL","resolve","$297b915ab02bd82d$var$AdrArticleButton","HTMLElement","wrapper","document","createElement","innerHTML","_this","getAttribute","shadow","attachShadow","mode","$parcel$interopDefault","appendChild","customElements","define"],"version":3,"file":"index.337a855e.js.map"} \ No newline at end of file +{"mappings":"8pBAsBA,IAAuBA,EACDC,E,iJArBtB,IAAIC,EAAU,CAAC,EAoBfF,E,SAlBkBG,GAGhB,IAFA,IAAIC,EAAOC,OAAOD,KAAKD,GAEdG,EAAI,EAAGA,EAAIF,EAAKG,OAAQD,IAC/BJ,EAAQE,EAAKE,IAAMH,EAAMC,EAAKE,GAElC,EAaAL,E,SAXiBO,GACf,IAAIC,EAAWP,EAAQM,GAEvB,GAAgB,MAAZC,EACF,MAAM,IAAIC,MAAM,oCAAsCF,GAGxD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_create_class.js","node_modules/@swc/helpers/src/_create_super.js","node_modules/@swc/helpers/src/_is_native_reflect_construct.js","node_modules/@swc/helpers/src/_get_prototype_of.js","node_modules/@swc/helpers/src/_possible_constructor_return.js","node_modules/@swc/helpers/src/_assert_this_initialized.js","node_modules/@swc/helpers/src/_type_of.js","node_modules/@swc/helpers/src/_inherits.js","node_modules/@swc/helpers/src/_set_prototype_of.js","node_modules/@swc/helpers/src/_object_spread.js","node_modules/@swc/helpers/src/_define_property.js","node_modules/@swc/helpers/src/_sliced_to_array.js","node_modules/@swc/helpers/src/_array_with_holes.js","node_modules/@swc/helpers/src/_iterable_to_array.js","node_modules/@swc/helpers/src/_non_iterable_rest.js","node_modules/@swc/helpers/src/_unsupported_iterable_to_array.js","node_modules/@swc/helpers/src/_array_like_to_array.js","node_modules/@swc/helpers/src/_to_consumable_array.js","node_modules/@swc/helpers/src/_array_without_holes.js","node_modules/@swc/helpers/src/_non_iterable_spread.js","node_modules/@swc/helpers/src/_wrap_native_super.js","node_modules/@swc/helpers/src/_construct.js","node_modules/@swc/helpers/src/_is_native_function.js","node_modules/@parcel/runtime-js/lib/helpers/bundle-url.js","node_modules/@parcel/runtime-js/lib/runtime-62b0fd97e0fe53b2.js","node_modules/@parcel/runtime-js/lib/runtime-adcce10a3d0bf038.js","js/adr-article-button.js"],"sourcesContent":["\"use strict\";\n\nvar mapping = {};\n\nfunction register(pairs) {\n var keys = Object.keys(pairs);\n\n for (var i = 0; i < keys.length; i++) {\n mapping[keys[i]] = pairs[keys[i]];\n }\n}\n\nfunction resolve(id) {\n var resolved = mapping[id];\n\n if (resolved == null) {\n throw new Error('Could not resolve bundle with id ' + id);\n }\n\n return resolved;\n}\n\nmodule.exports.register = register;\nmodule.exports.resolve = resolve;","export default function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}","function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nexport default function _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n","import _isNativeReflectConstruct from \"./_is_native_reflect_construct\";\nimport _getPrototypeOf from \"./_get_prototype_of\";\nimport _possibleConstructorReturn from './_possible_constructor_return';\n\nexport default function _createSuper(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct();\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived),\n result;\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n return _possibleConstructorReturn(this, result);\n };\n}","export default function _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () { }));\n return true;\n } catch (e) {\n return false;\n }\n}","function getPrototypeOf(o) {\n getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return getPrototypeOf(o);\n}\n\nexport default function _getPrototypeOf(o) {\n return getPrototypeOf(o);\n}","import assertThisInitialized from './_assert_this_initialized';\nimport _typeof from './_type_of';\n\nexport default function _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return assertThisInitialized(self);\n}\n","export default function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n","export default function _typeof(obj) {\n \"@swc/helpers - typeof\";\n return obj && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n};\n","import setPrototypeOf from './_set_prototype_of';\n\nexport default function _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}\n","function setPrototypeOf(o, p) {\n setPrototypeOf = Object.setPrototypeOf || function setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return setPrototypeOf(o, p);\n}\n\nexport default function _setPrototypeOf(o, p) {\n return setPrototypeOf(o, p);\n}\n","import defineProperty from './_define_property';\n\nexport default function _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n\n if (typeof Object.getOwnPropertySymbols === 'function') {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n\n ownKeys.forEach(function (key) {\n defineProperty(target, key, source[key]);\n });\n }\n\n return target;\n}","export default function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n","import arrayWithHoles from './_array_with_holes';\nimport iterableToArrayLimit from './_iterable_to_array';\nimport nonIterableRest from './_non_iterable_rest';\nimport unsupportedIterableToArray from './_unsupported_iterable_to_array';\n\nexport default function _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();\n}\n","export default function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n","export default function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\n","export default function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n","import _arrayLikeToArray from './_array_like_to_array';\n\nexport default function _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(n);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))\n return _arrayLikeToArray(o, minLen);\n}\n","export default function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n return arr2;\n}\n","import arrayWithoutHoles from './_array_without_holes';\nimport iterableToArray from './_iterable_to_array';\nimport nonIterableSpread from './_non_iterable_spread';\nimport unsupportedIterableToArray from './_unsupported_iterable_to_array';\n\nexport default function _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n}\n","import _arrayLikeToArray from './_array_like_to_array';\n\nexport default function _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray(arr);\n}\n","export default function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n","import construct from './_construct';\nimport isNativeFunction from './_is_native_function';\nimport getPrototypeOf from './_get_prototype_of';\nimport setPrototypeOf from './_set_prototype_of';\n\nfunction wrapNativeSuper(Class) {\n var _cache = typeof Map === \"function\" ? new Map() : undefined;\n\n wrapNativeSuper = function wrapNativeSuper(Class) {\n if (Class === null || !isNativeFunction(Class)) return Class;\n\n if (typeof Class !== \"function\") {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n if (typeof _cache !== \"undefined\") {\n if (_cache.has(Class)) return _cache.get(Class);\n\n _cache.set(Class, Wrapper);\n }\n\n function Wrapper() {\n return construct(Class, arguments, getPrototypeOf(this).constructor);\n }\n\n Wrapper.prototype = Object.create(Class.prototype, {\n constructor: {\n value: Wrapper,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n return setPrototypeOf(Wrapper, Class);\n };\n\n return wrapNativeSuper(Class);\n}\n\nexport default function _wrapNativeSuper(Class) {\n return wrapNativeSuper(Class);\n}\n","import _setPrototypeOf from \"./_set_prototype_of\";\n\nfunction isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Date.prototype.toString.call(Reflect.construct(Date, [], function () { }));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nfunction construct(Parent, args, Class) {\n if (isNativeReflectConstruct()) {\n construct = Reflect.construct;\n } else {\n construct = function construct(Parent, args, Class) {\n var a = [null];\n a.push.apply(a, args);\n var Constructor = Function.bind.apply(Parent, a);\n var instance = new Constructor();\n if (Class) _setPrototypeOf(instance, Class.prototype);\n return instance;\n };\n }\n\n return construct.apply(null, arguments);\n}\n\nexport default function _construct(Parent, args, Class) {\n return construct.apply(null, arguments);\n}\n","export default function _isNativeFunction(fn) {\n return Function.toString.call(fn).indexOf(\"[native code]\") !== -1;\n}\n","\"use strict\";\n\nvar bundleURL = {};\n\nfunction getBundleURLCached(id) {\n var value = bundleURL[id];\n\n if (!value) {\n value = getBundleURL();\n bundleURL[id] = value;\n }\n\n return value;\n}\n\nfunction getBundleURL() {\n try {\n throw new Error();\n } catch (err) {\n var matches = ('' + err.stack).match(/(https?|file|ftp):\\/\\/[^)\\n]+/g);\n\n if (matches) {\n // The first two stack frames will be this function and getBundleURLCached.\n // Use the 3rd one, which will be a runtime in the original bundle.\n return getBaseURL(matches[2]);\n }\n }\n\n return '/';\n}\n\nfunction getBaseURL(url) {\n return ('' + url).replace(/^((?:https?|file|ftp):\\/\\/.+)\\/[^/]+$/, '$1') + '/';\n} // TODO: Replace uses with `new URL(url).origin` when ie11 is no longer supported.\n\n\nfunction getOrigin(url) {\n var matches = ('' + url).match(/(https?|file|ftp):\\/\\/[^/]+/);\n\n if (!matches) {\n throw new Error('Origin not found');\n }\n\n return matches[0];\n}\n\nexports.getBundleURL = getBundleURLCached;\nexports.getBaseURL = getBaseURL;\nexports.getOrigin = getOrigin;","require('./helpers/bundle-manifest').register(JSON.parse(\"{\\\"8fetQ\\\":\\\"index.01cceba4.js\\\",\\\"gbcXk\\\":\\\"style.695090bc.css\\\",\\\"hwmB9\\\":\\\"background.761bc37b.jpg\\\",\\\"d3YkH\\\":\\\"artwork-suzuha.09fac1ca.png\\\",\\\"aroW2\\\":\\\"artwork-ede.54057cad.png\\\",\\\"ilpGW\\\":\\\"cover-renaissance-s4-1024.6b8555ec.png\\\",\\\"6Vjqf\\\":\\\"artwork-statue-chateau-s4.d48a5537.png\\\",\\\"gR7QX\\\":\\\"artwork-lecture-s4.7439fb69.png\\\"}\"));","module.exports = require('./helpers/bundle-url').getBundleURL('8fetQ') + require('./helpers/bundle-manifest').resolve(\"gbcXk\");","import styleUrl from \"url:../styles/style.css\";\n\nclass AdrArticleButton extends HTMLElement {\n constructor() {\n super()\n var wrapper = document.createElement('div')\n wrapper.innerHTML = `\n \n
\n
🔗
\n
\n ${this.getAttribute('title')}\n
\n sur ${this.getAttribute('platform')}\n
\n
\n
\n `\n var shadow = this.attachShadow({mode: 'closed'})\n shadow.innerHTML = `\n \n \n `\n shadow.appendChild(wrapper)\n }\n}\n\ncustomElements.define('adr-article-button', AdrArticleButton)"],"names":["$be8227c7ee2b94f0$export$6503ec6e8aabbaf","$be8227c7ee2b94f0$export$f7ad0328861e2f03","$be8227c7ee2b94f0$var$mapping","pairs","keys","Object","i","length","id","resolved","Error","instance","Constructor","TypeError","$a4f76c82217442a5$var$_defineProperties","target","props","descriptor","enumerable","configurable","writable","defineProperty","key","protoProps","staticProps","prototype","Derived","hasNativeReflectConstruct","$kp1RH","default","result","Super","$jGGLe","NewTarget","this","constructor","Reflect","construct","arguments","apply","$8ESVO","sham","Proxy","Boolean","valueOf","call","e","$e5531bf2c166a394$var$getPrototypeOf","o1","setPrototypeOf","getPrototypeOf","o","__proto__","self","$iZekQ","$66M5H","ReferenceError","obj","Symbol","subClass","superClass","create","value","$jP2J1","$e6e4e4ea8e9388be$var$setPrototypeOf","p1","p","source","ownKeys","getOwnPropertySymbols","concat","filter","sym","getOwnPropertyDescriptor","forEach","$1xGLG","arr","$gvUzD","$gRAok","$3AB4U","$eGwG7","Array","isArray","iter","iterator","from","minLen","$8jXhg","n","toString","slice","name","test","len","arr2","$2cX9j","$jfxB7","$d0bf6b10b2c0b802$var$wrapNativeSuper","Class1","_cache","Map","undefined","Class","$aa7Wm","has","get","set","Wrapper","$65DSJ","$46f22560b5c494d8$var$isNativeReflectConstruct","Date","$46f22560b5c494d8$var$construct","Parent1","args1","Parent","args","a","push","Function","bind","fn","indexOf","$404858fdeb70fa97$export$bdfd709ae4826697","$404858fdeb70fa97$var$bundleURL","$404858fdeb70fa97$var$getBaseURL","url","replace","err","matches","stack","match","$404858fdeb70fa97$var$getBundleURL","parcelRequire","register","JSON","parse","$b11902ecb161d133$exports","getBundleURL","resolve","$297b915ab02bd82d$var$AdrArticleButton","HTMLElement","wrapper","document","createElement","innerHTML","_this","getAttribute","shadow","attachShadow","mode","$parcel$interopDefault","appendChild","customElements","define"],"version":3,"file":"index.01cceba4.js.map"} \ No newline at end of file diff --git a/index.5705a6e2.js b/index.1ceb384b.js similarity index 95% rename from index.5705a6e2.js rename to index.1ceb384b.js index f7e78a75..2a0dc481 100644 --- a/index.5705a6e2.js +++ b/index.1ceb384b.js @@ -1,2 +1,2 @@ -!function(){function e(e){return e&&e.__esModule?e.default:e}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},n={},r={},o=t.parcelRequire1ebe;null==o&&((o=function(e){if(e in n)return n[e].exports;if(e in r){var t=r[e];delete r[e];var o={id:e,exports:{}};return n[e]=o,t.call(o.exports,o,o.exports),o.exports}var a=new Error("Cannot find module '"+e+"'");throw a.code="MODULE_NOT_FOUND",a}).register=function(e,t){r[e]=t},t.parcelRequire1ebe=o),o("gm4sb").register(JSON.parse('{"iz8qt":"index.5705a6e2.js","gbcXk":"style.9d159f0e.css","hwmB9":"background.761bc37b.jpg","d3YkH":"artwork-suzuha.09fac1ca.png","aroW2":"artwork-ede.54057cad.png","ilpGW":"cover-renaissance-s4-1024.6b8555ec.png","6Vjqf":"artwork-statue-chateau-s4.d48a5537.png","gR7QX":"artwork-lecture-s4.7439fb69.png"}'));var a,i=o("kAkBg");a=o("5waPY").getBundleURL("iz8qt")+o("gm4sb").resolve("gbcXk");var l=function(t){"use strict";i.inherits(r,t);var n=i.createSuper(r);function r(){var t;i.classCallCheck(this,r),t=n.call(this);var o=document.createElement("div");o.classList.add("book-links"),o.innerHTML="",t.getAttribute("book-link")&&(o.innerHTML+="\n \n ')),t.getAttribute("ebook-link")&&(o.innerHTML+="\n \n ')),t.getAttribute("file")&&(o.innerHTML+="\n \n "));var l=t.attachShadow({mode:"closed"});return l.innerHTML='\n \n \n '),l.appendChild(o),t}return r}(i.wrapNativeSuper(HTMLElement));customElements.define("adr-book-links",l)}(); -//# sourceMappingURL=index.5705a6e2.js.map +!function(){function e(e){return e&&e.__esModule?e.default:e}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},n={},r={},o=t.parcelRequire1ebe;null==o&&((o=function(e){if(e in n)return n[e].exports;if(e in r){var t=r[e];delete r[e];var o={id:e,exports:{}};return n[e]=o,t.call(o.exports,o,o.exports),o.exports}var a=new Error("Cannot find module '"+e+"'");throw a.code="MODULE_NOT_FOUND",a}).register=function(e,t){r[e]=t},t.parcelRequire1ebe=o),o("gm4sb").register(JSON.parse('{"iz8qt":"index.1ceb384b.js","gbcXk":"style.695090bc.css","hwmB9":"background.761bc37b.jpg","d3YkH":"artwork-suzuha.09fac1ca.png","aroW2":"artwork-ede.54057cad.png","ilpGW":"cover-renaissance-s4-1024.6b8555ec.png","6Vjqf":"artwork-statue-chateau-s4.d48a5537.png","gR7QX":"artwork-lecture-s4.7439fb69.png"}'));var a,i=o("kAkBg");a=o("5waPY").getBundleURL("iz8qt")+o("gm4sb").resolve("gbcXk");var l=function(t){"use strict";i.inherits(r,t);var n=i.createSuper(r);function r(){var t;i.classCallCheck(this,r),t=n.call(this);var o=document.createElement("div");o.classList.add("book-links"),o.innerHTML="",t.getAttribute("book-link")&&(o.innerHTML+="\n \n ')),t.getAttribute("ebook-link")&&(o.innerHTML+="\n \n ')),t.getAttribute("file")&&(o.innerHTML+="\n \n "));var l=t.attachShadow({mode:"closed"});return l.innerHTML='\n \n \n '),l.appendChild(o),t}return r}(i.wrapNativeSuper(HTMLElement));customElements.define("adr-book-links",l)}(); +//# sourceMappingURL=index.1ceb384b.js.map diff --git a/index.5705a6e2.js.map b/index.1ceb384b.js.map similarity index 96% rename from index.5705a6e2.js.map rename to index.1ceb384b.js.map index 0b6f7447..0baaffce 100644 --- a/index.5705a6e2.js.map +++ b/index.1ceb384b.js.map @@ -1 +1 @@ -{"mappings":"iiBAAAA,EAAA,SAAAC,SAA8CC,KAAKC,MAAM,8b,mBCAzDC,EAAiBJ,EAAA,SAAAK,aAA6C,SAAWL,EAAA,SAAAM,QAA6C,S,ICEhHC,EAAN,SAAQC,G,wBAAFD,EAAYC,G,oBAAZD,G,SAAAA,I,4BAAAA,G,eAGF,IAAIE,EAAUC,SAASC,cAAc,OACrCF,EAAQG,UAAUC,IAAI,cACtBJ,EAAQK,UAAY,GAClBC,EAAOC,aAAa,eACpBP,EAAQK,WAAc,8CAGWG,OAA0BF,EAD3CC,aAAa,aAAa,2CACkBC,OAE5DF,EAFsCC,aAAa,SAAS,6CAI5DD,EAAOC,aAAa,gBACpBP,EAAQK,WAAc,8CAEqBG,OAG3CF,EAHgBC,aAAa,cAAc,wFAK3CD,EAAOC,aAAa,UACpBP,EAAQK,WAAc,6CAEaG,OAEnCF,EAFcC,aAAa,QAAQ,2CAKrC,IAAIE,EAAMH,EAAQI,aAAa,CAACC,KAAM,W,OACtCF,EAAOJ,UAAa,iJAEsCG,OAATI,EAAAjB,GAAS,YAE1Dc,EAAOI,YAAYb,G,SAnCjBF,C,CAAN,C,kBAA2BC,cAuC3Be,eAAeC,OAAO,iBAAkBjB,E","sources":["node_modules/@parcel/runtime-js/lib/runtime-f9f78966f842ede3.js","node_modules/@parcel/runtime-js/lib/runtime-6870ce30d0be646f.js","js/adr-book-links.js"],"sourcesContent":["require('./helpers/bundle-manifest').register(JSON.parse(\"{\\\"iz8qt\\\":\\\"index.5705a6e2.js\\\",\\\"gbcXk\\\":\\\"style.9d159f0e.css\\\",\\\"hwmB9\\\":\\\"background.761bc37b.jpg\\\",\\\"d3YkH\\\":\\\"artwork-suzuha.09fac1ca.png\\\",\\\"aroW2\\\":\\\"artwork-ede.54057cad.png\\\",\\\"ilpGW\\\":\\\"cover-renaissance-s4-1024.6b8555ec.png\\\",\\\"6Vjqf\\\":\\\"artwork-statue-chateau-s4.d48a5537.png\\\",\\\"gR7QX\\\":\\\"artwork-lecture-s4.7439fb69.png\\\"}\"));","module.exports = require('./helpers/bundle-url').getBundleURL('iz8qt') + require('./helpers/bundle-manifest').resolve(\"gbcXk\");","import styleUrl from \"url:../styles/style.css\"\n\nclass AdrBookLinks extends HTMLElement {\n constructor() {\n super()\n var wrapper = document.createElement('div')\n wrapper.classList.add('book-links')\n wrapper.innerHTML = ''\n if (this.getAttribute('book-link')) {\n wrapper.innerHTML += `\n \n `\n }\n if (this.getAttribute('ebook-link')) {\n wrapper.innerHTML += `\n \n `\n }\n if (this.getAttribute('file')) {\n wrapper.innerHTML += `\n \n `\n }\n\n var shadow = this.attachShadow({mode: 'closed'})\n shadow.innerHTML = `\n \n \n `\n shadow.appendChild(wrapper)\n }\n}\n\ncustomElements.define('adr-book-links', AdrBookLinks)"],"names":["parcelRequire","register","JSON","parse","$f2dba179d1b693e0$exports","getBundleURL","resolve","$7e1bf56d4950f00e$var$AdrBookLinks","HTMLElement","wrapper","document","createElement","classList","add","innerHTML","_this","getAttribute","concat","shadow","attachShadow","mode","$parcel$interopDefault","appendChild","customElements","define"],"version":3,"file":"index.5705a6e2.js.map"} \ No newline at end of file +{"mappings":"iiBAAAA,EAAA,SAAAC,SAA8CC,KAAKC,MAAM,8b,mBCAzDC,EAAiBJ,EAAA,SAAAK,aAA6C,SAAWL,EAAA,SAAAM,QAA6C,S,ICEhHC,EAAN,SAAQC,G,wBAAFD,EAAYC,G,oBAAZD,G,SAAAA,I,4BAAAA,G,eAGF,IAAIE,EAAUC,SAASC,cAAc,OACrCF,EAAQG,UAAUC,IAAI,cACtBJ,EAAQK,UAAY,GAClBC,EAAOC,aAAa,eACpBP,EAAQK,WAAc,8CAGWG,OAA0BF,EAD3CC,aAAa,aAAa,2CACkBC,OAE5DF,EAFsCC,aAAa,SAAS,6CAI5DD,EAAOC,aAAa,gBACpBP,EAAQK,WAAc,8CAEqBG,OAG3CF,EAHgBC,aAAa,cAAc,wFAK3CD,EAAOC,aAAa,UACpBP,EAAQK,WAAc,6CAEaG,OAEnCF,EAFcC,aAAa,QAAQ,2CAKrC,IAAIE,EAAMH,EAAQI,aAAa,CAACC,KAAM,W,OACtCF,EAAOJ,UAAa,iJAEsCG,OAATI,EAAAjB,GAAS,YAE1Dc,EAAOI,YAAYb,G,SAnCjBF,C,CAAN,C,kBAA2BC,cAuC3Be,eAAeC,OAAO,iBAAkBjB,E","sources":["node_modules/@parcel/runtime-js/lib/runtime-f9f78966f842ede3.js","node_modules/@parcel/runtime-js/lib/runtime-6870ce30d0be646f.js","js/adr-book-links.js"],"sourcesContent":["require('./helpers/bundle-manifest').register(JSON.parse(\"{\\\"iz8qt\\\":\\\"index.1ceb384b.js\\\",\\\"gbcXk\\\":\\\"style.695090bc.css\\\",\\\"hwmB9\\\":\\\"background.761bc37b.jpg\\\",\\\"d3YkH\\\":\\\"artwork-suzuha.09fac1ca.png\\\",\\\"aroW2\\\":\\\"artwork-ede.54057cad.png\\\",\\\"ilpGW\\\":\\\"cover-renaissance-s4-1024.6b8555ec.png\\\",\\\"6Vjqf\\\":\\\"artwork-statue-chateau-s4.d48a5537.png\\\",\\\"gR7QX\\\":\\\"artwork-lecture-s4.7439fb69.png\\\"}\"));","module.exports = require('./helpers/bundle-url').getBundleURL('iz8qt') + require('./helpers/bundle-manifest').resolve(\"gbcXk\");","import styleUrl from \"url:../styles/style.css\"\n\nclass AdrBookLinks extends HTMLElement {\n constructor() {\n super()\n var wrapper = document.createElement('div')\n wrapper.classList.add('book-links')\n wrapper.innerHTML = ''\n if (this.getAttribute('book-link')) {\n wrapper.innerHTML += `\n \n `\n }\n if (this.getAttribute('ebook-link')) {\n wrapper.innerHTML += `\n \n `\n }\n if (this.getAttribute('file')) {\n wrapper.innerHTML += `\n \n `\n }\n\n var shadow = this.attachShadow({mode: 'closed'})\n shadow.innerHTML = `\n \n \n `\n shadow.appendChild(wrapper)\n }\n}\n\ncustomElements.define('adr-book-links', AdrBookLinks)"],"names":["parcelRequire","register","JSON","parse","$f2dba179d1b693e0$exports","getBundleURL","resolve","$7e1bf56d4950f00e$var$AdrBookLinks","HTMLElement","wrapper","document","createElement","classList","add","innerHTML","_this","getAttribute","concat","shadow","attachShadow","mode","$parcel$interopDefault","appendChild","customElements","define"],"version":3,"file":"index.1ceb384b.js.map"} \ No newline at end of file diff --git a/index.8c777ca2.js b/index.2628d589.js similarity index 94% rename from index.8c777ca2.js rename to index.2628d589.js index 7c649b0a..60f2c969 100644 --- a/index.8c777ca2.js +++ b/index.2628d589.js @@ -1,2 +1,2 @@ -!function(){function e(e){return e&&e.__esModule?e.default:e}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},n={},r={},a=t.parcelRequire1ebe;null==a&&((a=function(e){if(e in n)return n[e].exports;if(e in r){var t=r[e];delete r[e];var a={id:e,exports:{}};return n[e]=a,t.call(a.exports,a,a.exports),a.exports}var s=new Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s}).register=function(e,t){r[e]=t},t.parcelRequire1ebe=a),a("gm4sb").register(JSON.parse('{"1EiEV":"index.8c777ca2.js","gbcXk":"style.9d159f0e.css","hwmB9":"background.761bc37b.jpg","d3YkH":"artwork-suzuha.09fac1ca.png","aroW2":"artwork-ede.54057cad.png","ilpGW":"cover-renaissance-s4-1024.6b8555ec.png","6Vjqf":"artwork-statue-chateau-s4.d48a5537.png","gR7QX":"artwork-lecture-s4.7439fb69.png"}'));var s,i=a("kAkBg");s=a("5waPY").getBundleURL("1EiEV")+a("gm4sb").resolve("gbcXk");var c=function(t){"use strict";i.inherits(r,t);var n=i.createSuper(r);function r(){var t;i.classCallCheck(this,r),(t=n.call(this)).wrapper=document.createElement("div"),t.wrapper.classList.add("question-number");var a=t.attachShadow({mode:"closed"});return a.innerHTML='\n \n \n '),a.appendChild(t.wrapper),t}return i.createClass(r,[{key:"attributeChangedCallback",value:function(){this.wrapper.innerHTML="\n

\n ".concat(this.getAttribute("question-index"),"/").concat(this.getAttribute("questions-length"),"\n

\n ")}}],[{key:"observedAttributes",get:function(){return["question-index","questions-length"]}}]),r}(i.wrapNativeSuper(HTMLElement));customElements.define("adr-question-number",c)}(); -//# sourceMappingURL=index.8c777ca2.js.map +!function(){function e(e){return e&&e.__esModule?e.default:e}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},n={},r={},a=t.parcelRequire1ebe;null==a&&((a=function(e){if(e in n)return n[e].exports;if(e in r){var t=r[e];delete r[e];var a={id:e,exports:{}};return n[e]=a,t.call(a.exports,a,a.exports),a.exports}var s=new Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s}).register=function(e,t){r[e]=t},t.parcelRequire1ebe=a),a("gm4sb").register(JSON.parse('{"1EiEV":"index.2628d589.js","gbcXk":"style.695090bc.css","hwmB9":"background.761bc37b.jpg","d3YkH":"artwork-suzuha.09fac1ca.png","aroW2":"artwork-ede.54057cad.png","ilpGW":"cover-renaissance-s4-1024.6b8555ec.png","6Vjqf":"artwork-statue-chateau-s4.d48a5537.png","gR7QX":"artwork-lecture-s4.7439fb69.png"}'));var s,i=a("kAkBg");s=a("5waPY").getBundleURL("1EiEV")+a("gm4sb").resolve("gbcXk");var c=function(t){"use strict";i.inherits(r,t);var n=i.createSuper(r);function r(){var t;i.classCallCheck(this,r),(t=n.call(this)).wrapper=document.createElement("div"),t.wrapper.classList.add("question-number");var a=t.attachShadow({mode:"closed"});return a.innerHTML='\n \n \n '),a.appendChild(t.wrapper),t}return i.createClass(r,[{key:"attributeChangedCallback",value:function(){this.wrapper.innerHTML="\n

\n ".concat(this.getAttribute("question-index"),"/").concat(this.getAttribute("questions-length"),"\n

\n ")}}],[{key:"observedAttributes",get:function(){return["question-index","questions-length"]}}]),r}(i.wrapNativeSuper(HTMLElement));customElements.define("adr-question-number",c)}(); +//# sourceMappingURL=index.2628d589.js.map diff --git a/index.8c777ca2.js.map b/index.2628d589.js.map similarity index 93% rename from index.8c777ca2.js.map rename to index.2628d589.js.map index bdb599a0..6fba3caf 100644 --- a/index.8c777ca2.js.map +++ b/index.2628d589.js.map @@ -1 +1 @@ -{"mappings":"iiBAAAA,EAAA,SAAAC,SAA8CC,KAAKC,MAAM,8b,mBCAzDC,EAAiBJ,EAAA,SAAAK,aAA6C,SAAWL,EAAA,SAAAM,QAA6C,S,ICEhHC,EAAN,SAAQC,G,wBAAFD,EAAiBC,G,oBAAjBD,G,SAAAA,I,4BAAAA,I,gBAgBGE,QAAUC,SAASC,cAAc,O,EACjCF,QAAQG,UAAUC,IAAI,mBAC3B,IAAIC,EAAMC,EAAQC,aAAa,CAACC,KAAM,W,OACtCH,EAAOI,UAAa,iJAEsCC,OAATC,EAAAhB,GAAS,YAE1DU,EAAOO,YAAWN,EAAMN,S,uBAvBtBF,EAAiB,C,CAMrBe,IAAA,2B,MAAA,WACEC,KAAKd,QAAQS,UAAa,wBAEmBC,OAAvCI,KAAKC,aAAa,kBAAkB,KAAyCL,OAAtCI,KAAKC,aAAa,oBAAoB,qBAGrF,I,EAVWF,IAAA,qB,IAAX,WACE,MAAO,CAAC,iBAAkB,mBAC5B,KAJIf,C,CAAN,C,kBAAgCC,cA4BhCiB,eAAeC,OAAO,sBAAuBnB,E","sources":["node_modules/@parcel/runtime-js/lib/runtime-1b9970d1008dc17b.js","node_modules/@parcel/runtime-js/lib/runtime-1f23b747b5343cd3.js","js/adr-question-number.js"],"sourcesContent":["require('./helpers/bundle-manifest').register(JSON.parse(\"{\\\"1EiEV\\\":\\\"index.8c777ca2.js\\\",\\\"gbcXk\\\":\\\"style.9d159f0e.css\\\",\\\"hwmB9\\\":\\\"background.761bc37b.jpg\\\",\\\"d3YkH\\\":\\\"artwork-suzuha.09fac1ca.png\\\",\\\"aroW2\\\":\\\"artwork-ede.54057cad.png\\\",\\\"ilpGW\\\":\\\"cover-renaissance-s4-1024.6b8555ec.png\\\",\\\"6Vjqf\\\":\\\"artwork-statue-chateau-s4.d48a5537.png\\\",\\\"gR7QX\\\":\\\"artwork-lecture-s4.7439fb69.png\\\"}\"));","module.exports = require('./helpers/bundle-url').getBundleURL('1EiEV') + require('./helpers/bundle-manifest').resolve(\"gbcXk\");","import styleUrl from \"url:../styles/style.css\";\n\nclass AdrQuestionNumber extends HTMLElement {\n\n static get observedAttributes() {\n return ['question-index', 'questions-length']\n }\n\n attributeChangedCallback() {\n this.wrapper.innerHTML = `\n

\n ${this.getAttribute('question-index')}/${this.getAttribute('questions-length')}\n

\n `\n }\n\n constructor() {\n super()\n this.wrapper = document.createElement('div')\n this.wrapper.classList.add('question-number')\n var shadow = this.attachShadow({mode: 'closed'})\n shadow.innerHTML = `\n \n \n `\n shadow.appendChild(this.wrapper)\n }\n\n}\n\ncustomElements.define('adr-question-number', AdrQuestionNumber)\n\n"],"names":["parcelRequire","register","JSON","parse","$1d65ab9505873ff4$exports","getBundleURL","resolve","$f21d39811746fb36$var$AdrQuestionNumber","HTMLElement","wrapper","document","createElement","classList","add","shadow","_this","attachShadow","mode","innerHTML","concat","$parcel$interopDefault","appendChild","key","this","getAttribute","customElements","define"],"version":3,"file":"index.8c777ca2.js.map"} \ No newline at end of file +{"mappings":"iiBAAAA,EAAA,SAAAC,SAA8CC,KAAKC,MAAM,8b,mBCAzDC,EAAiBJ,EAAA,SAAAK,aAA6C,SAAWL,EAAA,SAAAM,QAA6C,S,ICEhHC,EAAN,SAAQC,G,wBAAFD,EAAiBC,G,oBAAjBD,G,SAAAA,I,4BAAAA,I,gBAgBGE,QAAUC,SAASC,cAAc,O,EACjCF,QAAQG,UAAUC,IAAI,mBAC3B,IAAIC,EAAMC,EAAQC,aAAa,CAACC,KAAM,W,OACtCH,EAAOI,UAAa,iJAEsCC,OAATC,EAAAhB,GAAS,YAE1DU,EAAOO,YAAWN,EAAMN,S,uBAvBtBF,EAAiB,C,CAMrBe,IAAA,2B,MAAA,WACEC,KAAKd,QAAQS,UAAa,wBAEmBC,OAAvCI,KAAKC,aAAa,kBAAkB,KAAyCL,OAAtCI,KAAKC,aAAa,oBAAoB,qBAGrF,I,EAVWF,IAAA,qB,IAAX,WACE,MAAO,CAAC,iBAAkB,mBAC5B,KAJIf,C,CAAN,C,kBAAgCC,cA4BhCiB,eAAeC,OAAO,sBAAuBnB,E","sources":["node_modules/@parcel/runtime-js/lib/runtime-1b9970d1008dc17b.js","node_modules/@parcel/runtime-js/lib/runtime-1f23b747b5343cd3.js","js/adr-question-number.js"],"sourcesContent":["require('./helpers/bundle-manifest').register(JSON.parse(\"{\\\"1EiEV\\\":\\\"index.2628d589.js\\\",\\\"gbcXk\\\":\\\"style.695090bc.css\\\",\\\"hwmB9\\\":\\\"background.761bc37b.jpg\\\",\\\"d3YkH\\\":\\\"artwork-suzuha.09fac1ca.png\\\",\\\"aroW2\\\":\\\"artwork-ede.54057cad.png\\\",\\\"ilpGW\\\":\\\"cover-renaissance-s4-1024.6b8555ec.png\\\",\\\"6Vjqf\\\":\\\"artwork-statue-chateau-s4.d48a5537.png\\\",\\\"gR7QX\\\":\\\"artwork-lecture-s4.7439fb69.png\\\"}\"));","module.exports = require('./helpers/bundle-url').getBundleURL('1EiEV') + require('./helpers/bundle-manifest').resolve(\"gbcXk\");","import styleUrl from \"url:../styles/style.css\";\n\nclass AdrQuestionNumber extends HTMLElement {\n\n static get observedAttributes() {\n return ['question-index', 'questions-length']\n }\n\n attributeChangedCallback() {\n this.wrapper.innerHTML = `\n

\n ${this.getAttribute('question-index')}/${this.getAttribute('questions-length')}\n

\n `\n }\n\n constructor() {\n super()\n this.wrapper = document.createElement('div')\n this.wrapper.classList.add('question-number')\n var shadow = this.attachShadow({mode: 'closed'})\n shadow.innerHTML = `\n \n \n `\n shadow.appendChild(this.wrapper)\n }\n\n}\n\ncustomElements.define('adr-question-number', AdrQuestionNumber)\n\n"],"names":["parcelRequire","register","JSON","parse","$1d65ab9505873ff4$exports","getBundleURL","resolve","$f21d39811746fb36$var$AdrQuestionNumber","HTMLElement","wrapper","document","createElement","classList","add","shadow","_this","attachShadow","mode","innerHTML","concat","$parcel$interopDefault","appendChild","key","this","getAttribute","customElements","define"],"version":3,"file":"index.2628d589.js.map"} \ No newline at end of file diff --git a/index.e60d5774.js b/index.26bab818.js similarity index 97% rename from index.e60d5774.js rename to index.26bab818.js index 5d3de3d9..ca8d97ac 100644 --- a/index.e60d5774.js +++ b/index.26bab818.js @@ -1,2 +1,2 @@ -!function(){function e(e,t,n,s){Object.defineProperty(e,t,{get:n,set:s,enumerable:!0,configurable:!0})}function t(e){return e&&e.__esModule?e.default:e}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},s={},r={},i=n.parcelRequire1ebe;null==i&&((i=function(e){if(e in s)return s[e].exports;if(e in r){var t=r[e];delete r[e];var n={id:e,exports:{}};return s[e]=n,t.call(n.exports,n,n.exports),n.exports}var i=new Error("Cannot find module '"+e+"'");throw i.code="MODULE_NOT_FOUND",i}).register=function(e,t){r[e]=t},n.parcelRequire1ebe=i),i.register("12Wwg",(function(t,n){e(t.exports,"setupQuestions",(function(){return u})),e(t.exports,"updateAnswer",(function(){return a}));var s=i("kAkBg"),r=i("jYHEd"),o=[{id:"size",label:"Plutôt roman court ou roman plus long ?",choices:[{id:"short",label:"Plutôt court.",score:{suzuha:3,ede:0,vdy:0}},{id:"long",label:"Histoire qui dure.",score:{suzuha:0,ede:2,vdy:2}},{id:"no-size-preference",label:"C'est pas la taille qui compte.",score:{suzuha:0,ede:0,vdy:0}}]},{id:"pace",label:"Quel rythme de lecture recherchez-vous ? Êtes-vous dans l'action ou dans la contemplation ?",choices:[{id:"fast",label:"J'aime quand les événements s'enchainent rapidement.",score:{suzuha:3,ede:3,vdy:1}},{id:"slow",label:"Je veux m'imprégner de l'ambiance avec de belles descriptions.",score:{suzuha:1,ede:2,vdy:3}},{id:"middle",label:"Tout est dans l'équilibre.",score:{suzuha:1,ede:3,vdy:2}}]},{id:"time",label:"Quel temps de narration préférez-vous ?",choices:[{id:"present",label:"Présent",score:{suzuha:3,ede:3,vdy:0}},{id:"past",label:"Passé",score:{suzuha:0,ede:0,vdy:3}},{id:"no-time-preference",label:"Aucune importance, tant que le style m'emporte.",score:{suzuha:0,ede:0,vdy:0}}]},{id:"affinity",label:"Y a-t-il un élément du cercle de la magie qui vous inspire particulièrement ?",choices:[{id:"water",label:"Eau",score:{suzuha:3,ede:2,vdy:0}},{id:"light",label:"Lumière",score:{suzuha:0,ede:3,vdy:3}},{id:"darkness",label:"Ombre",score:{suzuha:0,ede:3,vdy:0}}]},{id:"theme",label:"Parmi les thématiques suivantes, laquelle vous parle le plus ?",choices:[{id:"feminism",label:"Féminisme",score:{suzuha:3,ede:1,vdy:1}},{id:"journey",label:"Voyage",score:{suzuha:1,ede:3,vdy:1}},{id:"culture-shock",label:"Choc des cultures",score:{suzuha:1,ede:2,vdy:3}}]},{id:"character",label:"Quel genre de personnage avez-vous envie de suivre ?",choices:[{id:"heros",label:"Une héroïne dans la pure tradition, gentille, courageuse et travailleuse.",score:{suzuha:3,ede:0,vdy:0}},{id:"dark-man",label:"Un jeune homme qui a ses défauts et un lourd passé.",score:{suzuha:0,ede:1,vdy:3}},{id:"duo",label:"Et pourquoi pas deux personnages dont les chemins vont se croiser ?",score:{suzuha:0,ede:3,vdy:0}}]},{id:"pet",label:"Le compagnon idéal du rôdeur qui est en vous ?",choices:[{id:"squirrel",label:"Un écureuil",score:{suzuha:0,ede:3,vdy:0}},{id:"dragon-tiger",label:"Un GROS félin",score:{suzuha:3,ede:0,vdy:0}},{id:"no-animal",label:"Je préfère les arbres aux animaux.",score:{suzuha:0,ede:0,vdy:3}}]}];function u(){window.questions=o.sort((function(){return Math.random()-.5})),r.select("wtr-question-number").setAttribute("questions-length",window.questions.length),c(),r.select("wtr-button-next").addEventListener("click",h)}function a(e){window.selectedAnswer=e,d()}function l(){return window.questionIndex\n '),r.appendChild(e.wrapper),e}return u.createClass(s,[{key:"attributeChangedCallback",value:function(e,t,n){null!==t&&this.removeQuestionListeners();var s=JSON.parse(n);this.showQuestion(s),this.addQuestionListeners()}},{key:"disconnectedCallback",value:function(){this.removeQuestionListeners()}},{key:"addQuestionListeners",value:function(){var e=this;this.wrapper.querySelectorAll("[name]").forEach((function(t){t.addEventListener("change",e.selectAnswer)}))}},{key:"removeQuestionListeners",value:function(){var e=this;this.wrapper.querySelectorAll("[name]").forEach((function(t){t.removeEventListener("change",e.selectAnswer)}))}},{key:"selectAnswer",value:function(e){a.updateAnswer(e.target.value)}},{key:"showQuestion",value:function(e){var t="",n=!0,s=" checked";e.choices.forEach((function(e){t+='\n
\n \n \n
\n "),n&&(n=!1,s="")})),this.wrapper.innerHTML="\n

".concat(e.label,"

\n ").concat(t,"\n ")}}],[{key:"observedAttributes",get:function(){return["question"]}}]),s}(u.wrapNativeSuper(HTMLElement));customElements.define("adr-question",l)}(); -//# sourceMappingURL=index.e60d5774.js.map +!function(){function e(e,t,n,s){Object.defineProperty(e,t,{get:n,set:s,enumerable:!0,configurable:!0})}function t(e){return e&&e.__esModule?e.default:e}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},s={},r={},i=n.parcelRequire1ebe;null==i&&((i=function(e){if(e in s)return s[e].exports;if(e in r){var t=r[e];delete r[e];var n={id:e,exports:{}};return s[e]=n,t.call(n.exports,n,n.exports),n.exports}var i=new Error("Cannot find module '"+e+"'");throw i.code="MODULE_NOT_FOUND",i}).register=function(e,t){r[e]=t},n.parcelRequire1ebe=i),i.register("12Wwg",(function(t,n){e(t.exports,"setupQuestions",(function(){return u})),e(t.exports,"updateAnswer",(function(){return a}));var s=i("kAkBg"),r=i("jYHEd"),o=[{id:"size",label:"Plutôt roman court ou roman plus long ?",choices:[{id:"short",label:"Plutôt court.",score:{suzuha:3,ede:0,vdy:0}},{id:"long",label:"Histoire qui dure.",score:{suzuha:0,ede:2,vdy:2}},{id:"no-size-preference",label:"C'est pas la taille qui compte.",score:{suzuha:0,ede:0,vdy:0}}]},{id:"pace",label:"Quel rythme de lecture recherchez-vous ? Êtes-vous dans l'action ou dans la contemplation ?",choices:[{id:"fast",label:"J'aime quand les événements s'enchainent rapidement.",score:{suzuha:3,ede:3,vdy:1}},{id:"slow",label:"Je veux m'imprégner de l'ambiance avec de belles descriptions.",score:{suzuha:1,ede:2,vdy:3}},{id:"middle",label:"Tout est dans l'équilibre.",score:{suzuha:1,ede:3,vdy:2}}]},{id:"time",label:"Quel temps de narration préférez-vous ?",choices:[{id:"present",label:"Présent",score:{suzuha:3,ede:3,vdy:0}},{id:"past",label:"Passé",score:{suzuha:0,ede:0,vdy:3}},{id:"no-time-preference",label:"Aucune importance, tant que le style m'emporte.",score:{suzuha:0,ede:0,vdy:0}}]},{id:"affinity",label:"Y a-t-il un élément du cercle de la magie qui vous inspire particulièrement ?",choices:[{id:"water",label:"Eau",score:{suzuha:3,ede:2,vdy:0}},{id:"light",label:"Lumière",score:{suzuha:0,ede:3,vdy:3}},{id:"darkness",label:"Ombre",score:{suzuha:0,ede:3,vdy:0}}]},{id:"theme",label:"Parmi les thématiques suivantes, laquelle vous parle le plus ?",choices:[{id:"feminism",label:"Féminisme",score:{suzuha:3,ede:1,vdy:1}},{id:"journey",label:"Voyage",score:{suzuha:1,ede:3,vdy:1}},{id:"culture-shock",label:"Choc des cultures",score:{suzuha:1,ede:2,vdy:3}}]},{id:"character",label:"Quel genre de personnage avez-vous envie de suivre ?",choices:[{id:"heros",label:"Une héroïne dans la pure tradition, gentille, courageuse et travailleuse.",score:{suzuha:3,ede:0,vdy:0}},{id:"dark-man",label:"Un jeune homme qui a ses défauts et un lourd passé.",score:{suzuha:0,ede:1,vdy:3}},{id:"duo",label:"Et pourquoi pas deux personnages dont les chemins vont se croiser ?",score:{suzuha:0,ede:3,vdy:0}}]},{id:"pet",label:"Le compagnon idéal du rôdeur qui est en vous ?",choices:[{id:"squirrel",label:"Un écureuil",score:{suzuha:0,ede:3,vdy:0}},{id:"dragon-tiger",label:"Un GROS félin",score:{suzuha:3,ede:0,vdy:0}},{id:"no-animal",label:"Je préfère les arbres aux animaux.",score:{suzuha:0,ede:0,vdy:3}}]}];function u(){window.questions=o.sort((function(){return Math.random()-.5})),r.select("wtr-question-number").setAttribute("questions-length",window.questions.length),c(),r.select("wtr-button-next").addEventListener("click",h)}function a(e){window.selectedAnswer=e,d()}function l(){return window.questionIndex\n '),r.appendChild(e.wrapper),e}return u.createClass(s,[{key:"attributeChangedCallback",value:function(e,t,n){null!==t&&this.removeQuestionListeners();var s=JSON.parse(n);this.showQuestion(s),this.addQuestionListeners()}},{key:"disconnectedCallback",value:function(){this.removeQuestionListeners()}},{key:"addQuestionListeners",value:function(){var e=this;this.wrapper.querySelectorAll("[name]").forEach((function(t){t.addEventListener("change",e.selectAnswer)}))}},{key:"removeQuestionListeners",value:function(){var e=this;this.wrapper.querySelectorAll("[name]").forEach((function(t){t.removeEventListener("change",e.selectAnswer)}))}},{key:"selectAnswer",value:function(e){a.updateAnswer(e.target.value)}},{key:"showQuestion",value:function(e){var t="",n=!0,s=" checked";e.choices.forEach((function(e){t+='\n
\n \n \n
\n "),n&&(n=!1,s="")})),this.wrapper.innerHTML="\n

".concat(e.label,"

\n ").concat(t,"\n ")}}],[{key:"observedAttributes",get:function(){return["question"]}}]),s}(u.wrapNativeSuper(HTMLElement));customElements.define("adr-question",l)}(); +//# sourceMappingURL=index.26bab818.js.map diff --git a/index.e60d5774.js.map b/index.26bab818.js.map similarity index 99% rename from index.e60d5774.js.map rename to index.26bab818.js.map index 0a42c5ca..6b796eeb 100644 --- a/index.e60d5774.js.map +++ b/index.26bab818.js.map @@ -1 +1 @@ -{"mappings":"oyBAEMA,EAAY,CAAC,CACjBC,GAAI,OACJC,MAAO,0CACNC,QAAQ,CAAC,CACRF,GAAI,QACJC,MAAO,gBACNE,MAAM,CAAEC,OAAQ,EAAGC,IAAK,EAAGC,IAAK,IAChC,CACDN,GAAI,OACJC,MAAO,qBACPE,MAAO,CAAEC,OAAQ,EAAGC,IAAK,EAAGC,IAAK,IAChC,CACDN,GAAI,qBACJC,MAAO,kCACPE,MAAO,CAAEC,OAAQ,EAAGC,IAAK,EAAGC,IAAK,MAElC,CACDN,GAAI,OACJC,MAAO,8FACNC,QAAQ,CAAC,CACRF,GAAI,OACJC,MAAO,uDACLE,MAAK,CAAEC,OAAQ,EAAGC,IAAK,EAAGC,IAAK,IAChC,CACDN,GAAI,OACJC,MAAO,iEACNE,MAAM,CAAEC,OAAQ,EAAGC,IAAK,EAAGC,IAAK,IAChC,CACDN,GAAI,SACJC,MAAO,6BACNE,MAAM,CAAEC,OAAQ,EAAGC,IAAK,EAAGC,I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AC1C,GACF,G,CAEAxC,IAAA,0B,MAAA,W,WACwBgC,KAAKb,QAAQkB,iBAAiB,UACpCC,SAAQ,SAACC,GACvBA,EAAQE,oBAAoB,SAAQlB,EAAOiB,aAC7C,GACF,G,CAEAxC,IAAA,e,MAAA,SAAa0C,GACXC,EAAAC,aAAaF,EAAMG,OAAOlE,MAC5B,G,CAEAqB,IAAA,e,MAAA,SAAakC,GACX,IAAIY,EAAU,GACVC,GAAQ,EACRC,EAAU,WACdd,EAAS1E,QAAQ8E,SAAQ,SAACW,GACxBH,GAAY,sDAEuDpB,OAArCuB,EAAO3F,GAAG,6BAAwCoE,OAAbuB,EAAO3F,GAAG,KAC3DoE,OAD8DsB,EAAQ,6BACxDtB,OAAduB,EAAO3F,GAAG,MAAiBoE,OAAbuB,EAAO1F,MAAM,oCAGzCwF,IACFA,GAAQ,EACRC,EAAU,GAEd,IACAhB,KAAKb,QAAQV,UAAa,cAEtBiB,OADGQ,EAAS3E,MAAM,gBACVmE,OAARoB,EAAQ,SAEd,I,EAtEW9C,IAAA,qB,IAAX,WACE,MAAO,CAAC,WACV,KAJIiB,C,CAAN,C,kBAA0BC,cA2E1BgC,eAAeC,OAAO,eAAgBlC,E","sources":["js/utils/what-to-read.js","node_modules/@parcel/runtime-js/lib/runtime-a670e47103ec1bb1.js","node_modules/@parcel/runtime-js/lib/runtime-db8a1e637c00f264.js","js/adr-question.js"],"sourcesContent":["import { select } from './generics'\n\nconst questions = [{\n id: 'size',\n label: 'Plutôt roman court ou roman plus long ?',\n choices: [{\n id: 'short',\n label: 'Plutôt court.',\n score: { suzuha: 3, ede: 0, vdy: 0 }\n }, {\n id: 'long',\n label: 'Histoire qui dure.',\n score: { suzuha: 0, ede: 2, vdy: 2 }\n }, {\n id: 'no-size-preference',\n label: 'C\\'est pas la taille qui compte.',\n score: { suzuha: 0, ede: 0, vdy: 0 }\n }]\n}, {\n id: 'pace',\n label: 'Quel rythme de lecture recherchez-vous ? Êtes-vous dans l\\'action ou dans la contemplation ?',\n choices: [{\n id: 'fast',\n label: 'J\\'aime quand les événements s\\'enchainent rapidement.',\n score: { suzuha: 3, ede: 3, vdy: 1 }\n }, {\n id: 'slow',\n label: 'Je veux m\\'imprégner de l\\'ambiance avec de belles descriptions.',\n score: { suzuha: 1, ede: 2, vdy: 3 }\n }, {\n id: 'middle',\n label: 'Tout est dans l\\'équilibre.',\n score: { suzuha: 1, ede: 3, vdy: 2 }\n }]\n}, {\n id: 'time',\n label: 'Quel temps de narration préférez-vous ?',\n choices: [{\n id: 'present',\n label: 'Présent',\n score: { suzuha: 3, ede: 3, vdy: 0 }\n }, {\n id: 'past',\n label: 'Passé',\n score: { suzuha: 0, ede: 0, vdy: 3 }\n }, {\n id: 'no-time-preference',\n label: 'Aucune importance, tant que le style m\\'emporte.',\n score: { suzuha: 0, ede: 0, vdy: 0 }\n }]\n}, {\n id: 'affinity',\n label: 'Y a-t-il un élément du cercle de la magie qui vous inspire particulièrement ?',\n choices: [{\n id: 'water',\n label: 'Eau',\n score: { suzuha: 3, ede: 2, vdy: 0 }\n }, {\n id: 'light',\n label: 'Lumière',\n score: { suzuha: 0, ede: 3, vdy: 3 }\n }, {\n id: 'darkness',\n label: 'Ombre',\n score: { suzuha: 0, ede: 3, vdy: 0 }\n }]\n}, {\n id: 'theme',\n label: 'Parmi les thématiques suivantes, laquelle vous parle le plus ?',\n choices: [{\n id: 'feminism',\n label: 'Féminisme',\n score: { suzuha: 3, ede: 1, vdy: 1 }\n }, {\n id: 'journey',\n label: 'Voyage',\n score: { suzuha: 1, ede: 3, vdy: 1 }\n }, {\n id: 'culture-shock',\n label: 'Choc des cultures',\n score: { suzuha: 1, ede: 2, vdy: 3 }\n }]\n}, {\n id: 'character',\n label: 'Quel genre de personnage avez-vous envie de suivre ?',\n choices: [{\n id: 'heros',\n label: 'Une héroïne dans la pure tradition, gentille, courageuse et travailleuse.',\n score: { suzuha: 3, ede: 0, vdy: 0 }\n }, {\n id: 'dark-man',\n label: 'Un jeune homme qui a ses défauts et un lourd passé.',\n score: { suzuha: 0, ede: 1, vdy: 3 }\n }, {\n id: 'duo',\n label: 'Et pourquoi pas deux personnages dont les chemins vont se croiser ?',\n score: { suzuha: 0, ede: 3, vdy: 0 }\n }]\n}, {\n id: 'pet',\n label: 'Le compagnon idéal du rôdeur qui est en vous ?',\n choices: [{\n id: 'squirrel',\n label: 'Un écureuil',\n score: { suzuha: 0, ede: 3, vdy: 0 }\n }, {\n id: 'dragon-tiger',\n label: 'Un GROS félin',\n score: { suzuha: 3, ede: 0, vdy: 0 }\n }, {\n id: 'no-animal',\n label: 'Je préfère les arbres aux animaux.',\n score: { suzuha: 0, ede: 0, vdy: 3 }\n }]\n}]\n\nexport function setupQuestions() {\n // Set up the list of questions in a random order\n window.questions = questions.sort(() => Math.random() - 0.5);\n let adrQuestionNumberElement = select('wtr-question-number')\n adrQuestionNumberElement.setAttribute('questions-length', window.questions.length)\n // Initialize the current question\n _showQuestion()\n // Bind the next question function to the next question button's click\n let nextQuestionButton = select('wtr-button-next')\n nextQuestionButton.addEventListener('click', _nextQuestion)\n}\n\nexport function updateAnswer(value) {\n window.selectedAnswer = value \n _computeTmpScore()\n}\n\n/*\n * Return the structure of the current question, based on \"window.questionIndex\"\n */\nfunction _getQuestion() {\n return window.questionIndex < window.questions.length \n ? window.questions[window.questionIndex]\n : undefined\n}\n\n/*\n * Update the temporay score \"window.tmpScore\".\n * It is the sum of the actual score and the current question score.\n * It should be updated each time the selected answer changes.\n */\nfunction _computeTmpScore() {\n // Compute the temporary score from actual score and current question\n let questionScore = _getQuestion().choices.find(({ id }) => {\n return id === window.selectedAnswer\n }).score\n for (let [key] of Object.entries(window.tmpScore)) {\n window.tmpScore[key] = window.score[key] + questionScore[key]\n }\n // Update the result list order\n let resultListElement = select('wtr-result')\n resultListElement.setAttribute('score', JSON.stringify(window.tmpScore))\n}\n\n/*\n * Update the question component attributes to display the current question.\n */\nfunction _showQuestion() {\n // Initialize the selected answer and the temporary score \n window.selectedAnswer = _getQuestion().choices[0].id\n _computeTmpScore()\n // Select the question component in the DOM\n let adrQuestionElement = select('wtr-question')\n // It needs the question structure\n adrQuestionElement.setAttribute('question', JSON.stringify(_getQuestion()))\n // Display the question number\n let adrQuestionNumberElement = select('wtr-question-number')\n adrQuestionNumberElement.setAttribute('question-index', window.questionIndex+1)\n}\n\nfunction _nextQuestion() {\n // Finalize current score\n Object.assign(window.score, { ...window.tmpScore })\n // Show next question\n window.questionIndex++\n if (_getQuestion()) {\n _showQuestion()\n }\n // If the last question is reached, change the button text, then hide all\n if (window.questionIndex === window.questions.length-1) {\n let nextQuestionButton = select('wtr-button-next')\n nextQuestionButton.innerHTML = 'Valider'\n } else if (window.questionIndex === window.questions.length) {\n let nextQuestionButton = select('wtr-button-next')\n nextQuestionButton.setAttribute('hidden', true)\n let adrQuestionElement = select('wtr-question')\n adrQuestionElement.setAttribute('hidden', true)\n let adrQuestionNumberElement = select('wtr-question-number')\n adrQuestionNumberElement.setAttribute('hidden', true)\n let adrLinkToBooksElement = select('wtr-see-books')\n adrLinkToBooksElement.removeAttribute('hidden')\n }\n}\n","require('./helpers/bundle-manifest').register(JSON.parse(\"{\\\"liO3X\\\":\\\"index.e60d5774.js\\\",\\\"gbcXk\\\":\\\"style.9d159f0e.css\\\",\\\"hwmB9\\\":\\\"background.761bc37b.jpg\\\",\\\"d3YkH\\\":\\\"artwork-suzuha.09fac1ca.png\\\",\\\"aroW2\\\":\\\"artwork-ede.54057cad.png\\\",\\\"ilpGW\\\":\\\"cover-renaissance-s4-1024.6b8555ec.png\\\",\\\"6Vjqf\\\":\\\"artwork-statue-chateau-s4.d48a5537.png\\\",\\\"gR7QX\\\":\\\"artwork-lecture-s4.7439fb69.png\\\"}\"));","module.exports = require('./helpers/bundle-url').getBundleURL('liO3X') + require('./helpers/bundle-manifest').resolve(\"gbcXk\");","import styleUrl from \"url:../styles/style.css\";\nimport { updateAnswer } from './utils/what-to-read';\n\nclass AdrQuestion extends HTMLElement {\n\n static get observedAttributes() {\n return ['question']\n }\n\n attributeChangedCallback(_, oldValue, newValue) {\n // Remove the listeners of the old question\n if (oldValue !== null) {\n this.removeQuestionListeners()\n }\n // Get the new question structure from the stringified attribute\n let question = JSON.parse(newValue)\n // Show the new question in the DOM\n this.showQuestion(question)\n // Add the listeners of the new question\n this.addQuestionListeners()\n }\n\n disconnectedCallback() {\n this.removeQuestionListeners()\n }\n\n constructor() {\n super()\n this.wrapper = document.createElement('div')\n var shadow = this.attachShadow({mode: 'closed'})\n shadow.innerHTML = `\n \n \n `\n shadow.appendChild(this.wrapper)\n }\n\n addQuestionListeners() {\n let answersElements = this.wrapper.querySelectorAll('[name]')\n answersElements.forEach((element) => {\n element.addEventListener('change', this.selectAnswer)\n })\n }\n\n removeQuestionListeners() {\n let answersElements = this.wrapper.querySelectorAll('[name]')\n answersElements.forEach((element) => {\n element.removeEventListener('change', this.selectAnswer)\n })\n }\n\n selectAnswer(event) {\n updateAnswer(event.target.value)\n }\n\n showQuestion(question) {\n let answers = ''\n let first = true\n let checked = ' checked'\n question.choices.forEach((choice) => {\n answers += `\n
\n \n \n
\n `\n if (first) {\n first = false\n checked = ''\n }\n })\n this.wrapper.innerHTML = `\n

${question.label}

\n ${answers}\n `\n }\n}\n\ncustomElements.define('adr-question', AdrQuestion)\n\n"],"names":["$0c335f126f71bcfc$var$questions","id","label","choices","score","suzuha","ede","vdy","$0c335f126f71bcfc$export$f99a8a4804d97169","window","questions","sort","Math","random","$jYHEd","select","setAttribute","length","$0c335f126f71bcfc$var$_showQuestion","addEventListener","$0c335f126f71bcfc$var$_nextQuestion","$0c335f126f71bcfc$export$63e15e612a739edb","value","selectedAnswer","$0c335f126f71bcfc$var$_computeTmpScore","$0c335f126f71bcfc$var$_getQuestion","questionIndex","undefined","questionScore","find","param","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_step","_iterator","Object","entries","tmpScore","Symbol","iterator","next","done","key","$kAkBg","slicedToArray","err","return","JSON","stringify","assign","objectSpread","innerHTML","removeAttribute","parcelRequire","register","parse","$71201dc8a607e595$exports","getBundleURL","resolve","$24cc7540123f4ea9$var$AdrQuestion","HTMLElement","wrapper","document","createElement","shadow","_this","attachShadow","mode","concat","$parcel$interopDefault","appendChild","_","oldValue","newValue","this","removeQuestionListeners","question","showQuestion","addQuestionListeners","querySelectorAll","forEach","element","selectAnswer","removeEventListener","event","$12Wwg","updateAnswer","target","answers","first","checked","choice","customElements","define"],"version":3,"file":"index.e60d5774.js.map"} \ No newline at end of file +{"mappings":"oyBAEMA,EAAY,CAAC,CACjBC,GAAI,OACJC,MAAO,0CACNC,QAAQ,CAAC,CACRF,GAAI,QACJC,MAAO,gBACNE,MAAM,CAAEC,OAAQ,EAAGC,IAAK,EAAGC,IAAK,IAChC,CACDN,GAAI,OACJC,MAAO,qBACPE,MAAO,CAAEC,OAAQ,EAAGC,IAAK,EAAGC,IAAK,IAChC,CACDN,GAAI,qBACJC,MAAO,kCACPE,MAAO,CAAEC,OAAQ,EAAGC,IAAK,EAAGC,IAAK,MAElC,CACDN,GAAI,OACJC,MAAO,8FACNC,QAAQ,CAAC,CACRF,GAAI,OACJC,MAAO,uDACLE,MAAK,CAAEC,OAAQ,EAAGC,IAAK,EAAGC,IAAK,IAChC,CACDN,GAAI,OACJC,MAAO,iEACNE,MAAM,CAAEC,OAAQ,EAAGC,IAAK,EAAGC,IAAK,IAChC,CACDN,GAAI,SACJC,MAAO,6BACNE,MAAM,CAAEC,OAAQ,EAAGC,IAAK,EAAGC,IAAK,MAElC,CACDN,GAAI,OACJC,MAAO,0CACLC,QAAO,CAAC,CACRF,GAAI,UACJC,MAAO,UACNE,MAAM,CAAEC,OAAQ,EAAGC,IAAK,EAAGC,IAAK,IAChC,CACDN,GAAI,OACJC,MAAO,QACNE,MAAM,CAAEC,OAAQ,EAAGC,IAAK,EAAGC,IAAK,IAChC,CACDN,GAAI,qBACJC,MAAO,kDACPE,MAAO,CAAEC,OAAQ,EAAGC,IAAK,EAAGC,IAAK,MAElC,C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S1E,QAAQ8E,SAAQ,SAACW,GACxBH,GAAY,sDAEuDpB,OAArCuB,EAAO3F,GAAG,6BAAwCoE,OAAbuB,EAAO3F,GAAG,KAC3DoE,OAD8DsB,EAAQ,6BACxDtB,OAAduB,EAAO3F,GAAG,MAAiBoE,OAAbuB,EAAO1F,MAAM,oCAGzCwF,IACFA,GAAQ,EACRC,EAAU,GAEd,IACAhB,KAAKb,QAAQV,UAAa,cAEtBiB,OADGQ,EAAS3E,MAAM,gBACVmE,OAARoB,EAAQ,SAEd,I,EAtEW9C,IAAA,qB,IAAX,WACE,MAAO,CAAC,WACV,KAJIiB,C,CAAN,C,kBAA0BC,cA2E1BgC,eAAeC,OAAO,eAAgBlC,E","sources":["js/utils/what-to-read.js","node_modules/@parcel/runtime-js/lib/runtime-a670e47103ec1bb1.js","node_modules/@parcel/runtime-js/lib/runtime-db8a1e637c00f264.js","js/adr-question.js"],"sourcesContent":["import { select } from './generics'\n\nconst questions = [{\n id: 'size',\n label: 'Plutôt roman court ou roman plus long ?',\n choices: [{\n id: 'short',\n label: 'Plutôt court.',\n score: { suzuha: 3, ede: 0, vdy: 0 }\n }, {\n id: 'long',\n label: 'Histoire qui dure.',\n score: { suzuha: 0, ede: 2, vdy: 2 }\n }, {\n id: 'no-size-preference',\n label: 'C\\'est pas la taille qui compte.',\n score: { suzuha: 0, ede: 0, vdy: 0 }\n }]\n}, {\n id: 'pace',\n label: 'Quel rythme de lecture recherchez-vous ? Êtes-vous dans l\\'action ou dans la contemplation ?',\n choices: [{\n id: 'fast',\n label: 'J\\'aime quand les événements s\\'enchainent rapidement.',\n score: { suzuha: 3, ede: 3, vdy: 1 }\n }, {\n id: 'slow',\n label: 'Je veux m\\'imprégner de l\\'ambiance avec de belles descriptions.',\n score: { suzuha: 1, ede: 2, vdy: 3 }\n }, {\n id: 'middle',\n label: 'Tout est dans l\\'équilibre.',\n score: { suzuha: 1, ede: 3, vdy: 2 }\n }]\n}, {\n id: 'time',\n label: 'Quel temps de narration préférez-vous ?',\n choices: [{\n id: 'present',\n label: 'Présent',\n score: { suzuha: 3, ede: 3, vdy: 0 }\n }, {\n id: 'past',\n label: 'Passé',\n score: { suzuha: 0, ede: 0, vdy: 3 }\n }, {\n id: 'no-time-preference',\n label: 'Aucune importance, tant que le style m\\'emporte.',\n score: { suzuha: 0, ede: 0, vdy: 0 }\n }]\n}, {\n id: 'affinity',\n label: 'Y a-t-il un élément du cercle de la magie qui vous inspire particulièrement ?',\n choices: [{\n id: 'water',\n label: 'Eau',\n score: { suzuha: 3, ede: 2, vdy: 0 }\n }, {\n id: 'light',\n label: 'Lumière',\n score: { suzuha: 0, ede: 3, vdy: 3 }\n }, {\n id: 'darkness',\n label: 'Ombre',\n score: { suzuha: 0, ede: 3, vdy: 0 }\n }]\n}, {\n id: 'theme',\n label: 'Parmi les thématiques suivantes, laquelle vous parle le plus ?',\n choices: [{\n id: 'feminism',\n label: 'Féminisme',\n score: { suzuha: 3, ede: 1, vdy: 1 }\n }, {\n id: 'journey',\n label: 'Voyage',\n score: { suzuha: 1, ede: 3, vdy: 1 }\n }, {\n id: 'culture-shock',\n label: 'Choc des cultures',\n score: { suzuha: 1, ede: 2, vdy: 3 }\n }]\n}, {\n id: 'character',\n label: 'Quel genre de personnage avez-vous envie de suivre ?',\n choices: [{\n id: 'heros',\n label: 'Une héroïne dans la pure tradition, gentille, courageuse et travailleuse.',\n score: { suzuha: 3, ede: 0, vdy: 0 }\n }, {\n id: 'dark-man',\n label: 'Un jeune homme qui a ses défauts et un lourd passé.',\n score: { suzuha: 0, ede: 1, vdy: 3 }\n }, {\n id: 'duo',\n label: 'Et pourquoi pas deux personnages dont les chemins vont se croiser ?',\n score: { suzuha: 0, ede: 3, vdy: 0 }\n }]\n}, {\n id: 'pet',\n label: 'Le compagnon idéal du rôdeur qui est en vous ?',\n choices: [{\n id: 'squirrel',\n label: 'Un écureuil',\n score: { suzuha: 0, ede: 3, vdy: 0 }\n }, {\n id: 'dragon-tiger',\n label: 'Un GROS félin',\n score: { suzuha: 3, ede: 0, vdy: 0 }\n }, {\n id: 'no-animal',\n label: 'Je préfère les arbres aux animaux.',\n score: { suzuha: 0, ede: 0, vdy: 3 }\n }]\n}]\n\nexport function setupQuestions() {\n // Set up the list of questions in a random order\n window.questions = questions.sort(() => Math.random() - 0.5);\n let adrQuestionNumberElement = select('wtr-question-number')\n adrQuestionNumberElement.setAttribute('questions-length', window.questions.length)\n // Initialize the current question\n _showQuestion()\n // Bind the next question function to the next question button's click\n let nextQuestionButton = select('wtr-button-next')\n nextQuestionButton.addEventListener('click', _nextQuestion)\n}\n\nexport function updateAnswer(value) {\n window.selectedAnswer = value \n _computeTmpScore()\n}\n\n/*\n * Return the structure of the current question, based on \"window.questionIndex\"\n */\nfunction _getQuestion() {\n return window.questionIndex < window.questions.length \n ? window.questions[window.questionIndex]\n : undefined\n}\n\n/*\n * Update the temporay score \"window.tmpScore\".\n * It is the sum of the actual score and the current question score.\n * It should be updated each time the selected answer changes.\n */\nfunction _computeTmpScore() {\n // Compute the temporary score from actual score and current question\n let questionScore = _getQuestion().choices.find(({ id }) => {\n return id === window.selectedAnswer\n }).score\n for (let [key] of Object.entries(window.tmpScore)) {\n window.tmpScore[key] = window.score[key] + questionScore[key]\n }\n // Update the result list order\n let resultListElement = select('wtr-result')\n resultListElement.setAttribute('score', JSON.stringify(window.tmpScore))\n}\n\n/*\n * Update the question component attributes to display the current question.\n */\nfunction _showQuestion() {\n // Initialize the selected answer and the temporary score \n window.selectedAnswer = _getQuestion().choices[0].id\n _computeTmpScore()\n // Select the question component in the DOM\n let adrQuestionElement = select('wtr-question')\n // It needs the question structure\n adrQuestionElement.setAttribute('question', JSON.stringify(_getQuestion()))\n // Display the question number\n let adrQuestionNumberElement = select('wtr-question-number')\n adrQuestionNumberElement.setAttribute('question-index', window.questionIndex+1)\n}\n\nfunction _nextQuestion() {\n // Finalize current score\n Object.assign(window.score, { ...window.tmpScore })\n // Show next question\n window.questionIndex++\n if (_getQuestion()) {\n _showQuestion()\n }\n // If the last question is reached, change the button text, then hide all\n if (window.questionIndex === window.questions.length-1) {\n let nextQuestionButton = select('wtr-button-next')\n nextQuestionButton.innerHTML = 'Valider'\n } else if (window.questionIndex === window.questions.length) {\n let nextQuestionButton = select('wtr-button-next')\n nextQuestionButton.setAttribute('hidden', true)\n let adrQuestionElement = select('wtr-question')\n adrQuestionElement.setAttribute('hidden', true)\n let adrQuestionNumberElement = select('wtr-question-number')\n adrQuestionNumberElement.setAttribute('hidden', true)\n let adrLinkToBooksElement = select('wtr-see-books')\n adrLinkToBooksElement.removeAttribute('hidden')\n }\n}\n","require('./helpers/bundle-manifest').register(JSON.parse(\"{\\\"liO3X\\\":\\\"index.26bab818.js\\\",\\\"gbcXk\\\":\\\"style.695090bc.css\\\",\\\"hwmB9\\\":\\\"background.761bc37b.jpg\\\",\\\"d3YkH\\\":\\\"artwork-suzuha.09fac1ca.png\\\",\\\"aroW2\\\":\\\"artwork-ede.54057cad.png\\\",\\\"ilpGW\\\":\\\"cover-renaissance-s4-1024.6b8555ec.png\\\",\\\"6Vjqf\\\":\\\"artwork-statue-chateau-s4.d48a5537.png\\\",\\\"gR7QX\\\":\\\"artwork-lecture-s4.7439fb69.png\\\"}\"));","module.exports = require('./helpers/bundle-url').getBundleURL('liO3X') + require('./helpers/bundle-manifest').resolve(\"gbcXk\");","import styleUrl from \"url:../styles/style.css\";\nimport { updateAnswer } from './utils/what-to-read';\n\nclass AdrQuestion extends HTMLElement {\n\n static get observedAttributes() {\n return ['question']\n }\n\n attributeChangedCallback(_, oldValue, newValue) {\n // Remove the listeners of the old question\n if (oldValue !== null) {\n this.removeQuestionListeners()\n }\n // Get the new question structure from the stringified attribute\n let question = JSON.parse(newValue)\n // Show the new question in the DOM\n this.showQuestion(question)\n // Add the listeners of the new question\n this.addQuestionListeners()\n }\n\n disconnectedCallback() {\n this.removeQuestionListeners()\n }\n\n constructor() {\n super()\n this.wrapper = document.createElement('div')\n var shadow = this.attachShadow({mode: 'closed'})\n shadow.innerHTML = `\n \n \n `\n shadow.appendChild(this.wrapper)\n }\n\n addQuestionListeners() {\n let answersElements = this.wrapper.querySelectorAll('[name]')\n answersElements.forEach((element) => {\n element.addEventListener('change', this.selectAnswer)\n })\n }\n\n removeQuestionListeners() {\n let answersElements = this.wrapper.querySelectorAll('[name]')\n answersElements.forEach((element) => {\n element.removeEventListener('change', this.selectAnswer)\n })\n }\n\n selectAnswer(event) {\n updateAnswer(event.target.value)\n }\n\n showQuestion(question) {\n let answers = ''\n let first = true\n let checked = ' checked'\n question.choices.forEach((choice) => {\n answers += `\n
\n \n \n
\n `\n if (first) {\n first = false\n checked = ''\n }\n })\n this.wrapper.innerHTML = `\n

${question.label}

\n ${answers}\n `\n }\n}\n\ncustomElements.define('adr-question', AdrQuestion)\n\n"],"names":["$0c335f126f71bcfc$var$questions","id","label","choices","score","suzuha","ede","vdy","$0c335f126f71bcfc$export$f99a8a4804d97169","window","questions","sort","Math","random","$jYHEd","select","setAttribute","length","$0c335f126f71bcfc$var$_showQuestion","addEventListener","$0c335f126f71bcfc$var$_nextQuestion","$0c335f126f71bcfc$export$63e15e612a739edb","value","selectedAnswer","$0c335f126f71bcfc$var$_computeTmpScore","$0c335f126f71bcfc$var$_getQuestion","questionIndex","undefined","questionScore","find","param","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_step","_iterator","Object","entries","tmpScore","Symbol","iterator","next","done","key","$kAkBg","slicedToArray","err","return","JSON","stringify","assign","objectSpread","innerHTML","removeAttribute","parcelRequire","register","parse","$71201dc8a607e595$exports","getBundleURL","resolve","$24cc7540123f4ea9$var$AdrQuestion","HTMLElement","wrapper","document","createElement","shadow","_this","attachShadow","mode","concat","$parcel$interopDefault","appendChild","_","oldValue","newValue","this","removeQuestionListeners","question","showQuestion","addQuestionListeners","querySelectorAll","forEach","element","selectAnswer","removeEventListener","event","$12Wwg","updateAnswer","target","answers","first","checked","choice","customElements","define"],"version":3,"file":"index.26bab818.js.map"} \ No newline at end of file diff --git a/index.2dd3fbcb.css b/index.2dd3fbcb.css deleted file mode 100644 index 1adfa3a7..00000000 --- a/index.2dd3fbcb.css +++ /dev/null @@ -1,2 +0,0 @@ -.article-button{padding:.8em 1.2em;white-space:inherit;width:100%}.article-button .article-button-icon{text-align:left}@media (min-width:72em){.article-button{width:80%}}@media (min-width:86em){.article-button{width:70%}}.pure-img-responsive{height:auto;max-width:100%}.pure-menu{background:#191818;border:none;color:#999}.pure-menu a{border:none;color:#999;padding:.6em}.pure-menu a.pure-menu-selected{color:#eee}.pure-menu ul{background:#191818;border:none}.pure-menu .menu-item-divided,.pure-menu ul{border-top:1px solid #333}.pure-menu li a:hover{background:#332b38;color:#eee}.pure-menu .pure-menu-selected,.pure-menu li a:focus{background:#6f5aa1;text-transform:none}.pure-menu .pure-menu-selected .pure-menu-link:visited{color:#eee}#layout,#menu,.menu-link{-webkit-transition:all .2s ease-out;-moz-transition:all .2s ease-out;-ms-transition:all .2s ease-out;-o-transition:all .2s ease-out;transition:all .2s ease-out}#layout{left:0;padding-left:0;position:relative}#layout.active #menu{left:260px;width:260px}#layout.active .menu-link{left:260px}#main{width:100%}.content{line-height:1.6em;margin:0 auto 50px;max-width:800px;padding:0 2em}.header{border-bottom:1px solid #eee;color:#333;margin:0;padding:2.5em 2em 0;text-align:center}.header h1{font-size:3em;font-weight:300;margin:.2em 0}.header h2{color:#ccc;font-weight:300;margin-top:0;padding:0}.content-subhead{color:#888;font-weight:300;margin:50px 0 20px}#menu{-webkit-overflow-scrolling:touch;background:#191818;bottom:0;left:0;margin-left:-260px;overflow-y:auto;position:fixed;top:0;width:260px;z-index:50}#menu a.pure-menu-link{font-weight:700}#sorting-trigger.pure-menu-item,#sorting-trigger.pure-menu-item:focus{background:#332b38}.menu-link{background:#191818;display:block;font-size:10px;height:auto;left:0;padding:2.1em 1.6em;position:fixed;top:0;width:2em;z-index:10}.menu-link:focus,.menu-link:hover{background:#332b38}.menu-link span{background-color:#eee;display:block;height:.2em;position:relative;width:100%}.menu-link span:after,.menu-link span:before{background-color:#eee;content:" ";height:.2em;margin-top:-.6em;position:absolute;width:100%}.menu-link span:after{margin-top:.6em}.rs-links{display:flex;flex-flow:wrap;justify-content:center;padding-left:25px;padding-right:25px}.rs-links a{color:#eee;padding:0;text-decoration:none}.rs-link{padding:15px}.rs-link:hover,a:focus .rs-link{background:#332b38}@media (min-width:48em){.content,.header{padding-left:2em;padding-right:2em}#layout{left:0;padding-left:260px}#menu{left:260px}.menu-link{display:none;left:260px;position:fixed}#layout.active .menu-link{left:260px}}@media (max-width:48em){#layout.active{left:260px;position:relative}#menuList{margin-left:50px}}.wtr-horizontal-menu{margin:0}.question-number{font-size:smaller;text-align:right}.question-number p{margin:0}.result-list{display:block;min-height:150px}.result-item{background-color:#6f5aa1;border-radius:2px;margin-bottom:4px;margin-top:4px;min-width:200px;padding:10px;position:absolute;transition-duration:.8s;transition-property:margin-top}.result-item--1{margin-top:0}.result-item--2{margin-top:50px}.result-item--3{margin-top:100px}.pure-button,.pure-g [class*=pure-u]{font-family:Roboto,Segoe UI,-apple-system,BlinkMacSystemFont,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.pure-button{box-shadow:2px 2px 2px #191818;margin-bottom:10px}.pure-button--black{background-color:#191818;color:#eee}.pure-button--black:focus,.pure-button--black:hover{background-color:#332b38}body{background-color:#191818;background-position:50%;background-repeat:no-repeat;background-size:cover;font-family:Roboto,Segoe UI,-apple-system,BlinkMacSystemFont,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;letter-spacing:0;line-height:1.4rem}a,body{color:#eee}h1{font-size:1.5rem}h1,h2{font-family:Tahoma,Verdana,Roboto,Segoe UI,-apple-system,BlinkMacSystemFont,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-weight:700;margin-top:20px}h2{font-size:1.3rem}.mentions{color:#999;font-size:.8rem}.container{min-height:calc(100vh - 170px)}.content{padding-top:50px}.centered{text-align:center}.right{text-align:right}.margin-bottom--medium{margin-bottom:20px}.padding--small{padding:10px}.padding--medium{padding:20px}.padding--large{padding:40px}.inline{display:inline-block}.vertical-center{vertical-align:super}.infobox{background-color:#453864a3;border-radius:2px;padding:20px;text-align:center}.infobox,.video-container{overflow:hidden}.author-header{display:flex;padding-bottom:20px}.author-header .author-header--img-container{min-width:100px}.author-header .author-header--img-container img{border-radius:50%}.author-header p{padding-left:20px}.book-background{width:100%}.background--classic{background-image:url(background.761bc37b.jpg);background-position:100%}.background--classic,.background--suzuha{background-repeat:no-repeat;background-size:cover}.background--suzuha{background-image:url(artwork-suzuha.09fac1ca.png);background-position:top}.background--ede{background-image:url(artwork-ede.54057cad.png);background-position:0}.background--ede,.background--vdy{background-repeat:no-repeat;background-size:cover}.background--vdy{background-image:url(cover-renaissance-s4-1024.6b8555ec.png);background-position:100% 0}.background--renard{background-image:url(artwork-statue-chateau-s4.d48a5537.png)}.background--lecture,.background--renard{background-position:0;background-repeat:no-repeat;background-size:cover}.background--lecture{background-image:url(artwork-lecture-s4.7439fb69.png)}.book{background-color:#453864a3}.quote{margin-bottom:10px;padding:4px;text-align:center}.download-button{height:60px;margin-right:3px;padding:5px 0 0;width:112px}.download-button img{height:50px}#info p{margin-top:0}#info .title{background-color:#453864a3}#info .title h2{margin:0}#info .info-item{background-color:#1918183d;text-align:justify}.footer{height:60px;letter-spacing:0}.hidden{display:none}.primary-button{background-color:#453864a3;font-weight:700}.primary-button:focus,.primary-button:hover{background-color:#6f5aa1}.pure-button.pa{background-color:#d14b52;color:#eee}.book-links{display:flex;flex-flow:row wrap;justify-content:space-between}.show-from-left{animation:from-left .6s}@keyframes from-left{0%{opacity:0;transform:translateX(-80px)}to{opacity:1;transform:translateX(0)}}.show-from-right{animation:from-right .6s}@keyframes from-right{0%{opacity:0;transform:translateX(80px)}to{opacity:1;transform:translateX(0)}} -/*# sourceMappingURL=index.2dd3fbcb.css.map */ diff --git a/index.2dd3fbcb.css.map b/index.2dd3fbcb.css.map deleted file mode 100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oRF,CGlRA,GACE,SAAA,CACA,uBHoRF,CACF","sources":["styles/_adr-article-button.scss","%3Cinput%20css%20bau8Rb%3E","styles/_menu.scss","styles/_what-to-read.scss","styles/style.scss"],"sourcesContent":["@use 'variables';\n\n.article-button {\n /* override pure-button to have more space to read */\n padding: .8em 1.2em;\n /* Set a width to have all buttons at the same size */\n width: 100%;\n /* Text is not wrapped by default on elements */\n white-space: inherit;\n\n .article-button-icon {\n text-align: left;\n }\n}\n\n@media (min-width: 72em) {\n .article-button {\n /* Set a width to have all buttons at the same size (bigger screen) */\n width: 80%;\n }\n}\n\n@media (min-width: 86em) {\n .article-button {\n /* Set a width to have all buttons at the same size (bigger screen) */\n width: 70%;\n }\n}\n","/* Fonts */\n/* Backgrounds colors */\n/* Texts colors */\n/* Other colors */\n/* Sizes */\n.article-button {\n /* override pure-button to have more space to read */\n padding: 0.8em 1.2em;\n /* Set a width to have all buttons at the same size */\n width: 100%;\n /* Text is not wrapped by default on elements */\n white-space: inherit;\n}\n.article-button .article-button-icon {\n text-align: left;\n}\n@media (min-width: 72em) {\n .article-button {\n /* Set a width to have all buttons at the same size (bigger screen) */\n width: 80%;\n }\n}\n@media (min-width: 86em) {\n .article-button {\n /* Set a width to have all buttons at the same size (bigger screen) */\n width: 70%;\n }\n}\n/* Pure-menu CSS override */\n.pure-img-responsive {\n max-width: 100%;\n height: auto;\n}\n.pure-menu {\n background: #191818;\n color: #999;\n border: none;\n}\n.pure-menu a {\n color: #999;\n border: none;\n padding: 0.6em 0.6em 0.6em 0.6em;\n}\n.pure-menu a.pure-menu-selected {\n color: #eee;\n}\n.pure-menu ul {\n border: none;\n background: #191818;\n border-top: 1px solid #333;\n}\n.pure-menu .menu-item-divided {\n border-top: 1px solid #333;\n}\n.pure-menu li a:hover {\n background: #332B38;\n color: #eee;\n}\n.pure-menu li a:focus {\n text-transform: none;\n background: #6f5aa1;\n}\n.pure-menu .pure-menu-selected {\n text-transform: none;\n background: #6f5aa1;\n}\n.pure-menu .pure-menu-selected .pure-menu-link:visited {\n color: #eee;\n}\n/*\nAdd transition to containers so they can push in and out.\n*/\n#layout,\n#menu,\n.menu-link {\n -webkit-transition: all 0.2s ease-out;\n -moz-transition: all 0.2s ease-out;\n -ms-transition: all 0.2s ease-out;\n -o-transition: all 0.2s ease-out;\n transition: all 0.2s ease-out;\n}\n/*\nThis is the parent `
` that contains the menu and the content area.\n*/\n#layout {\n position: relative;\n left: 0;\n padding-left: 0;\n}\n#layout.active #menu {\n left: 260px;\n width: 260px;\n}\n#layout.active .menu-link {\n left: 260px;\n}\n#main {\n width: 100%;\n}\n.content {\n margin: 0 auto;\n padding: 0 2em;\n max-width: 800px;\n margin-bottom: 50px;\n line-height: 1.6em;\n}\n.header {\n margin: 0;\n color: #333;\n text-align: center;\n padding: 2.5em 2em 0;\n border-bottom: 1px solid #eee;\n}\n.header h1 {\n margin: 0.2em 0;\n font-size: 3em;\n font-weight: 300;\n}\n.header h2 {\n font-weight: 300;\n color: #ccc;\n padding: 0;\n margin-top: 0;\n}\n.content-subhead {\n margin: 50px 0 20px 0;\n font-weight: 300;\n color: #888;\n}\n#menu {\n margin-left: -260px;\n width: 260px;\n position: fixed;\n top: 0;\n left: 0;\n bottom: 0;\n z-index: 50;\n background: #191818;\n overflow-y: auto;\n -webkit-overflow-scrolling: touch;\n}\n#menu a.pure-menu-link {\n font-weight: bold;\n}\n#sorting-trigger.pure-menu-item,\n#sorting-trigger.pure-menu-item:focus {\n background: #332B38;\n}\n/* -- Dynamic Button For Responsive Menu -------------------------------------*/\n/*\nThe button to open/close the Menu is custom-made and not part of Pure. Here's\nhow it works:\n*/\n/*\n`.menu-link` represents the responsive menu toggle that shows/hides on\nsmall screens.\n*/\n.menu-link {\n position: fixed;\n display: block;\n /* show this only on small screens */\n top: 0;\n left: 0;\n /* \"#menu width\" */\n background: #191818;\n font-size: 10px;\n /* change this value to increase/decrease button size */\n z-index: 10;\n width: 2em;\n height: auto;\n padding: 2.1em 1.6em;\n}\n.menu-link:hover, .menu-link:focus {\n background: #332B38;\n}\n.menu-link span {\n position: relative;\n display: block;\n background-color: #eee;\n width: 100%;\n height: 0.2em;\n}\n.menu-link span:before, .menu-link span:after {\n background-color: #eee;\n width: 100%;\n height: 0.2em;\n position: absolute;\n margin-top: -0.6em;\n content: \" \";\n}\n.menu-link span:after {\n margin-top: 0.6em;\n}\n/** Rs part **/\n.rs-links {\n display: flex;\n flex-flow: wrap;\n justify-content: center;\n /* Prevent buttons to be larger than Ko-Fi button */\n padding-left: 25px;\n padding-right: 25px;\n}\n.rs-links a {\n padding: 0px;\n color: #eee;\n /** BlueSky only **/\n text-decoration: none;\n /** BlueSky only **/\n}\n.rs-link {\n padding: 15px;\n}\n.rs-link:hover,\na:focus .rs-link {\n background: #332B38;\n}\n/* -- Responsive Styles (Media Queries) ------------------------------------- */\n/*\nHides the menu at `48em`, but modify this based on your app's needs.\n*/\n@media (min-width: 48em) {\n .header,\n.content {\n padding-left: 2em;\n padding-right: 2em;\n }\n\n #layout {\n padding-left: 260px;\n /* left col width \"#menu\" */\n left: 0;\n }\n\n #menu {\n left: 260px;\n }\n\n .menu-link {\n position: fixed;\n left: 260px;\n display: none;\n }\n\n #layout.active .menu-link {\n left: 260px;\n }\n}\n@media (max-width: 48em) {\n /* Only apply this when the window is small. Otherwise, the following\n * case results in extra padding on the left:\n * Make the window small.\n * Tap the menu to trigger the active state.\n * Make the window large again.\n */\n #layout.active {\n position: relative;\n left: 260px;\n }\n\n #menuList {\n margin-left: 50px;\n }\n}\n.wtr-horizontal-menu {\n margin: 0px;\n}\n.question-number {\n font-size: smaller;\n text-align: right;\n}\n.question-number p {\n margin: 0px;\n}\n.result-list {\n display: block;\n min-height: 150px;\n}\n.result-item {\n background-color: #6f5aa1;\n border-radius: 2px;\n margin-top: 4px;\n margin-bottom: 4px;\n padding: 10px;\n position: absolute;\n position: absolute;\n min-width: 200px;\n transition-property: margin-top;\n transition-duration: 0.8s;\n}\n.result-item--1 {\n margin-top: 0px;\n}\n.result-item--2 {\n margin-top: 50px;\n}\n.result-item--3 {\n margin-top: 100px;\n}\n/* Pure override */\n.pure-g [class*=pure-u] {\n font-family: Roboto, \"Segoe UI\", -apple-system, BlinkMacSystemFont, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\n}\n/* Pure-button CSS override */\n.pure-button {\n font-family: Roboto, \"Segoe UI\", -apple-system, BlinkMacSystemFont, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\n box-shadow: 2px 2px 2px #191818;\n margin-bottom: 10px;\n}\n.pure-button--black {\n color: #eee;\n background-color: #191818;\n}\n.pure-button--black:hover,\n.pure-button--black:focus {\n background-color: #332B38;\n}\n/** Basic classes and typography **/\nbody {\n font-family: Roboto, \"Segoe UI\", -apple-system, BlinkMacSystemFont, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\n color: #eee;\n background-color: #191818;\n background-size: cover;\n background-position: center center;\n background-repeat: no-repeat;\n letter-spacing: 0;\n line-height: 1.4rem;\n}\na {\n color: #eee;\n}\nh1 {\n font-family: Tahoma, Verdana, Roboto, \"Segoe UI\", -apple-system, BlinkMacSystemFont, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\n font-weight: bold;\n margin-top: 20px;\n font-size: 1.5rem;\n}\nh2 {\n font-family: Tahoma, Verdana, Roboto, \"Segoe UI\", -apple-system, BlinkMacSystemFont, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\n font-weight: bold;\n margin-top: 20px;\n font-size: 1.3rem;\n}\n.mentions {\n font-size: 0.8rem;\n color: #999;\n}\n/** General rules **/\n.container {\n min-height: calc(100vh - 70px - 100px);\n}\n.content {\n padding-top: 50px;\n}\n.centered {\n text-align: center;\n}\n.right {\n text-align: right;\n}\n.margin-bottom--medium {\n margin-bottom: 20px;\n}\n.padding--small {\n padding: 10px;\n}\n.padding--medium {\n padding: 20px;\n}\n.padding--large {\n padding: 40px;\n}\n.inline {\n display: inline-block;\n}\n.vertical-center {\n vertical-align: super;\n}\n/* Reusable elements */\n.infobox {\n background-color: #453864a3;\n border-radius: 2px;\n padding: 20px;\n overflow: hidden;\n text-align: center;\n}\n.video-container {\n overflow: hidden;\n}\n.author-header {\n display: flex;\n padding-bottom: 20px;\n}\n.author-header .author-header--img-container {\n min-width: 100px;\n}\n.author-header .author-header--img-container img {\n border-radius: 50%;\n}\n.author-header p {\n padding-left: 20px;\n}\n/** Page livre **/\n.book-background {\n width: 100%;\n}\n.background--classic {\n background-image: url(\"background.761bc37b.jpg\");\n background-size: cover;\n background-position: center right;\n background-repeat: no-repeat;\n}\n.background--suzuha {\n background-image: url(\"artwork-suzuha.09fac1ca.png\");\n background-size: cover;\n background-position: top center;\n background-repeat: no-repeat;\n}\n.background--ede {\n background-image: url(\"artwork-ede.54057cad.png\");\n background-size: cover;\n background-position: center left;\n background-repeat: no-repeat;\n}\n.background--vdy {\n background-image: url(\"cover-renaissance-s4-1024.6b8555ec.png\");\n background-size: cover;\n background-position: top right;\n background-repeat: no-repeat;\n}\n.background--renard {\n background-image: url(\"artwork-statue-chateau-s4.d48a5537.png\");\n background-size: cover;\n background-position: center left;\n background-repeat: no-repeat;\n}\n.background--lecture {\n background-image: url(\"artwork-lecture-s4.7439fb69.png\");\n background-size: cover;\n background-position: center left;\n background-repeat: no-repeat;\n}\n.book {\n background-color: #453864a3;\n}\n.quote {\n text-align: center;\n padding: 4px;\n margin-bottom: 10px;\n}\n/* Specific gumroad buttons */\n.download-button {\n margin-right: 3px;\n padding: 0px;\n padding-top: 5px;\n height: 60px;\n width: 112px;\n}\n.download-button img {\n height: 50px;\n}\n/** Page d'info **/\n#info p {\n margin-top: 0px;\n}\n#info .title {\n background-color: #453864a3;\n}\n#info .title h2 {\n margin: 0px;\n}\n#info .info-item {\n background-color: #1918183d;\n text-align: justify;\n}\n/** Footer **/\n.footer {\n height: 60px;\n letter-spacing: 0;\n}\n/* Cache des pages */\n.hidden {\n display: none;\n}\n/** Primary button **/\n.primary-button {\n background-color: #453864a3;\n font-weight: bold;\n}\n.primary-button:hover, .primary-button:focus {\n background-color: #6f5aa1;\n}\n/** PA button **/\n.pure-button.pa {\n background-color: #d14b52;\n color: #eee;\n}\n/** Book links **/\n.book-links {\n display: flex;\n flex-flow: row wrap;\n justify-content: space-between;\n}\n.show-from-left {\n animation: from-left 0.6s;\n}\n@keyframes from-left {\n 0% {\n opacity: 0;\n transform: translateX(-80px);\n }\n 100% {\n opacity: 1;\n transform: translateX(0px);\n }\n}\n.show-from-right {\n animation: from-right 0.6s;\n}\n@keyframes from-right {\n 0% {\n opacity: 0;\n transform: translateX(80px);\n }\n 100% {\n opacity: 1;\n transform: translateX(0px);\n }\n}\n\n\n/*# sourceMappingURL=index.2dd3fbcb.css.map */\n","@use 'variables';\n\n/* Pure-menu CSS override */\n.pure-img-responsive {\n max-width: 100%;\n height: auto;\n}\n.pure-menu {\n background: variables.$primary-color;\n color: variables.$second-text-color;\n border: none;\n a {\n color: variables.$second-text-color;\n border: none;\n padding: 0.6em 0.6em 0.6em 0.6em;\n &.pure-menu-selected {\n color: variables.$primary-text-color; \n }\n }\n ul {\n border: none;\n background: variables.$primary-color;\n border-top: 1px solid variables.$separator-color;\n }\n .menu-item-divided {\n border-top: 1px solid variables.$separator-color;\n }\n li {\n a:hover {\n background: variables.$primary-color-light;\n color: variables.$primary-text-color;\n } \n a:focus {\n text-transform: none;\n background: variables.$second-color;\n }\n } \n .pure-menu-selected {\n text-transform: none;\n background: variables.$second-color;\n .pure-menu-link:visited {\n color: variables.$primary-text-color;\n }\n }\n}\n\n/*\nAdd transition to containers so they can push in and out.\n*/\n#layout,\n#menu,\n.menu-link {\n -webkit-transition: all 0.2s ease-out;\n -moz-transition: all 0.2s ease-out;\n -ms-transition: all 0.2s ease-out;\n -o-transition: all 0.2s ease-out;\n transition: all 0.2s ease-out;\n}\n\n/*\nThis is the parent `
` that contains the menu and the content area.\n*/\n#layout {\n position: relative;\n left: 0;\n padding-left: 0;\n &.active {\n #menu {\n left: variables.$menu-width;\n width: variables.$menu-width;\n }\n .menu-link {\n left: variables.$menu-width;\n }\n }\n}\n\n#main {\n width:100%;\n}\n\n.content {\n margin: 0 auto;\n padding: 0 2em;\n max-width: 800px;\n margin-bottom: 50px;\n line-height: 1.6em;\n}\n\n.header {\n margin: 0;\n color: #333;\n text-align: center;\n padding: 2.5em 2em 0;\n border-bottom: 1px solid #eee;\n h1 {\n margin: 0.2em 0;\n font-size: 3em;\n font-weight: 300;\n }\n h2 {\n font-weight: 300;\n color: #ccc;\n padding: 0;\n margin-top: 0;\n }\n}\n\n.content-subhead {\n margin: 50px 0 20px 0;\n font-weight: 300;\n color: #888;\n}\n\n#menu {\n margin-left: -(variables.$menu-width);\n width: variables.$menu-width;\n position: fixed;\n top: 0;\n left: 0;\n bottom: 0;\n z-index: 50;\n background: #191818;\n overflow-y: auto;\n -webkit-overflow-scrolling: touch;\n}\n\n#menu a.pure-menu-link {\n font-weight: bold;\n}\n\n#sorting-trigger.pure-menu-item,\n#sorting-trigger.pure-menu-item:focus {\n background: variables.$primary-color-light;\n}\n\n/* -- Dynamic Button For Responsive Menu -------------------------------------*/\n\n/*\nThe button to open/close the Menu is custom-made and not part of Pure. Here's\nhow it works:\n*/\n\n/*\n`.menu-link` represents the responsive menu toggle that shows/hides on\nsmall screens.\n*/\n.menu-link {\n position: fixed;\n display: block; /* show this only on small screens */\n top: 0;\n left: 0; /* \"#menu width\" */\n background: variables.$primary-color;\n font-size: 10px; /* change this value to increase/decrease button size */\n z-index: 10;\n width: 2em;\n height: auto;\n padding: 2.1em 1.6em;\n &:hover, &:focus {\n background: variables.$primary-color-light;\n } \n span {\n position: relative;\n display: block;\n background-color: variables.$primary-text-color;\n width: 100%;\n height: 0.2em;\n &:before, &:after {\n background-color: variables.$primary-text-color;\n width: 100%;\n height: 0.2em;\n position: absolute;\n margin-top: -0.6em;\n content: \" \";\n }\n &:after {\n margin-top: 0.6em;\n }\n }\n}\n\n/** Rs part **/\n.rs-links {\n display: flex;\n flex-flow: wrap;\n justify-content: center;\n\n /* Prevent buttons to be larger than Ko-Fi button */\n padding-left: 25px;\n padding-right: 25px;\n\n a {\n padding: 0px;\n color: variables.$primary-text-color; /** BlueSky only **/\n text-decoration: none; /** BlueSky only **/\n }\n}\n.rs-link {\n padding: 15px;\n}\n.rs-link:hover,\na:focus .rs-link {\n background: variables.$primary-color-light;\n}\n\n\n/* -- Responsive Styles (Media Queries) ------------------------------------- */\n\n/*\nHides the menu at `48em`, but modify this based on your app's needs.\n*/\n@media (min-width: 48em) {\n .header,\n .content {\n padding-left: 2em;\n padding-right: 2em;\n }\n\n #layout {\n padding-left: variables.$menu-width; /* left col width \"#menu\" */\n left: 0;\n }\n #menu {\n left: variables.$menu-width;\n }\n\n .menu-link {\n position: fixed;\n left: variables.$menu-width;\n display: none;\n }\n\n #layout.active .menu-link {\n left: variables.$menu-width;\n }\n}\n\n@media (max-width: 48em) {\n /* Only apply this when the window is small. Otherwise, the following\n * case results in extra padding on the left:\n * Make the window small.\n * Tap the menu to trigger the active state.\n * Make the window large again.\n */\n #layout.active {\n position: relative;\n left: variables.$menu-width;\n }\n\n #menuList {\n margin-left: 50px;\n }\n}\n","@use 'variables';\n\n.wtr-horizontal-menu {\n margin: 0px;\n }\n \n .question-number {\n font-size: smaller;\n text-align: right;\n p {\n margin: 0px;\n }\n }\n \n .result-list {\n display: block;\n min-height: 150px;\n }\n \n .result-item {\n background-color: variables.$second-color;\n border-radius: 2px;\n margin-top: variables.$space-tiny;\n margin-bottom: variables.$space-tiny;\n padding: variables.$space-small;\n position: absolute;\n position: absolute;\n min-width: 200px;\n transition-property: margin-top;\n transition-duration: 0.8s;\n }\n \n .result-item--1 {\n margin-top: 0px;\n }\n \n .result-item--2 {\n margin-top: 50px;\n }\n \n .result-item--3 {\n margin-top: 100px;\n }","@use 'variables';\n@use 'adr-article-button';\n@use 'menu';\n@use 'what-to-read';\n\n/* Pure override */\n.pure-g [class*=\"pure-u\"] {\n font-family: variables.$body-font;\n}\n\n/* Pure-button CSS override */\n.pure-button {\n font-family: variables.$body-font;\n box-shadow: 2px 2px 2px variables.$primary-color;\n margin-bottom: variables.$space-small;\n}\n.pure-button--black {\n color: variables.$primary-text-color;\n background-color: variables.$primary-color;\n}\n.pure-button--black:hover,\n.pure-button--black:focus {\n background-color: variables.$primary-color-light;\n}\n\n/** Basic classes and typography **/\nbody {\n font-family: variables.$body-font;\n color: variables.$primary-text-color;\n background-color: variables.$primary-color;\n background-size: cover;\n background-position: center center;\n background-repeat: no-repeat;\n letter-spacing: 0;\n line-height: 1.4rem;\n}\na {\n color: variables.$primary-text-color;\n}\n@mixin typo() {\n font-family: variables.$title-font;\n font-weight: bold;\n margin-top: variables.$space-medium;\n}\nh1 {\n @include typo;\n font-size: 1.5rem;\n}\nh2 {\n @include typo;\n font-size: 1.3rem;\n}\n.mentions {\n font-size: 0.8rem;\n color: variables.$second-text-color;\n}\n\n/** General rules **/\n.container {\n min-height: calc(100vh - 70px - 100px);\n}\n.content {\n padding-top: 50px;\n}\n.centered {\n text-align: center;\n}\n.right {\n text-align: right;\n}\n.margin-bottom--medium {\n margin-bottom: variables.$space-medium;\n}\n.padding--small {\n padding: variables.$space-small;\n}\n.padding--medium {\n padding: variables.$space-medium;\n}\n.padding--large {\n padding: variables.$space-large;\n}\n.inline {\n display: inline-block;\n}\n.vertical-center {\n vertical-align: super;\n}\n\n/* Reusable elements */\n.infobox {\n background-color: variables.$second-color-faded;\n border-radius: variables.$radius;\n padding: variables.$space-medium;\n overflow: hidden;\n text-align: center;\n}\n\n.video-container {\n overflow: hidden;\n}\n\n.author-header {\n display: flex;\n padding-bottom: variables.$space-medium;\n .author-header--img-container {\n min-width: 100px;\n img {\n border-radius: 50%;\n }\n }\n p {\n padding-left: variables.$space-medium;\n }\n}\n\n/** Page livre **/\n.book-background {\n width: 100%;\n}\n\n@mixin theme($cover: url(\"../assets/background.jpg\"), $position: center right) {\n background-image: $cover;\n background-size: cover;\n background-position: $position;\n background-repeat: no-repeat;\n}\n.background--classic {\n @include theme;\n}\n.background--suzuha {\n @include theme($cover: url(\"../assets/artwork-suzuha.png\"), $position: top center);\n}\n.background--ede {\n @include theme($cover: url(\"../assets/artwork-ede.png\"), $position: center left);\n}\n.background--vdy {\n @include theme($cover: url(\"../assets/cover-renaissance-s4-1024.png\"), $position: top right);\n}\n.background--renard {\n @include theme($cover: url(\"../assets/artwork-statue-chateau-s4.png\"), $position: center left);\n}\n.background--lecture {\n @include theme($cover: url(\"../assets/artwork-lecture-s4.png\"), $position: center left);\n}\n\n.book {\n background-color: variables.$second-color-faded;\n}\n\n.quote{\n text-align: center;\n padding: variables.$space-tiny;\n margin-bottom: variables.$space-small;\n}\n\n/* Specific gumroad buttons */\n.download-button {\n margin-right: 3px;\n padding: 0px;\n padding-top: 5px;\n height: 60px;\n width: 112px;\n img {\n height: 50px;\n }\n}\n\n// .vertical-center-children {\n// display: flex;\n// justify-content: center;\n// align-items: center;\n// }\n\n/** Page d'info **/\n#info {\n p {\n margin-top: 0px;\n }\n .title {\n background-color: variables.$second-color-faded;\n h2 {\n margin: 0px;\n }\n }\n .info-item {\n background-color: variables.$primary-color-faded;\n text-align: justify;\n }\n}\n\n/** Footer **/\n.footer {\n height: 60px;\n letter-spacing: 0;\n}\n\n/* Cache des pages */\n.hidden {\n display: none;\n}\n\n/** Primary button **/\n.primary-button {\n background-color: variables.$second-color-faded;\n font-weight: bold;\n &:hover, &:focus {\n background-color: variables.$second-color; \n }\n}\n\n/** PA button **/\n.pure-button.pa {\n background-color: #d14b52;\n color: variables.$primary-text-color;\n}\n\n/** Book links **/ \n.book-links {\n display: flex;\n flex-flow: row wrap;\n justify-content: space-between;\n}\n\n.show-from-left {\n animation: from-left 0.6s;\n}\n\n@keyframes from-left {\n 0% {\n opacity: 0;\n transform: translateX(-80px);\n }\n 100% {\n opacity: 1;\n transform: translateX(0px);\n }\n}\n\n.show-from-right {\n animation: from-right 0.6s;\n}\n\n@keyframes from-right {\n 0% {\n opacity: 0;\n transform: translateX(80px);\n }\n 100% {\n opacity: 1;\n transform: translateX(0px);\n }\n}\n"],"names":[],"version":3,"file":"index.2dd3fbcb.css.map"} \ No newline at end of file diff --git a/index.2127f460.js b/index.2ef8886f.js similarity index 92% rename from index.2127f460.js rename to index.2ef8886f.js index 1cb6982a..f3e9b299 100644 --- a/index.2127f460.js +++ b/index.2ef8886f.js @@ -1,2 +1,2 @@ -function e(e){return e&&e.__esModule?e.default:e}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},n={},r={},s=t.parcelRequire1ebe;null==s&&((s=function(e){if(e in n)return n[e].exports;if(e in r){var t=r[e];delete r[e];var s={id:e,exports:{}};return n[e]=s,t.call(s.exports,s,s.exports),s.exports}var a=new Error("Cannot find module '"+e+"'");throw a.code="MODULE_NOT_FOUND",a}).register=function(e,t){r[e]=t},t.parcelRequire1ebe=s),s("hqokU").register(JSON.parse('{"4PQI3":"index.2127f460.js","gbcXk":"style.9d159f0e.css","hwmB9":"background.761bc37b.jpg","d3YkH":"artwork-suzuha.09fac1ca.png","aroW2":"artwork-ede.54057cad.png","ilpGW":"cover-renaissance-s4-1024.6b8555ec.png","6Vjqf":"artwork-statue-chateau-s4.d48a5537.png","gR7QX":"artwork-lecture-s4.7439fb69.png"}'));var a;a=new URL(s("hqokU").resolve("gbcXk"),import.meta.url).toString();class o extends HTMLElement{constructor(){super();var t=document.createElement("div");t.classList.add("quote"),t.innerHTML=`\n ${this.getAttribute("content")}\n ${this.getAttribute("author")}\n `;var n=this.attachShadow({mode:"closed"});n.innerHTML=`\n \n \n `,n.appendChild(t)}}customElements.define("adr-quote",o); -//# sourceMappingURL=index.2127f460.js.map +function e(e){return e&&e.__esModule?e.default:e}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},n={},r={},s=t.parcelRequire1ebe;null==s&&((s=function(e){if(e in n)return n[e].exports;if(e in r){var t=r[e];delete r[e];var s={id:e,exports:{}};return n[e]=s,t.call(s.exports,s,s.exports),s.exports}var a=new Error("Cannot find module '"+e+"'");throw a.code="MODULE_NOT_FOUND",a}).register=function(e,t){r[e]=t},t.parcelRequire1ebe=s),s("hqokU").register(JSON.parse('{"4PQI3":"index.2ef8886f.js","gbcXk":"style.695090bc.css","hwmB9":"background.761bc37b.jpg","d3YkH":"artwork-suzuha.09fac1ca.png","aroW2":"artwork-ede.54057cad.png","ilpGW":"cover-renaissance-s4-1024.6b8555ec.png","6Vjqf":"artwork-statue-chateau-s4.d48a5537.png","gR7QX":"artwork-lecture-s4.7439fb69.png"}'));var a;a=new URL(s("hqokU").resolve("gbcXk"),import.meta.url).toString();class o extends HTMLElement{constructor(){super();var t=document.createElement("div");t.classList.add("quote"),t.innerHTML=`\n ${this.getAttribute("content")}\n ${this.getAttribute("author")}\n `;var n=this.attachShadow({mode:"closed"});n.innerHTML=`\n \n \n `,n.appendChild(t)}}customElements.define("adr-quote",o); +//# sourceMappingURL=index.2ef8886f.js.map diff --git a/index.2127f460.js.map b/index.2ef8886f.js.map similarity index 96% rename from index.2127f460.js.map rename to index.2ef8886f.js.map index 1f95da61..62117a07 100644 --- a/index.2127f460.js.map +++ b/index.2ef8886f.js.map @@ -1 +1 @@ -{"mappings":"qhBAAAA,EAAA,SAAAC,SAA8CC,KAAKC,MAAM,8b,MCAzDC,EAAc,IAAAC,IAAuBL,EAAA,SAAAM,QAA6C,SAAOC,OAAAC,KAAAC,KAAGC,W,MCEtFC,UAAiBC,Y,cAEnBC,QACA,IAAIC,EAAUC,SAASC,cAAc,OACrCF,EAAQG,UAAUC,IAAI,SACtBJ,EAAQK,UAAS,kBACNC,KAAKC,aAAa,mDACJD,KAAKC,aAAa,kCAE3C,IAAIC,EAASF,KAAKG,aAAa,CAAEC,KAAM,WACvCF,EAAOH,UAAS,iJAEiCM,EAAArB,aAEjDkB,EAAOI,YAAYZ,EACrB,EAGFa,eAAeC,OAAO,YAAajB","sources":["node_modules/@parcel/runtime-js/lib/runtime-76ef5250a2778270.js","node_modules/@parcel/runtime-js/lib/runtime-c0665e2809cfadba.js","js/adr-quote.js"],"sourcesContent":["require('./helpers/bundle-manifest').register(JSON.parse(\"{\\\"4PQI3\\\":\\\"index.2127f460.js\\\",\\\"gbcXk\\\":\\\"style.9d159f0e.css\\\",\\\"hwmB9\\\":\\\"background.761bc37b.jpg\\\",\\\"d3YkH\\\":\\\"artwork-suzuha.09fac1ca.png\\\",\\\"aroW2\\\":\\\"artwork-ede.54057cad.png\\\",\\\"ilpGW\\\":\\\"cover-renaissance-s4-1024.6b8555ec.png\\\",\\\"6Vjqf\\\":\\\"artwork-statue-chateau-s4.d48a5537.png\\\",\\\"gR7QX\\\":\\\"artwork-lecture-s4.7439fb69.png\\\"}\"));","module.exports = new __parcel__URL__(require('./helpers/bundle-manifest').resolve(\"gbcXk\")).toString();","import styleUrl from \"url:../styles/style.css\"\n\nclass AdrQuote extends HTMLElement {\n constructor() {\n super()\n var wrapper = document.createElement('div')\n wrapper.classList.add('quote')\n wrapper.innerHTML = `\n ${this.getAttribute('content')}\n ${this.getAttribute('author')}\n `\n var shadow = this.attachShadow({ mode: 'closed' })\n shadow.innerHTML = `\n \n \n `\n shadow.appendChild(wrapper)\n }\n}\n\ncustomElements.define('adr-quote', AdrQuote)"],"names":["parcelRequire","register","JSON","parse","$7c2b628dc2e2d7cd$exports","URL","resolve","import","meta","url","toString","$d81990e73716304f$var$AdrQuote","HTMLElement","super","wrapper","document","createElement","classList","add","innerHTML","this","getAttribute","shadow","attachShadow","mode","$parcel$interopDefault","appendChild","customElements","define"],"version":3,"file":"index.2127f460.js.map"} \ No newline at end of file +{"mappings":"qhBAAAA,EAAA,SAAAC,SAA8CC,KAAKC,MAAM,8b,MCAzDC,EAAc,IAAAC,IAAuBL,EAAA,SAAAM,QAA6C,SAAOC,OAAAC,KAAAC,KAAGC,W,MCEtFC,UAAiBC,Y,cAEnBC,QACA,IAAIC,EAAUC,SAASC,cAAc,OACrCF,EAAQG,UAAUC,IAAI,SACtBJ,EAAQK,UAAS,kBACNC,KAAKC,aAAa,mDACJD,KAAKC,aAAa,kCAE3C,IAAIC,EAASF,KAAKG,aAAa,CAAEC,KAAM,WACvCF,EAAOH,UAAS,iJAEiCM,EAAArB,aAEjDkB,EAAOI,YAAYZ,EACrB,EAGFa,eAAeC,OAAO,YAAajB","sources":["node_modules/@parcel/runtime-js/lib/runtime-76ef5250a2778270.js","node_modules/@parcel/runtime-js/lib/runtime-c0665e2809cfadba.js","js/adr-quote.js"],"sourcesContent":["require('./helpers/bundle-manifest').register(JSON.parse(\"{\\\"4PQI3\\\":\\\"index.2ef8886f.js\\\",\\\"gbcXk\\\":\\\"style.695090bc.css\\\",\\\"hwmB9\\\":\\\"background.761bc37b.jpg\\\",\\\"d3YkH\\\":\\\"artwork-suzuha.09fac1ca.png\\\",\\\"aroW2\\\":\\\"artwork-ede.54057cad.png\\\",\\\"ilpGW\\\":\\\"cover-renaissance-s4-1024.6b8555ec.png\\\",\\\"6Vjqf\\\":\\\"artwork-statue-chateau-s4.d48a5537.png\\\",\\\"gR7QX\\\":\\\"artwork-lecture-s4.7439fb69.png\\\"}\"));","module.exports = new __parcel__URL__(require('./helpers/bundle-manifest').resolve(\"gbcXk\")).toString();","import styleUrl from \"url:../styles/style.css\"\n\nclass AdrQuote extends HTMLElement {\n constructor() {\n super()\n var wrapper = document.createElement('div')\n wrapper.classList.add('quote')\n wrapper.innerHTML = `\n ${this.getAttribute('content')}\n ${this.getAttribute('author')}\n `\n var shadow = this.attachShadow({ mode: 'closed' })\n shadow.innerHTML = `\n \n \n `\n shadow.appendChild(wrapper)\n }\n}\n\ncustomElements.define('adr-quote', AdrQuote)"],"names":["parcelRequire","register","JSON","parse","$7c2b628dc2e2d7cd$exports","URL","resolve","import","meta","url","toString","$d81990e73716304f$var$AdrQuote","HTMLElement","super","wrapper","document","createElement","classList","add","innerHTML","this","getAttribute","shadow","attachShadow","mode","$parcel$interopDefault","appendChild","customElements","define"],"version":3,"file":"index.2ef8886f.js.map"} \ No newline at end of file diff --git a/index.ca919cfc.js b/index.3fdd8136.js similarity index 93% rename from index.ca919cfc.js rename to index.3fdd8136.js index ce08c6ec..9c46f7cb 100644 --- a/index.ca919cfc.js +++ b/index.3fdd8136.js @@ -1,2 +1,2 @@ -!function(){function e(e){return e&&e.__esModule?e.default:e}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},n={},r={},a=t.parcelRequire1ebe;null==a&&((a=function(e){if(e in n)return n[e].exports;if(e in r){var t=r[e];delete r[e];var a={id:e,exports:{}};return n[e]=a,t.call(a.exports,a,a.exports),a.exports}var s=new Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s}).register=function(e,t){r[e]=t},t.parcelRequire1ebe=a),a("gm4sb").register(JSON.parse('{"atgrb":"index.ca919cfc.js","gbcXk":"style.9d159f0e.css","hwmB9":"background.761bc37b.jpg","d3YkH":"artwork-suzuha.09fac1ca.png","aroW2":"artwork-ede.54057cad.png","ilpGW":"cover-renaissance-s4-1024.6b8555ec.png","6Vjqf":"artwork-statue-chateau-s4.d48a5537.png","gR7QX":"artwork-lecture-s4.7439fb69.png"}'));var s,c=a("kAkBg");s=a("5waPY").getBundleURL("atgrb")+a("gm4sb").resolve("gbcXk");var o=function(t){"use strict";c.inherits(r,t);var n=c.createSuper(r);function r(){var t;c.classCallCheck(this,r),t=n.call(this);var a=document.createElement("div");a.classList.add("quote"),a.innerHTML="\n ".concat(t.getAttribute("content"),"\n ").concat(t.getAttribute("author"),"\n ");var o=t.attachShadow({mode:"closed"});return o.innerHTML='\n \n \n '),o.appendChild(a),t}return r}(c.wrapNativeSuper(HTMLElement));customElements.define("adr-quote",o)}(); -//# sourceMappingURL=index.ca919cfc.js.map +!function(){function e(e){return e&&e.__esModule?e.default:e}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},n={},r={},a=t.parcelRequire1ebe;null==a&&((a=function(e){if(e in n)return n[e].exports;if(e in r){var t=r[e];delete r[e];var a={id:e,exports:{}};return n[e]=a,t.call(a.exports,a,a.exports),a.exports}var s=new Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s}).register=function(e,t){r[e]=t},t.parcelRequire1ebe=a),a("gm4sb").register(JSON.parse('{"atgrb":"index.3fdd8136.js","gbcXk":"style.695090bc.css","hwmB9":"background.761bc37b.jpg","d3YkH":"artwork-suzuha.09fac1ca.png","aroW2":"artwork-ede.54057cad.png","ilpGW":"cover-renaissance-s4-1024.6b8555ec.png","6Vjqf":"artwork-statue-chateau-s4.d48a5537.png","gR7QX":"artwork-lecture-s4.7439fb69.png"}'));var s,c=a("kAkBg");s=a("5waPY").getBundleURL("atgrb")+a("gm4sb").resolve("gbcXk");var o=function(t){"use strict";c.inherits(r,t);var n=c.createSuper(r);function r(){var t;c.classCallCheck(this,r),t=n.call(this);var a=document.createElement("div");a.classList.add("quote"),a.innerHTML="\n ".concat(t.getAttribute("content"),"\n ").concat(t.getAttribute("author"),"\n ");var o=t.attachShadow({mode:"closed"});return o.innerHTML='\n \n \n '),o.appendChild(a),t}return r}(c.wrapNativeSuper(HTMLElement));customElements.define("adr-quote",o)}(); +//# sourceMappingURL=index.3fdd8136.js.map diff --git a/index.ca919cfc.js.map b/index.3fdd8136.js.map similarity index 92% rename from index.ca919cfc.js.map rename to index.3fdd8136.js.map index 7c211ea3..ce2ed563 100644 --- a/index.ca919cfc.js.map +++ b/index.3fdd8136.js.map @@ -1 +1 @@ -{"mappings":"iiBAAAA,EAAA,SAAAC,SAA8CC,KAAKC,MAAM,8b,mBCAzDC,EAAiBJ,EAAA,SAAAK,aAA6C,SAAWL,EAAA,SAAAM,QAA6C,S,ICEhHC,EAAN,SAAQC,G,wBAAFD,EAAQC,G,oBAARD,G,SAAAA,I,4BAAAA,G,eAGF,IAAIE,EAAUC,SAASC,cAAc,OACrCF,EAAQG,UAAUC,IAAI,SACtBJ,EAAQK,UAAa,kBAEIC,OAA2BC,EADpCC,aAAa,WAAW,0CACaF,OACrDC,EAD8BC,aAAa,UAAU,0BAErD,IAAIC,EAAMF,EAAQG,aAAa,CAAEC,KAAM,W,OACvCF,EAAOJ,UAAc,iJAEqCC,OAATM,EAAAjB,GAAS,YAE1Dc,EAAOI,YAAYb,G,SAdjBF,C,CAAN,C,kBAAuBC,cAkBvBe,eAAeC,OAAO,YAAajB,E","sources":["node_modules/@parcel/runtime-js/lib/runtime-e4a24fd43eeb114e.js","node_modules/@parcel/runtime-js/lib/runtime-603b7bf1f16c0faf.js","js/adr-quote.js"],"sourcesContent":["require('./helpers/bundle-manifest').register(JSON.parse(\"{\\\"atgrb\\\":\\\"index.ca919cfc.js\\\",\\\"gbcXk\\\":\\\"style.9d159f0e.css\\\",\\\"hwmB9\\\":\\\"background.761bc37b.jpg\\\",\\\"d3YkH\\\":\\\"artwork-suzuha.09fac1ca.png\\\",\\\"aroW2\\\":\\\"artwork-ede.54057cad.png\\\",\\\"ilpGW\\\":\\\"cover-renaissance-s4-1024.6b8555ec.png\\\",\\\"6Vjqf\\\":\\\"artwork-statue-chateau-s4.d48a5537.png\\\",\\\"gR7QX\\\":\\\"artwork-lecture-s4.7439fb69.png\\\"}\"));","module.exports = require('./helpers/bundle-url').getBundleURL('atgrb') + require('./helpers/bundle-manifest').resolve(\"gbcXk\");","import styleUrl from \"url:../styles/style.css\"\n\nclass AdrQuote extends HTMLElement {\n constructor() {\n super()\n var wrapper = document.createElement('div')\n wrapper.classList.add('quote')\n wrapper.innerHTML = `\n ${this.getAttribute('content')}\n ${this.getAttribute('author')}\n `\n var shadow = this.attachShadow({ mode: 'closed' })\n shadow.innerHTML = `\n \n \n `\n shadow.appendChild(wrapper)\n }\n}\n\ncustomElements.define('adr-quote', AdrQuote)"],"names":["parcelRequire","register","JSON","parse","$37075235ff1b3638$exports","getBundleURL","resolve","$a403fcdad5771093$var$AdrQuote","HTMLElement","wrapper","document","createElement","classList","add","innerHTML","concat","_this","getAttribute","shadow","attachShadow","mode","$parcel$interopDefault","appendChild","customElements","define"],"version":3,"file":"index.ca919cfc.js.map"} \ No newline at end of file +{"mappings":"iiBAAAA,EAAA,SAAAC,SAA8CC,KAAKC,MAAM,8b,mBCAzDC,EAAiBJ,EAAA,SAAAK,aAA6C,SAAWL,EAAA,SAAAM,QAA6C,S,ICEhHC,EAAN,SAAQC,G,wBAAFD,EAAQC,G,oBAARD,G,SAAAA,I,4BAAAA,G,eAGF,IAAIE,EAAUC,SAASC,cAAc,OACrCF,EAAQG,UAAUC,IAAI,SACtBJ,EAAQK,UAAa,kBAEIC,OAA2BC,EADpCC,aAAa,WAAW,0CACaF,OACrDC,EAD8BC,aAAa,UAAU,0BAErD,IAAIC,EAAMF,EAAQG,aAAa,CAAEC,KAAM,W,OACvCF,EAAOJ,UAAc,iJAEqCC,OAATM,EAAAjB,GAAS,YAE1Dc,EAAOI,YAAYb,G,SAdjBF,C,CAAN,C,kBAAuBC,cAkBvBe,eAAeC,OAAO,YAAajB,E","sources":["node_modules/@parcel/runtime-js/lib/runtime-e4a24fd43eeb114e.js","node_modules/@parcel/runtime-js/lib/runtime-603b7bf1f16c0faf.js","js/adr-quote.js"],"sourcesContent":["require('./helpers/bundle-manifest').register(JSON.parse(\"{\\\"atgrb\\\":\\\"index.3fdd8136.js\\\",\\\"gbcXk\\\":\\\"style.695090bc.css\\\",\\\"hwmB9\\\":\\\"background.761bc37b.jpg\\\",\\\"d3YkH\\\":\\\"artwork-suzuha.09fac1ca.png\\\",\\\"aroW2\\\":\\\"artwork-ede.54057cad.png\\\",\\\"ilpGW\\\":\\\"cover-renaissance-s4-1024.6b8555ec.png\\\",\\\"6Vjqf\\\":\\\"artwork-statue-chateau-s4.d48a5537.png\\\",\\\"gR7QX\\\":\\\"artwork-lecture-s4.7439fb69.png\\\"}\"));","module.exports = require('./helpers/bundle-url').getBundleURL('atgrb') + require('./helpers/bundle-manifest').resolve(\"gbcXk\");","import styleUrl from \"url:../styles/style.css\"\n\nclass AdrQuote extends HTMLElement {\n constructor() {\n super()\n var wrapper = document.createElement('div')\n wrapper.classList.add('quote')\n wrapper.innerHTML = `\n ${this.getAttribute('content')}\n ${this.getAttribute('author')}\n `\n var shadow = this.attachShadow({ mode: 'closed' })\n shadow.innerHTML = `\n \n \n `\n shadow.appendChild(wrapper)\n }\n}\n\ncustomElements.define('adr-quote', AdrQuote)"],"names":["parcelRequire","register","JSON","parse","$37075235ff1b3638$exports","getBundleURL","resolve","$a403fcdad5771093$var$AdrQuote","HTMLElement","wrapper","document","createElement","classList","add","innerHTML","concat","_this","getAttribute","shadow","attachShadow","mode","$parcel$interopDefault","appendChild","customElements","define"],"version":3,"file":"index.3fdd8136.js.map"} \ No newline at end of file diff --git a/index.ab0fffb8.js b/index.835ff02b.js similarity index 93% rename from index.ab0fffb8.js rename to index.835ff02b.js index 20c9004f..f9e2d0cf 100644 --- a/index.ab0fffb8.js +++ b/index.835ff02b.js @@ -1,2 +1,2 @@ -function e(e){return e&&e.__esModule?e.default:e}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},r={},n={},a=t.parcelRequire1ebe;null==a&&((a=function(e){if(e in r)return r[e].exports;if(e in n){var t=n[e];delete n[e];var a={id:e,exports:{}};return r[e]=a,t.call(a.exports,a,a.exports),a.exports}var o=new Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o}).register=function(e,t){n[e]=t},t.parcelRequire1ebe=a),a("hqokU").register(JSON.parse('{"hDlIP":"index.ab0fffb8.js","gbcXk":"style.9d159f0e.css","hwmB9":"background.761bc37b.jpg","d3YkH":"artwork-suzuha.09fac1ca.png","aroW2":"artwork-ede.54057cad.png","ilpGW":"cover-renaissance-s4-1024.6b8555ec.png","6Vjqf":"artwork-statue-chateau-s4.d48a5537.png","gR7QX":"artwork-lecture-s4.7439fb69.png"}'));var o;o=new URL(a("hqokU").resolve("gbcXk"),import.meta.url).toString();class s extends HTMLElement{constructor(){super();var t=document.createElement("div");t.innerHTML=`\n \n ${this.getAttribute("title")}\n \n `;var r=this.attachShadow({mode:"closed"});r.innerHTML=`\n \n \n `,r.appendChild(t)}}customElements.define("adr-shop-button",s); -//# sourceMappingURL=index.ab0fffb8.js.map +function e(e){return e&&e.__esModule?e.default:e}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},r={},n={},a=t.parcelRequire1ebe;null==a&&((a=function(e){if(e in r)return r[e].exports;if(e in n){var t=n[e];delete n[e];var a={id:e,exports:{}};return r[e]=a,t.call(a.exports,a,a.exports),a.exports}var o=new Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o}).register=function(e,t){n[e]=t},t.parcelRequire1ebe=a),a("hqokU").register(JSON.parse('{"hDlIP":"index.835ff02b.js","gbcXk":"style.695090bc.css","hwmB9":"background.761bc37b.jpg","d3YkH":"artwork-suzuha.09fac1ca.png","aroW2":"artwork-ede.54057cad.png","ilpGW":"cover-renaissance-s4-1024.6b8555ec.png","6Vjqf":"artwork-statue-chateau-s4.d48a5537.png","gR7QX":"artwork-lecture-s4.7439fb69.png"}'));var o;o=new URL(a("hqokU").resolve("gbcXk"),import.meta.url).toString();class s extends HTMLElement{constructor(){super();var t=document.createElement("div");t.innerHTML=`\n \n ${this.getAttribute("title")}\n \n `;var r=this.attachShadow({mode:"closed"});r.innerHTML=`\n \n \n `,r.appendChild(t)}}customElements.define("adr-shop-button",s); +//# sourceMappingURL=index.835ff02b.js.map diff --git a/index.ab0fffb8.js.map b/index.835ff02b.js.map similarity index 92% rename from index.ab0fffb8.js.map rename to index.835ff02b.js.map index 51287051..873cfde2 100644 --- a/index.ab0fffb8.js.map +++ b/index.835ff02b.js.map @@ -1 +1 @@ -{"mappings":"qhBAAAA,EAAA,SAAAC,SAA8CC,KAAKC,MAAM,8b,MCAzDC,EAAc,IAAAC,IAAuBL,EAAA,SAAAM,QAA6C,SAAOC,OAAAC,KAAAC,KAAGC,W,MCEtFC,UAAsBC,Y,cAExBC,QACA,IAAIC,EAAUC,SAASC,cAAc,OACrCF,EAAQG,UAAS,+HAINC,KAAKC,aAAa,qBACvBD,KAAKC,aAAa,6BAGxB,IAAIC,EAASF,KAAKG,aAAa,CAACC,KAAM,WACtCF,EAAOH,UAAS,iJAEiCM,EAAAnB,aAEjDgB,EAAOI,YAAYV,EACrB,EAGFW,eAAeC,OAAO,kBAAmBf","sources":["node_modules/@parcel/runtime-js/lib/runtime-0acf800371f484df.js","node_modules/@parcel/runtime-js/lib/runtime-c0665e2809cfadba.js","js/adr-shop-button.js"],"sourcesContent":["require('./helpers/bundle-manifest').register(JSON.parse(\"{\\\"hDlIP\\\":\\\"index.ab0fffb8.js\\\",\\\"gbcXk\\\":\\\"style.9d159f0e.css\\\",\\\"hwmB9\\\":\\\"background.761bc37b.jpg\\\",\\\"d3YkH\\\":\\\"artwork-suzuha.09fac1ca.png\\\",\\\"aroW2\\\":\\\"artwork-ede.54057cad.png\\\",\\\"ilpGW\\\":\\\"cover-renaissance-s4-1024.6b8555ec.png\\\",\\\"6Vjqf\\\":\\\"artwork-statue-chateau-s4.d48a5537.png\\\",\\\"gR7QX\\\":\\\"artwork-lecture-s4.7439fb69.png\\\"}\"));","module.exports = new __parcel__URL__(require('./helpers/bundle-manifest').resolve(\"gbcXk\")).toString();","import styleUrl from \"url:../styles/style.css\";\n\nclass AdrShopButton extends HTMLElement {\n constructor() {\n super()\n var wrapper = document.createElement('div')\n wrapper.innerHTML = `\n \n ${this.getAttribute('title')}\n \n `\n var shadow = this.attachShadow({mode: 'closed'})\n shadow.innerHTML = `\n \n \n `\n shadow.appendChild(wrapper)\n }\n}\n\ncustomElements.define('adr-shop-button', AdrShopButton)"],"names":["parcelRequire","register","JSON","parse","$7c2b628dc2e2d7cd$exports","URL","resolve","import","meta","url","toString","$9fc000401a0a22f5$var$AdrShopButton","HTMLElement","super","wrapper","document","createElement","innerHTML","this","getAttribute","shadow","attachShadow","mode","$parcel$interopDefault","appendChild","customElements","define"],"version":3,"file":"index.ab0fffb8.js.map"} \ No newline at end of file +{"mappings":"qhBAAAA,EAAA,SAAAC,SAA8CC,KAAKC,MAAM,8b,MCAzDC,EAAc,IAAAC,IAAuBL,EAAA,SAAAM,QAA6C,SAAOC,OAAAC,KAAAC,KAAGC,W,MCEtFC,UAAsBC,Y,cAExBC,QACA,IAAIC,EAAUC,SAASC,cAAc,OACrCF,EAAQG,UAAS,+HAINC,KAAKC,aAAa,qBACvBD,KAAKC,aAAa,6BAGxB,IAAIC,EAASF,KAAKG,aAAa,CAACC,KAAM,WACtCF,EAAOH,UAAS,iJAEiCM,EAAAnB,aAEjDgB,EAAOI,YAAYV,EACrB,EAGFW,eAAeC,OAAO,kBAAmBf","sources":["node_modules/@parcel/runtime-js/lib/runtime-0acf800371f484df.js","node_modules/@parcel/runtime-js/lib/runtime-c0665e2809cfadba.js","js/adr-shop-button.js"],"sourcesContent":["require('./helpers/bundle-manifest').register(JSON.parse(\"{\\\"hDlIP\\\":\\\"index.835ff02b.js\\\",\\\"gbcXk\\\":\\\"style.695090bc.css\\\",\\\"hwmB9\\\":\\\"background.761bc37b.jpg\\\",\\\"d3YkH\\\":\\\"artwork-suzuha.09fac1ca.png\\\",\\\"aroW2\\\":\\\"artwork-ede.54057cad.png\\\",\\\"ilpGW\\\":\\\"cover-renaissance-s4-1024.6b8555ec.png\\\",\\\"6Vjqf\\\":\\\"artwork-statue-chateau-s4.d48a5537.png\\\",\\\"gR7QX\\\":\\\"artwork-lecture-s4.7439fb69.png\\\"}\"));","module.exports = new __parcel__URL__(require('./helpers/bundle-manifest').resolve(\"gbcXk\")).toString();","import styleUrl from \"url:../styles/style.css\";\n\nclass AdrShopButton extends HTMLElement {\n constructor() {\n super()\n var wrapper = document.createElement('div')\n wrapper.innerHTML = `\n \n ${this.getAttribute('title')}\n \n `\n var shadow = this.attachShadow({mode: 'closed'})\n shadow.innerHTML = `\n \n \n `\n shadow.appendChild(wrapper)\n }\n}\n\ncustomElements.define('adr-shop-button', AdrShopButton)"],"names":["parcelRequire","register","JSON","parse","$7c2b628dc2e2d7cd$exports","URL","resolve","import","meta","url","toString","$9fc000401a0a22f5$var$AdrShopButton","HTMLElement","super","wrapper","document","createElement","innerHTML","this","getAttribute","shadow","attachShadow","mode","$parcel$interopDefault","appendChild","customElements","define"],"version":3,"file":"index.835ff02b.js.map"} \ No newline at end of file diff --git a/index.a7d0ff52.js b/index.885ea467.js similarity index 97% rename from index.a7d0ff52.js rename to index.885ea467.js index b060d787..c4a10943 100644 --- a/index.a7d0ff52.js +++ b/index.885ea467.js @@ -1,2 +1,2 @@ -function e(e,t,s,n){Object.defineProperty(e,t,{get:s,set:n,enumerable:!0,configurable:!0})}function t(e){return e&&e.__esModule?e.default:e}var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},n={},i={},r=s.parcelRequire1ebe;null==r&&((r=function(e){if(e in n)return n[e].exports;if(e in i){var t=i[e];delete i[e];var s={id:e,exports:{}};return n[e]=s,t.call(s.exports,s,s.exports),s.exports}var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}).register=function(e,t){i[e]=t},s.parcelRequire1ebe=r),r.register("02wgx",(function(t,s){e(t.exports,"setupQuestions",(function(){return o})),e(t.exports,"updateAnswer",(function(){return u}));var n=r("91BTG");const i=[{id:"size",label:"Plutôt roman court ou roman plus long ?",choices:[{id:"short",label:"Plutôt court.",score:{suzuha:3,ede:0,vdy:0}},{id:"long",label:"Histoire qui dure.",score:{suzuha:0,ede:2,vdy:2}},{id:"no-size-preference",label:"C'est pas la taille qui compte.",score:{suzuha:0,ede:0,vdy:0}}]},{id:"pace",label:"Quel rythme de lecture recherchez-vous ? Êtes-vous dans l'action ou dans la contemplation ?",choices:[{id:"fast",label:"J'aime quand les événements s'enchainent rapidement.",score:{suzuha:3,ede:3,vdy:1}},{id:"slow",label:"Je veux m'imprégner de l'ambiance avec de belles descriptions.",score:{suzuha:1,ede:2,vdy:3}},{id:"middle",label:"Tout est dans l'équilibre.",score:{suzuha:1,ede:3,vdy:2}}]},{id:"time",label:"Quel temps de narration préférez-vous ?",choices:[{id:"present",label:"Présent",score:{suzuha:3,ede:3,vdy:0}},{id:"past",label:"Passé",score:{suzuha:0,ede:0,vdy:3}},{id:"no-time-preference",label:"Aucune importance, tant que le style m'emporte.",score:{suzuha:0,ede:0,vdy:0}}]},{id:"affinity",label:"Y a-t-il un élément du cercle de la magie qui vous inspire particulièrement ?",choices:[{id:"water",label:"Eau",score:{suzuha:3,ede:2,vdy:0}},{id:"light",label:"Lumière",score:{suzuha:0,ede:3,vdy:3}},{id:"darkness",label:"Ombre",score:{suzuha:0,ede:3,vdy:0}}]},{id:"theme",label:"Parmi les thématiques suivantes, laquelle vous parle le plus ?",choices:[{id:"feminism",label:"Féminisme",score:{suzuha:3,ede:1,vdy:1}},{id:"journey",label:"Voyage",score:{suzuha:1,ede:3,vdy:1}},{id:"culture-shock",label:"Choc des cultures",score:{suzuha:1,ede:2,vdy:3}}]},{id:"character",label:"Quel genre de personnage avez-vous envie de suivre ?",choices:[{id:"heros",label:"Une héroïne dans la pure tradition, gentille, courageuse et travailleuse.",score:{suzuha:3,ede:0,vdy:0}},{id:"dark-man",label:"Un jeune homme qui a ses défauts et un lourd passé.",score:{suzuha:0,ede:1,vdy:3}},{id:"duo",label:"Et pourquoi pas deux personnages dont les chemins vont se croiser ?",score:{suzuha:0,ede:3,vdy:0}}]},{id:"pet",label:"Le compagnon idéal du rôdeur qui est en vous ?",choices:[{id:"squirrel",label:"Un écureuil",score:{suzuha:0,ede:3,vdy:0}},{id:"dragon-tiger",label:"Un GROS félin",score:{suzuha:3,ede:0,vdy:0}},{id:"no-animal",label:"Je préfère les arbres aux animaux.",score:{suzuha:0,ede:0,vdy:3}}]}];function o(){window.questions=i.sort((()=>Math.random()-.5)),n.select("wtr-question-number").setAttribute("questions-length",window.questions.length),l(),n.select("wtr-button-next").addEventListener("click",c)}function u(e){window.selectedAnswer=e,a()}function d(){return window.questionIndexe===window.selectedAnswer)).score;for(let[t]of Object.entries(window.tmpScore))window.tmpScore[t]=window.score[t]+e[t];n.select("wtr-result").setAttribute("score",JSON.stringify(window.tmpScore))}function l(){window.selectedAnswer=d().choices[0].id,a(),n.select("wtr-question").setAttribute("question",JSON.stringify(d())),n.select("wtr-question-number").setAttribute("question-index",window.questionIndex+1)}function c(){if(Object.assign(window.score,{...window.tmpScore}),window.questionIndex++,d()&&l(),window.questionIndex===window.questions.length-1){n.select("wtr-button-next").innerHTML="Valider"}else if(window.questionIndex===window.questions.length){n.select("wtr-button-next").setAttribute("hidden",!0),n.select("wtr-question").setAttribute("hidden",!0),n.select("wtr-question-number").setAttribute("hidden",!0),n.select("wtr-see-books").removeAttribute("hidden")}}})),r("hqokU").register(JSON.parse('{"6jiUl":"index.a7d0ff52.js","gbcXk":"style.9d159f0e.css","hwmB9":"background.761bc37b.jpg","d3YkH":"artwork-suzuha.09fac1ca.png","aroW2":"artwork-ede.54057cad.png","ilpGW":"cover-renaissance-s4-1024.6b8555ec.png","6Vjqf":"artwork-statue-chateau-s4.d48a5537.png","gR7QX":"artwork-lecture-s4.7439fb69.png"}'));var o;o=new URL(r("hqokU").resolve("gbcXk"),import.meta.url).toString();var u=r("02wgx");class d extends HTMLElement{static get observedAttributes(){return["question"]}attributeChangedCallback(e,t,s){null!==t&&this.removeQuestionListeners();let n=JSON.parse(s);this.showQuestion(n),this.addQuestionListeners()}disconnectedCallback(){this.removeQuestionListeners()}addQuestionListeners(){this.wrapper.querySelectorAll("[name]").forEach((e=>{e.addEventListener("change",this.selectAnswer)}))}removeQuestionListeners(){this.wrapper.querySelectorAll("[name]").forEach((e=>{e.removeEventListener("change",this.selectAnswer)}))}selectAnswer(e){u.updateAnswer(e.target.value)}showQuestion(e){let t="",s=!0,n=" checked";e.choices.forEach((e=>{t+=`\n
\n \n \n
\n `,s&&(s=!1,n="")})),this.wrapper.innerHTML=`\n

${e.label}

\n ${t}\n `}constructor(){super(),this.wrapper=document.createElement("div");var e=this.attachShadow({mode:"closed"});e.innerHTML=`\n \n \n `,e.appendChild(this.wrapper)}}customElements.define("adr-question",d); -//# sourceMappingURL=index.a7d0ff52.js.map +function e(e,t,s,n){Object.defineProperty(e,t,{get:s,set:n,enumerable:!0,configurable:!0})}function t(e){return e&&e.__esModule?e.default:e}var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},n={},i={},r=s.parcelRequire1ebe;null==r&&((r=function(e){if(e in n)return n[e].exports;if(e in i){var t=i[e];delete i[e];var s={id:e,exports:{}};return n[e]=s,t.call(s.exports,s,s.exports),s.exports}var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}).register=function(e,t){i[e]=t},s.parcelRequire1ebe=r),r.register("02wgx",(function(t,s){e(t.exports,"setupQuestions",(function(){return o})),e(t.exports,"updateAnswer",(function(){return u}));var n=r("91BTG");const i=[{id:"size",label:"Plutôt roman court ou roman plus long ?",choices:[{id:"short",label:"Plutôt court.",score:{suzuha:3,ede:0,vdy:0}},{id:"long",label:"Histoire qui dure.",score:{suzuha:0,ede:2,vdy:2}},{id:"no-size-preference",label:"C'est pas la taille qui compte.",score:{suzuha:0,ede:0,vdy:0}}]},{id:"pace",label:"Quel rythme de lecture recherchez-vous ? Êtes-vous dans l'action ou dans la contemplation ?",choices:[{id:"fast",label:"J'aime quand les événements s'enchainent rapidement.",score:{suzuha:3,ede:3,vdy:1}},{id:"slow",label:"Je veux m'imprégner de l'ambiance avec de belles descriptions.",score:{suzuha:1,ede:2,vdy:3}},{id:"middle",label:"Tout est dans l'équilibre.",score:{suzuha:1,ede:3,vdy:2}}]},{id:"time",label:"Quel temps de narration préférez-vous ?",choices:[{id:"present",label:"Présent",score:{suzuha:3,ede:3,vdy:0}},{id:"past",label:"Passé",score:{suzuha:0,ede:0,vdy:3}},{id:"no-time-preference",label:"Aucune importance, tant que le style m'emporte.",score:{suzuha:0,ede:0,vdy:0}}]},{id:"affinity",label:"Y a-t-il un élément du cercle de la magie qui vous inspire particulièrement ?",choices:[{id:"water",label:"Eau",score:{suzuha:3,ede:2,vdy:0}},{id:"light",label:"Lumière",score:{suzuha:0,ede:3,vdy:3}},{id:"darkness",label:"Ombre",score:{suzuha:0,ede:3,vdy:0}}]},{id:"theme",label:"Parmi les thématiques suivantes, laquelle vous parle le plus ?",choices:[{id:"feminism",label:"Féminisme",score:{suzuha:3,ede:1,vdy:1}},{id:"journey",label:"Voyage",score:{suzuha:1,ede:3,vdy:1}},{id:"culture-shock",label:"Choc des cultures",score:{suzuha:1,ede:2,vdy:3}}]},{id:"character",label:"Quel genre de personnage avez-vous envie de suivre ?",choices:[{id:"heros",label:"Une héroïne dans la pure tradition, gentille, courageuse et travailleuse.",score:{suzuha:3,ede:0,vdy:0}},{id:"dark-man",label:"Un jeune homme qui a ses défauts et un lourd passé.",score:{suzuha:0,ede:1,vdy:3}},{id:"duo",label:"Et pourquoi pas deux personnages dont les chemins vont se croiser ?",score:{suzuha:0,ede:3,vdy:0}}]},{id:"pet",label:"Le compagnon idéal du rôdeur qui est en vous ?",choices:[{id:"squirrel",label:"Un écureuil",score:{suzuha:0,ede:3,vdy:0}},{id:"dragon-tiger",label:"Un GROS félin",score:{suzuha:3,ede:0,vdy:0}},{id:"no-animal",label:"Je préfère les arbres aux animaux.",score:{suzuha:0,ede:0,vdy:3}}]}];function o(){window.questions=i.sort((()=>Math.random()-.5)),n.select("wtr-question-number").setAttribute("questions-length",window.questions.length),l(),n.select("wtr-button-next").addEventListener("click",c)}function u(e){window.selectedAnswer=e,a()}function d(){return window.questionIndexe===window.selectedAnswer)).score;for(let[t]of Object.entries(window.tmpScore))window.tmpScore[t]=window.score[t]+e[t];n.select("wtr-result").setAttribute("score",JSON.stringify(window.tmpScore))}function l(){window.selectedAnswer=d().choices[0].id,a(),n.select("wtr-question").setAttribute("question",JSON.stringify(d())),n.select("wtr-question-number").setAttribute("question-index",window.questionIndex+1)}function c(){if(Object.assign(window.score,{...window.tmpScore}),window.questionIndex++,d()&&l(),window.questionIndex===window.questions.length-1){n.select("wtr-button-next").innerHTML="Valider"}else if(window.questionIndex===window.questions.length){n.select("wtr-button-next").setAttribute("hidden",!0),n.select("wtr-question").setAttribute("hidden",!0),n.select("wtr-question-number").setAttribute("hidden",!0),n.select("wtr-see-books").removeAttribute("hidden")}}})),r("hqokU").register(JSON.parse('{"6jiUl":"index.885ea467.js","gbcXk":"style.695090bc.css","hwmB9":"background.761bc37b.jpg","d3YkH":"artwork-suzuha.09fac1ca.png","aroW2":"artwork-ede.54057cad.png","ilpGW":"cover-renaissance-s4-1024.6b8555ec.png","6Vjqf":"artwork-statue-chateau-s4.d48a5537.png","gR7QX":"artwork-lecture-s4.7439fb69.png"}'));var o;o=new URL(r("hqokU").resolve("gbcXk"),import.meta.url).toString();var u=r("02wgx");class d extends HTMLElement{static get observedAttributes(){return["question"]}attributeChangedCallback(e,t,s){null!==t&&this.removeQuestionListeners();let n=JSON.parse(s);this.showQuestion(n),this.addQuestionListeners()}disconnectedCallback(){this.removeQuestionListeners()}addQuestionListeners(){this.wrapper.querySelectorAll("[name]").forEach((e=>{e.addEventListener("change",this.selectAnswer)}))}removeQuestionListeners(){this.wrapper.querySelectorAll("[name]").forEach((e=>{e.removeEventListener("change",this.selectAnswer)}))}selectAnswer(e){u.updateAnswer(e.target.value)}showQuestion(e){let t="",s=!0,n=" checked";e.choices.forEach((e=>{t+=`\n
\n \n \n
\n `,s&&(s=!1,n="")})),this.wrapper.innerHTML=`\n

${e.label}

\n ${t}\n `}constructor(){super(),this.wrapper=document.createElement("div");var e=this.attachShadow({mode:"closed"});e.innerHTML=`\n \n \n `,e.appendChild(this.wrapper)}}customElements.define("adr-question",d); +//# sourceMappingURL=index.885ea467.js.map diff --git a/index.a7d0ff52.js.map b/index.885ea467.js.map similarity index 98% rename from index.a7d0ff52.js.map rename to index.885ea467.js.map index c525dd39..3e78d95f 100644 --- a/index.a7d0ff52.js.map +++ b/index.885ea467.js.map @@ -1 +1 @@ -{"mappings":"2wBAEA,MAAMA,EAAY,CAAC,CACjBC,GAAI,OACJC,MAAO,0CACNC,QAAQ,CAAC,CACRF,GAAI,QACJC,MAAO,gBACNE,MAAM,CAAEC,OAAQ,EAAGC,IAAK,EAAGC,IAAK,IAChC,CACDN,GAAI,OACJC,MAAO,qBACPE,MAAO,CAAEC,OAAQ,EAAGC,IAAK,EAAGC,IAAK,IAChC,CACDN,GAAI,qBACJC,MAAO,kCACPE,MAAO,CAAEC,OAAQ,EAAGC,IAAK,EAAGC,IAAK,MAElC,CACDN,GAAI,OACJC,MAAO,8FACNC,QAAQ,CAAC,CACRF,GAAI,OACJC,MAAO,uDACLE,MAAK,CAAEC,OAAQ,EAAGC,IAAK,EAAGC,IAAK,IAChC,CACDN,GAAI,OACJC,MAAO,iEACNE,MAAM,CAAEC,OAAQ,EAAGC,IAAK,EAAGC,IAAK,IAChC,CACDN,GAAI,SACJC,MAAO,6BACNE,MAAM,CAAEC,OAAQ,EAAGC,IAAK,EAAGC,IAAK,MAElC,CACDN,GAAI,OACJC,MAAO,0CACLC,QAAO,CAAC,CACRF,GAAI,UACJC,MAAO,UACNE,MAAM,CAAEC,OAAQ,EAAGC,IAAK,EAAGC,IAAK,IAChC,CACDN,GAAI,OACJC,MAAO,QACNE,MAAM,CAAEC,OAAQ,EAAGC,IAAK,EAAGC,IAAK,IAChC,CACDN,GAAI,qBACJC,MAAO,kDACPE,MAAO,CAAEC,OAAQ,EAAGC,IAAK,EAAGC,IAAK,MAElC,CACDN,GAAI,WACJC,MAAO,gFACJC,QAAM,CAAC,CACRF,GAAI,QACJC,MAAO,MACPE,MAAO,CAAE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BC,YAEbC,gCACT,MAAO,CAAC,WACV,CAEAC,yBAAyBC,EAAGC,EAAUC,GAEnB,OAAbD,GACFE,KAAKC,0BAGP,IAAIC,EAAWxB,KAAKO,MAAMc,GAE1BC,KAAKG,aAAaD,GAElBF,KAAKI,sBACP,CAEAC,uBACEL,KAAKC,yBACP,CAaAG,uBACwBJ,KAAKM,QAAQC,iBAAiB,UACpCC,SAASC,IACvBA,EAAQ9C,iBAAiB,SAAUqC,KAAKU,aAAY,GAExD,CAEAT,0BACwBD,KAAKM,QAAQC,iBAAiB,UACpCC,SAASC,IACvBA,EAAQE,oBAAoB,SAAUX,KAAKU,aAAY,GAE3D,CAEAA,aAAaE,GACXC,EAAAC,aAAaF,EAAMG,OAAOjD,MAC5B,CAEAqC,aAAaD,GACX,IAAIc,EAAU,GACVC,GAAQ,EACRC,EAAU,WACdhB,EAASvD,QAAQ6D,SAASW,IACxBH,GAAO,sDAEuBG,EAAO1E,8BAA8B0E,EAAO1E,MAAMyE,6BAC9DC,EAAO1E,OAAO0E,EAAOzE,wCAGnCuE,IACFA,GAAQ,EACRC,EAAU,GACZ,IAEFlB,KAAKM,QAAQzB,UAAS,cACfqB,EAASxD,oBACZsE,SAEN,C,cAhDEI,QACApB,KAAKM,QAAUe,SAASC,cAAc,OACtC,IAAIC,EAASvB,KAAKwB,aAAa,CAACC,KAAM,WACtCF,EAAO1C,UAAS,iJAEiC6C,EAAAxC,aAEjDqC,EAAOI,YAAY3B,KAAKM,QAC1B,EA2CFsB,eAAeC,OAAO,eAAgBpC","sources":["js/utils/what-to-read.js","node_modules/@parcel/runtime-js/lib/runtime-462e62de04b0f617.js","node_modules/@parcel/runtime-js/lib/runtime-c0665e2809cfadba.js","js/adr-question.js"],"sourcesContent":["import { select } from './generics'\n\nconst questions = [{\n id: 'size',\n label: 'Plutôt roman court ou roman plus long ?',\n choices: [{\n id: 'short',\n label: 'Plutôt court.',\n score: { suzuha: 3, ede: 0, vdy: 0 }\n }, {\n id: 'long',\n label: 'Histoire qui dure.',\n score: { suzuha: 0, ede: 2, vdy: 2 }\n }, {\n id: 'no-size-preference',\n label: 'C\\'est pas la taille qui compte.',\n score: { suzuha: 0, ede: 0, vdy: 0 }\n }]\n}, {\n id: 'pace',\n label: 'Quel rythme de lecture recherchez-vous ? Êtes-vous dans l\\'action ou dans la contemplation ?',\n choices: [{\n id: 'fast',\n label: 'J\\'aime quand les événements s\\'enchainent rapidement.',\n score: { suzuha: 3, ede: 3, vdy: 1 }\n }, {\n id: 'slow',\n label: 'Je veux m\\'imprégner de l\\'ambiance avec de belles descriptions.',\n score: { suzuha: 1, ede: 2, vdy: 3 }\n }, {\n id: 'middle',\n label: 'Tout est dans l\\'équilibre.',\n score: { suzuha: 1, ede: 3, vdy: 2 }\n }]\n}, {\n id: 'time',\n label: 'Quel temps de narration préférez-vous ?',\n choices: [{\n id: 'present',\n label: 'Présent',\n score: { suzuha: 3, ede: 3, vdy: 0 }\n }, {\n id: 'past',\n label: 'Passé',\n score: { suzuha: 0, ede: 0, vdy: 3 }\n }, {\n id: 'no-time-preference',\n label: 'Aucune importance, tant que le style m\\'emporte.',\n score: { suzuha: 0, ede: 0, vdy: 0 }\n }]\n}, {\n id: 'affinity',\n label: 'Y a-t-il un élément du cercle de la magie qui vous inspire particulièrement ?',\n choices: [{\n id: 'water',\n label: 'Eau',\n score: { suzuha: 3, ede: 2, vdy: 0 }\n }, {\n id: 'light',\n label: 'Lumière',\n score: { suzuha: 0, ede: 3, vdy: 3 }\n }, {\n id: 'darkness',\n label: 'Ombre',\n score: { suzuha: 0, ede: 3, vdy: 0 }\n }]\n}, {\n id: 'theme',\n label: 'Parmi les thématiques suivantes, laquelle vous parle le plus ?',\n choices: [{\n id: 'feminism',\n label: 'Féminisme',\n score: { suzuha: 3, ede: 1, vdy: 1 }\n }, {\n id: 'journey',\n label: 'Voyage',\n score: { suzuha: 1, ede: 3, vdy: 1 }\n }, {\n id: 'culture-shock',\n label: 'Choc des cultures',\n score: { suzuha: 1, ede: 2, vdy: 3 }\n }]\n}, {\n id: 'character',\n label: 'Quel genre de personnage avez-vous envie de suivre ?',\n choices: [{\n id: 'heros',\n label: 'Une héroïne dans la pure tradition, gentille, courageuse et travailleuse.',\n score: { suzuha: 3, ede: 0, vdy: 0 }\n }, {\n id: 'dark-man',\n label: 'Un jeune homme qui a ses défauts et un lourd passé.',\n score: { suzuha: 0, ede: 1, vdy: 3 }\n }, {\n id: 'duo',\n label: 'Et pourquoi pas deux personnages dont les chemins vont se croiser ?',\n score: { suzuha: 0, ede: 3, vdy: 0 }\n }]\n}, {\n id: 'pet',\n label: 'Le compagnon idéal du rôdeur qui est en vous ?',\n choices: [{\n id: 'squirrel',\n label: 'Un écureuil',\n score: { suzuha: 0, ede: 3, vdy: 0 }\n }, {\n id: 'dragon-tiger',\n label: 'Un GROS félin',\n score: { suzuha: 3, ede: 0, vdy: 0 }\n }, {\n id: 'no-animal',\n label: 'Je préfère les arbres aux animaux.',\n score: { suzuha: 0, ede: 0, vdy: 3 }\n }]\n}]\n\nexport function setupQuestions() {\n // Set up the list of questions in a random order\n window.questions = questions.sort(() => Math.random() - 0.5);\n let adrQuestionNumberElement = select('wtr-question-number')\n adrQuestionNumberElement.setAttribute('questions-length', window.questions.length)\n // Initialize the current question\n _showQuestion()\n // Bind the next question function to the next question button's click\n let nextQuestionButton = select('wtr-button-next')\n nextQuestionButton.addEventListener('click', _nextQuestion)\n}\n\nexport function updateAnswer(value) {\n window.selectedAnswer = value \n _computeTmpScore()\n}\n\n/*\n * Return the structure of the current question, based on \"window.questionIndex\"\n */\nfunction _getQuestion() {\n return window.questionIndex < window.questions.length \n ? window.questions[window.questionIndex]\n : undefined\n}\n\n/*\n * Update the temporay score \"window.tmpScore\".\n * It is the sum of the actual score and the current question score.\n * It should be updated each time the selected answer changes.\n */\nfunction _computeTmpScore() {\n // Compute the temporary score from actual score and current question\n let questionScore = _getQuestion().choices.find(({ id }) => {\n return id === window.selectedAnswer\n }).score\n for (let [key] of Object.entries(window.tmpScore)) {\n window.tmpScore[key] = window.score[key] + questionScore[key]\n }\n // Update the result list order\n let resultListElement = select('wtr-result')\n resultListElement.setAttribute('score', JSON.stringify(window.tmpScore))\n}\n\n/*\n * Update the question component attributes to display the current question.\n */\nfunction _showQuestion() {\n // Initialize the selected answer and the temporary score \n window.selectedAnswer = _getQuestion().choices[0].id\n _computeTmpScore()\n // Select the question component in the DOM\n let adrQuestionElement = select('wtr-question')\n // It needs the question structure\n adrQuestionElement.setAttribute('question', JSON.stringify(_getQuestion()))\n // Display the question number\n let adrQuestionNumberElement = select('wtr-question-number')\n adrQuestionNumberElement.setAttribute('question-index', window.questionIndex+1)\n}\n\nfunction _nextQuestion() {\n // Finalize current score\n Object.assign(window.score, { ...window.tmpScore })\n // Show next question\n window.questionIndex++\n if (_getQuestion()) {\n _showQuestion()\n }\n // If the last question is reached, change the button text, then hide all\n if (window.questionIndex === window.questions.length-1) {\n let nextQuestionButton = select('wtr-button-next')\n nextQuestionButton.innerHTML = 'Valider'\n } else if (window.questionIndex === window.questions.length) {\n let nextQuestionButton = select('wtr-button-next')\n nextQuestionButton.setAttribute('hidden', true)\n let adrQuestionElement = select('wtr-question')\n adrQuestionElement.setAttribute('hidden', true)\n let adrQuestionNumberElement = select('wtr-question-number')\n adrQuestionNumberElement.setAttribute('hidden', true)\n let adrLinkToBooksElement = select('wtr-see-books')\n adrLinkToBooksElement.removeAttribute('hidden')\n }\n}\n","require('./helpers/bundle-manifest').register(JSON.parse(\"{\\\"6jiUl\\\":\\\"index.a7d0ff52.js\\\",\\\"gbcXk\\\":\\\"style.9d159f0e.css\\\",\\\"hwmB9\\\":\\\"background.761bc37b.jpg\\\",\\\"d3YkH\\\":\\\"artwork-suzuha.09fac1ca.png\\\",\\\"aroW2\\\":\\\"artwork-ede.54057cad.png\\\",\\\"ilpGW\\\":\\\"cover-renaissance-s4-1024.6b8555ec.png\\\",\\\"6Vjqf\\\":\\\"artwork-statue-chateau-s4.d48a5537.png\\\",\\\"gR7QX\\\":\\\"artwork-lecture-s4.7439fb69.png\\\"}\"));","module.exports = new __parcel__URL__(require('./helpers/bundle-manifest').resolve(\"gbcXk\")).toString();","import styleUrl from \"url:../styles/style.css\";\nimport { updateAnswer } from './utils/what-to-read';\n\nclass AdrQuestion extends HTMLElement {\n\n static get observedAttributes() {\n return ['question']\n }\n\n attributeChangedCallback(_, oldValue, newValue) {\n // Remove the listeners of the old question\n if (oldValue !== null) {\n this.removeQuestionListeners()\n }\n // Get the new question structure from the stringified attribute\n let question = JSON.parse(newValue)\n // Show the new question in the DOM\n this.showQuestion(question)\n // Add the listeners of the new question\n this.addQuestionListeners()\n }\n\n disconnectedCallback() {\n this.removeQuestionListeners()\n }\n\n constructor() {\n super()\n this.wrapper = document.createElement('div')\n var shadow = this.attachShadow({mode: 'closed'})\n shadow.innerHTML = `\n \n \n `\n shadow.appendChild(this.wrapper)\n }\n\n addQuestionListeners() {\n let answersElements = this.wrapper.querySelectorAll('[name]')\n answersElements.forEach((element) => {\n element.addEventListener('change', this.selectAnswer)\n })\n }\n\n removeQuestionListeners() {\n let answersElements = this.wrapper.querySelectorAll('[name]')\n answersElements.forEach((element) => {\n element.removeEventListener('change', this.selectAnswer)\n })\n }\n\n selectAnswer(event) {\n updateAnswer(event.target.value)\n }\n\n showQuestion(question) {\n let answers = ''\n let first = true\n let checked = ' checked'\n question.choices.forEach((choice) => {\n answers += `\n
\n \n \n
\n `\n if (first) {\n first = false\n checked = ''\n }\n })\n this.wrapper.innerHTML = `\n

${question.label}

\n ${answers}\n `\n }\n}\n\ncustomElements.define('adr-question', AdrQuestion)\n\n"],"names":["$00793759aed0d84a$var$questions","id","label","choices","score","suzuha","ede","vdy","$00793759aed0d84a$export$f99a8a4804d97169","window","questions","sort","Math","random","$91BTG","select","setAttribute","length","$00793759aed0d84a$var$_showQuestion","addEventListener","$00793759aed0d84a$var$_nextQuestion","$00793759aed0d84a$export$63e15e612a739edb","value","selectedAnswer","$00793759aed0d84a$var$_computeTmpScore","$00793759aed0d84a$var$_getQuestion","questionIndex","undefined","questionScore","find","key","Object","entries","tmpScore","JSON","stringify","assign","innerHTML","removeAttribute","parcelRequire","register","parse","$7c2b628dc2e2d7cd$exports","URL","resolve","import","meta","url","toString","$f953e6cdb05b9746$var$AdrQuestion","HTMLElement","observedAttributes","attributeChangedCallback","_","oldValue","newValue","this","removeQuestionListeners","question","showQuestion","addQuestionListeners","disconnectedCallback","wrapper","querySelectorAll","forEach","element","selectAnswer","removeEventListener","event","$02wgx","updateAnswer","target","answers","first","checked","choice","super","document","createElement","shadow","attachShadow","mode","$parcel$interopDefault","appendChild","customElements","define"],"version":3,"file":"index.a7d0ff52.js.map"} \ No newline at end of file +{"mappings":"2wBAEA,MAAMA,EAAY,CAAC,CACjBC,GAAI,OACJC,MAAO,0CACNC,QAAQ,CAAC,CACRF,GAAI,QACJC,MAAO,gBACNE,MAAM,CAAEC,OAAQ,EAAGC,IAAK,EAAGC,IAAK,IAChC,CACDN,GAAI,OACJC,MAAO,qBACPE,MAAO,CAAEC,OAAQ,EAAGC,IAAK,EAAGC,IAAK,IAChC,CACDN,GAAI,qBACJC,MAAO,kCACPE,MAAO,CAAEC,OAAQ,EAAGC,IAAK,EAAGC,IAAK,MAElC,CACDN,GAAI,OACJC,MAAO,8FACNC,QAAQ,CAAC,CACRF,GAAI,OACJC,MAAO,uDACLE,MAAK,CAAEC,OAAQ,EAAGC,IAAK,EAAGC,IAAK,IAChC,CACDN,GAAI,OACJC,MAAO,iEACNE,MAAM,CAAEC,OAAQ,EAAGC,IAAK,EAAGC,IAAK,IAChC,CACDN,GAAI,SACJC,MAAO,6BACNE,MAAM,CAAEC,OAAQ,EAAGC,IAAK,EAAGC,IAAK,MAElC,CACDN,GAAI,OACJC,MAAO,0CACLC,QAAO,CAAC,CACRF,GAAI,UACJC,MAAO,UACNE,MAAM,CAAEC,OAAQ,EAAGC,IAAK,EAAGC,IAAK,IAChC,CACDN,GAAI,OACJC,MAAO,QACNE,MAAM,CAA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modules/@parcel/runtime-js/lib/runtime-c0665e2809cfadba.js","js/adr-question.js"],"sourcesContent":["import { select } from './generics'\n\nconst questions = [{\n id: 'size',\n label: 'Plutôt roman court ou roman plus long ?',\n choices: [{\n id: 'short',\n label: 'Plutôt court.',\n score: { suzuha: 3, ede: 0, vdy: 0 }\n }, {\n id: 'long',\n label: 'Histoire qui dure.',\n score: { suzuha: 0, ede: 2, vdy: 2 }\n }, {\n id: 'no-size-preference',\n label: 'C\\'est pas la taille qui compte.',\n score: { suzuha: 0, ede: 0, vdy: 0 }\n }]\n}, {\n id: 'pace',\n label: 'Quel rythme de lecture recherchez-vous ? Êtes-vous dans l\\'action ou dans la contemplation ?',\n choices: [{\n id: 'fast',\n label: 'J\\'aime quand les événements s\\'enchainent rapidement.',\n score: { suzuha: 3, ede: 3, vdy: 1 }\n }, {\n id: 'slow',\n label: 'Je veux m\\'imprégner de l\\'ambiance avec de belles descriptions.',\n score: { suzuha: 1, ede: 2, vdy: 3 }\n }, {\n id: 'middle',\n label: 'Tout est dans l\\'équilibre.',\n score: { suzuha: 1, ede: 3, vdy: 2 }\n }]\n}, {\n id: 'time',\n label: 'Quel temps de narration préférez-vous ?',\n choices: [{\n id: 'present',\n label: 'Présent',\n score: { suzuha: 3, ede: 3, vdy: 0 }\n }, {\n id: 'past',\n label: 'Passé',\n score: { suzuha: 0, ede: 0, vdy: 3 }\n }, {\n id: 'no-time-preference',\n label: 'Aucune importance, tant que le style m\\'emporte.',\n score: { suzuha: 0, ede: 0, vdy: 0 }\n }]\n}, {\n id: 'affinity',\n label: 'Y a-t-il un élément du cercle de la magie qui vous inspire particulièrement ?',\n choices: [{\n id: 'water',\n label: 'Eau',\n score: { suzuha: 3, ede: 2, vdy: 0 }\n }, {\n id: 'light',\n label: 'Lumière',\n score: { suzuha: 0, ede: 3, vdy: 3 }\n }, {\n id: 'darkness',\n label: 'Ombre',\n score: { suzuha: 0, ede: 3, vdy: 0 }\n }]\n}, {\n id: 'theme',\n label: 'Parmi les thématiques suivantes, laquelle vous parle le plus ?',\n choices: [{\n id: 'feminism',\n label: 'Féminisme',\n score: { suzuha: 3, ede: 1, vdy: 1 }\n }, {\n id: 'journey',\n label: 'Voyage',\n score: { suzuha: 1, ede: 3, vdy: 1 }\n }, {\n id: 'culture-shock',\n label: 'Choc des cultures',\n score: { suzuha: 1, ede: 2, vdy: 3 }\n }]\n}, {\n id: 'character',\n label: 'Quel genre de personnage avez-vous envie de suivre ?',\n choices: [{\n id: 'heros',\n label: 'Une héroïne dans la pure tradition, gentille, courageuse et travailleuse.',\n score: { suzuha: 3, ede: 0, vdy: 0 }\n }, {\n id: 'dark-man',\n label: 'Un jeune homme qui a ses défauts et un lourd passé.',\n score: { suzuha: 0, ede: 1, vdy: 3 }\n }, {\n id: 'duo',\n label: 'Et pourquoi pas deux personnages dont les chemins vont se croiser ?',\n score: { suzuha: 0, ede: 3, vdy: 0 }\n }]\n}, {\n id: 'pet',\n label: 'Le compagnon idéal du rôdeur qui est en vous ?',\n choices: [{\n id: 'squirrel',\n label: 'Un écureuil',\n score: { suzuha: 0, ede: 3, vdy: 0 }\n }, {\n id: 'dragon-tiger',\n label: 'Un GROS félin',\n score: { suzuha: 3, ede: 0, vdy: 0 }\n }, {\n id: 'no-animal',\n label: 'Je préfère les arbres aux animaux.',\n score: { suzuha: 0, ede: 0, vdy: 3 }\n }]\n}]\n\nexport function setupQuestions() {\n // Set up the list of questions in a random order\n window.questions = questions.sort(() => Math.random() - 0.5);\n let adrQuestionNumberElement = select('wtr-question-number')\n adrQuestionNumberElement.setAttribute('questions-length', window.questions.length)\n // Initialize the current question\n _showQuestion()\n // Bind the next question function to the next question button's click\n let nextQuestionButton = select('wtr-button-next')\n nextQuestionButton.addEventListener('click', _nextQuestion)\n}\n\nexport function updateAnswer(value) {\n window.selectedAnswer = value \n _computeTmpScore()\n}\n\n/*\n * Return the structure of the current question, based on \"window.questionIndex\"\n */\nfunction _getQuestion() {\n return window.questionIndex < window.questions.length \n ? window.questions[window.questionIndex]\n : undefined\n}\n\n/*\n * Update the temporay score \"window.tmpScore\".\n * It is the sum of the actual score and the current question score.\n * It should be updated each time the selected answer changes.\n */\nfunction _computeTmpScore() {\n // Compute the temporary score from actual score and current question\n let questionScore = _getQuestion().choices.find(({ id }) => {\n return id === window.selectedAnswer\n }).score\n for (let [key] of Object.entries(window.tmpScore)) {\n window.tmpScore[key] = window.score[key] + questionScore[key]\n }\n // Update the result list order\n let resultListElement = select('wtr-result')\n resultListElement.setAttribute('score', JSON.stringify(window.tmpScore))\n}\n\n/*\n * Update the question component attributes to display the current question.\n */\nfunction _showQuestion() {\n // Initialize the selected answer and the temporary score \n window.selectedAnswer = _getQuestion().choices[0].id\n _computeTmpScore()\n // Select the question component in the DOM\n let adrQuestionElement = select('wtr-question')\n // It needs the question structure\n adrQuestionElement.setAttribute('question', JSON.stringify(_getQuestion()))\n // Display the question number\n let adrQuestionNumberElement = select('wtr-question-number')\n adrQuestionNumberElement.setAttribute('question-index', window.questionIndex+1)\n}\n\nfunction _nextQuestion() {\n // Finalize current score\n Object.assign(window.score, { ...window.tmpScore })\n // Show next question\n window.questionIndex++\n if (_getQuestion()) {\n _showQuestion()\n }\n // If the last question is reached, change the button text, then hide all\n if (window.questionIndex === window.questions.length-1) {\n let nextQuestionButton = select('wtr-button-next')\n nextQuestionButton.innerHTML = 'Valider'\n } else if (window.questionIndex === window.questions.length) {\n let nextQuestionButton = select('wtr-button-next')\n nextQuestionButton.setAttribute('hidden', true)\n let adrQuestionElement = select('wtr-question')\n adrQuestionElement.setAttribute('hidden', true)\n let adrQuestionNumberElement = select('wtr-question-number')\n adrQuestionNumberElement.setAttribute('hidden', true)\n let adrLinkToBooksElement = select('wtr-see-books')\n adrLinkToBooksElement.removeAttribute('hidden')\n }\n}\n","require('./helpers/bundle-manifest').register(JSON.parse(\"{\\\"6jiUl\\\":\\\"index.885ea467.js\\\",\\\"gbcXk\\\":\\\"style.695090bc.css\\\",\\\"hwmB9\\\":\\\"background.761bc37b.jpg\\\",\\\"d3YkH\\\":\\\"artwork-suzuha.09fac1ca.png\\\",\\\"aroW2\\\":\\\"artwork-ede.54057cad.png\\\",\\\"ilpGW\\\":\\\"cover-renaissance-s4-1024.6b8555ec.png\\\",\\\"6Vjqf\\\":\\\"artwork-statue-chateau-s4.d48a5537.png\\\",\\\"gR7QX\\\":\\\"artwork-lecture-s4.7439fb69.png\\\"}\"));","module.exports = new __parcel__URL__(require('./helpers/bundle-manifest').resolve(\"gbcXk\")).toString();","import styleUrl from \"url:../styles/style.css\";\nimport { updateAnswer } from './utils/what-to-read';\n\nclass AdrQuestion extends HTMLElement {\n\n static get observedAttributes() {\n return ['question']\n }\n\n attributeChangedCallback(_, oldValue, newValue) {\n // Remove the listeners of the old question\n if (oldValue !== null) {\n this.removeQuestionListeners()\n }\n // Get the new question structure from the stringified attribute\n let question = JSON.parse(newValue)\n // Show the new question in the DOM\n this.showQuestion(question)\n // Add the listeners of the new question\n this.addQuestionListeners()\n }\n\n disconnectedCallback() {\n this.removeQuestionListeners()\n }\n\n constructor() {\n super()\n this.wrapper = document.createElement('div')\n var shadow = this.attachShadow({mode: 'closed'})\n shadow.innerHTML = `\n \n \n `\n shadow.appendChild(this.wrapper)\n }\n\n addQuestionListeners() {\n let answersElements = this.wrapper.querySelectorAll('[name]')\n answersElements.forEach((element) => {\n element.addEventListener('change', this.selectAnswer)\n })\n }\n\n removeQuestionListeners() {\n let answersElements = this.wrapper.querySelectorAll('[name]')\n answersElements.forEach((element) => {\n element.removeEventListener('change', this.selectAnswer)\n })\n }\n\n selectAnswer(event) {\n updateAnswer(event.target.value)\n }\n\n showQuestion(question) {\n let answers = ''\n let first = true\n let checked = ' checked'\n question.choices.forEach((choice) => {\n answers += `\n
\n \n \n
\n `\n if (first) {\n first = false\n checked = ''\n }\n })\n this.wrapper.innerHTML = `\n

${question.label}

\n ${answers}\n `\n }\n}\n\ncustomElements.define('adr-question', AdrQuestion)\n\n"],"names":["$00793759aed0d84a$var$questions","id","label","choices","score","suzuha","ede","vdy","$00793759aed0d84a$export$f99a8a4804d97169","window","questions","sort","Math","random","$91BTG","select","setAttribute","length","$00793759aed0d84a$var$_showQuestion","addEventListener","$00793759aed0d84a$var$_nextQuestion","$00793759aed0d84a$export$63e15e612a739edb","value","selectedAnswer","$00793759aed0d84a$var$_computeTmpScore","$00793759aed0d84a$var$_getQuestion","questionIndex","undefined","questionScore","find","key","Object","entries","tmpScore","JSON","stringify","assign","innerHTML","removeAttribute","parcelRequire","register","parse","$7c2b628dc2e2d7cd$exports","URL","resolve","import","meta","url","toString","$f953e6cdb05b9746$var$AdrQuestion","HTMLElement","observedAttributes","attributeChangedCallback","_","oldValue","newValue","this","removeQuestionListeners","question","showQuestion","addQuestionListeners","disconnectedCallback","wrapper","querySelectorAll","forEach","element","selectAnswer","removeEventListener","event","$02wgx","updateAnswer","target","answers","first","checked","choice","super","document","createElement","shadow","attachShadow","mode","$parcel$interopDefault","appendChild","customElements","define"],"version":3,"file":"index.885ea467.js.map"} \ No newline at end of file diff --git a/index.8bbe775a.js b/index.8aea89a2.js similarity index 95% rename from index.8bbe775a.js rename to index.8aea89a2.js index beed6517..3c0561a6 100644 --- a/index.8bbe775a.js +++ b/index.8aea89a2.js @@ -1,2 +1,2 @@ -function e(e,t,r,s){Object.defineProperty(e,t,{get:r,set:s,enumerable:!0,configurable:!0})}function t(e){return e&&e.__esModule?e.default:e}var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},s={},n={},i=r.parcelRequire1ebe;null==i&&((i=function(e){if(e in s)return s[e].exports;if(e in n){var t=n[e];delete n[e];var r={id:e,exports:{}};return s[e]=r,t.call(r.exports,r,r.exports),r.exports}var i=new Error("Cannot find module '"+e+"'");throw i.code="MODULE_NOT_FOUND",i}).register=function(e,t){n[e]=t},r.parcelRequire1ebe=i),i.register("91BTG",(function(t,r){function s(e){window.selectors||(window.selectors={});let t=window.selectors[e];return t||(t=document.getElementById(e),window.selectors.id=t),t}function n(e,t,r){e.forEach((e=>{r?s(e).classList.add(t):s(e).classList.remove(t)}))}function i(){return`#${window.baseURL}?${window.sortingParam}`}e(t.exports,"select",(function(){return s})),e(t.exports,"toggleClass",(function(){return n})),e(t.exports,"getURL",(function(){return i}))})),i("hqokU").register(JSON.parse('{"gY7T5":"index.8bbe775a.js","gbcXk":"style.9d159f0e.css","hwmB9":"background.761bc37b.jpg","d3YkH":"artwork-suzuha.09fac1ca.png","aroW2":"artwork-ede.54057cad.png","ilpGW":"cover-renaissance-s4-1024.6b8555ec.png","6Vjqf":"artwork-statue-chateau-s4.d48a5537.png","gR7QX":"artwork-lecture-s4.7439fb69.png"}'));var o;o=new URL(i("hqokU").resolve("gbcXk"),import.meta.url).toString();var l=i("91BTG");class c extends HTMLElement{connectedCallback(){if(this.slotsCount>1){let e=this.wrapper.querySelector(`#${this.getAttribute("id")}-previous`),t=this.wrapper.querySelector(`#${this.getAttribute("id")}-next`);e.addEventListener("click",this.onPrevious),t.addEventListener("click",this.onNext)}}disconnectedCallback(){if(this.slotsCount>1){let e=this.wrapper.querySelector(`${this.getAttribute("id")}-previous`),t=this.wrapper.querySelector(`${this.getAttribute("id")}-next`);e.removeEventListener("click",this.onPrevious),t.removeEventListener("click",this.onNext)}}onPrevious(e){let t=e.target.getAttribute("wrapper"),r=l.select(t),s=Number(r.getAttribute("slots")),n=Number(r.getAttribute("current"));l.select(`${t}-${n}`).classList.remove("show-from-left"),l.select(`${t}-${n}`).classList.remove("show-from-right"),l.select(`${t}-${n}`).classList.add("hidden"),n=n<=0?s-1:n-1,l.select(`${t}-${n}`).classList.remove("hidden"),l.select(`${t}-${n}`).classList.add("show-from-left"),r.setAttribute("current",n)}onNext(e){let t=e.target.getAttribute("wrapper"),r=l.select(t),s=Number(r.getAttribute("slots")),n=Number(r.getAttribute("current"));l.select(`${t}-${n}`).classList.remove("show-from-left"),l.select(`${t}-${n}`).classList.remove("show-from-right"),l.select(`${t}-${n}`).classList.add("hidden");let i=n+1;n=i>=s?0:i,l.select(`${t}-${n}`).classList.remove("hidden"),l.select(`${t}-${n}`).classList.add("show-from-right"),r.setAttribute("current",n)}constructor(){super(),this.slotsCount=Number(this.getAttribute("slots")),this.currentSlot=0,this.blocks=[],this.wrapper=document.createElement("div"),this.wrapper.classList.add("infobox"),this.wrapper.innerHTML="",this.slotsCount>1&&(this.wrapper.innerHTML+=`\n
\n <\n >\n
\n `);for(let e=0;e\n `;var e=this.attachShadow({mode:"closed"});e.innerHTML=`\n \n \n `,e.appendChild(this.wrapper)}}customElements.define("adr-book-info",c); -//# sourceMappingURL=index.8bbe775a.js.map +function e(e,t,r,s){Object.defineProperty(e,t,{get:r,set:s,enumerable:!0,configurable:!0})}function t(e){return e&&e.__esModule?e.default:e}var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},s={},n={},i=r.parcelRequire1ebe;null==i&&((i=function(e){if(e in s)return s[e].exports;if(e in n){var t=n[e];delete n[e];var r={id:e,exports:{}};return s[e]=r,t.call(r.exports,r,r.exports),r.exports}var i=new Error("Cannot find module '"+e+"'");throw i.code="MODULE_NOT_FOUND",i}).register=function(e,t){n[e]=t},r.parcelRequire1ebe=i),i.register("91BTG",(function(t,r){function s(e){window.selectors||(window.selectors={});let t=window.selectors[e];return t||(t=document.getElementById(e),window.selectors.id=t),t}function n(e,t,r){e.forEach((e=>{r?s(e).classList.add(t):s(e).classList.remove(t)}))}function i(){return`#${window.baseURL}?${window.sortingParam}`}e(t.exports,"select",(function(){return s})),e(t.exports,"toggleClass",(function(){return n})),e(t.exports,"getURL",(function(){return i}))})),i("hqokU").register(JSON.parse('{"gY7T5":"index.8aea89a2.js","gbcXk":"style.695090bc.css","hwmB9":"background.761bc37b.jpg","d3YkH":"artwork-suzuha.09fac1ca.png","aroW2":"artwork-ede.54057cad.png","ilpGW":"cover-renaissance-s4-1024.6b8555ec.png","6Vjqf":"artwork-statue-chateau-s4.d48a5537.png","gR7QX":"artwork-lecture-s4.7439fb69.png"}'));var o;o=new URL(i("hqokU").resolve("gbcXk"),import.meta.url).toString();var l=i("91BTG");class c extends HTMLElement{connectedCallback(){if(this.slotsCount>1){let e=this.wrapper.querySelector(`#${this.getAttribute("id")}-previous`),t=this.wrapper.querySelector(`#${this.getAttribute("id")}-next`);e.addEventListener("click",this.onPrevious),t.addEventListener("click",this.onNext)}}disconnectedCallback(){if(this.slotsCount>1){let e=this.wrapper.querySelector(`${this.getAttribute("id")}-previous`),t=this.wrapper.querySelector(`${this.getAttribute("id")}-next`);e.removeEventListener("click",this.onPrevious),t.removeEventListener("click",this.onNext)}}onPrevious(e){let t=e.target.getAttribute("wrapper"),r=l.select(t),s=Number(r.getAttribute("slots")),n=Number(r.getAttribute("current"));l.select(`${t}-${n}`).classList.remove("show-from-left"),l.select(`${t}-${n}`).classList.remove("show-from-right"),l.select(`${t}-${n}`).classList.add("hidden"),n=n<=0?s-1:n-1,l.select(`${t}-${n}`).classList.remove("hidden"),l.select(`${t}-${n}`).classList.add("show-from-left"),r.setAttribute("current",n)}onNext(e){let t=e.target.getAttribute("wrapper"),r=l.select(t),s=Number(r.getAttribute("slots")),n=Number(r.getAttribute("current"));l.select(`${t}-${n}`).classList.remove("show-from-left"),l.select(`${t}-${n}`).classList.remove("show-from-right"),l.select(`${t}-${n}`).classList.add("hidden");let i=n+1;n=i>=s?0:i,l.select(`${t}-${n}`).classList.remove("hidden"),l.select(`${t}-${n}`).classList.add("show-from-right"),r.setAttribute("current",n)}constructor(){super(),this.slotsCount=Number(this.getAttribute("slots")),this.currentSlot=0,this.blocks=[],this.wrapper=document.createElement("div"),this.wrapper.classList.add("infobox"),this.wrapper.innerHTML="",this.slotsCount>1&&(this.wrapper.innerHTML+=`\n
\n <\n >\n
\n `);for(let e=0;e\n `;var e=this.attachShadow({mode:"closed"});e.innerHTML=`\n \n \n `,e.appendChild(this.wrapper)}}customElements.define("adr-book-info",c); +//# sourceMappingURL=index.8aea89a2.js.map diff --git a/index.8bbe775a.js.map b/index.8aea89a2.js.map similarity index 98% rename from index.8bbe775a.js.map rename to index.8aea89a2.js.map index 03466afc..3ba6ef04 100644 --- a/index.8bbe775a.js.map +++ b/index.8aea89a2.js.map @@ -1 +1 @@ -{"mappings":"2pBAIgBA,EAAOC,GAChBC,OAAOC,YACVD,OAAOC,UAAY,CAAC,GAEtB,IAAIC,EAAWF,OAAOC,UAAUF,GAKhC,OAJKG,IACHA,EAAWC,SAASC,eAAeL,GACnCC,OAAOC,UAAUF,GAAKG,GAEjBA,CACT,C,SAKgBG,EAAYJ,EAAWI,EAAaC,GAClDL,EAAUM,SAASR,IACbO,EACFR,EAAOC,GAAIS,UAAUC,IAAIJ,GAEzBP,EAAOC,GAAIS,UAAUE,OAAOL,EAAW,GAG7C,C,SAMgBM,IACd,MAAM,IAAKX,OAAOY,WAAWZ,OAAOa,cACtC,C,+ICnCAC,EAAA,SAAAC,SAA8CC,KAAKC,MAAM,8b,MCAzDC,EAAc,IAAAC,IAAuBL,EAAA,SAAAM,QAA6C,SAAOC,OAAAC,KAAAC,KAAGC,W,uBCGtFC,UAAoBC,YAExBC,oBACE,GAAIC,KAAKC,WAAa,EAAG,CAEvB,IAAIC,EAAiBF,KAAKG,QAAQC,cAAa,IAAKJ,KAAKK,aAAa,kBAClEC,EAAaN,KAAKG,QAAQC,cAAa,IAAKJ,KAAKK,aAAa,cAClEH,EAAeK,iBAAiB,QAASP,KAAKQ,YAC9CF,EAAWC,iBAAiB,QAASP,KAAKS,OAC5C,CACF,CAEAC,uBACE,GAAIV,KAAKC,WAAa,EAAG,CACvB,IAAIC,EAAiBF,KAAKG,QAAQC,cAAa,GAAIJ,KAAKK,aAAa,kBACjEC,EAAaN,KAAKG,QAAQC,cAAa,GAAIJ,KAAKK,aAAa,cACjEH,EAAeS,oBAAoB,QAASX,KAAKQ,YACjDF,EAAWK,oBAAoB,QAASX,KAAKS,OAC/C,CACF,CAgDAD,WAAWI,G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BmB,KAAKG,QAAQqB,UAAY,GAGrBxB,KAAKC,WAAa,IACpBD,KAAKG,QAAQqB,WAAS,wEAGVxB,KAAKK,aAAa,yCACbL,KAAKK,aAAa,wIAIvBL,KAAKK,aAAa,qCACbL,KAAKK,aAAa,4HAQrC,IAAI,IAAIoB,EAAI,EAAGA,EAAIzB,KAAKC,WAAYwB,IAClCzB,KAAKG,QAAQqB,WAAS,8BACDC,qBAIvB,IAAIC,EAAS1B,KAAK2B,aAAa,CAACC,KAAM,WACtCF,EAAOF,UAAS,iJAEiCK,EAAAvC,aAEjDoC,EAAOI,YAAY9B,KAAKG,QAC1B,EAwCF4B,eAAeC,OAAO,gBAAiBnC","sources":["js/utils/generics.js","node_modules/@parcel/runtime-js/lib/runtime-6842787b3049ec51.js","node_modules/@parcel/runtime-js/lib/runtime-c0665e2809cfadba.js","js/adr-book-info.js"],"sourcesContent":["/**\n * Get element by id\n * Elements that were already requested are registered in \"selectors\" array for performance\n */\nexport function select(id) {\n if (!window.selectors) {\n window.selectors = {}\n }\n let selector = window.selectors[id]\n if (!selector) {\n selector = document.getElementById(id)\n window.selectors.id = selector\n }\n return selector\n}\n\n/**\n * Add or remove the class \"toggleClass\" on all given selectors\n */\nexport function toggleClass(selectors, toggleClass, isAdd) {\n selectors.forEach((id) => {\n if (isAdd) {\n select(id).classList.add(toggleClass)\n } else {\n select(id).classList.remove(toggleClass)\n }\n })\n}\n\n/**\n * Return the part of the URL corresponding to location hash according to current values,\n * designed to work only when called on books page\n */\nexport function getURL() {\n return `#${window.baseURL}?${window.sortingParam}`\n}","require('./helpers/bundle-manifest').register(JSON.parse(\"{\\\"gY7T5\\\":\\\"index.8bbe775a.js\\\",\\\"gbcXk\\\":\\\"style.9d159f0e.css\\\",\\\"hwmB9\\\":\\\"background.761bc37b.jpg\\\",\\\"d3YkH\\\":\\\"artwork-suzuha.09fac1ca.png\\\",\\\"aroW2\\\":\\\"artwork-ede.54057cad.png\\\",\\\"ilpGW\\\":\\\"cover-renaissance-s4-1024.6b8555ec.png\\\",\\\"6Vjqf\\\":\\\"artwork-statue-chateau-s4.d48a5537.png\\\",\\\"gR7QX\\\":\\\"artwork-lecture-s4.7439fb69.png\\\"}\"));","module.exports = new __parcel__URL__(require('./helpers/bundle-manifest').resolve(\"gbcXk\")).toString();","import styleUrl from \"url:../styles/style.css\"\nimport { select } from './utils/generics';\n\nclass AdrBookInfo extends HTMLElement {\n\n connectedCallback() {\n if (this.slotsCount > 1) {\n // Listen to click on navigation buttons\n let previousButton = this.wrapper.querySelector(`#${this.getAttribute('id')}-previous`)\n let nextButton = this.wrapper.querySelector(`#${this.getAttribute('id')}-next`)\n previousButton.addEventListener('click', this.onPrevious)\n nextButton.addEventListener('click', this.onNext)\n }\n }\n\n disconnectedCallback() {\n if (this.slotsCount > 1) {\n let previousButton = this.wrapper.querySelector(`${this.getAttribute('id')}-previous`)\n let nextButton = this.wrapper.querySelector(`${this.getAttribute('id')}-next`)\n previousButton.removeEventListener('click', this.onPrevious)\n nextButton.removeEventListener('click', this.onNext)\n }\n }\n\n constructor() {\n super()\n // Get the slots count and set current slot to 1\n this.slotsCount = Number(this.getAttribute('slots'))\n this.currentSlot = 0\n this.blocks = []\n\n // Setup the wrapper\n this.wrapper = document.createElement('div')\n this.wrapper.classList.add('infobox')\n this.wrapper.innerHTML = ''\n\n // If there are several slots, append navigation keys\n if (this.slotsCount > 1) {\n this.wrapper.innerHTML += `\n
\n <\n >\n
\n `\n }\n\n // Append the right slots count\n for(let i = 0; i < this.slotsCount; i++) {\n this.wrapper.innerHTML += `\n \n `\n }\n\n var shadow = this.attachShadow({mode: 'closed'})\n shadow.innerHTML = `\n \n \n `\n shadow.appendChild(this.wrapper)\n }\n\n // Context is not bound, we can't use \"this\"\n onPrevious(event) {\n // Get the required props\n let wrapperId = event.target.getAttribute('wrapper')\n let wrapper = select(wrapperId)\n let slotsCount = Number(wrapper.getAttribute('slots'))\n let currentSlot = Number(wrapper.getAttribute('current'))\n // Hide the current slot\n select(`${wrapperId}-${currentSlot}`).classList.remove('show-from-left')\n select(`${wrapperId}-${currentSlot}`).classList.remove('show-from-right')\n select(`${wrapperId}-${currentSlot}`).classList.add('hidden')\n // Compute the new current slot and do the changes\n currentSlot = (currentSlot <= 0) ? slotsCount - 1 : currentSlot - 1\n select(`${wrapperId}-${currentSlot}`).classList.remove('hidden')\n select(`${wrapperId}-${currentSlot}`).classList.add('show-from-left')\n wrapper.setAttribute('current', currentSlot)\n }\n\n // Context is not bound, we can't use \"this\"\n onNext(event) {\n // Get the required props\n let wrapperId = event.target.getAttribute('wrapper')\n let wrapper = select(wrapperId)\n let slotsCount = Number(wrapper.getAttribute('slots'))\n let currentSlot = Number(wrapper.getAttribute('current'))\n // Hide the current slot\n select(`${wrapperId}-${currentSlot}`).classList.remove('show-from-left')\n select(`${wrapperId}-${currentSlot}`).classList.remove('show-from-right')\n select(`${wrapperId}-${currentSlot}`).classList.add('hidden')\n // Compute the new current slot and do the changes\n let plusOne = currentSlot + 1\n currentSlot = (plusOne >= slotsCount) ? 0 : plusOne\n select(`${wrapperId}-${currentSlot}`).classList.remove('hidden')\n select(`${wrapperId}-${currentSlot}`).classList.add('show-from-right')\n wrapper.setAttribute('current', currentSlot)\n }\n}\n\ncustomElements.define('adr-book-info', AdrBookInfo)"],"names":["$69219aa09244bc38$export$2e6c959c16ff56b8","id","window","selectors","selector","document","getElementById","$69219aa09244bc38$export$4a80062ca50b57c7","isAdd","forEach","classList","add","remove","$69219aa09244bc38$export$152462a4e1ffe278","baseURL","sortingParam","parcelRequire","register","JSON","parse","$7c2b628dc2e2d7cd$exports","URL","resolve","import","meta","url","toString","$1f9f617d2a57c175$var$AdrBookInfo","HTMLElement","connectedCallback","this","slotsCount","previousButton","wrapper","querySelector","getAttribute","nextButton","addEventListener","onPrevious","onNext","disconnectedCallback","removeEventListener","event","wrapperId","target","$91BTG","select","Number","currentSlot","setAttribute","plusOne","super","blocks","createElement","innerHTML","i","shadow","attachShadow","mode","$parcel$interopDef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IAIvBL,KAAKK,aAAa,qCACbL,KAAKK,aAAa,4HAQrC,IAAI,IAAIoB,EAAI,EAAGA,EAAIzB,KAAKC,WAAYwB,IAClCzB,KAAKG,QAAQqB,WAAS,8BACDC,qBAIvB,IAAIC,EAAS1B,KAAK2B,aAAa,CAACC,KAAM,WACtCF,EAAOF,UAAS,iJAEiCK,EAAAvC,aAEjDoC,EAAOI,YAAY9B,KAAKG,QAC1B,EAwCF4B,eAAeC,OAAO,gBAAiBnC","sources":["js/utils/generics.js","node_modules/@parcel/runtime-js/lib/runtime-6842787b3049ec51.js","node_modules/@parcel/runtime-js/lib/runtime-c0665e2809cfadba.js","js/adr-book-info.js"],"sourcesContent":["/**\n * Get element by id\n * Elements that were already requested are registered in \"selectors\" array for performance\n */\nexport function select(id) {\n if (!window.selectors) {\n window.selectors = {}\n }\n let selector = window.selectors[id]\n if (!selector) {\n selector = document.getElementById(id)\n window.selectors.id = selector\n }\n return selector\n}\n\n/**\n * Add or remove the class \"toggleClass\" on all given selectors\n */\nexport function toggleClass(selectors, toggleClass, isAdd) {\n selectors.forEach((id) => {\n if (isAdd) {\n select(id).classList.add(toggleClass)\n } else {\n select(id).classList.remove(toggleClass)\n }\n })\n}\n\n/**\n * Return the part of the URL corresponding to location hash according to current values,\n * designed to work only when called on books page\n */\nexport function getURL() {\n return `#${window.baseURL}?${window.sortingParam}`\n}","require('./helpers/bundle-manifest').register(JSON.parse(\"{\\\"gY7T5\\\":\\\"index.8aea89a2.js\\\",\\\"gbcXk\\\":\\\"style.695090bc.css\\\",\\\"hwmB9\\\":\\\"background.761bc37b.jpg\\\",\\\"d3YkH\\\":\\\"artwork-suzuha.09fac1ca.png\\\",\\\"aroW2\\\":\\\"artwork-ede.54057cad.png\\\",\\\"ilpGW\\\":\\\"cover-renaissance-s4-1024.6b8555ec.png\\\",\\\"6Vjqf\\\":\\\"artwork-statue-chateau-s4.d48a5537.png\\\",\\\"gR7QX\\\":\\\"artwork-lecture-s4.7439fb69.png\\\"}\"));","module.exports = new __parcel__URL__(require('./helpers/bundle-manifest').resolve(\"gbcXk\")).toString();","import styleUrl from \"url:../styles/style.css\"\nimport { select } from './utils/generics';\n\nclass AdrBookInfo extends HTMLElement {\n\n connectedCallback() {\n if (this.slotsCount > 1) {\n // Listen to click on navigation buttons\n let previousButton = this.wrapper.querySelector(`#${this.getAttribute('id')}-previous`)\n let nextButton = this.wrapper.querySelector(`#${this.getAttribute('id')}-next`)\n previousButton.addEventListener('click', this.onPrevious)\n nextButton.addEventListener('click', this.onNext)\n }\n }\n\n disconnectedCallback() {\n if (this.slotsCount > 1) {\n let previousButton = this.wrapper.querySelector(`${this.getAttribute('id')}-previous`)\n let nextButton = this.wrapper.querySelector(`${this.getAttribute('id')}-next`)\n previousButton.removeEventListener('click', this.onPrevious)\n nextButton.removeEventListener('click', this.onNext)\n }\n }\n\n constructor() {\n super()\n // Get the slots count and set current slot to 1\n this.slotsCount = Number(this.getAttribute('slots'))\n this.currentSlot = 0\n this.blocks = []\n\n // Setup the wrapper\n this.wrapper = document.createElement('div')\n this.wrapper.classList.add('infobox')\n this.wrapper.innerHTML = ''\n\n // If there are several slots, append navigation keys\n if (this.slotsCount > 1) {\n this.wrapper.innerHTML += `\n
\n <\n >\n
\n `\n }\n\n // Append the right slots count\n for(let i = 0; i < this.slotsCount; i++) {\n this.wrapper.innerHTML += `\n \n `\n }\n\n var shadow = this.attachShadow({mode: 'closed'})\n shadow.innerHTML = `\n \n \n `\n shadow.appendChild(this.wrapper)\n }\n\n // Context is not bound, we can't use \"this\"\n onPrevious(event) {\n // Get the required props\n let wrapperId = event.target.getAttribute('wrapper')\n let wrapper = select(wrapperId)\n let slotsCount = Number(wrapper.getAttribute('slots'))\n let currentSlot = Number(wrapper.getAttribute('current'))\n // Hide the current slot\n select(`${wrapperId}-${currentSlot}`).classList.remove('show-from-left')\n select(`${wrapperId}-${currentSlot}`).classList.remove('show-from-right')\n select(`${wrapperId}-${currentSlot}`).classList.add('hidden')\n // Compute the new current slot and do the changes\n currentSlot = (currentSlot <= 0) ? slotsCount - 1 : currentSlot - 1\n select(`${wrapperId}-${currentSlot}`).classList.remove('hidden')\n select(`${wrapperId}-${currentSlot}`).classList.add('show-from-left')\n wrapper.setAttribute('current', currentSlot)\n }\n\n // Context is not bound, we can't use \"this\"\n onNext(event) {\n // Get the required props\n let wrapperId = event.target.getAttribute('wrapper')\n let wrapper = select(wrapperId)\n let slotsCount = Number(wrapper.getAttribute('slots'))\n let currentSlot = Number(wrapper.getAttribute('current'))\n // Hide the current slot\n select(`${wrapperId}-${currentSlot}`).classList.remove('show-from-left')\n select(`${wrapperId}-${currentSlot}`).classList.remove('show-from-right')\n select(`${wrapperId}-${currentSlot}`).classList.add('hidden')\n // Compute the new current slot and do the changes\n let plusOne = currentSlot + 1\n currentSlot = (plusOne >= slotsCount) ? 0 : plusOne\n select(`${wrapperId}-${currentSlot}`).classList.remove('hidden')\n select(`${wrapperId}-${currentSlot}`).classList.add('show-from-right')\n wrapper.setAttribute('current', currentSlot)\n }\n}\n\ncustomElements.define('adr-book-info', AdrBookInfo)"],"names":["$69219aa09244bc38$export$2e6c959c16ff56b8","id","window","selectors","selector","document","getElementById","$69219aa09244bc38$export$4a80062ca50b57c7","isAdd","forEach","classList","add","remove","$69219aa09244bc38$export$152462a4e1ffe278","baseURL","sortingParam","parcelRequire","register","JSON","parse","$7c2b628dc2e2d7cd$exports","URL","resolve","import","meta","url","toString","$1f9f617d2a57c175$var$AdrBookInfo","HTMLElement","connectedCallback","this","slotsCount","previousButton","wrapper","querySelector","getAttribute","nextButton","addEventListener","onPrevious","onNext","disconnectedCallback","removeEventListener","event","wrapperId","target","$91BTG","select","Number","currentSlot","setAttribute","plusOne","super","blocks","createElement","innerHTML","i","shadow","attachShadow","mode","$parcel$interopDefault","appendChild","customElements","define"],"version":3,"file":"index.8aea89a2.js.map"} \ No newline at end of file diff --git a/index.9e36aa1d.js b/index.c1246662.js similarity index 93% rename from index.9e36aa1d.js rename to index.c1246662.js index 4cebd8b2..6b0a331c 100644 --- a/index.9e36aa1d.js +++ b/index.c1246662.js @@ -1,2 +1,2 @@ -function e(e){return e&&e.__esModule?e.default:e}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},r={},n={},s=t.parcelRequire1ebe;null==s&&((s=function(e){if(e in r)return r[e].exports;if(e in n){var t=n[e];delete n[e];var s={id:e,exports:{}};return r[e]=s,t.call(s.exports,s,s.exports),s.exports}var i=new Error("Cannot find module '"+e+"'");throw i.code="MODULE_NOT_FOUND",i}).register=function(e,t){n[e]=t},t.parcelRequire1ebe=s),s("hqokU").register(JSON.parse('{"ikyZY":"index.9e36aa1d.js","gbcXk":"style.9d159f0e.css","hwmB9":"background.761bc37b.jpg","d3YkH":"artwork-suzuha.09fac1ca.png","aroW2":"artwork-ede.54057cad.png","ilpGW":"cover-renaissance-s4-1024.6b8555ec.png","6Vjqf":"artwork-statue-chateau-s4.d48a5537.png","gR7QX":"artwork-lecture-s4.7439fb69.png"}'));var i;i=new URL(s("hqokU").resolve("gbcXk"),import.meta.url).toString();class a extends HTMLElement{static get observedAttributes(){return["question-index","questions-length"]}attributeChangedCallback(){this.wrapper.innerHTML=`\n

\n ${this.getAttribute("question-index")}/${this.getAttribute("questions-length")}\n

\n `}constructor(){super(),this.wrapper=document.createElement("div"),this.wrapper.classList.add("question-number");var t=this.attachShadow({mode:"closed"});t.innerHTML=`\n \n \n `,t.appendChild(this.wrapper)}}customElements.define("adr-question-number",a); -//# sourceMappingURL=index.9e36aa1d.js.map +function e(e){return e&&e.__esModule?e.default:e}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},r={},n={},s=t.parcelRequire1ebe;null==s&&((s=function(e){if(e in r)return r[e].exports;if(e in n){var t=n[e];delete n[e];var s={id:e,exports:{}};return r[e]=s,t.call(s.exports,s,s.exports),s.exports}var i=new Error("Cannot find module '"+e+"'");throw i.code="MODULE_NOT_FOUND",i}).register=function(e,t){n[e]=t},t.parcelRequire1ebe=s),s("hqokU").register(JSON.parse('{"ikyZY":"index.c1246662.js","gbcXk":"style.695090bc.css","hwmB9":"background.761bc37b.jpg","d3YkH":"artwork-suzuha.09fac1ca.png","aroW2":"artwork-ede.54057cad.png","ilpGW":"cover-renaissance-s4-1024.6b8555ec.png","6Vjqf":"artwork-statue-chateau-s4.d48a5537.png","gR7QX":"artwork-lecture-s4.7439fb69.png"}'));var i;i=new URL(s("hqokU").resolve("gbcXk"),import.meta.url).toString();class a extends HTMLElement{static get observedAttributes(){return["question-index","questions-length"]}attributeChangedCallback(){this.wrapper.innerHTML=`\n

\n ${this.getAttribute("question-index")}/${this.getAttribute("questions-length")}\n

\n `}constructor(){super(),this.wrapper=document.createElement("div"),this.wrapper.classList.add("question-number");var t=this.attachShadow({mode:"closed"});t.innerHTML=`\n \n \n `,t.appendChild(this.wrapper)}}customElements.define("adr-question-number",a); +//# sourceMappingURL=index.c1246662.js.map diff --git a/index.9e36aa1d.js.map b/index.c1246662.js.map similarity index 91% rename from index.9e36aa1d.js.map rename to index.c1246662.js.map index 3608dc9c..606f964b 100644 --- a/index.9e36aa1d.js.map +++ b/index.c1246662.js.map @@ -1 +1 @@ -{"mappings":"qhBAAAA,EAAA,SAAAC,SAA8CC,KAAKC,MAAM,8b,MCAzDC,EAAc,IAAAC,IAAuBL,EAAA,SAAAM,QAA6C,SAAOC,OAAAC,KAAAC,KAAGC,W,MCEtFC,UAA0BC,YAEnBC,gCACT,MAAO,CAAC,iBAAkB,mBAC5B,CAEAC,2BACEC,KAAKC,QAAQC,UAAS,wBAEhBF,KAAKG,aAAa,qBAAqBH,KAAKG,aAAa,uCAGjE,C,cAGEC,QACAJ,KAAKC,QAAUI,SAASC,cAAc,OACtCN,KAAKC,QAAQM,UAAUC,IAAI,mBAC3B,IAAIC,EAAST,KAAKU,aAAa,CAACC,KAAM,WACtCF,EAAOP,UAAS,iJAEiCU,EAAAvB,aAEjDoB,EAAOI,YAAYb,KAAKC,QAC1B,EAIFa,eAAeC,OAAO,sBAAuBnB","sources":["node_modules/@parcel/runtime-js/lib/runtime-51abc5dedd5e942a.js","node_modules/@parcel/runtime-js/lib/runtime-c0665e2809cfadba.js","js/adr-question-number.js"],"sourcesContent":["require('./helpers/bundle-manifest').register(JSON.parse(\"{\\\"ikyZY\\\":\\\"index.9e36aa1d.js\\\",\\\"gbcXk\\\":\\\"style.9d159f0e.css\\\",\\\"hwmB9\\\":\\\"background.761bc37b.jpg\\\",\\\"d3YkH\\\":\\\"artwork-suzuha.09fac1ca.png\\\",\\\"aroW2\\\":\\\"artwork-ede.54057cad.png\\\",\\\"ilpGW\\\":\\\"cover-renaissance-s4-1024.6b8555ec.png\\\",\\\"6Vjqf\\\":\\\"artwork-statue-chateau-s4.d48a5537.png\\\",\\\"gR7QX\\\":\\\"artwork-lecture-s4.7439fb69.png\\\"}\"));","module.exports = new __parcel__URL__(require('./helpers/bundle-manifest').resolve(\"gbcXk\")).toString();","import styleUrl from \"url:../styles/style.css\";\n\nclass AdrQuestionNumber extends HTMLElement {\n\n static get observedAttributes() {\n return ['question-index', 'questions-length']\n }\n\n attributeChangedCallback() {\n this.wrapper.innerHTML = `\n

\n ${this.getAttribute('question-index')}/${this.getAttribute('questions-length')}\n

\n `\n }\n\n constructor() {\n super()\n this.wrapper = document.createElement('div')\n this.wrapper.classList.add('question-number')\n var shadow = this.attachShadow({mode: 'closed'})\n shadow.innerHTML = `\n \n \n `\n shadow.appendChild(this.wrapper)\n }\n\n}\n\ncustomElements.define('adr-question-number', AdrQuestionNumber)\n\n"],"names":["parcelRequire","register","JSON","parse","$7c2b628dc2e2d7cd$exports","URL","resolve","import","meta","url","toString","$79f766ffa7638c66$var$AdrQuestionNumber","HTMLElement","observedAttributes","attributeChangedCallback","this","wrapper","innerHTML","getAttribute","super","document","createElement","classList","add","shadow","attachShadow","mode","$parcel$interopDefault","appendChild","customElements","define"],"version":3,"file":"index.9e36aa1d.js.map"} \ No newline at end of file +{"mappings":"qhBAAAA,EAAA,SAAAC,SAA8CC,KAAKC,MAAM,8b,MCAzDC,EAAc,IAAAC,IAAuBL,EAAA,SAAAM,QAA6C,SAAOC,OAAAC,KAAAC,KAAGC,W,MCEtFC,UAA0BC,YAEnBC,gCACT,MAAO,CAAC,iBAAkB,mBAC5B,CAEAC,2BACEC,KAAKC,QAAQC,UAAS,wBAEhBF,KAAKG,aAAa,qBAAqBH,KAAKG,aAAa,uCAGjE,C,cAGEC,QACAJ,KAAKC,QAAUI,SAASC,cAAc,OACtCN,KAAKC,QAAQM,UAAUC,IAAI,mBAC3B,IAAIC,EAAST,KAAKU,aAAa,CAACC,KAAM,WACtCF,EAAOP,UAAS,iJAEiCU,EAAAvB,aAEjDoB,EAAOI,YAAYb,KAAKC,QAC1B,EAIFa,eAAeC,OAAO,sBAAuBnB","sources":["node_modules/@parcel/runtime-js/lib/runtime-51abc5dedd5e942a.js","node_modules/@parcel/runtime-js/lib/runtime-c0665e2809cfadba.js","js/adr-question-number.js"],"sourcesContent":["require('./helpers/bundle-manifest').register(JSON.parse(\"{\\\"ikyZY\\\":\\\"index.c1246662.js\\\",\\\"gbcXk\\\":\\\"style.695090bc.css\\\",\\\"hwmB9\\\":\\\"background.761bc37b.jpg\\\",\\\"d3YkH\\\":\\\"artwork-suzuha.09fac1ca.png\\\",\\\"aroW2\\\":\\\"artwork-ede.54057cad.png\\\",\\\"ilpGW\\\":\\\"cover-renaissance-s4-1024.6b8555ec.png\\\",\\\"6Vjqf\\\":\\\"artwork-statue-chateau-s4.d48a5537.png\\\",\\\"gR7QX\\\":\\\"artwork-lecture-s4.7439fb69.png\\\"}\"));","module.exports = new __parcel__URL__(require('./helpers/bundle-manifest').resolve(\"gbcXk\")).toString();","import styleUrl from \"url:../styles/style.css\";\n\nclass AdrQuestionNumber extends HTMLElement {\n\n static get observedAttributes() {\n return ['question-index', 'questions-length']\n }\n\n attributeChangedCallback() {\n this.wrapper.innerHTML = `\n

\n ${this.getAttribute('question-index')}/${this.getAttribute('questions-length')}\n

\n `\n }\n\n constructor() {\n super()\n this.wrapper = document.createElement('div')\n this.wrapper.classList.add('question-number')\n var shadow = this.attachShadow({mode: 'closed'})\n shadow.innerHTML = `\n \n \n `\n shadow.appendChild(this.wrapper)\n }\n\n}\n\ncustomElements.define('adr-question-number', AdrQuestionNumber)\n\n"],"names":["parcelRequire","register","JSON","parse","$7c2b628dc2e2d7cd$exports","URL","resolve","import","meta","url","toString","$79f766ffa7638c66$var$AdrQuestionNumber","HTMLElement","observedAttributes","attributeChangedCallback","this","wrapper","innerHTML","getAttribute","super","document","createElement","classList","add","shadow","attachShadow","mode","$parcel$interopDefault","appendChild","customElements","define"],"version":3,"file":"index.c1246662.js.map"} \ No newline at end of file diff --git a/index.b8b93e1d.js b/index.cbe2bd46.js similarity index 94% rename from index.b8b93e1d.js rename to index.cbe2bd46.js index 3bfe494b..a3276044 100644 --- a/index.b8b93e1d.js +++ b/index.cbe2bd46.js @@ -1,2 +1,2 @@ -function e(e){return e&&e.__esModule?e.default:e}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},r={},n={},a=t.parcelRequire1ebe;null==a&&((a=function(e){if(e in r)return r[e].exports;if(e in n){var t=n[e];delete n[e];var a={id:e,exports:{}};return r[e]=a,t.call(a.exports,a,a.exports),a.exports}var s=new Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s}).register=function(e,t){n[e]=t},t.parcelRequire1ebe=a),a("hqokU").register(JSON.parse('{"7B1bM":"index.b8b93e1d.js","gbcXk":"style.9d159f0e.css","hwmB9":"background.761bc37b.jpg","d3YkH":"artwork-suzuha.09fac1ca.png","aroW2":"artwork-ede.54057cad.png","ilpGW":"cover-renaissance-s4-1024.6b8555ec.png","6Vjqf":"artwork-statue-chateau-s4.d48a5537.png","gR7QX":"artwork-lecture-s4.7439fb69.png","dT5y6":"enfant-des-esprits-extrait.91d89b09.pdf"}'));var s;s=new URL(a("hqokU").resolve("gbcXk"),import.meta.url).toString();var o;o=new URL(a("hqokU").resolve("dT5y6"),import.meta.url).toString();class i extends HTMLElement{getBookUrl(t){if("enfant-des-esprits-extrait.pdf"===t)return e(o)}constructor(){super();var t=document.createElement("div"),r=document.createElement("a");r.setAttribute("class","pure-button pure-button--black"),r.setAttribute("target","_blank"),r.setAttribute("download",this.getAttribute("file"));let n=this.getBookUrl(this.getAttribute("file"));r.setAttribute("href",n),r.textContent="Lire un extrait",t.appendChild(r);var a=this.attachShadow({mode:"closed"});a.innerHTML=`\n \n \n `,a.appendChild(t)}}customElements.define("adr-extract-button",i); -//# sourceMappingURL=index.b8b93e1d.js.map +function e(e){return e&&e.__esModule?e.default:e}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},r={},n={},a=t.parcelRequire1ebe;null==a&&((a=function(e){if(e in r)return r[e].exports;if(e in n){var t=n[e];delete n[e];var a={id:e,exports:{}};return r[e]=a,t.call(a.exports,a,a.exports),a.exports}var s=new Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s}).register=function(e,t){n[e]=t},t.parcelRequire1ebe=a),a("hqokU").register(JSON.parse('{"7B1bM":"index.cbe2bd46.js","gbcXk":"style.695090bc.css","hwmB9":"background.761bc37b.jpg","d3YkH":"artwork-suzuha.09fac1ca.png","aroW2":"artwork-ede.54057cad.png","ilpGW":"cover-renaissance-s4-1024.6b8555ec.png","6Vjqf":"artwork-statue-chateau-s4.d48a5537.png","gR7QX":"artwork-lecture-s4.7439fb69.png","dT5y6":"enfant-des-esprits-extrait.91d89b09.pdf"}'));var s;s=new URL(a("hqokU").resolve("gbcXk"),import.meta.url).toString();var o;o=new URL(a("hqokU").resolve("dT5y6"),import.meta.url).toString();class i extends HTMLElement{getBookUrl(t){if("enfant-des-esprits-extrait.pdf"===t)return e(o)}constructor(){super();var t=document.createElement("div"),r=document.createElement("a");r.setAttribute("class","pure-button pure-button--black"),r.setAttribute("target","_blank"),r.setAttribute("download",this.getAttribute("file"));let n=this.getBookUrl(this.getAttribute("file"));r.setAttribute("href",n),r.textContent="Lire un extrait",t.appendChild(r);var a=this.attachShadow({mode:"closed"});a.innerHTML=`\n \n \n `,a.appendChild(t)}}customElements.define("adr-extract-button",i); +//# sourceMappingURL=index.cbe2bd46.js.map diff --git a/index.b8b93e1d.js.map b/index.cbe2bd46.js.map similarity index 96% rename from index.b8b93e1d.js.map rename to index.cbe2bd46.js.map index 50a832aa..8ce4d1cd 100644 --- a/index.b8b93e1d.js.map +++ b/index.cbe2bd46.js.map @@ -1 +1 @@ -{"mappings":"qhBAAAA,EAAA,SAAAC,SAA8CC,KAAKC,MAAM,igB,MCAzDC,EAAc,IAAAC,IAAuBL,EAAA,SAAAM,QAA6C,SAAOC,OAAAC,KAAAC,KAAGC,W,MCA5FC,EAAc,IAAAN,IAAuBL,EAAA,SAAAM,QAA6C,SAAOC,OAAAC,KAAAC,KAAGC,W,MCGtFE,UAAyBC,YAsB7BC,WAAWC,GACT,GACK,mCADEA,EAEL,OAAOC,EAAAL,EAEX,C,cAzBEM,QACA,IAAIC,EAAUC,SAASC,cAAc,OAEjCC,EAAcF,SAASC,cAAc,KACzCC,EAAYC,aAAa,QAAS,kCAClCD,EAAYC,aAAa,SAAU,UACnCD,EAAYC,aAAa,WAAYC,KAAKC,aAAa,SACvD,IAAIC,EAAUF,KAAKT,WAAWS,KAAKC,aAAa,SAChDH,EAAYC,aAAa,OAAQG,GACjCJ,EAAYK,YAAc,kBAC1BR,EAAQS,YAAYN,GAEpB,IAAIO,EAASL,KAAKM,aAAa,CAACC,KAAM,WACtCF,EAAOG,UAAS,iJAEiCf,EAAAZ,aAEjDwB,EAAOD,YAAYT,EACrB,EAUFc,eAAeC,OAAO,qBAAsBrB","sources":["node_modules/@parcel/runtime-js/lib/runtime-9983f78d1cdde897.js","node_modules/@parcel/runtime-js/lib/runtime-c0665e2809cfadba.js","node_modules/@parcel/runtime-js/lib/runtime-75e6b974ba98761a.js","js/adr-extract-button.js"],"sourcesContent":["require('./helpers/bundle-manifest').register(JSON.parse(\"{\\\"7B1bM\\\":\\\"index.b8b93e1d.js\\\",\\\"gbcXk\\\":\\\"style.9d159f0e.css\\\",\\\"hwmB9\\\":\\\"background.761bc37b.jpg\\\",\\\"d3YkH\\\":\\\"artwork-suzuha.09fac1ca.png\\\",\\\"aroW2\\\":\\\"artwork-ede.54057cad.png\\\",\\\"ilpGW\\\":\\\"cover-renaissance-s4-1024.6b8555ec.png\\\",\\\"6Vjqf\\\":\\\"artwork-statue-chateau-s4.d48a5537.png\\\",\\\"gR7QX\\\":\\\"artwork-lecture-s4.7439fb69.png\\\",\\\"dT5y6\\\":\\\"enfant-des-esprits-extrait.91d89b09.pdf\\\"}\"));","module.exports = new __parcel__URL__(require('./helpers/bundle-manifest').resolve(\"gbcXk\")).toString();","module.exports = new __parcel__URL__(require('./helpers/bundle-manifest').resolve(\"dT5y6\")).toString();","import styleUrl from \"url:../styles/style.css\";\nimport booksEde from \"url:../assets/books/enfant-des-esprits-extrait.pdf\";\n\nclass AdrExtractButton extends HTMLElement {\n constructor() {\n super()\n var wrapper = document.createElement('div')\n\n var extractLink = document.createElement('a')\n extractLink.setAttribute('class', 'pure-button pure-button--black')\n extractLink.setAttribute('target', '_blank')\n extractLink.setAttribute('download', this.getAttribute('file'))\n let bookUrl = this.getBookUrl(this.getAttribute('file'))\n extractLink.setAttribute('href', bookUrl)\n extractLink.textContent = 'Lire un extrait'\n wrapper.appendChild(extractLink)\n\n var shadow = this.attachShadow({mode: 'closed'})\n shadow.innerHTML = `\n \n \n `\n shadow.appendChild(wrapper)\n }\n\n getBookUrl(fileName) {\n switch(fileName) {\n case 'enfant-des-esprits-extrait.pdf':\n return booksEde\n }\n }\n}\n\ncustomElements.define('adr-extract-button', AdrExtractButton)"],"names":["parcelRequire","register","JSON","parse","$7c2b628dc2e2d7cd$exports","URL","resolve","import","meta","url","toString","$703fd404f09e31ba$exports","$3a36f693ad26b2f5$var$AdrExtractButton","HTMLElement","getBookUrl","fileName","$parcel$interopDefault","super","wrapper","document","createElement","extractLink","setAttribute","this","getAttribute","bookUrl","textContent","appendChild","shadow","attachShadow","mode","innerHTML","customElements","define"],"version":3,"file":"index.b8b93e1d.js.map"} \ No newline at end of file +{"mappings":"qhBAAAA,EAAA,SAAAC,SAA8CC,KAAKC,MAAM,igB,MCAzDC,EAAc,IAAAC,IAAuBL,EAAA,SAAAM,QAA6C,SAAOC,OAAAC,KAAAC,KAAGC,W,MCA5FC,EAAc,IAAAN,IAAuBL,EAAA,SAAAM,QAA6C,SAAOC,OAAAC,KAAAC,KAAGC,W,MCGtFE,UAAyBC,YAsB7BC,WAAWC,GACT,GACK,mCADEA,EAEL,OAAOC,EAAAL,EAEX,C,cAzBEM,QACA,IAAIC,EAAUC,SAASC,cAAc,OAEjCC,EAAcF,SAASC,cAAc,KACzCC,EAAYC,aAAa,QAAS,kCAClCD,EAAYC,aAAa,SAAU,UACnCD,EAAYC,aAAa,WAAYC,KAAKC,aAAa,SACvD,IAAIC,EAAUF,KAAKT,WAAWS,KAAKC,aAAa,SAChDH,EAAYC,aAAa,OAAQG,GACjCJ,EAAYK,YAAc,kBAC1BR,EAAQS,YAAYN,GAEpB,IAAIO,EAASL,KAAKM,aAAa,CAACC,KAAM,WACtCF,EAAOG,UAAS,iJAEiCf,EAAAZ,aAEjDwB,EAAOD,YAAYT,EACrB,EAUFc,eAAeC,OAAO,qBAAsBrB","sources":["node_modules/@parcel/runtime-js/lib/runtime-9983f78d1cdde897.js","node_modules/@parcel/runtime-js/lib/runtime-c0665e2809cfadba.js","node_modules/@parcel/runtime-js/lib/runtime-75e6b974ba98761a.js","js/adr-extract-button.js"],"sourcesContent":["require('./helpers/bundle-manifest').register(JSON.parse(\"{\\\"7B1bM\\\":\\\"index.cbe2bd46.js\\\",\\\"gbcXk\\\":\\\"style.695090bc.css\\\",\\\"hwmB9\\\":\\\"background.761bc37b.jpg\\\",\\\"d3YkH\\\":\\\"artwork-suzuha.09fac1ca.png\\\",\\\"aroW2\\\":\\\"artwork-ede.54057cad.png\\\",\\\"ilpGW\\\":\\\"cover-renaissance-s4-1024.6b8555ec.png\\\",\\\"6Vjqf\\\":\\\"artwork-statue-chateau-s4.d48a5537.png\\\",\\\"gR7QX\\\":\\\"artwork-lecture-s4.7439fb69.png\\\",\\\"dT5y6\\\":\\\"enfant-des-esprits-extrait.91d89b09.pdf\\\"}\"));","module.exports = new __parcel__URL__(require('./helpers/bundle-manifest').resolve(\"gbcXk\")).toString();","module.exports = new __parcel__URL__(require('./helpers/bundle-manifest').resolve(\"dT5y6\")).toString();","import styleUrl from \"url:../styles/style.css\";\nimport booksEde from \"url:../assets/books/enfant-des-esprits-extrait.pdf\";\n\nclass AdrExtractButton extends HTMLElement {\n constructor() {\n super()\n var wrapper = document.createElement('div')\n\n var extractLink = document.createElement('a')\n extractLink.setAttribute('class', 'pure-button pure-button--black')\n extractLink.setAttribute('target', '_blank')\n extractLink.setAttribute('download', this.getAttribute('file'))\n let bookUrl = this.getBookUrl(this.getAttribute('file'))\n extractLink.setAttribute('href', bookUrl)\n extractLink.textContent = 'Lire un extrait'\n wrapper.appendChild(extractLink)\n\n var shadow = this.attachShadow({mode: 'closed'})\n shadow.innerHTML = `\n \n \n `\n shadow.appendChild(wrapper)\n }\n\n getBookUrl(fileName) {\n switch(fileName) {\n case 'enfant-des-esprits-extrait.pdf':\n return booksEde\n }\n }\n}\n\ncustomElements.define('adr-extract-button', AdrExtractButton)"],"names":["parcelRequire","register","JSON","parse","$7c2b628dc2e2d7cd$exports","URL","resolve","import","meta","url","toString","$703fd404f09e31ba$exports","$3a36f693ad26b2f5$var$AdrExtractButton","HTMLElement","getBookUrl","fileName","$parcel$interopDefault","super","wrapper","document","createElement","extractLink","setAttribute","this","getAttribute","bookUrl","textContent","appendChild","shadow","attachShadow","mode","innerHTML","customElements","define"],"version":3,"file":"index.cbe2bd46.js.map"} \ No newline at end of file diff --git a/index.cc94a05a.css b/index.cc94a05a.css new file mode 100644 index 00000000..ba40abc9 --- /dev/null +++ b/index.cc94a05a.css @@ -0,0 +1,2 @@ +.article-button{padding:.8em 1.2em;white-space:inherit;width:100%}.article-button .article-button-icon{text-align:left}@media (min-width:72em){.article-button{width:80%}}@media (min-width:86em){.article-button{width:70%}}.pure-img-responsive{height:auto;max-width:100%}.pure-menu{background:#191818;border:none;color:#999}.pure-menu a{border:none;color:#999;padding:.6em}.pure-menu a.pure-menu-selected{color:#eee}.pure-menu ul{background:#191818;border:none}.pure-menu .menu-item-divided,.pure-menu ul{border-top:1px solid #333}.pure-menu li a:hover{background:#332b38;color:#eee}.pure-menu .pure-menu-selected,.pure-menu li a:focus{background:#6f5aa1;text-transform:none}.pure-menu .pure-menu-selected .pure-menu-link:visited{color:#eee}#layout,#menu,.menu-link{-webkit-transition:all .2s ease-out;-moz-transition:all .2s ease-out;-ms-transition:all .2s ease-out;-o-transition:all .2s ease-out;transition:all .2s ease-out}#layout{left:0;padding-left:0;position:relative}#layout.active #menu{left:260px;width:260px}#layout.active .menu-link{left:260px}#main{width:100%}.content{line-height:1.6em;margin:0 auto 50px;max-width:800px;padding:0 2em}.header{border-bottom:1px solid #eee;color:#333;margin:0;padding:2.5em 2em 0;text-align:center}.header h1{font-size:3em;font-weight:300;margin:.2em 0}.header h2{color:#ccc;font-weight:300;margin-top:0;padding:0}.content-subhead{color:#888;font-weight:300;margin:50px 0 20px}#menu{-webkit-overflow-scrolling:touch;background:#191818;bottom:0;left:0;margin-left:-260px;overflow-y:auto;position:fixed;top:0;width:260px;z-index:50}#menu a.pure-menu-link{font-weight:700}#sorting-trigger.pure-menu-item,#sorting-trigger.pure-menu-item:focus{background:#332b38}.menu-link{background:#191818;display:block;font-size:10px;height:auto;left:0;padding:2.1em 1.6em;position:fixed;top:0;width:2em;z-index:10}.menu-link:focus,.menu-link:hover{background:#332b38}.menu-link span{background-color:#eee;display:block;height:.2em;position:relative;width:100%}.menu-link span:after,.menu-link span:before{background-color:#eee;content:" ";height:.2em;margin-top:-.6em;position:absolute;width:100%}.menu-link span:after{margin-top:.6em}a.support-button{background-color:#6f5aa1;color:#eee;font-weight:700}.rs-links{display:flex;flex-flow:wrap;justify-content:center;padding-left:25px;padding-right:25px}.rs-links a{color:#eee;padding:0;text-decoration:none}.rs-link{padding:15px}.rs-link:hover,a:focus .rs-link{background:#332b38}@media (min-width:48em){.content,.header{padding-left:2em;padding-right:2em}#layout{left:0;padding-left:260px}#menu{left:260px}.menu-link{display:none;left:260px;position:fixed}#layout.active .menu-link{left:260px}}@media (max-width:48em){#layout.active{left:260px;position:relative}#menuList{margin-left:50px}}.wtr-horizontal-menu{margin:0}.question-number{font-size:smaller;text-align:right}.question-number p{margin:0}.result-list{display:block;min-height:150px}.result-item{background-color:#6f5aa1;border-radius:2px;margin-bottom:4px;margin-top:4px;min-width:200px;padding:10px;position:absolute;transition-duration:.8s;transition-property:margin-top}.result-item--1{margin-top:0}.result-item--2{margin-top:50px}.result-item--3{margin-top:100px}.pure-button,.pure-g [class*=pure-u]{font-family:Roboto,Segoe UI,-apple-system,BlinkMacSystemFont,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.pure-button{box-shadow:2px 2px 2px #191818;margin-bottom:10px}.pure-button--black{background-color:#191818;color:#eee}.pure-button--black:focus,.pure-button--black:hover{background-color:#332b38}body{background-color:#191818;background-position:50%;background-repeat:no-repeat;background-size:cover;font-family:Roboto,Segoe UI,-apple-system,BlinkMacSystemFont,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;letter-spacing:0;line-height:1.4rem}a,body{color:#eee}h1{font-size:1.5rem}h1,h2{font-family:Tahoma,Verdana,Roboto,Segoe UI,-apple-system,BlinkMacSystemFont,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-weight:700;margin-top:20px}h2{font-size:1.3rem}.mentions{color:#999;font-size:.8rem}.container{min-height:calc(100vh - 170px)}.content{padding-top:50px}.centered{text-align:center}.right{text-align:right}.margin-bottom--medium{margin-bottom:20px}.padding--small{padding:10px}.padding--medium{padding:20px}.padding--large{padding:40px}.inline{display:inline-block}.vertical-center{vertical-align:super}.infobox{background-color:#453864a3;border-radius:2px;padding:20px;text-align:center}.infobox,.video-container{overflow:hidden}.author-header{display:flex;padding-bottom:20px}.author-header .author-header--img-container{min-width:100px}.author-header .author-header--img-container img{border-radius:50%}.author-header p{padding-left:20px}.book-background{width:100%}.background--classic{background-image:url(background.761bc37b.jpg);background-position:100%}.background--classic,.background--suzuha{background-repeat:no-repeat;background-size:cover}.background--suzuha{background-image:url(artwork-suzuha.09fac1ca.png);background-position:top}.background--ede{background-image:url(artwork-ede.54057cad.png);background-position:0}.background--ede,.background--vdy{background-repeat:no-repeat;background-size:cover}.background--vdy{background-image:url(cover-renaissance-s4-1024.6b8555ec.png);background-position:100% 0}.background--renard{background-image:url(artwork-statue-chateau-s4.d48a5537.png)}.background--lecture,.background--renard{background-position:0;background-repeat:no-repeat;background-size:cover}.background--lecture{background-image:url(artwork-lecture-s4.7439fb69.png)}.book{background-color:#453864a3}.quote{margin-bottom:10px;padding:4px;text-align:center}.download-button{height:60px;margin-right:3px;padding:5px 0 0;width:112px}.download-button img{height:50px}#info p{margin-top:0}#info .title{background-color:#453864a3}#info .title h2{margin:0}#info .info-item{background-color:#1918183d;text-align:justify}.footer{height:60px;letter-spacing:0}.hidden{display:none}.primary-button{background-color:#453864a3;font-weight:700}.primary-button:focus,.primary-button:hover{background-color:#6f5aa1}.pure-button.pa{background-color:#d14b52;color:#eee}.book-links{display:flex;flex-flow:row wrap;justify-content:space-between}.show-from-left{animation:from-left .6s}@keyframes from-left{0%{opacity:0;transform:translateX(-80px)}to{opacity:1;transform:translateX(0)}}.show-from-right{animation:from-right .6s}@keyframes from-right{0%{opacity:0;transform:translateX(80px)}to{opacity:1;transform:translateX(0)}} +/*# sourceMappingURL=index.cc94a05a.css.map */ diff --git a/index.cc94a05a.css.map b/index.cc94a05a.css.map new file mode 100644 index 00000000..dbd04ca4 --- /dev/null +++ b/index.cc94a05a.css.map @@ -0,0 +1 @@ +{"mappings":"AAEA,gBAEE,kBAAA,CAIA,mBAAA,CAFA,UCMF,CDFE,qCACE,eCIJ,CDAA,wBACE,gBAEE,SCEF,CACF,CDCA,wBACE,gBAEE,SCCF,CACF,CCxBA,qBAEE,WAAA,CADA,cD4BF,CCzBA,WACE,kBAAA,CAEA,WAAA,CADA,UD4BF,CC1BE,aAEE,WAAA,CADA,UAAA,CAEA,YD4BJ,CC3BI,gCACE,UD6BN,CC1BE,cAEE,kBAAA,CACA,WD4BJ,CC1BE,4CAFE,yBD+BJ,CCzBI,sBACE,kBAAA,CACA,UD2BN,CCpBE,qDAEE,kBAAA,CADA,mBD2BJ,CCzBI,uDACE,UD2BN,CCnBA,yBAGE,mCAAA,CACA,gCAAA,CACA,+BAAA,CACA,8BAAA,CACA,2BDwBF,CClBA,QAEE,MAAA,CACA,cAAA,CAFA,iBDyBF,CCrBI,qBACE,UAAA,CACA,WDuBN,CCrBI,0BACE,UDuBN,CClBA,MACE,UDoBF,CCjBA,SAKE,iBAAA,CADA,kBAAA,CADA,eAAA,CADA,aDsBF,CChBA,QAKE,4BAAA,CAHA,UAAA,CADA,QAAA,CAGA,mBAAA,CADA,iBDoBF,CCjBE,WAEE,aAAA,CACA,eAAA,CAFA,aDqBJ,CCjBE,WAEE,UAAA,CADA,eAAA,CAGA,YAAA,CADA,SDoBJ,CCfA,iBAGE,UAAA,CADA,eAAA,CADA,kBDmBF,CCdA,MAUE,gCAAA,CAFA,kBAAA,CAFA,QAAA,CADA,MAAA,CAJA,kBAAA,CAQA,eAAA,CANA,cAAA,CACA,KAAA,CAFA,WAAA,CAKA,UDmBF,CCbA,uBACE,eDeF,CCZA,sEAEE,kBDcF,CCAA,WAKE,kBAAA,CAHA,aAAA,CAIA,cAAA,CAGA,WAAA,CALA,MAA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A,2BH2RF,CGzRA,GACE,SAAA,CACA,uBH2RF,CACF,CGxRA,iBACE,wBH0RF,CGvRA,sBACE,GACE,SAAA,CACA,0BHyRF,CGvRA,GACE,SAAA,CACA,uBHyRF,CACF","sources":["styles/_adr-article-button.scss","%3Cinput%20css%207bL9by%3E","styles/_menu.scss","styles/_what-to-read.scss","styles/style.scss"],"sourcesContent":["@use 'variables';\n\n.article-button {\n /* override pure-button to have more space to read */\n padding: .8em 1.2em;\n /* Set a width to have all buttons at the same size */\n width: 100%;\n /* Text is not wrapped by default on elements */\n white-space: inherit;\n\n .article-button-icon {\n text-align: left;\n }\n}\n\n@media (min-width: 72em) {\n .article-button {\n /* Set a width to have all buttons at the same size (bigger screen) */\n width: 80%;\n }\n}\n\n@media (min-width: 86em) {\n .article-button {\n /* Set a width to have all buttons at the same size (bigger screen) */\n width: 70%;\n }\n}\n","/* Fonts */\n/* Backgrounds colors */\n/* Texts colors */\n/* Other colors */\n/* Sizes */\n.article-button {\n /* override pure-button to have more space to read */\n padding: 0.8em 1.2em;\n /* Set a width to have all buttons at the same size */\n width: 100%;\n /* Text is not wrapped by default on elements */\n white-space: inherit;\n}\n.article-button .article-button-icon {\n text-align: left;\n}\n@media (min-width: 72em) {\n .article-button {\n /* Set a width to have all buttons at the same size (bigger screen) */\n width: 80%;\n }\n}\n@media (min-width: 86em) {\n .article-button {\n /* Set a width to have all buttons at the same size (bigger screen) */\n width: 70%;\n }\n}\n/* Pure-menu CSS override */\n.pure-img-responsive {\n max-width: 100%;\n height: auto;\n}\n.pure-menu {\n background: #191818;\n color: #999;\n border: none;\n}\n.pure-menu a {\n color: #999;\n border: none;\n padding: 0.6em 0.6em 0.6em 0.6em;\n}\n.pure-menu a.pure-menu-selected {\n color: #eee;\n}\n.pure-menu ul {\n border: none;\n background: #191818;\n border-top: 1px solid #333;\n}\n.pure-menu .menu-item-divided {\n border-top: 1px solid #333;\n}\n.pure-menu li a:hover {\n background: #332B38;\n color: #eee;\n}\n.pure-menu li a:focus {\n text-transform: none;\n background: #6f5aa1;\n}\n.pure-menu .pure-menu-selected {\n text-transform: none;\n background: #6f5aa1;\n}\n.pure-menu .pure-menu-selected .pure-menu-link:visited {\n color: #eee;\n}\n/*\nAdd transition to containers so they can push in and out.\n*/\n#layout,\n#menu,\n.menu-link {\n -webkit-transition: all 0.2s ease-out;\n -moz-transition: all 0.2s ease-out;\n -ms-transition: all 0.2s ease-out;\n -o-transition: all 0.2s ease-out;\n transition: all 0.2s ease-out;\n}\n/*\nThis is the parent `
` that contains the menu and the content area.\n*/\n#layout {\n position: relative;\n left: 0;\n padding-left: 0;\n}\n#layout.active #menu {\n left: 260px;\n width: 260px;\n}\n#layout.active .menu-link {\n left: 260px;\n}\n#main {\n width: 100%;\n}\n.content {\n margin: 0 auto;\n padding: 0 2em;\n max-width: 800px;\n margin-bottom: 50px;\n line-height: 1.6em;\n}\n.header {\n margin: 0;\n color: #333;\n text-align: center;\n padding: 2.5em 2em 0;\n border-bottom: 1px solid #eee;\n}\n.header h1 {\n margin: 0.2em 0;\n font-size: 3em;\n font-weight: 300;\n}\n.header h2 {\n font-weight: 300;\n color: #ccc;\n padding: 0;\n margin-top: 0;\n}\n.content-subhead {\n margin: 50px 0 20px 0;\n font-weight: 300;\n color: #888;\n}\n#menu {\n margin-left: -260px;\n width: 260px;\n position: fixed;\n top: 0;\n left: 0;\n bottom: 0;\n z-index: 50;\n background: #191818;\n overflow-y: auto;\n -webkit-overflow-scrolling: touch;\n}\n#menu a.pure-menu-link {\n font-weight: bold;\n}\n#sorting-trigger.pure-menu-item,\n#sorting-trigger.pure-menu-item:focus {\n background: #332B38;\n}\n/* -- Dynamic Button For Responsive Menu -------------------------------------*/\n/*\nThe button to open/close the Menu is custom-made and not part of Pure. Here's\nhow it works:\n*/\n/*\n`.menu-link` represents the responsive menu toggle that shows/hides on\nsmall screens.\n*/\n.menu-link {\n position: fixed;\n display: block;\n /* show this only on small screens */\n top: 0;\n left: 0;\n /* \"#menu width\" */\n background: #191818;\n font-size: 10px;\n /* change this value to increase/decrease button size */\n z-index: 10;\n width: 2em;\n height: auto;\n padding: 2.1em 1.6em;\n}\n.menu-link:hover, .menu-link:focus {\n background: #332B38;\n}\n.menu-link span {\n position: relative;\n display: block;\n background-color: #eee;\n width: 100%;\n height: 0.2em;\n}\n.menu-link span:before, .menu-link span:after {\n background-color: #eee;\n width: 100%;\n height: 0.2em;\n position: absolute;\n margin-top: -0.6em;\n content: \" \";\n}\n.menu-link span:after {\n margin-top: 0.6em;\n}\na.support-button {\n background-color: #6f5aa1;\n color: #eee;\n font-weight: bold;\n}\n/** Rs part **/\n.rs-links {\n display: flex;\n flex-flow: wrap;\n justify-content: center;\n /* Prevent buttons to be larger than Ko-Fi button */\n padding-left: 25px;\n padding-right: 25px;\n}\n.rs-links a {\n padding: 0px;\n color: #eee;\n /** BlueSky only **/\n text-decoration: none;\n /** BlueSky only **/\n}\n.rs-link {\n padding: 15px;\n}\n.rs-link:hover,\na:focus .rs-link {\n background: #332B38;\n}\n/* -- Responsive Styles (Media Queries) ------------------------------------- */\n/*\nHides the menu at `48em`, but modify this based on your app's needs.\n*/\n@media (min-width: 48em) {\n .header,\n.content {\n padding-left: 2em;\n padding-right: 2em;\n }\n\n #layout {\n padding-left: 260px;\n /* left col width \"#menu\" */\n left: 0;\n }\n\n #menu {\n left: 260px;\n }\n\n .menu-link {\n position: fixed;\n left: 260px;\n display: none;\n }\n\n #layout.active .menu-link {\n left: 260px;\n }\n}\n@media (max-width: 48em) {\n /* Only apply this when the window is small. Otherwise, the following\n * case results in extra padding on the left:\n * Make the window small.\n * Tap the menu to trigger the active state.\n * Make the window large again.\n */\n #layout.active {\n position: relative;\n left: 260px;\n }\n\n #menuList {\n margin-left: 50px;\n }\n}\n.wtr-horizontal-menu {\n margin: 0px;\n}\n.question-number {\n font-size: smaller;\n text-align: right;\n}\n.question-number p {\n margin: 0px;\n}\n.result-list {\n display: block;\n min-height: 150px;\n}\n.result-item {\n background-color: #6f5aa1;\n border-radius: 2px;\n margin-top: 4px;\n margin-bottom: 4px;\n padding: 10px;\n position: absolute;\n position: absolute;\n min-width: 200px;\n transition-property: margin-top;\n transition-duration: 0.8s;\n}\n.result-item--1 {\n margin-top: 0px;\n}\n.result-item--2 {\n margin-top: 50px;\n}\n.result-item--3 {\n margin-top: 100px;\n}\n/* Pure override */\n.pure-g [class*=pure-u] {\n font-family: Roboto, \"Segoe UI\", -apple-system, BlinkMacSystemFont, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\n}\n/* Pure-button CSS override */\n.pure-button {\n font-family: Roboto, \"Segoe UI\", -apple-system, BlinkMacSystemFont, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\n box-shadow: 2px 2px 2px #191818;\n margin-bottom: 10px;\n}\n.pure-button--black {\n color: #eee;\n background-color: #191818;\n}\n.pure-button--black:hover,\n.pure-button--black:focus {\n background-color: #332B38;\n}\n/** Basic classes and typography **/\nbody {\n font-family: Roboto, \"Segoe UI\", -apple-system, BlinkMacSystemFont, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\n color: #eee;\n background-color: #191818;\n background-size: cover;\n background-position: center center;\n background-repeat: no-repeat;\n letter-spacing: 0;\n line-height: 1.4rem;\n}\na {\n color: #eee;\n}\nh1 {\n font-family: Tahoma, Verdana, Roboto, \"Segoe UI\", -apple-system, BlinkMacSystemFont, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\n font-weight: bold;\n margin-top: 20px;\n font-size: 1.5rem;\n}\nh2 {\n font-family: Tahoma, Verdana, Roboto, \"Segoe UI\", -apple-system, BlinkMacSystemFont, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\n font-weight: bold;\n margin-top: 20px;\n font-size: 1.3rem;\n}\n.mentions {\n font-size: 0.8rem;\n color: #999;\n}\n/** General rules **/\n.container {\n min-height: calc(100vh - 70px - 100px);\n}\n.content {\n padding-top: 50px;\n}\n.centered {\n text-align: center;\n}\n.right {\n text-align: right;\n}\n.margin-bottom--medium {\n margin-bottom: 20px;\n}\n.padding--small {\n padding: 10px;\n}\n.padding--medium {\n padding: 20px;\n}\n.padding--large {\n padding: 40px;\n}\n.inline {\n display: inline-block;\n}\n.vertical-center {\n vertical-align: super;\n}\n/* Reusable elements */\n.infobox {\n background-color: #453864a3;\n border-radius: 2px;\n padding: 20px;\n overflow: hidden;\n text-align: center;\n}\n.video-container {\n overflow: hidden;\n}\n.author-header {\n display: flex;\n padding-bottom: 20px;\n}\n.author-header .author-header--img-container {\n min-width: 100px;\n}\n.author-header .author-header--img-container img {\n border-radius: 50%;\n}\n.author-header p {\n padding-left: 20px;\n}\n/** Page livre **/\n.book-background {\n width: 100%;\n}\n.background--classic {\n background-image: url(\"background.761bc37b.jpg\");\n background-size: cover;\n background-position: center right;\n background-repeat: no-repeat;\n}\n.background--suzuha {\n background-image: url(\"artwork-suzuha.09fac1ca.png\");\n background-size: cover;\n background-position: top center;\n background-repeat: no-repeat;\n}\n.background--ede {\n background-image: url(\"artwork-ede.54057cad.png\");\n background-size: cover;\n background-position: center left;\n background-repeat: no-repeat;\n}\n.background--vdy {\n background-image: url(\"cover-renaissance-s4-1024.6b8555ec.png\");\n background-size: cover;\n background-position: top right;\n background-repeat: no-repeat;\n}\n.background--renard {\n background-image: url(\"artwork-statue-chateau-s4.d48a5537.png\");\n background-size: cover;\n background-position: center left;\n background-repeat: no-repeat;\n}\n.background--lecture {\n background-image: url(\"artwork-lecture-s4.7439fb69.png\");\n background-size: cover;\n background-position: center left;\n background-repeat: no-repeat;\n}\n.book {\n background-color: #453864a3;\n}\n.quote {\n text-align: center;\n padding: 4px;\n margin-bottom: 10px;\n}\n/* Specific gumroad buttons */\n.download-button {\n margin-right: 3px;\n padding: 0px;\n padding-top: 5px;\n height: 60px;\n width: 112px;\n}\n.download-button img {\n height: 50px;\n}\n/** Page d'info **/\n#info p {\n margin-top: 0px;\n}\n#info .title {\n background-color: #453864a3;\n}\n#info .title h2 {\n margin: 0px;\n}\n#info .info-item {\n background-color: #1918183d;\n text-align: justify;\n}\n/** Footer **/\n.footer {\n height: 60px;\n letter-spacing: 0;\n}\n/* Cache des pages */\n.hidden {\n display: none;\n}\n/** Primary button **/\n.primary-button {\n background-color: #453864a3;\n font-weight: bold;\n}\n.primary-button:hover, .primary-button:focus {\n background-color: #6f5aa1;\n}\n/** PA button **/\n.pure-button.pa {\n background-color: #d14b52;\n color: #eee;\n}\n/** Book links **/\n.book-links {\n display: flex;\n flex-flow: row wrap;\n justify-content: space-between;\n}\n.show-from-left {\n animation: from-left 0.6s;\n}\n@keyframes from-left {\n 0% {\n opacity: 0;\n transform: translateX(-80px);\n }\n 100% {\n opacity: 1;\n transform: translateX(0px);\n }\n}\n.show-from-right {\n animation: from-right 0.6s;\n}\n@keyframes from-right {\n 0% {\n opacity: 0;\n transform: translateX(80px);\n }\n 100% {\n opacity: 1;\n transform: translateX(0px);\n }\n}\n\n\n/*# sourceMappingURL=index.cc94a05a.css.map */\n","@use 'variables';\n\n/* Pure-menu CSS override */\n.pure-img-responsive {\n max-width: 100%;\n height: auto;\n}\n.pure-menu {\n background: variables.$primary-color;\n color: variables.$second-text-color;\n border: none;\n a {\n color: variables.$second-text-color;\n border: none;\n padding: 0.6em 0.6em 0.6em 0.6em;\n &.pure-menu-selected {\n color: variables.$primary-text-color; \n }\n }\n ul {\n border: none;\n background: variables.$primary-color;\n border-top: 1px solid variables.$separator-color;\n }\n .menu-item-divided {\n border-top: 1px solid variables.$separator-color;\n }\n li {\n a:hover {\n background: variables.$primary-color-light;\n color: variables.$primary-text-color;\n } \n a:focus {\n text-transform: none;\n background: variables.$second-color;\n }\n } \n .pure-menu-selected {\n text-transform: none;\n background: variables.$second-color;\n .pure-menu-link:visited {\n color: variables.$primary-text-color;\n }\n }\n}\n\n/*\nAdd transition to containers so they can push in and out.\n*/\n#layout,\n#menu,\n.menu-link {\n -webkit-transition: all 0.2s ease-out;\n -moz-transition: all 0.2s ease-out;\n -ms-transition: all 0.2s ease-out;\n -o-transition: all 0.2s ease-out;\n transition: all 0.2s ease-out;\n}\n\n/*\nThis is the parent `
` that contains the menu and the content area.\n*/\n#layout {\n position: relative;\n left: 0;\n padding-left: 0;\n &.active {\n #menu {\n left: variables.$menu-width;\n width: variables.$menu-width;\n }\n .menu-link {\n left: variables.$menu-width;\n }\n }\n}\n\n#main {\n width:100%;\n}\n\n.content {\n margin: 0 auto;\n padding: 0 2em;\n max-width: 800px;\n margin-bottom: 50px;\n line-height: 1.6em;\n}\n\n.header {\n margin: 0;\n color: #333;\n text-align: center;\n padding: 2.5em 2em 0;\n border-bottom: 1px solid #eee;\n h1 {\n margin: 0.2em 0;\n font-size: 3em;\n font-weight: 300;\n }\n h2 {\n font-weight: 300;\n color: #ccc;\n padding: 0;\n margin-top: 0;\n }\n}\n\n.content-subhead {\n margin: 50px 0 20px 0;\n font-weight: 300;\n color: #888;\n}\n\n#menu {\n margin-left: -(variables.$menu-width);\n width: variables.$menu-width;\n position: fixed;\n top: 0;\n left: 0;\n bottom: 0;\n z-index: 50;\n background: #191818;\n overflow-y: auto;\n -webkit-overflow-scrolling: touch;\n}\n\n#menu a.pure-menu-link {\n font-weight: bold;\n}\n\n#sorting-trigger.pure-menu-item,\n#sorting-trigger.pure-menu-item:focus {\n background: variables.$primary-color-light;\n}\n\n/* -- Dynamic Button For Responsive Menu -------------------------------------*/\n\n/*\nThe button to open/close the Menu is custom-made and not part of Pure. Here's\nhow it works:\n*/\n\n/*\n`.menu-link` represents the responsive menu toggle that shows/hides on\nsmall screens.\n*/\n.menu-link {\n position: fixed;\n display: block; /* show this only on small screens */\n top: 0;\n left: 0; /* \"#menu width\" */\n background: variables.$primary-color;\n font-size: 10px; /* change this value to increase/decrease button size */\n z-index: 10;\n width: 2em;\n height: auto;\n padding: 2.1em 1.6em;\n &:hover, &:focus {\n background: variables.$primary-color-light;\n } \n span {\n position: relative;\n display: block;\n background-color: variables.$primary-text-color;\n width: 100%;\n height: 0.2em;\n &:before, &:after {\n background-color: variables.$primary-text-color;\n width: 100%;\n height: 0.2em;\n position: absolute;\n margin-top: -0.6em;\n content: \" \";\n }\n &:after {\n margin-top: 0.6em;\n }\n }\n}\n\na.support-button {\n background-color: variables.$second-color;\n color: variables.$primary-text-color;\n font-weight: bold;\n}\n\n/** Rs part **/\n.rs-links {\n display: flex;\n flex-flow: wrap;\n justify-content: center;\n\n /* Prevent buttons to be larger than Ko-Fi button */\n padding-left: 25px;\n padding-right: 25px;\n\n a {\n padding: 0px;\n color: variables.$primary-text-color; /** BlueSky only **/\n text-decoration: none; /** BlueSky only **/\n }\n}\n.rs-link {\n padding: 15px;\n}\n.rs-link:hover,\na:focus .rs-link {\n background: variables.$primary-color-light;\n}\n\n\n/* -- Responsive Styles (Media Queries) ------------------------------------- */\n\n/*\nHides the menu at `48em`, but modify this based on your app's needs.\n*/\n@media (min-width: 48em) {\n .header,\n .content {\n padding-left: 2em;\n padding-right: 2em;\n }\n\n #layout {\n padding-left: variables.$menu-width; /* left col width \"#menu\" */\n left: 0;\n }\n #menu {\n left: variables.$menu-width;\n }\n\n .menu-link {\n position: fixed;\n left: variables.$menu-width;\n display: none;\n }\n\n #layout.active .menu-link {\n left: variables.$menu-width;\n }\n}\n\n@media (max-width: 48em) {\n /* Only apply this when the window is small. Otherwise, the following\n * case results in extra padding on the left:\n * Make the window small.\n * Tap the menu to trigger the active state.\n * Make the window large again.\n */\n #layout.active {\n position: relative;\n left: variables.$menu-width;\n }\n\n #menuList {\n margin-left: 50px;\n }\n}\n","@use 'variables';\n\n.wtr-horizontal-menu {\n margin: 0px;\n }\n \n .question-number {\n font-size: smaller;\n text-align: right;\n p {\n margin: 0px;\n }\n }\n \n .result-list {\n display: block;\n min-height: 150px;\n }\n \n .result-item {\n background-color: variables.$second-color;\n border-radius: 2px;\n margin-top: variables.$space-tiny;\n margin-bottom: variables.$space-tiny;\n padding: variables.$space-small;\n position: absolute;\n position: absolute;\n min-width: 200px;\n transition-property: margin-top;\n transition-duration: 0.8s;\n }\n \n .result-item--1 {\n margin-top: 0px;\n }\n \n .result-item--2 {\n margin-top: 50px;\n }\n \n .result-item--3 {\n margin-top: 100px;\n }","@use 'variables';\n@use 'adr-article-button';\n@use 'menu';\n@use 'what-to-read';\n\n/* Pure override */\n.pure-g [class*=\"pure-u\"] {\n font-family: variables.$body-font;\n}\n\n/* Pure-button CSS override */\n.pure-button {\n font-family: variables.$body-font;\n box-shadow: 2px 2px 2px variables.$primary-color;\n margin-bottom: variables.$space-small;\n}\n.pure-button--black {\n color: variables.$primary-text-color;\n background-color: variables.$primary-color;\n}\n.pure-button--black:hover,\n.pure-button--black:focus {\n background-color: variables.$primary-color-light;\n}\n\n/** Basic classes and typography **/\nbody {\n font-family: variables.$body-font;\n color: variables.$primary-text-color;\n background-color: variables.$primary-color;\n background-size: cover;\n background-position: center center;\n background-repeat: no-repeat;\n letter-spacing: 0;\n line-height: 1.4rem;\n}\na {\n color: variables.$primary-text-color;\n}\n@mixin typo() {\n font-family: variables.$title-font;\n font-weight: bold;\n margin-top: variables.$space-medium;\n}\nh1 {\n @include typo;\n font-size: 1.5rem;\n}\nh2 {\n @include typo;\n font-size: 1.3rem;\n}\n.mentions {\n font-size: 0.8rem;\n color: variables.$second-text-color;\n}\n\n/** General rules **/\n.container {\n min-height: calc(100vh - 70px - 100px);\n}\n.content {\n padding-top: 50px;\n}\n.centered {\n text-align: center;\n}\n.right {\n text-align: right;\n}\n.margin-bottom--medium {\n margin-bottom: variables.$space-medium;\n}\n.padding--small {\n padding: variables.$space-small;\n}\n.padding--medium {\n padding: variables.$space-medium;\n}\n.padding--large {\n padding: variables.$space-large;\n}\n.inline {\n display: inline-block;\n}\n.vertical-center {\n vertical-align: super;\n}\n\n/* Reusable elements */\n.infobox {\n background-color: variables.$second-color-faded;\n border-radius: variables.$radius;\n padding: variables.$space-medium;\n overflow: hidden;\n text-align: center;\n}\n\n.video-container {\n overflow: hidden;\n}\n\n.author-header {\n display: flex;\n padding-bottom: variables.$space-medium;\n .author-header--img-container {\n min-width: 100px;\n img {\n border-radius: 50%;\n }\n }\n p {\n padding-left: variables.$space-medium;\n }\n}\n\n/** Page livre **/\n.book-background {\n width: 100%;\n}\n\n@mixin theme($cover: url(\"../assets/background.jpg\"), $position: center right) {\n background-image: $cover;\n background-size: cover;\n background-position: $position;\n background-repeat: no-repeat;\n}\n.background--classic {\n @include theme;\n}\n.background--suzuha {\n @include theme($cover: url(\"../assets/artwork-suzuha.png\"), $position: top center);\n}\n.background--ede {\n @include theme($cover: url(\"../assets/artwork-ede.png\"), $position: center left);\n}\n.background--vdy {\n @include theme($cover: url(\"../assets/cover-renaissance-s4-1024.png\"), $position: top right);\n}\n.background--renard {\n @include theme($cover: url(\"../assets/artwork-statue-chateau-s4.png\"), $position: center left);\n}\n.background--lecture {\n @include theme($cover: url(\"../assets/artwork-lecture-s4.png\"), $position: center left);\n}\n\n.book {\n background-color: variables.$second-color-faded;\n}\n\n.quote{\n text-align: center;\n padding: variables.$space-tiny;\n margin-bottom: variables.$space-small;\n}\n\n/* Specific gumroad buttons */\n.download-button {\n margin-right: 3px;\n padding: 0px;\n padding-top: 5px;\n height: 60px;\n width: 112px;\n img {\n height: 50px;\n }\n}\n\n// .vertical-center-children {\n// display: flex;\n// justify-content: center;\n// align-items: center;\n// }\n\n/** Page d'info **/\n#info {\n p {\n margin-top: 0px;\n }\n .title {\n background-color: variables.$second-color-faded;\n h2 {\n margin: 0px;\n }\n }\n .info-item {\n background-color: variables.$primary-color-faded;\n text-align: justify;\n }\n}\n\n/** Footer **/\n.footer {\n height: 60px;\n letter-spacing: 0;\n}\n\n/* Cache des pages */\n.hidden {\n display: none;\n}\n\n/** Primary button **/\n.primary-button {\n background-color: variables.$second-color-faded;\n font-weight: bold;\n &:hover, &:focus {\n background-color: variables.$second-color; \n }\n}\n\n/** PA button **/\n.pure-button.pa {\n background-color: #d14b52;\n color: variables.$primary-text-color;\n}\n\n/** Book links **/ \n.book-links {\n display: flex;\n flex-flow: row wrap;\n justify-content: space-between;\n}\n\n.show-from-left {\n animation: from-left 0.6s;\n}\n\n@keyframes from-left {\n 0% {\n opacity: 0;\n transform: translateX(-80px);\n }\n 100% {\n opacity: 1;\n transform: translateX(0px);\n }\n}\n\n.show-from-right {\n animation: from-right 0.6s;\n}\n\n@keyframes from-right {\n 0% {\n opacity: 0;\n transform: translateX(80px);\n }\n 100% {\n opacity: 1;\n transform: translateX(0px);\n }\n}\n"],"names":[],"version":3,"file":"index.cc94a05a.css.map"} \ No newline at end of file diff --git a/index.5de6206a.js b/index.cf2a7265.js similarity index 94% rename from index.5de6206a.js rename to index.cf2a7265.js index 9fa310bc..339435a3 100644 --- a/index.5de6206a.js +++ b/index.cf2a7265.js @@ -1,2 +1,2 @@ -!function(){function e(e){return e&&e.__esModule?e.default:e}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},r={},n={},a=t.parcelRequire1ebe;null==a&&((a=function(e){if(e in r)return r[e].exports;if(e in n){var t=n[e];delete n[e];var a={id:e,exports:{}};return r[e]=a,t.call(a.exports,a,a.exports),a.exports}var s=new Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s}).register=function(e,t){n[e]=t},t.parcelRequire1ebe=a),a("gm4sb").register(JSON.parse('{"doA1T":"index.5de6206a.js","gbcXk":"style.9d159f0e.css","hwmB9":"background.761bc37b.jpg","d3YkH":"artwork-suzuha.09fac1ca.png","aroW2":"artwork-ede.54057cad.png","ilpGW":"cover-renaissance-s4-1024.6b8555ec.png","6Vjqf":"artwork-statue-chateau-s4.d48a5537.png","gR7QX":"artwork-lecture-s4.7439fb69.png","hE484":"enfant-des-esprits-extrait.91d89b09.pdf"}'));var s,i=a("kAkBg");s=a("5waPY").getBundleURL("doA1T")+a("gm4sb").resolve("gbcXk");var o;o=a("5waPY").getBundleURL("doA1T")+a("gm4sb").resolve("hE484");var l=function(t){"use strict";i.inherits(n,t);var r=i.createSuper(n);function n(){var t;i.classCallCheck(this,n),t=r.call(this);var a=document.createElement("div"),o=document.createElement("a");o.setAttribute("class","pure-button pure-button--black"),o.setAttribute("target","_blank"),o.setAttribute("download",t.getAttribute("file"));var l=t.getBookUrl(t.getAttribute("file"));o.setAttribute("href",l),o.textContent="Lire un extrait",a.appendChild(o);var u=t.attachShadow({mode:"closed"});return u.innerHTML='\n \n \n '),u.appendChild(a),t}return i.createClass(n,[{key:"getBookUrl",value:function(t){if("enfant-des-esprits-extrait.pdf"===t)return e(o)}}]),n}(i.wrapNativeSuper(HTMLElement));customElements.define("adr-extract-button",l)}(); -//# sourceMappingURL=index.5de6206a.js.map +!function(){function e(e){return e&&e.__esModule?e.default:e}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},r={},n={},a=t.parcelRequire1ebe;null==a&&((a=function(e){if(e in r)return r[e].exports;if(e in n){var t=n[e];delete n[e];var a={id:e,exports:{}};return r[e]=a,t.call(a.exports,a,a.exports),a.exports}var s=new Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s}).register=function(e,t){n[e]=t},t.parcelRequire1ebe=a),a("gm4sb").register(JSON.parse('{"doA1T":"index.cf2a7265.js","gbcXk":"style.695090bc.css","hwmB9":"background.761bc37b.jpg","d3YkH":"artwork-suzuha.09fac1ca.png","aroW2":"artwork-ede.54057cad.png","ilpGW":"cover-renaissance-s4-1024.6b8555ec.png","6Vjqf":"artwork-statue-chateau-s4.d48a5537.png","gR7QX":"artwork-lecture-s4.7439fb69.png","hE484":"enfant-des-esprits-extrait.91d89b09.pdf"}'));var s,i=a("kAkBg");s=a("5waPY").getBundleURL("doA1T")+a("gm4sb").resolve("gbcXk");var o;o=a("5waPY").getBundleURL("doA1T")+a("gm4sb").resolve("hE484");var l=function(t){"use strict";i.inherits(n,t);var r=i.createSuper(n);function n(){var t;i.classCallCheck(this,n),t=r.call(this);var a=document.createElement("div"),o=document.createElement("a");o.setAttribute("class","pure-button pure-button--black"),o.setAttribute("target","_blank"),o.setAttribute("download",t.getAttribute("file"));var l=t.getBookUrl(t.getAttribute("file"));o.setAttribute("href",l),o.textContent="Lire un extrait",a.appendChild(o);var u=t.attachShadow({mode:"closed"});return u.innerHTML='\n \n \n '),u.appendChild(a),t}return i.createClass(n,[{key:"getBookUrl",value:function(t){if("enfant-des-esprits-extrait.pdf"===t)return e(o)}}]),n}(i.wrapNativeSuper(HTMLElement));customElements.define("adr-extract-button",l)}(); +//# sourceMappingURL=index.cf2a7265.js.map diff --git a/index.5de6206a.js.map b/index.cf2a7265.js.map similarity index 94% rename from index.5de6206a.js.map rename to index.cf2a7265.js.map index 055ce9f3..13096187 100644 --- a/index.5de6206a.js.map +++ b/index.cf2a7265.js.map @@ -1 +1 @@ -{"mappings":"iiBAAAA,EAAA,SAAAC,SAA8CC,KAAKC,MAAM,igB,mBCAzDC,EAAiBJ,EAAA,SAAAK,aAA6C,SAAWL,EAAA,SAAAM,QAA6C,S,MCAtHC,EAAiBP,EAAA,SAAAK,aAA6C,SAAWL,EAAA,SAAAM,QAA6C,S,ICGhHE,EAAN,SAAQC,G,wBAAFD,EAAgBC,G,oBAAhBD,G,SAAAA,I,4BAAAA,G,eAGF,IAAIE,EAAUC,SAASC,cAAc,OAEjCC,EAAcF,SAASC,cAAc,KACzCC,EAAYC,aAAa,QAAS,kCAClCD,EAAYC,aAAa,SAAU,UACnCD,EAAYC,aAAa,WAAUC,EAAOC,aAAa,SACvD,IAAIC,EAAOF,EAAQG,WAAUH,EAAMC,aAAa,SAChDH,EAAYC,aAAa,OAAQG,GACjCJ,EAAYM,YAAc,kBAC1BT,EAAQU,YAAYP,GAEpB,IAAIQ,EAAMN,EAAQO,aAAa,CAACC,KAAM,W,OACtCF,EAAOG,UAAa,iJAEsCC,OAATC,EAAAtB,GAAS,YAE1DiB,EAAOD,YAAYV,G,uBAnBjBF,EAAgB,C,CAsBpBmB,IAAA,a,MAAA,SAAWC,GACT,GACK,mCADEA,EAEL,OAAOF,EAAAnB,EAEX,KA3BIC,C,CAAN,C,kBAA+BC,cA8B/BoB,eAAeC,OAAO,qBAAsBtB,E","sources":["node_modules/@parcel/runtime-js/lib/runtime-06f84e3c76892f44.js","node_modules/@parcel/runtime-js/lib/runtime-a3b88cc65cdd25dc.js","node_modules/@parcel/runtime-js/lib/runtime-dc7134321b09acfc.js","js/adr-extract-button.js"],"sourcesContent":["require('./helpers/bundle-manifest').register(JSON.parse(\"{\\\"doA1T\\\":\\\"index.5de6206a.js\\\",\\\"gbcXk\\\":\\\"style.9d159f0e.css\\\",\\\"hwmB9\\\":\\\"background.761bc37b.jpg\\\",\\\"d3YkH\\\":\\\"artwork-suzuha.09fac1ca.png\\\",\\\"aroW2\\\":\\\"artwork-ede.54057cad.png\\\",\\\"ilpGW\\\":\\\"cover-renaissance-s4-1024.6b8555ec.png\\\",\\\"6Vjqf\\\":\\\"artwork-statue-chateau-s4.d48a5537.png\\\",\\\"gR7QX\\\":\\\"artwork-lecture-s4.7439fb69.png\\\",\\\"hE484\\\":\\\"enfant-des-esprits-extrait.91d89b09.pdf\\\"}\"));","module.exports = require('./helpers/bundle-url').getBundleURL('doA1T') + require('./helpers/bundle-manifest').resolve(\"gbcXk\");","module.exports = require('./helpers/bundle-url').getBundleURL('doA1T') + require('./helpers/bundle-manifest').resolve(\"hE484\");","import styleUrl from \"url:../styles/style.css\";\nimport booksEde from \"url:../assets/books/enfant-des-esprits-extrait.pdf\";\n\nclass AdrExtractButton extends HTMLElement {\n constructor() {\n super()\n var wrapper = document.createElement('div')\n\n var extractLink = document.createElement('a')\n extractLink.setAttribute('class', 'pure-button pure-button--black')\n extractLink.setAttribute('target', '_blank')\n extractLink.setAttribute('download', this.getAttribute('file'))\n let bookUrl = this.getBookUrl(this.getAttribute('file'))\n extractLink.setAttribute('href', bookUrl)\n extractLink.textContent = 'Lire un extrait'\n wrapper.appendChild(extractLink)\n\n var shadow = this.attachShadow({mode: 'closed'})\n shadow.innerHTML = `\n \n \n `\n shadow.appendChild(wrapper)\n }\n\n getBookUrl(fileName) {\n switch(fileName) {\n case 'enfant-des-esprits-extrait.pdf':\n return booksEde\n }\n }\n}\n\ncustomElements.define('adr-extract-button', AdrExtractButton)"],"names":["parcelRequire","register","JSON","parse","$f26996abd064541b$exports","getBundleURL","resolve","$88d745486efca39b$exports","$c860a27716879a54$var$AdrExtractButton","HTMLElement","wrapper","document","createElement","extractLink","setAttribute","_this","getAttribute","bookUrl","getBookUrl","textContent","appendChild","shadow","attachShadow","mode","innerHTML","concat","$parcel$interopDefault","key","fileName","customElements","define"],"version":3,"file":"index.5de6206a.js.map"} \ No newline at end of file +{"mappings":"iiBAAAA,EAAA,SAAAC,SAA8CC,KAAKC,MAAM,igB,mBCAzDC,EAAiBJ,EAAA,SAAAK,aAA6C,SAAWL,EAAA,SAAAM,QAA6C,S,MCAtHC,EAAiBP,EAAA,SAAAK,aAA6C,SAAWL,EAAA,SAAAM,QAA6C,S,ICGhHE,EAAN,SAAQC,G,wBAAFD,EAAgBC,G,oBAAhBD,G,SAAAA,I,4BAAAA,G,eAGF,IAAIE,EAAUC,SAASC,cAAc,OAEjCC,EAAcF,SAASC,cAAc,KACzCC,EAAYC,aAAa,QAAS,kCAClCD,EAAYC,aAAa,SAAU,UACnCD,EAAYC,aAAa,WAAUC,EAAOC,aAAa,SACvD,IAAIC,EAAOF,EAAQG,WAAUH,EAAMC,aAAa,SAChDH,EAAYC,aAAa,OAAQG,GACjCJ,EAAYM,YAAc,kBAC1BT,EAAQU,YAAYP,GAEpB,IAAIQ,EAAMN,EAAQO,aAAa,CAACC,KAAM,W,OACtCF,EAAOG,UAAa,iJAEsCC,OAATC,EAAAtB,GAAS,YAE1DiB,EAAOD,YAAYV,G,uBAnBjBF,EAAgB,C,CAsBpBmB,IAAA,a,MAAA,SAAWC,GACT,GACK,mCADEA,EAEL,OAAOF,EAAAnB,EAEX,KA3BIC,C,CAAN,C,kBAA+BC,cA8B/BoB,eAAeC,OAAO,qBAAsBtB,E","sources":["node_modules/@parcel/runtime-js/lib/runtime-06f84e3c76892f44.js","node_modules/@parcel/runtime-js/lib/runtime-a3b88cc65cdd25dc.js","node_modules/@parcel/runtime-js/lib/runtime-dc7134321b09acfc.js","js/adr-extract-button.js"],"sourcesContent":["require('./helpers/bundle-manifest').register(JSON.parse(\"{\\\"doA1T\\\":\\\"index.cf2a7265.js\\\",\\\"gbcXk\\\":\\\"style.695090bc.css\\\",\\\"hwmB9\\\":\\\"background.761bc37b.jpg\\\",\\\"d3YkH\\\":\\\"artwork-suzuha.09fac1ca.png\\\",\\\"aroW2\\\":\\\"artwork-ede.54057cad.png\\\",\\\"ilpGW\\\":\\\"cover-renaissance-s4-1024.6b8555ec.png\\\",\\\"6Vjqf\\\":\\\"artwork-statue-chateau-s4.d48a5537.png\\\",\\\"gR7QX\\\":\\\"artwork-lecture-s4.7439fb69.png\\\",\\\"hE484\\\":\\\"enfant-des-esprits-extrait.91d89b09.pdf\\\"}\"));","module.exports = require('./helpers/bundle-url').getBundleURL('doA1T') + require('./helpers/bundle-manifest').resolve(\"gbcXk\");","module.exports = require('./helpers/bundle-url').getBundleURL('doA1T') + require('./helpers/bundle-manifest').resolve(\"hE484\");","import styleUrl from \"url:../styles/style.css\";\nimport booksEde from \"url:../assets/books/enfant-des-esprits-extrait.pdf\";\n\nclass AdrExtractButton extends HTMLElement {\n constructor() {\n super()\n var wrapper = document.createElement('div')\n\n var extractLink = document.createElement('a')\n extractLink.setAttribute('class', 'pure-button pure-button--black')\n extractLink.setAttribute('target', '_blank')\n extractLink.setAttribute('download', this.getAttribute('file'))\n let bookUrl = this.getBookUrl(this.getAttribute('file'))\n extractLink.setAttribute('href', bookUrl)\n extractLink.textContent = 'Lire un extrait'\n wrapper.appendChild(extractLink)\n\n var shadow = this.attachShadow({mode: 'closed'})\n shadow.innerHTML = `\n \n \n `\n shadow.appendChild(wrapper)\n }\n\n getBookUrl(fileName) {\n switch(fileName) {\n case 'enfant-des-esprits-extrait.pdf':\n return booksEde\n }\n }\n}\n\ncustomElements.define('adr-extract-button', AdrExtractButton)"],"names":["parcelRequire","register","JSON","parse","$f26996abd064541b$exports","getBundleURL","resolve","$88d745486efca39b$exports","$c860a27716879a54$var$AdrExtractButton","HTMLElement","wrapper","document","createElement","extractLink","setAttribute","_this","getAttribute","bookUrl","getBookUrl","textContent","appendChild","shadow","attachShadow","mode","innerHTML","concat","$parcel$interopDefault","key","fileName","customElements","define"],"version":3,"file":"index.cf2a7265.js.map"} \ No newline at end of file diff --git a/index.f00962a5.js b/index.d068fdfe.js similarity index 96% rename from index.f00962a5.js rename to index.d068fdfe.js index e0e180bd..bf835592 100644 --- a/index.f00962a5.js +++ b/index.d068fdfe.js @@ -1,2 +1,2 @@ -!function(){function e(e){return e&&e.__esModule?e.default:e}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},n={},r={},a=t.parcelRequire1ebe;null==a&&((a=function(e){if(e in n)return n[e].exports;if(e in r){var t=r[e];delete r[e];var a={id:e,exports:{}};return n[e]=a,t.call(a.exports,a,a.exports),a.exports}var i=new Error("Cannot find module '"+e+"'");throw i.code="MODULE_NOT_FOUND",i}).register=function(e,t){r[e]=t},t.parcelRequire1ebe=a),a("gm4sb").register(JSON.parse('{"iJniZ":"index.f00962a5.js","gbcXk":"style.9d159f0e.css","hwmB9":"background.761bc37b.jpg","d3YkH":"artwork-suzuha.09fac1ca.png","aroW2":"artwork-ede.54057cad.png","ilpGW":"cover-renaissance-s4-1024.6b8555ec.png","6Vjqf":"artwork-statue-chateau-s4.d48a5537.png","gR7QX":"artwork-lecture-s4.7439fb69.png"}'));var i,o=a("kAkBg");i=a("5waPY").getBundleURL("iJniZ")+a("gm4sb").resolve("gbcXk");var s=function(t){"use strict";o.inherits(r,t);var n=o.createSuper(r);function r(){var t;o.classCallCheck(this,r),(t=n.call(this)).wrapper=document.createElement("div"),t.wrapper.classList.add("result-list"),t.bookListing=[{id:"suzuha",initialHTML:"Suzuha",element:t.createBookItem("1. Suzuha")},{id:"ede",initialHTML:"L'Enfant des Esprits",element:t.createBookItem("2. L'Enfant des Esprits")},{id:"vdy",initialHTML:"Le Voeu de Yoko",element:t.createBookItem("3. Le Voeu de Yoko")}],t.bookListing.forEach((function(e){t.wrapper.appendChild(e.element)}));var a=t.attachShadow({mode:"closed"});return a.innerHTML='\n \n \n '),a.appendChild(t.wrapper),t}return o.createClass(r,[{key:"attributeChangedCallback",value:function(e,t,n){var r=this,a=JSON.parse(n),i=[],s=!0,l=!1,u=void 0;try{for(var c,d=Object.entries(a)[Symbol.iterator]();!(s=(c=d.next()).done);s=!0){var f=o.slicedToArray(c.value,2),p=f[0],k=f[1];i.push({id:p,value:k})}}catch(e){l=!0,u=e}finally{try{s||null==d.return||d.return()}finally{if(l)throw u}}i=i.sort((function(e,t){return t.value-e.value})),this.bookListing.forEach((function(e){var t=r.bookPosition(i,e.id),n="0px";switch(t.position){case 2:n="50px";break;case 3:n="100px"}e.element.style["margin-top"]=n,e.element.innerHTML="".concat(t.rank,". ").concat(e.initialHTML)}))}},{key:"bookPosition",value:function(e,t){var n=e.find((function(e){return e.id===t})),r=e.find((function(e){var t=e.value;return n.value===t}));return{rank:e.indexOf(r)+1,position:e.indexOf(n)+1}}},{key:"createBookItem",value:function(e){var t=document.createElement("p");return t.classList.add("result-item"),t.innerHTML=e,t}}],[{key:"observedAttributes",get:function(){return["score"]}}]),r}(o.wrapNativeSuper(HTMLElement));customElements.define("adr-result-list",s)}(); -//# sourceMappingURL=index.f00962a5.js.map +!function(){function e(e){return e&&e.__esModule?e.default:e}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},n={},r={},a=t.parcelRequire1ebe;null==a&&((a=function(e){if(e in n)return n[e].exports;if(e in r){var t=r[e];delete r[e];var a={id:e,exports:{}};return n[e]=a,t.call(a.exports,a,a.exports),a.exports}var i=new Error("Cannot find module '"+e+"'");throw i.code="MODULE_NOT_FOUND",i}).register=function(e,t){r[e]=t},t.parcelRequire1ebe=a),a("gm4sb").register(JSON.parse('{"iJniZ":"index.d068fdfe.js","gbcXk":"style.695090bc.css","hwmB9":"background.761bc37b.jpg","d3YkH":"artwork-suzuha.09fac1ca.png","aroW2":"artwork-ede.54057cad.png","ilpGW":"cover-renaissance-s4-1024.6b8555ec.png","6Vjqf":"artwork-statue-chateau-s4.d48a5537.png","gR7QX":"artwork-lecture-s4.7439fb69.png"}'));var i,o=a("kAkBg");i=a("5waPY").getBundleURL("iJniZ")+a("gm4sb").resolve("gbcXk");var s=function(t){"use strict";o.inherits(r,t);var n=o.createSuper(r);function r(){var t;o.classCallCheck(this,r),(t=n.call(this)).wrapper=document.createElement("div"),t.wrapper.classList.add("result-list"),t.bookListing=[{id:"suzuha",initialHTML:"Suzuha",element:t.createBookItem("1. Suzuha")},{id:"ede",initialHTML:"L'Enfant des Esprits",element:t.createBookItem("2. L'Enfant des Esprits")},{id:"vdy",initialHTML:"Le Voeu de Yoko",element:t.createBookItem("3. Le Voeu de Yoko")}],t.bookListing.forEach((function(e){t.wrapper.appendChild(e.element)}));var a=t.attachShadow({mode:"closed"});return a.innerHTML='\n \n \n '),a.appendChild(t.wrapper),t}return o.createClass(r,[{key:"attributeChangedCallback",value:function(e,t,n){var r=this,a=JSON.parse(n),i=[],s=!0,l=!1,u=void 0;try{for(var c,d=Object.entries(a)[Symbol.iterator]();!(s=(c=d.next()).done);s=!0){var f=o.slicedToArray(c.value,2),p=f[0],k=f[1];i.push({id:p,value:k})}}catch(e){l=!0,u=e}finally{try{s||null==d.return||d.return()}finally{if(l)throw u}}i=i.sort((function(e,t){return t.value-e.value})),this.bookListing.forEach((function(e){var t=r.bookPosition(i,e.id),n="0px";switch(t.position){case 2:n="50px";break;case 3:n="100px"}e.element.style["margin-top"]=n,e.element.innerHTML="".concat(t.rank,". ").concat(e.initialHTML)}))}},{key:"bookPosition",value:function(e,t){var n=e.find((function(e){return e.id===t})),r=e.find((function(e){var t=e.value;return n.value===t}));return{rank:e.indexOf(r)+1,position:e.indexOf(n)+1}}},{key:"createBookItem",value:function(e){var t=document.createElement("p");return t.classList.add("result-item"),t.innerHTML=e,t}}],[{key:"observedAttributes",get:function(){return["score"]}}]),r}(o.wrapNativeSuper(HTMLElement));customElements.define("adr-result-list",s)}(); +//# sourceMappingURL=index.d068fdfe.js.map diff --git a/index.f00962a5.js.map b/index.d068fdfe.js.map similarity index 97% rename from index.f00962a5.js.map rename to index.d068fdfe.js.map index 4a3196e0..1d53bd10 100644 --- a/index.f00962a5.js.map +++ b/index.d068fdfe.js.map @@ -1 +1 @@ -{"mappings":"iiBAAAA,EAAA,SAAAC,SAA8CC,KAAKC,MAAM,8b,mBCAzDC,EAAiBJ,EAAA,SAAAK,aAA6C,SAAWL,EAAA,SAAAM,QAA6C,SCEtH,IAIMC,EAAN,SAAQC,G,wBAAFD,EAAaC,G,oBAAbD,G,SAAAA,I,4BAAAA,I,gBAqDGE,QAAUC,SAASC,cAAc,O,EACjCF,QAAQG,UAAUC,IAAI,e,EAEtBC,YAAc,CACjB,CACEC,GAAI,SACJC,YAAa,SACbC,QAAOC,EAAOC,eAAe,cAE/B,CACEJ,GAAI,MACJC,YAAa,uBACbC,QAAOC,EAAOC,eAAe,4BAE/B,CACEJ,GAAI,MACJC,YAAa,kBACbC,QAAOC,EAAOC,eAAe,wB,EAI5BL,YAAYM,SAAQ,SAACC,G,EACnBZ,QAAQa,YAAYD,EAASJ,QACpC,IAEA,IAAIM,EAAML,EAAQM,aAAa,CAACC,KAAM,W,OACtCF,EAAOG,UAAa,iJAEsCC,OAATC,EAAAxB,GAAS,YAE1DmB,EAAOD,YAAWJ,EAAMT,S,uBAnFtBF,EAAa,C,CAMjBsB,IAAA,2B,MAAA,SAAyBC,EAAGC,EAAIC,G,WAC1BC,EAAQ/B,KAAKC,MAAM6B,GAC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AAI,eACvBQ,EAASK,UAAYA,EACdL,CACT,I,EAzFWQ,IAAA,qB,IAAX,WACE,MAAO,CAAC,QACV,KAJItB,C,CAAN,C,kBAA4BC,cA8F5B8D,eAAeC,OAAO,kBAAmBhE,E","sources":["node_modules/@parcel/runtime-js/lib/runtime-9b396cf701e27136.js","node_modules/@parcel/runtime-js/lib/runtime-84220839299ca78a.js","js/adr-result-list.js"],"sourcesContent":["require('./helpers/bundle-manifest').register(JSON.parse(\"{\\\"iJniZ\\\":\\\"index.f00962a5.js\\\",\\\"gbcXk\\\":\\\"style.9d159f0e.css\\\",\\\"hwmB9\\\":\\\"background.761bc37b.jpg\\\",\\\"d3YkH\\\":\\\"artwork-suzuha.09fac1ca.png\\\",\\\"aroW2\\\":\\\"artwork-ede.54057cad.png\\\",\\\"ilpGW\\\":\\\"cover-renaissance-s4-1024.6b8555ec.png\\\",\\\"6Vjqf\\\":\\\"artwork-statue-chateau-s4.d48a5537.png\\\",\\\"gR7QX\\\":\\\"artwork-lecture-s4.7439fb69.png\\\"}\"));","module.exports = require('./helpers/bundle-url').getBundleURL('iJniZ') + require('./helpers/bundle-manifest').resolve(\"gbcXk\");","import styleUrl from \"url:../styles/style.css\";\n\nconst position1 = '0px'\nconst position2 = '50px'\nconst position3 = '100px'\n\nclass AdrResultList extends HTMLElement {\n\n static get observedAttributes() {\n return ['score']\n }\n\n attributeChangedCallback(_, __, newValue) {\n let score = JSON.parse(newValue)\n let results = []\n // We need to transform the score dictionary into an array...\n for (let [key, value] of Object.entries(score)) {\n results.push({\n id: key,\n value\n })\n }\n // ...in order to sort this array by score\n results = results.sort((a, b) => b.value - a.value)\n\n // Then for each book, apply margin-top depending on its index in results\n this.bookListing.forEach((bookItem) => {\n let ranking = this.bookPosition(results, bookItem.id)\n let marginValue = position1 \n switch(ranking.position) {\n case 2:\n marginValue = position2\n break;\n case 3:\n marginValue = position3\n break\n }\n bookItem.element.style['margin-top'] = marginValue\n bookItem.element.innerHTML = `${ranking.rank}. ${bookItem.initialHTML}`\n })\n \n }\n\n bookPosition(results, bookId) {\n // Find the first (and only) element corresponding to the bookId in the results array\n let resultItem = results.find(({ id }) => id === bookId)\n // Find the first element with the same score as the found book\n let firstScoreItem = results.find(({ value }) => resultItem.value === value)\n // Then return the index of this element + 1 to get its position\n return {\n // The rank is the actual rank related to the score\n rank: results.indexOf(firstScoreItem) + 1,\n // The position id for the display order of the boxes\n position: results.indexOf(resultItem) + 1\n }\n }\n\n constructor() {\n super()\n this.wrapper = document.createElement('div')\n this.wrapper.classList.add('result-list')\n\n this.bookListing = [\n { \n id: 'suzuha', \n initialHTML: 'Suzuha',\n element: this.createBookItem('1. Suzuha')\n },\n { \n id: 'ede', \n initialHTML: 'L\\'Enfant des Esprits',\n element: this.createBookItem('2. L\\'Enfant des Esprits') \n },\n { \n id: 'vdy',\n initialHTML: 'Le Voeu de Yoko',\n element: this.createBookItem('3. Le Voeu de Yoko')\n }\n ]\n\n this.bookListing.forEach((bookItem) => {\n this.wrapper.appendChild(bookItem.element)\n })\n\n var shadow = this.attachShadow({mode: 'closed'})\n shadow.innerHTML = `\n \n \n `\n shadow.appendChild(this.wrapper)\n }\n\n createBookItem(innerHTML) {\n let bookItem = document.createElement('p')\n bookItem.classList.add('result-item')\n bookItem.innerHTML = innerHTML\n return bookItem\n }\n}\n\ncustomElements.define('adr-result-list', AdrResultList)"],"names":["parcelRequire","register","JSON","parse","$d3008ccb07690dec$exports","getBundleURL","resolve","$5935a48fd095e196$var$AdrResultList","HTMLElement","wrapper","document","createElement","classList","add","bookListing","id","initialHTML","element","_this","createBookItem","forEach","bookItem","appendChild","shadow","attachShadow","mode","innerHTML","concat","$parcel$interopDefault","key","_","__","newValue","score","results","_iteratorNormalCompletion","_didIteratorError","_iteratorError","undefined","_step","_iterator","Object","entries","Symbol","iterator","next","done","_value","$kAkBg","slicedToArray","value","push","err","return","sort","a","b","this","ranking","bookPosition","marginValue","position","style","rank","bookId","resultItem","find","param","firstScoreItem","indexOf","customElements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,C,EAOLH,EAAUA,EAAQoB,MAAK,SAACC,EAAGC,GAAM,OAAAA,EAAEN,MAAQK,EAAEL,K,IAG7CO,KAAK3C,YAAYM,SAAQ,SAACC,GACxB,IAAIqC,EAAOxC,EAAQyC,aAAazB,EAASb,EAASN,IAC9C6C,EA1BQ,MA2BZ,OAAOF,EAAQG,UACb,KAAK,EACHD,EA5BQ,OA6BR,MACF,KAAK,EACHA,EA9BQ,QAiCZvC,EAASJ,QAAQ6C,MAAM,cAAgBF,EACvCvC,EAASJ,QAAQS,UAAa,GAAmBC,OAAjB+B,EAAQK,KAAK,MAAyBpC,OAArBN,EAASL,YAC5D,GAEF,G,CAEAa,IAAA,e,MAAA,SAAaK,EAAS8B,GAEpB,IAAIC,EAAa/B,EAAQgC,MAAK,SAAQC,GAAI,OAAPA,EAAFpD,KAAgBiD,C,IAE7CI,EAAiBlC,EAAQgC,MAAK,SAAQC,G,IAALjB,EAAKiB,EAALjB,MAAY,OAAAe,EAAWf,QAAUA,C,IAEtE,MAAO,CAELa,KAAM7B,EAAQmC,QAAQD,GAAkB,EAExCP,SAAU3B,EAAQmC,QAAQJ,GAAc,EAE5C,G,CAqCApC,IAAA,iB,MAAA,SAAeH,GACb,IAAIL,EAAWX,SAASC,cAAc,KAGtC,OAFAU,EAAST,UAAUC,IAAI,eACvBQ,EAASK,UAAYA,EACdL,CACT,I,EAzFWQ,IAAA,qB,IAAX,WACE,MAAO,CAAC,QACV,KAJItB,C,CAAN,C,kBAA4BC,cA8F5B8D,eAAeC,OAAO,kBAAmBhE,E","sources":["node_modules/@parcel/runtime-js/lib/runtime-9b396cf701e27136.js","node_modules/@parcel/runtime-js/lib/runtime-84220839299ca78a.js","js/adr-result-list.js"],"sourcesContent":["require('./helpers/bundle-manifest').register(JSON.parse(\"{\\\"iJniZ\\\":\\\"index.d068fdfe.js\\\",\\\"gbcXk\\\":\\\"style.695090bc.css\\\",\\\"hwmB9\\\":\\\"background.761bc37b.jpg\\\",\\\"d3YkH\\\":\\\"artwork-suzuha.09fac1ca.png\\\",\\\"aroW2\\\":\\\"artwork-ede.54057cad.png\\\",\\\"ilpGW\\\":\\\"cover-renaissance-s4-1024.6b8555ec.png\\\",\\\"6Vjqf\\\":\\\"artwork-statue-chateau-s4.d48a5537.png\\\",\\\"gR7QX\\\":\\\"artwork-lecture-s4.7439fb69.png\\\"}\"));","module.exports = require('./helpers/bundle-url').getBundleURL('iJniZ') + require('./helpers/bundle-manifest').resolve(\"gbcXk\");","import styleUrl from \"url:../styles/style.css\";\n\nconst position1 = '0px'\nconst position2 = '50px'\nconst position3 = '100px'\n\nclass AdrResultList extends HTMLElement {\n\n static get observedAttributes() {\n return ['score']\n }\n\n attributeChangedCallback(_, __, newValue) {\n let score = JSON.parse(newValue)\n let results = []\n // We need to transform the score dictionary into an array...\n for (let [key, value] of Object.entries(score)) {\n results.push({\n id: key,\n value\n })\n }\n // ...in order to sort this array by score\n results = results.sort((a, b) => b.value - a.value)\n\n // Then for each book, apply margin-top depending on its index in results\n this.bookListing.forEach((bookItem) => {\n let ranking = this.bookPosition(results, bookItem.id)\n let marginValue = position1 \n switch(ranking.position) {\n case 2:\n marginValue = position2\n break;\n case 3:\n marginValue = position3\n break\n }\n bookItem.element.style['margin-top'] = marginValue\n bookItem.element.innerHTML = `${ranking.rank}. ${bookItem.initialHTML}`\n })\n \n }\n\n bookPosition(results, bookId) {\n // Find the first (and only) element corresponding to the bookId in the results array\n let resultItem = results.find(({ id }) => id === bookId)\n // Find the first element with the same score as the found book\n let firstScoreItem = results.find(({ value }) => resultItem.value === value)\n // Then return the index of this element + 1 to get its position\n return {\n // The rank is the actual rank related to the score\n rank: results.indexOf(firstScoreItem) + 1,\n // The position id for the display order of the boxes\n position: results.indexOf(resultItem) + 1\n }\n }\n\n constructor() {\n super()\n this.wrapper = document.createElement('div')\n this.wrapper.classList.add('result-list')\n\n this.bookListing = [\n { \n id: 'suzuha', \n initialHTML: 'Suzuha',\n element: this.createBookItem('1. Suzuha')\n },\n { \n id: 'ede', \n initialHTML: 'L\\'Enfant des Esprits',\n element: this.createBookItem('2. L\\'Enfant des Esprits') \n },\n { \n id: 'vdy',\n initialHTML: 'Le Voeu de Yoko',\n element: this.createBookItem('3. Le Voeu de Yoko')\n }\n ]\n\n this.bookListing.forEach((bookItem) => {\n this.wrapper.appendChild(bookItem.element)\n })\n\n var shadow = this.attachShadow({mode: 'closed'})\n shadow.innerHTML = `\n \n \n `\n shadow.appendChild(this.wrapper)\n }\n\n createBookItem(innerHTML) {\n let bookItem = document.createElement('p')\n bookItem.classList.add('result-item')\n bookItem.innerHTML = innerHTML\n return bookItem\n }\n}\n\ncustomElements.define('adr-result-list', AdrResultList)"],"names":["parcelRequire","register","JSON","parse","$d3008ccb07690dec$exports","getBundleURL","resolve","$5935a48fd095e196$var$AdrResultList","HTMLElement","wrapper","document","createElement","classList","add","bookListing","id","initialHTML","element","_this","createBookItem","forEach","bookItem","appendChild","shadow","attachShadow","mode","innerHTML","concat","$parcel$interopDefault","key","_","__","newValue","score","results","_iteratorNormalCompletion","_didIteratorError","_iteratorError","undefined","_step","_iterator","Object","entries","Symbol","iterator","next","done","_value","$kAkBg","slicedToArray","value","push","err","return","sort","a","b","this","ranking","bookPosition","marginValue","position","style","rank","bookId","resultItem","find","param","firstScoreItem","indexOf","customElements","define"],"version":3,"file":"index.d068fdfe.js.map"} \ No newline at end of file diff --git a/index.d0988c69.js b/index.de5dec44.js similarity index 97% rename from index.d0988c69.js rename to index.de5dec44.js index 90069515..49e4845a 100644 --- a/index.d0988c69.js +++ b/index.de5dec44.js @@ -1,2 +1,2 @@ -!function(){function e(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}function t(e){return e&&e.__esModule?e.default:e}var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},n={},c={},o=r.parcelRequire1ebe;null==o&&((o=function(e){if(e in n)return n[e].exports;if(e in c){var t=c[e];delete c[e];var r={id:e,exports:{}};return n[e]=r,t.call(r.exports,r,r.exports),r.exports}var o=new Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o}).register=function(e,t){c[e]=t},r.parcelRequire1ebe=o),o.register("jYHEd",(function(t,r){function n(e){window.selectors||(window.selectors={});var t=window.selectors[e];return t||(t=document.getElementById(e),window.selectors.id=t),t}function c(e,t,r){e.forEach((function(e){r?n(e).classList.add(t):n(e).classList.remove(t)}))}function o(){return"#".concat(window.baseURL,"?").concat(window.sortingParam)}e(t.exports,"select",(function(){return n})),e(t.exports,"toggleClass",(function(){return c})),e(t.exports,"getURL",(function(){return o}))})),o("gm4sb").register(JSON.parse('{"cQAoq":"index.d0988c69.js","gbcXk":"style.9d159f0e.css","hwmB9":"background.761bc37b.jpg","d3YkH":"artwork-suzuha.09fac1ca.png","aroW2":"artwork-ede.54057cad.png","ilpGW":"cover-renaissance-s4-1024.6b8555ec.png","6Vjqf":"artwork-statue-chateau-s4.d48a5537.png","gR7QX":"artwork-lecture-s4.7439fb69.png"}'));var s,a=o("kAkBg");s=o("5waPY").getBundleURL("cQAoq")+o("gm4sb").resolve("gbcXk");var i=o("jYHEd"),u=function(e){"use strict";a.inherits(n,e);var r=a.createSuper(n);function n(){var e;a.classCallCheck(this,n),(e=r.call(this)).slotsCount=Number(e.getAttribute("slots")),e.currentSlot=0,e.blocks=[],e.wrapper=document.createElement("div"),e.wrapper.classList.add("infobox"),e.wrapper.innerHTML="",e.slotsCount>1&&(e.wrapper.innerHTML+='\n
\n <\n >\n
\n '));for(var c=0;c\n ');var o=e.attachShadow({mode:"closed"});return o.innerHTML='\n \n \n '),o.appendChild(e.wrapper),e}return a.createClass(n,[{key:"connectedCallback",value:function(){if(this.slotsCount>1){var e=this.wrapper.querySelector("#".concat(this.getAttribute("id"),"-previous")),t=this.wrapper.querySelector("#".concat(this.getAttribute("id"),"-next"));e.addEventListener("click",this.onPrevious),t.addEventListener("click",this.onNext)}}},{key:"disconnectedCallback",value:function(){if(this.slotsCount>1){var e=this.wrapper.querySelector("".concat(this.getAttribute("id"),"-previous")),t=this.wrapper.querySelector("".concat(this.getAttribute("id"),"-next"));e.removeEventListener("click",this.onPrevious),t.removeEventListener("click",this.onNext)}}},{key:"onPrevious",value:function(e){var t=e.target.getAttribute("wrapper"),r=i.select(t),n=Number(r.getAttribute("slots")),c=Number(r.getAttribute("current"));i.select("".concat(t,"-").concat(c)).classList.remove("show-from-left"),i.select("".concat(t,"-").concat(c)).classList.remove("show-from-right"),i.select("".concat(t,"-").concat(c)).classList.add("hidden"),c=c<=0?n-1:c-1,i.select("".concat(t,"-").concat(c)).classList.remove("hidden"),i.select("".concat(t,"-").concat(c)).classList.add("show-from-left"),r.setAttribute("current",c)}},{key:"onNext",value:function(e){var t=e.target.getAttribute("wrapper"),r=i.select(t),n=Number(r.getAttribute("slots")),c=Number(r.getAttribute("current"));i.select("".concat(t,"-").concat(c)).classList.remove("show-from-left"),i.select("".concat(t,"-").concat(c)).classList.remove("show-from-right"),i.select("".concat(t,"-").concat(c)).classList.add("hidden");var o=c+1;c=o>=n?0:o,i.select("".concat(t,"-").concat(c)).classList.remove("hidden"),i.select("".concat(t,"-").concat(c)).classList.add("show-from-right"),r.setAttribute("current",c)}}]),n}(a.wrapNativeSuper(HTMLElement));customElements.define("adr-book-info",u)}(); -//# sourceMappingURL=index.d0988c69.js.map +!function(){function e(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}function t(e){return e&&e.__esModule?e.default:e}var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},n={},c={},o=r.parcelRequire1ebe;null==o&&((o=function(e){if(e in n)return n[e].exports;if(e in c){var t=c[e];delete c[e];var r={id:e,exports:{}};return n[e]=r,t.call(r.exports,r,r.exports),r.exports}var o=new Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o}).register=function(e,t){c[e]=t},r.parcelRequire1ebe=o),o.register("jYHEd",(function(t,r){function n(e){window.selectors||(window.selectors={});var t=window.selectors[e];return t||(t=document.getElementById(e),window.selectors.id=t),t}function c(e,t,r){e.forEach((function(e){r?n(e).classList.add(t):n(e).classList.remove(t)}))}function o(){return"#".concat(window.baseURL,"?").concat(window.sortingParam)}e(t.exports,"select",(function(){return n})),e(t.exports,"toggleClass",(function(){return c})),e(t.exports,"getURL",(function(){return o}))})),o("gm4sb").register(JSON.parse('{"cQAoq":"index.de5dec44.js","gbcXk":"style.695090bc.css","hwmB9":"background.761bc37b.jpg","d3YkH":"artwork-suzuha.09fac1ca.png","aroW2":"artwork-ede.54057cad.png","ilpGW":"cover-renaissance-s4-1024.6b8555ec.png","6Vjqf":"artwork-statue-chateau-s4.d48a5537.png","gR7QX":"artwork-lecture-s4.7439fb69.png"}'));var s,a=o("kAkBg");s=o("5waPY").getBundleURL("cQAoq")+o("gm4sb").resolve("gbcXk");var i=o("jYHEd"),u=function(e){"use strict";a.inherits(n,e);var r=a.createSuper(n);function n(){var e;a.classCallCheck(this,n),(e=r.call(this)).slotsCount=Number(e.getAttribute("slots")),e.currentSlot=0,e.blocks=[],e.wrapper=document.createElement("div"),e.wrapper.classList.add("infobox"),e.wrapper.innerHTML="",e.slotsCount>1&&(e.wrapper.innerHTML+='\n
\n <\n >\n
\n '));for(var c=0;c\n ');var o=e.attachShadow({mode:"closed"});return o.innerHTML='\n \n \n '),o.appendChild(e.wrapper),e}return a.createClass(n,[{key:"connectedCallback",value:function(){if(this.slotsCount>1){var e=this.wrapper.querySelector("#".concat(this.getAttribute("id"),"-previous")),t=this.wrapper.querySelector("#".concat(this.getAttribute("id"),"-next"));e.addEventListener("click",this.onPrevious),t.addEventListener("click",this.onNext)}}},{key:"disconnectedCallback",value:function(){if(this.slotsCount>1){var e=this.wrapper.querySelector("".concat(this.getAttribute("id"),"-previous")),t=this.wrapper.querySelector("".concat(this.getAttribute("id"),"-next"));e.removeEventListener("click",this.onPrevious),t.removeEventListener("click",this.onNext)}}},{key:"onPrevious",value:function(e){var t=e.target.getAttribute("wrapper"),r=i.select(t),n=Number(r.getAttribute("slots")),c=Number(r.getAttribute("current"));i.select("".concat(t,"-").concat(c)).classList.remove("show-from-left"),i.select("".concat(t,"-").concat(c)).classList.remove("show-from-right"),i.select("".concat(t,"-").concat(c)).classList.add("hidden"),c=c<=0?n-1:c-1,i.select("".concat(t,"-").concat(c)).classList.remove("hidden"),i.select("".concat(t,"-").concat(c)).classList.add("show-from-left"),r.setAttribute("current",c)}},{key:"onNext",value:function(e){var t=e.target.getAttribute("wrapper"),r=i.select(t),n=Number(r.getAttribute("slots")),c=Number(r.getAttribute("current"));i.select("".concat(t,"-").concat(c)).classList.remove("show-from-left"),i.select("".concat(t,"-").concat(c)).classList.remove("show-from-right"),i.select("".concat(t,"-").concat(c)).classList.add("hidden");var o=c+1;c=o>=n?0:o,i.select("".concat(t,"-").concat(c)).classList.remove("hidden"),i.select("".concat(t,"-").concat(c)).classList.add("show-from-right"),r.setAttribute("current",c)}}]),n}(a.wrapNativeSuper(HTMLElement));customElements.define("adr-book-info",u)}(); +//# sourceMappingURL=index.de5dec44.js.map diff --git a/index.d0988c69.js.map b/index.de5dec44.js.map similarity index 98% rename from index.d0988c69.js.map rename to index.de5dec44.js.map index 322a26db..9983e90a 100644 --- a/index.d0988c69.js.map +++ b/index.de5dec44.js.map @@ -1 +1 @@ -{"mappings":"uqBAIgBA,EAAOC,GAChBC,OAAOC,YACVD,OAAOC,UAAY,CAAC,GAEtB,IAAIC,EAAWF,OAAOC,UAAUF,GAKhC,OAJKG,IACHA,EAAWC,SAASC,eAAeL,GACnCC,OAAOC,UAAUF,GAAKG,GAEjBA,CACT,C,SAKgBG,EAAYJ,EAAWI,EAAaC,GAClDL,EAAUM,SAAQ,SAACR,GACbO,EACFR,EAAOC,GAAIS,UAAUC,IAAIJ,GAEzBP,EAAOC,GAAIS,UAAUE,OAAOL,EAEhC,GACF,C,SAMgBM,IACd,MAAQ,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AAUE,OAAO,mBACvDyC,EAAAC,OAAQ,GAAexC,OAAbqC,EAAU,KAAerC,OAAZgB,IAAepB,UAAUC,IAAI,UAEpD,IAAI6C,EAAU1B,EAAc,EAC5BA,EAAe0B,GAAW9B,EAAc,EAAI8B,EAC5CH,EAAAC,OAAQ,GAAexC,OAAbqC,EAAU,KAAerC,OAAZgB,IAAepB,UAAUE,OAAO,UACvDyC,EAAAC,OAAQ,GAAexC,OAAbqC,EAAU,KAAerC,OAAZgB,IAAepB,UAAUC,IAAI,mBACpDqB,EAAQuB,aAAa,UAAWzB,EAClC,KArGIN,C,CAAN,C,kBAA0BC,cAwG1BgC,eAAeC,OAAO,gBAAiBlC,E","sources":["js/utils/generics.js","node_modules/@parcel/runtime-js/lib/runtime-4aa00cfa344be310.js","node_modules/@parcel/runtime-js/lib/runtime-f485c3a376f312af.js","js/adr-book-info.js"],"sourcesContent":["/**\n * Get element by id\n * Elements that were already requested are registered in \"selectors\" array for performance\n */\nexport function select(id) {\n if (!window.selectors) {\n window.selectors = {}\n }\n let selector = window.selectors[id]\n if (!selector) {\n selector = document.getElementById(id)\n window.selectors.id = selector\n }\n return selector\n}\n\n/**\n * Add or remove the class \"toggleClass\" on all given selectors\n */\nexport function toggleClass(selectors, toggleClass, isAdd) {\n selectors.forEach((id) => {\n if (isAdd) {\n select(id).classList.add(toggleClass)\n } else {\n select(id).classList.remove(toggleClass)\n }\n })\n}\n\n/**\n * Return the part of the URL corresponding to location hash according to current values,\n * designed to work only when called on books page\n */\nexport function getURL() {\n return `#${window.baseURL}?${window.sortingParam}`\n}","require('./helpers/bundle-manifest').register(JSON.parse(\"{\\\"cQAoq\\\":\\\"index.d0988c69.js\\\",\\\"gbcXk\\\":\\\"style.9d159f0e.css\\\",\\\"hwmB9\\\":\\\"background.761bc37b.jpg\\\",\\\"d3YkH\\\":\\\"artwork-suzuha.09fac1ca.png\\\",\\\"aroW2\\\":\\\"artwork-ede.54057cad.png\\\",\\\"ilpGW\\\":\\\"cover-renaissance-s4-1024.6b8555ec.png\\\",\\\"6Vjqf\\\":\\\"artwork-statue-chateau-s4.d48a5537.png\\\",\\\"gR7QX\\\":\\\"artwork-lecture-s4.7439fb69.png\\\"}\"));","module.exports = require('./helpers/bundle-url').getBundleURL('cQAoq') + require('./helpers/bundle-manifest').resolve(\"gbcXk\");","import styleUrl from \"url:../styles/style.css\"\nimport { select } from './utils/generics';\n\nclass AdrBookInfo extends HTMLElement {\n\n connectedCallback() {\n if (this.slotsCount > 1) {\n // Listen to click on navigation buttons\n let previousButton = this.wrapper.querySelector(`#${this.getAttribute('id')}-previous`)\n let nextButton = this.wrapper.querySelector(`#${this.getAttribute('id')}-next`)\n previousButton.addEventListener('click', this.onPrevious)\n nextButton.addEventListener('click', this.onNext)\n }\n }\n\n disconnectedCallback() {\n if (this.slotsCount > 1) {\n let previousButton = this.wrapper.querySelector(`${this.getAttribute('id')}-previous`)\n let nextButton = this.wrapper.querySelector(`${this.getAttribute('id')}-next`)\n previousButton.removeEventListener('click', this.onPrevious)\n nextButton.removeEventListener('click', this.onNext)\n }\n }\n\n constructor() {\n super()\n // Get the slots count and set current slot to 1\n this.slotsCount = Number(this.getAttribute('slots'))\n this.currentSlot = 0\n this.blocks = []\n\n // Setup the wrapper\n this.wrapper = document.createElement('div')\n this.wrapper.classList.add('infobox')\n this.wrapper.innerHTML = ''\n\n // If there are several slots, append navigation keys\n if (this.slotsCount > 1) {\n this.wrapper.innerHTML += `\n
\n <\n >\n
\n `\n }\n\n // Append the right slots count\n for(let i = 0; i < this.slotsCount; i++) {\n this.wrapper.innerHTML += `\n \n `\n }\n\n var shadow = this.attachShadow({mode: 'closed'})\n shadow.innerHTML = `\n \n \n `\n shadow.appendChild(this.wrapper)\n }\n\n // Context is not bound, we can't use \"this\"\n onPrevious(event) {\n // Get the required props\n let wrapperId = event.target.getAttribute('wrapper')\n let wrapper = select(wrapperId)\n let slotsCount = Number(wrapper.getAttribute('slots'))\n let currentSlot = Number(wrapper.getAttribute('current'))\n // Hide the current slot\n select(`${wrapperId}-${currentSlot}`).classList.remove('show-from-left')\n select(`${wrapperId}-${currentSlot}`).classList.remove('show-from-right')\n select(`${wrapperId}-${currentSlot}`).classList.add('hidden')\n // Compute the new current slot and do the changes\n currentSlot = (currentSlot <= 0) ? slotsCount - 1 : currentSlot - 1\n select(`${wrapperId}-${currentSlot}`).classList.remove('hidden')\n select(`${wrapperId}-${currentSlot}`).classList.add('show-from-left')\n wrapper.setAttribute('current', currentSlot)\n }\n\n // Context is not bound, we can't use \"this\"\n onNext(event) {\n // Get the required props\n let wrapperId = event.target.getAttribute('wrapper')\n let wrapper = select(wrapperId)\n let slotsCount = Number(wrapper.getAttribute('slots'))\n let currentSlot = Number(wrapper.getAttribute('current'))\n // Hide the current slot\n select(`${wrapperId}-${currentSlot}`).classList.remove('show-from-left')\n select(`${wrapperId}-${currentSlot}`).classList.remove('show-from-right')\n select(`${wrapperId}-${currentSlot}`).classList.add('hidden')\n // Compute the new current slot and do the changes\n let plusOne = currentSlot + 1\n currentSlot = (plusOne >= slotsCount) ? 0 : plusOne\n select(`${wrapperId}-${currentSlot}`).classList.remove('hidden')\n select(`${wrapperId}-${currentSlot}`).classList.add('show-from-right')\n wrapper.setAttribute('current', currentSlot)\n }\n}\n\ncustomElements.define('adr-book-info', AdrBookInfo)"],"names":["$e8b57a6fb9383744$export$2e6c959c16ff56b8","id","window","selectors","selector","document","getElementById","$e8b57a6fb9383744$export$4a80062ca50b57c7","isAdd","forEach","classList","add","remove","$e8b57a6fb9383744$export$152462a4e1ffe278","concat","baseURL","sortingParam","parcelRequire","register","JSON","parse","$4e181805bfd9fb1e$exports","getBundleURL","resolve","$1e123ab7f04d2be7$var$AdrBookInfo","HTMLElement","slotsCount","Number","_this","getAttribute","currentSlot","blocks","wrapper","createElement","innerHTML","i","shadow","attachShadow","mode","$parcel$interopDefault","appendChild","key","this","previousButton","querySelector","nextButton","addEventListener","onPrevious","onNext","removeEventListener","event","wrapperId","target","$jYHEd","select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,GAAexC,OAAbqC,EAAU,KAAerC,OAAZgB,IAAepB,UAAUC,IAAI,kBACpDqB,EAAQuB,aAAa,UAAWzB,EAClC,G,CAGAW,IAAA,S,MAAA,SAAOS,GAEL,IAAIC,EAAYD,EAAME,OAAOvB,aAAa,WACtCG,EAAUqB,EAAAC,OAAOH,GACjBzB,EAAaC,OAAOK,EAAQH,aAAa,UACzCC,EAAcH,OAAOK,EAAQH,aAAa,YAE9CwB,EAAAC,OAAQ,GAAexC,OAAbqC,EAAU,KAAerC,OAAZgB,IAAepB,UAAUE,OAAO,kBACvDyC,EAAAC,OAAQ,GAAexC,OAAbqC,EAAU,KAAerC,OAAZgB,IAAepB,UAAUE,OAAO,mBACvDyC,EAAAC,OAAQ,GAAexC,OAAbqC,EAAU,KAAerC,OAAZgB,IAAepB,UAAUC,IAAI,UAEpD,IAAI6C,EAAU1B,EAAc,EAC5BA,EAAe0B,GAAW9B,EAAc,EAAI8B,EAC5CH,EAAAC,OAAQ,GAAexC,OAAbqC,EAAU,KAAerC,OAAZgB,IAAepB,UAAUE,OAAO,UACvDyC,EAAAC,OAAQ,GAAexC,OAAbqC,EAAU,KAAerC,OAAZgB,IAAepB,UAAUC,IAAI,mBACpDqB,EAAQuB,aAAa,UAAWzB,EAClC,KArGIN,C,CAAN,C,kBAA0BC,cAwG1BgC,eAAeC,OAAO,gBAAiBlC,E","sources":["js/utils/generics.js","node_modules/@parcel/runtime-js/lib/runtime-4aa00cfa344be310.js","node_modules/@parcel/runtime-js/lib/runtime-f485c3a376f312af.js","js/adr-book-info.js"],"sourcesContent":["/**\n * Get element by id\n * Elements that were already requested are registered in \"selectors\" array for performance\n */\nexport function select(id) {\n if (!window.selectors) {\n window.selectors = {}\n }\n let selector = window.selectors[id]\n if (!selector) {\n selector = document.getElementById(id)\n window.selectors.id = selector\n }\n return selector\n}\n\n/**\n * Add or remove the class \"toggleClass\" on all given selectors\n */\nexport function toggleClass(selectors, toggleClass, isAdd) {\n selectors.forEach((id) => {\n if (isAdd) {\n select(id).classList.add(toggleClass)\n } else {\n select(id).classList.remove(toggleClass)\n }\n })\n}\n\n/**\n * Return the part of the URL corresponding to location hash according to current values,\n * designed to work only when called on books page\n */\nexport function getURL() {\n return `#${window.baseURL}?${window.sortingParam}`\n}","require('./helpers/bundle-manifest').register(JSON.parse(\"{\\\"cQAoq\\\":\\\"index.de5dec44.js\\\",\\\"gbcXk\\\":\\\"style.695090bc.css\\\",\\\"hwmB9\\\":\\\"background.761bc37b.jpg\\\",\\\"d3YkH\\\":\\\"artwork-suzuha.09fac1ca.png\\\",\\\"aroW2\\\":\\\"artwork-ede.54057cad.png\\\",\\\"ilpGW\\\":\\\"cover-renaissance-s4-1024.6b8555ec.png\\\",\\\"6Vjqf\\\":\\\"artwork-statue-chateau-s4.d48a5537.png\\\",\\\"gR7QX\\\":\\\"artwork-lecture-s4.7439fb69.png\\\"}\"));","module.exports = require('./helpers/bundle-url').getBundleURL('cQAoq') + require('./helpers/bundle-manifest').resolve(\"gbcXk\");","import styleUrl from \"url:../styles/style.css\"\nimport { select } from './utils/generics';\n\nclass AdrBookInfo extends HTMLElement {\n\n connectedCallback() {\n if (this.slotsCount > 1) {\n // Listen to click on navigation buttons\n let previousButton = this.wrapper.querySelector(`#${this.getAttribute('id')}-previous`)\n let nextButton = this.wrapper.querySelector(`#${this.getAttribute('id')}-next`)\n previousButton.addEventListener('click', this.onPrevious)\n nextButton.addEventListener('click', this.onNext)\n }\n }\n\n disconnectedCallback() {\n if (this.slotsCount > 1) {\n let previousButton = this.wrapper.querySelector(`${this.getAttribute('id')}-previous`)\n let nextButton = this.wrapper.querySelector(`${this.getAttribute('id')}-next`)\n previousButton.removeEventListener('click', this.onPrevious)\n nextButton.removeEventListener('click', this.onNext)\n }\n }\n\n constructor() {\n super()\n // Get the slots count and set current slot to 1\n this.slotsCount = Number(this.getAttribute('slots'))\n this.currentSlot = 0\n this.blocks = []\n\n // Setup the wrapper\n this.wrapper = document.createElement('div')\n this.wrapper.classList.add('infobox')\n this.wrapper.innerHTML = ''\n\n // If there are several slots, append navigation keys\n if (this.slotsCount > 1) {\n this.wrapper.innerHTML += `\n
\n <\n >\n
\n `\n }\n\n // Append the right slots count\n for(let i = 0; i < this.slotsCount; i++) {\n this.wrapper.innerHTML += `\n \n `\n }\n\n var shadow = this.attachShadow({mode: 'closed'})\n shadow.innerHTML = `\n \n \n `\n shadow.appendChild(this.wrapper)\n }\n\n // Context is not bound, we can't use \"this\"\n onPrevious(event) {\n // Get the required props\n let wrapperId = event.target.getAttribute('wrapper')\n let wrapper = select(wrapperId)\n let slotsCount = Number(wrapper.getAttribute('slots'))\n let currentSlot = Number(wrapper.getAttribute('current'))\n // Hide the current slot\n select(`${wrapperId}-${currentSlot}`).classList.remove('show-from-left')\n select(`${wrapperId}-${currentSlot}`).classList.remove('show-from-right')\n select(`${wrapperId}-${currentSlot}`).classList.add('hidden')\n // Compute the new current slot and do the changes\n currentSlot = (currentSlot <= 0) ? slotsCount - 1 : currentSlot - 1\n select(`${wrapperId}-${currentSlot}`).classList.remove('hidden')\n select(`${wrapperId}-${currentSlot}`).classList.add('show-from-left')\n wrapper.setAttribute('current', currentSlot)\n }\n\n // Context is not bound, we can't use \"this\"\n onNext(event) {\n // Get the required props\n let wrapperId = event.target.getAttribute('wrapper')\n let wrapper = select(wrapperId)\n let slotsCount = Number(wrapper.getAttribute('slots'))\n let currentSlot = Number(wrapper.getAttribute('current'))\n // Hide the current slot\n select(`${wrapperId}-${currentSlot}`).classList.remove('show-from-left')\n select(`${wrapperId}-${currentSlot}`).classList.remove('show-from-right')\n select(`${wrapperId}-${currentSlot}`).classList.add('hidden')\n // Compute the new current slot and do the changes\n let plusOne = currentSlot + 1\n currentSlot = (plusOne >= slotsCount) ? 0 : plusOne\n select(`${wrapperId}-${currentSlot}`).classList.remove('hidden')\n select(`${wrapperId}-${currentSlot}`).classList.add('show-from-right')\n wrapper.setAttribute('current', currentSlot)\n }\n}\n\ncustomElements.define('adr-book-info', AdrBookInfo)"],"names":["$e8b57a6fb9383744$export$2e6c959c16ff56b8","id","window","selectors","selector","document","getElementById","$e8b57a6fb9383744$export$4a80062ca50b57c7","isAdd","forEach","classList","add","remove","$e8b57a6fb9383744$export$152462a4e1ffe278","concat","baseURL","sortingParam","parcelRequire","register","JSON","parse","$4e181805bfd9fb1e$exports","getBundleURL","resolve","$1e123ab7f04d2be7$var$AdrBookInfo","HTMLElement","slotsCount","Number","_this","getAttribute","currentSlot","blocks","wrapper","createElement","innerHTML","i","shadow","attachShadow","mode","$parcel$interopDefault","appendChild","key","this","previousButton","querySelector","nextButton","addEventListener","onPrevious","onNext","removeEventListener","event","wrapperId","target","$jYHEd","select","setAttribute","plusOne","customElements","define"],"version":3,"file":"index.de5dec44.js.map"} \ No newline at end of file diff --git a/index.0a3da914.js b/index.e3efc0bb.js similarity index 94% rename from index.0a3da914.js rename to index.e3efc0bb.js index 5e9bdb07..c9c1fb6a 100644 --- a/index.0a3da914.js +++ b/index.e3efc0bb.js @@ -1,2 +1,2 @@ -function e(e){return e&&e.__esModule?e.default:e}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},n={},r={},i=t.parcelRequire1ebe;null==i&&((i=function(e){if(e in n)return n[e].exports;if(e in r){var t=r[e];delete r[e];var i={id:e,exports:{}};return n[e]=i,t.call(i.exports,i,i.exports),i.exports}var o=new Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o}).register=function(e,t){r[e]=t},t.parcelRequire1ebe=i),i("hqokU").register(JSON.parse('{"2lmrm":"index.0a3da914.js","gbcXk":"style.9d159f0e.css","hwmB9":"background.761bc37b.jpg","d3YkH":"artwork-suzuha.09fac1ca.png","aroW2":"artwork-ede.54057cad.png","ilpGW":"cover-renaissance-s4-1024.6b8555ec.png","6Vjqf":"artwork-statue-chateau-s4.d48a5537.png","gR7QX":"artwork-lecture-s4.7439fb69.png"}'));var o;o=new URL(i("hqokU").resolve("gbcXk"),import.meta.url).toString();class s extends HTMLElement{constructor(){super();var t=document.createElement("div");t.classList.add("book-links"),t.innerHTML="",this.getAttribute("book-link")&&(t.innerHTML+=`\n \n `),this.getAttribute("ebook-link")&&(t.innerHTML+=`\n \n `),this.getAttribute("file")&&(t.innerHTML+=`\n \n `);var n=this.attachShadow({mode:"closed"});n.innerHTML=`\n \n \n `,n.appendChild(t)}}customElements.define("adr-book-links",s); -//# sourceMappingURL=index.0a3da914.js.map +function e(e){return e&&e.__esModule?e.default:e}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},n={},r={},i=t.parcelRequire1ebe;null==i&&((i=function(e){if(e in n)return n[e].exports;if(e in r){var t=r[e];delete r[e];var i={id:e,exports:{}};return n[e]=i,t.call(i.exports,i,i.exports),i.exports}var o=new Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o}).register=function(e,t){r[e]=t},t.parcelRequire1ebe=i),i("hqokU").register(JSON.parse('{"2lmrm":"index.e3efc0bb.js","gbcXk":"style.695090bc.css","hwmB9":"background.761bc37b.jpg","d3YkH":"artwork-suzuha.09fac1ca.png","aroW2":"artwork-ede.54057cad.png","ilpGW":"cover-renaissance-s4-1024.6b8555ec.png","6Vjqf":"artwork-statue-chateau-s4.d48a5537.png","gR7QX":"artwork-lecture-s4.7439fb69.png"}'));var o;o=new URL(i("hqokU").resolve("gbcXk"),import.meta.url).toString();class s extends HTMLElement{constructor(){super();var t=document.createElement("div");t.classList.add("book-links"),t.innerHTML="",this.getAttribute("book-link")&&(t.innerHTML+=`\n \n `),this.getAttribute("ebook-link")&&(t.innerHTML+=`\n \n `),this.getAttribute("file")&&(t.innerHTML+=`\n \n `);var n=this.attachShadow({mode:"closed"});n.innerHTML=`\n \n \n `,n.appendChild(t)}}customElements.define("adr-book-links",s); +//# sourceMappingURL=index.e3efc0bb.js.map diff --git a/index.0a3da914.js.map b/index.e3efc0bb.js.map similarity index 93% rename from index.0a3da914.js.map rename to index.e3efc0bb.js.map index ad9223ed..608f7c35 100644 --- a/index.0a3da914.js.map +++ b/index.e3efc0bb.js.map @@ -1 +1 @@ -{"mappings":"qhBAAAA,EAAA,SAAAC,SAA8CC,KAAKC,MAAM,8b,MCAzDC,EAAc,IAAAC,IAAuBL,EAAA,SAAAM,QAA6C,SAAOC,OAAAC,KAAAC,KAAGC,W,MCEtFC,UAAqBC,Y,cAEvBC,QACA,IAAIC,EAAUC,SAASC,cAAc,OACrCF,EAAQG,UAAUC,IAAI,cACtBJ,EAAQK,UAAY,GAChBC,KAAKC,aAAa,eACpBP,EAAQK,WAAS,8CAENC,KAAKC,aAAa,sDACID,KAAKC,aAAa,oDAIjDD,KAAKC,aAAa,gBACpBP,EAAQK,WAAS,8CAENC,KAAKC,aAAa,mGAK3BD,KAAKC,aAAa,UACpBP,EAAQK,WAAS,6CAERC,KAAKC,aAAa,iDAK7B,IAAIC,EAASF,KAAKG,aAAa,CAACC,KAAM,WACtCF,EAAOH,UAAS,iJAEiCM,EAAArB,aAEjDkB,EAAOI,YAAYZ,EACrB,EAGFa,eAAeC,OAAO,iBAAkBjB","sources":["node_modules/@parcel/runtime-js/lib/runtime-1f871df6de38e44a.js","node_modules/@parcel/runtime-js/lib/runtime-c0665e2809cfadba.js","js/adr-book-links.js"],"sourcesContent":["require('./helpers/bundle-manifest').register(JSON.parse(\"{\\\"2lmrm\\\":\\\"index.0a3da914.js\\\",\\\"gbcXk\\\":\\\"style.9d159f0e.css\\\",\\\"hwmB9\\\":\\\"background.761bc37b.jpg\\\",\\\"d3YkH\\\":\\\"artwork-suzuha.09fac1ca.png\\\",\\\"aroW2\\\":\\\"artwork-ede.54057cad.png\\\",\\\"ilpGW\\\":\\\"cover-renaissance-s4-1024.6b8555ec.png\\\",\\\"6Vjqf\\\":\\\"artwork-statue-chateau-s4.d48a5537.png\\\",\\\"gR7QX\\\":\\\"artwork-lecture-s4.7439fb69.png\\\"}\"));","module.exports = new __parcel__URL__(require('./helpers/bundle-manifest').resolve(\"gbcXk\")).toString();","import styleUrl from \"url:../styles/style.css\"\n\nclass AdrBookLinks extends HTMLElement {\n constructor() {\n super()\n var wrapper = document.createElement('div')\n wrapper.classList.add('book-links')\n wrapper.innerHTML = ''\n if (this.getAttribute('book-link')) {\n wrapper.innerHTML += `\n \n `\n }\n if (this.getAttribute('ebook-link')) {\n wrapper.innerHTML += `\n \n `\n }\n if (this.getAttribute('file')) {\n wrapper.innerHTML += `\n \n `\n }\n\n var shadow = this.attachShadow({mode: 'closed'})\n shadow.innerHTML = `\n \n \n `\n shadow.appendChild(wrapper)\n }\n}\n\ncustomElements.define('adr-book-links', AdrBookLinks)"],"names":["parcelRequire","register","JSON","parse","$7c2b628dc2e2d7cd$exports","URL","resolve","import","meta","url","toString","$06f24c11667f8ca0$var$AdrBookLinks","HTMLElement","super","wrapper","document","createElement","classList","add","innerHTML","this","getAttribute","shadow","attachShadow","mode","$parcel$interopDefault","appendChild","customElements","define"],"version":3,"file":"index.0a3da914.js.map"} \ No newline at end of file +{"mappings":"qhBAAAA,EAAA,SAAAC,SAA8CC,KAAKC,MAAM,8b,MCAzDC,EAAc,IAAAC,IAAuBL,EAAA,SAAAM,QAA6C,SAAOC,OAAAC,KAAAC,KAAGC,W,MCEtFC,UAAqBC,Y,cAEvBC,QACA,IAAIC,EAAUC,SAASC,cAAc,OACrCF,EAAQG,UAAUC,IAAI,cACtBJ,EAAQK,UAAY,GAChBC,KAAKC,aAAa,eACpBP,EAAQK,WAAS,8CAENC,KAAKC,aAAa,sDACID,KAAKC,aAAa,oDAIjDD,KAAKC,aAAa,gBACpBP,EAAQK,WAAS,8CAENC,KAAKC,aAAa,mGAK3BD,KAAKC,aAAa,UACpBP,EAAQK,WAAS,6CAERC,KAAKC,aAAa,iDAK7B,IAAIC,EAASF,KAAKG,aAAa,CAACC,KAAM,WACtCF,EAAOH,UAAS,iJAEiCM,EAAArB,aAEjDkB,EAAOI,YAAYZ,EACrB,EAGFa,eAAeC,OAAO,iBAAkBjB","sources":["node_modules/@parcel/runtime-js/lib/runtime-1f871df6de38e44a.js","node_modules/@parcel/runtime-js/lib/runtime-c0665e2809cfadba.js","js/adr-book-links.js"],"sourcesContent":["require('./helpers/bundle-manifest').register(JSON.parse(\"{\\\"2lmrm\\\":\\\"index.e3efc0bb.js\\\",\\\"gbcXk\\\":\\\"style.695090bc.css\\\",\\\"hwmB9\\\":\\\"background.761bc37b.jpg\\\",\\\"d3YkH\\\":\\\"artwork-suzuha.09fac1ca.png\\\",\\\"aroW2\\\":\\\"artwork-ede.54057cad.png\\\",\\\"ilpGW\\\":\\\"cover-renaissance-s4-1024.6b8555ec.png\\\",\\\"6Vjqf\\\":\\\"artwork-statue-chateau-s4.d48a5537.png\\\",\\\"gR7QX\\\":\\\"artwork-lecture-s4.7439fb69.png\\\"}\"));","module.exports = new __parcel__URL__(require('./helpers/bundle-manifest').resolve(\"gbcXk\")).toString();","import styleUrl from \"url:../styles/style.css\"\n\nclass AdrBookLinks extends HTMLElement {\n constructor() {\n super()\n var wrapper = document.createElement('div')\n wrapper.classList.add('book-links')\n wrapper.innerHTML = ''\n if (this.getAttribute('book-link')) {\n wrapper.innerHTML += `\n \n `\n }\n if (this.getAttribute('ebook-link')) {\n wrapper.innerHTML += `\n \n `\n }\n if (this.getAttribute('file')) {\n wrapper.innerHTML += `\n \n `\n }\n\n var shadow = this.attachShadow({mode: 'closed'})\n shadow.innerHTML = `\n \n \n `\n shadow.appendChild(wrapper)\n }\n}\n\ncustomElements.define('adr-book-links', AdrBookLinks)"],"names":["parcelRequire","register","JSON","parse","$7c2b628dc2e2d7cd$exports","URL","resolve","import","meta","url","toString","$06f24c11667f8ca0$var$AdrBookLinks","HTMLElement","super","wrapper","document","createElement","classList","add","innerHTML","this","getAttribute","shadow","attachShadow","mode","$parcel$interopDefault","appendChild","customElements","define"],"version":3,"file":"index.e3efc0bb.js.map"} \ No newline at end of file diff --git a/index.34364112.js b/index.f083abdf.js similarity index 93% rename from index.34364112.js rename to index.f083abdf.js index 12b3acb4..c49da891 100644 --- a/index.34364112.js +++ b/index.f083abdf.js @@ -1,2 +1,2 @@ -!function(){function e(e){return e&&e.__esModule?e.default:e}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},n={},r={},a=t.parcelRequire1ebe;null==a&&((a=function(e){if(e in n)return n[e].exports;if(e in r){var t=r[e];delete r[e];var a={id:e,exports:{}};return n[e]=a,t.call(a.exports,a,a.exports),a.exports}var o=new Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o}).register=function(e,t){r[e]=t},t.parcelRequire1ebe=a),a("gm4sb").register(JSON.parse('{"45VE4":"index.34364112.js","gbcXk":"style.9d159f0e.css","hwmB9":"background.761bc37b.jpg","d3YkH":"artwork-suzuha.09fac1ca.png","aroW2":"artwork-ede.54057cad.png","ilpGW":"cover-renaissance-s4-1024.6b8555ec.png","6Vjqf":"artwork-statue-chateau-s4.d48a5537.png","gR7QX":"artwork-lecture-s4.7439fb69.png"}'));var o,s=a("kAkBg");o=a("5waPY").getBundleURL("45VE4")+a("gm4sb").resolve("gbcXk");var c=function(t){"use strict";s.inherits(r,t);var n=s.createSuper(r);function r(){var t;s.classCallCheck(this,r),t=n.call(this);var a=document.createElement("div");a.innerHTML='\n
\n \n '),c.appendChild(a),t}return r}(s.wrapNativeSuper(HTMLElement));customElements.define("adr-shop-button",c)}(); -//# sourceMappingURL=index.34364112.js.map +!function(){function e(e){return e&&e.__esModule?e.default:e}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},n={},r={},a=t.parcelRequire1ebe;null==a&&((a=function(e){if(e in n)return n[e].exports;if(e in r){var t=r[e];delete r[e];var a={id:e,exports:{}};return n[e]=a,t.call(a.exports,a,a.exports),a.exports}var o=new Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o}).register=function(e,t){r[e]=t},t.parcelRequire1ebe=a),a("gm4sb").register(JSON.parse('{"45VE4":"index.f083abdf.js","gbcXk":"style.695090bc.css","hwmB9":"background.761bc37b.jpg","d3YkH":"artwork-suzuha.09fac1ca.png","aroW2":"artwork-ede.54057cad.png","ilpGW":"cover-renaissance-s4-1024.6b8555ec.png","6Vjqf":"artwork-statue-chateau-s4.d48a5537.png","gR7QX":"artwork-lecture-s4.7439fb69.png"}'));var o,s=a("kAkBg");o=a("5waPY").getBundleURL("45VE4")+a("gm4sb").resolve("gbcXk");var c=function(t){"use strict";s.inherits(r,t);var n=s.createSuper(r);function r(){var t;s.classCallCheck(this,r),t=n.call(this);var a=document.createElement("div");a.innerHTML='\n \n \n '),c.appendChild(a),t}return r}(s.wrapNativeSuper(HTMLElement));customElements.define("adr-shop-button",c)}(); +//# sourceMappingURL=index.f083abdf.js.map diff --git a/index.34364112.js.map b/index.f083abdf.js.map similarity index 94% rename from index.34364112.js.map rename to index.f083abdf.js.map index 826d9580..b8ae984c 100644 --- a/index.34364112.js.map +++ b/index.f083abdf.js.map @@ -1 +1 @@ -{"mappings":"iiBAAAA,EAAA,SAAAC,SAA8CC,KAAKC,MAAM,8b,mBCAzDC,EAAiBJ,EAAA,SAAAK,aAA6C,SAAWL,EAAA,SAAAM,QAA6C,S,ICEhHC,EAAN,SAAQC,G,wBAAFD,EAAaC,G,oBAAbD,G,SAAAA,I,4BAAAA,G,eAGF,IAAIE,EAAUC,SAASC,cAAc,OACrCF,EAAQG,UAAa,+HAKfC,OAA0BC,EADhBC,aAAa,QAAQ,eACJF,OAEjCC,EAFWC,aAAa,SAAS,sBAGjC,IAAIC,EAAMF,EAAQG,aAAa,CAACC,KAAM,W,OACtCF,EAAOJ,UAAa,iJAEsCC,OAATM,EAAAf,GAAS,YAE1DY,EAAOI,YAAYX,G,SAjBjBF,C,CAAN,C,kBAA4BC,cAqB5Ba,eAAeC,OAAO,kBAAmBf,E","sources":["node_modules/@parcel/runtime-js/lib/runtime-ff2d8b2ea4bed1ed.js","node_modules/@parcel/runtime-js/lib/runtime-5f1dbbf838ebe764.js","js/adr-shop-button.js"],"sourcesContent":["require('./helpers/bundle-manifest').register(JSON.parse(\"{\\\"45VE4\\\":\\\"index.34364112.js\\\",\\\"gbcXk\\\":\\\"style.9d159f0e.css\\\",\\\"hwmB9\\\":\\\"background.761bc37b.jpg\\\",\\\"d3YkH\\\":\\\"artwork-suzuha.09fac1ca.png\\\",\\\"aroW2\\\":\\\"artwork-ede.54057cad.png\\\",\\\"ilpGW\\\":\\\"cover-renaissance-s4-1024.6b8555ec.png\\\",\\\"6Vjqf\\\":\\\"artwork-statue-chateau-s4.d48a5537.png\\\",\\\"gR7QX\\\":\\\"artwork-lecture-s4.7439fb69.png\\\"}\"));","module.exports = require('./helpers/bundle-url').getBundleURL('45VE4') + require('./helpers/bundle-manifest').resolve(\"gbcXk\");","import styleUrl from \"url:../styles/style.css\";\n\nclass AdrShopButton extends HTMLElement {\n constructor() {\n super()\n var wrapper = document.createElement('div')\n wrapper.innerHTML = `\n \n ${this.getAttribute('title')}\n \n `\n var shadow = this.attachShadow({mode: 'closed'})\n shadow.innerHTML = `\n \n \n `\n shadow.appendChild(wrapper)\n }\n}\n\ncustomElements.define('adr-shop-button', AdrShopButton)"],"names":["parcelRequire","register","JSON","parse","$f3c36e35d99e8130$exports","getBundleURL","resolve","$e82f73293c1cd107$var$AdrShopButton","HTMLElement","wrapper","document","createElement","innerHTML","concat","_this","getAttribute","shadow","attachShadow","mode","$parcel$interopDefault","appendChild","customElements","define"],"version":3,"file":"index.34364112.js.map"} \ No newline at end of file +{"mappings":"iiBAAAA,EAAA,SAAAC,SAA8CC,KAAKC,MAAM,8b,mBCAzDC,EAAiBJ,EAAA,SAAAK,aAA6C,SAAWL,EAAA,SAAAM,QAA6C,S,ICEhHC,EAAN,SAAQC,G,wBAAFD,EAAaC,G,oBAAbD,G,SAAAA,I,4BAAAA,G,eAGF,IAAIE,EAAUC,SAASC,cAAc,OACrCF,EAAQG,UAAa,+HAKfC,OAA0BC,EADhBC,aAAa,QAAQ,eACJF,OAEjCC,EAFWC,aAAa,SAAS,sBAGjC,IAAIC,EAAMF,EAAQG,aAAa,CAACC,KAAM,W,OACtCF,EAAOJ,UAAa,iJAEsCC,OAATM,EAAAf,GAAS,YAE1DY,EAAOI,YAAYX,G,SAjBjBF,C,CAAN,C,kBAA4BC,cAqB5Ba,eAAeC,OAAO,kBAAmBf,E","sources":["node_modules/@parcel/runtime-js/lib/runtime-ff2d8b2ea4bed1ed.js","node_modules/@parcel/runtime-js/lib/runtime-5f1dbbf838ebe764.js","js/adr-shop-button.js"],"sourcesContent":["require('./helpers/bundle-manifest').register(JSON.parse(\"{\\\"45VE4\\\":\\\"index.f083abdf.js\\\",\\\"gbcXk\\\":\\\"style.695090bc.css\\\",\\\"hwmB9\\\":\\\"background.761bc37b.jpg\\\",\\\"d3YkH\\\":\\\"artwork-suzuha.09fac1ca.png\\\",\\\"aroW2\\\":\\\"artwork-ede.54057cad.png\\\",\\\"ilpGW\\\":\\\"cover-renaissance-s4-1024.6b8555ec.png\\\",\\\"6Vjqf\\\":\\\"artwork-statue-chateau-s4.d48a5537.png\\\",\\\"gR7QX\\\":\\\"artwork-lecture-s4.7439fb69.png\\\"}\"));","module.exports = require('./helpers/bundle-url').getBundleURL('45VE4') + require('./helpers/bundle-manifest').resolve(\"gbcXk\");","import styleUrl from \"url:../styles/style.css\";\n\nclass AdrShopButton extends HTMLElement {\n constructor() {\n super()\n var wrapper = document.createElement('div')\n wrapper.innerHTML = `\n \n ${this.getAttribute('title')}\n \n `\n var shadow = this.attachShadow({mode: 'closed'})\n shadow.innerHTML = `\n \n \n `\n shadow.appendChild(wrapper)\n }\n}\n\ncustomElements.define('adr-shop-button', AdrShopButton)"],"names":["parcelRequire","register","JSON","parse","$f3c36e35d99e8130$exports","getBundleURL","resolve","$e82f73293c1cd107$var$AdrShopButton","HTMLElement","wrapper","document","createElement","innerHTML","concat","_this","getAttribute","shadow","attachShadow","mode","$parcel$interopDefault","appendChild","customElements","define"],"version":3,"file":"index.f083abdf.js.map"} \ No newline at end of file diff --git a/index.f529d83e.js b/index.f434942e.js similarity index 95% rename from index.f529d83e.js rename to index.f434942e.js index 007c53a7..86385592 100644 --- a/index.f529d83e.js +++ b/index.f434942e.js @@ -1,2 +1,2 @@ -function e(e){return e&&e.__esModule?e.default:e}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},r={},i={},n=t.parcelRequire1ebe;null==n&&((n=function(e){if(e in r)return r[e].exports;if(e in i){var t=i[e];delete i[e];var n={id:e,exports:{}};return r[e]=n,t.call(n.exports,n,n.exports),n.exports}var s=new Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s}).register=function(e,t){i[e]=t},t.parcelRequire1ebe=n),n("hqokU").register(JSON.parse('{"fMMq7":"index.f529d83e.js","gbcXk":"style.9d159f0e.css","hwmB9":"background.761bc37b.jpg","d3YkH":"artwork-suzuha.09fac1ca.png","aroW2":"artwork-ede.54057cad.png","ilpGW":"cover-renaissance-s4-1024.6b8555ec.png","6Vjqf":"artwork-statue-chateau-s4.d48a5537.png","gR7QX":"artwork-lecture-s4.7439fb69.png"}'));var s;s=new URL(n("hqokU").resolve("gbcXk"),import.meta.url).toString();class a extends HTMLElement{static get observedAttributes(){return["score"]}attributeChangedCallback(e,t,r){let i=JSON.parse(r),n=[];for(let[e,t]of Object.entries(i))n.push({id:e,value:t});n=n.sort(((e,t)=>t.value-e.value)),this.bookListing.forEach((e=>{let t=this.bookPosition(n,e.id),r="0px";switch(t.position){case 2:r="50px";break;case 3:r="100px"}e.element.style["margin-top"]=r,e.element.innerHTML=`${t.rank}. ${e.initialHTML}`}))}bookPosition(e,t){let r=e.find((({id:e})=>e===t)),i=e.find((({value:e})=>r.value===e));return{rank:e.indexOf(i)+1,position:e.indexOf(r)+1}}createBookItem(e){let t=document.createElement("p");return t.classList.add("result-item"),t.innerHTML=e,t}constructor(){super(),this.wrapper=document.createElement("div"),this.wrapper.classList.add("result-list"),this.bookListing=[{id:"suzuha",initialHTML:"Suzuha",element:this.createBookItem("1. Suzuha")},{id:"ede",initialHTML:"L'Enfant des Esprits",element:this.createBookItem("2. L'Enfant des Esprits")},{id:"vdy",initialHTML:"Le Voeu de Yoko",element:this.createBookItem("3. Le Voeu de Yoko")}],this.bookListing.forEach((e=>{this.wrapper.appendChild(e.element)}));var t=this.attachShadow({mode:"closed"});t.innerHTML=`\n \n \n `,t.appendChild(this.wrapper)}}customElements.define("adr-result-list",a); -//# sourceMappingURL=index.f529d83e.js.map +function e(e){return e&&e.__esModule?e.default:e}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},r={},i={},n=t.parcelRequire1ebe;null==n&&((n=function(e){if(e in r)return r[e].exports;if(e in i){var t=i[e];delete i[e];var n={id:e,exports:{}};return r[e]=n,t.call(n.exports,n,n.exports),n.exports}var s=new Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s}).register=function(e,t){i[e]=t},t.parcelRequire1ebe=n),n("hqokU").register(JSON.parse('{"fMMq7":"index.f434942e.js","gbcXk":"style.695090bc.css","hwmB9":"background.761bc37b.jpg","d3YkH":"artwork-suzuha.09fac1ca.png","aroW2":"artwork-ede.54057cad.png","ilpGW":"cover-renaissance-s4-1024.6b8555ec.png","6Vjqf":"artwork-statue-chateau-s4.d48a5537.png","gR7QX":"artwork-lecture-s4.7439fb69.png"}'));var s;s=new URL(n("hqokU").resolve("gbcXk"),import.meta.url).toString();class a extends HTMLElement{static get observedAttributes(){return["score"]}attributeChangedCallback(e,t,r){let i=JSON.parse(r),n=[];for(let[e,t]of Object.entries(i))n.push({id:e,value:t});n=n.sort(((e,t)=>t.value-e.value)),this.bookListing.forEach((e=>{let t=this.bookPosition(n,e.id),r="0px";switch(t.position){case 2:r="50px";break;case 3:r="100px"}e.element.style["margin-top"]=r,e.element.innerHTML=`${t.rank}. ${e.initialHTML}`}))}bookPosition(e,t){let r=e.find((({id:e})=>e===t)),i=e.find((({value:e})=>r.value===e));return{rank:e.indexOf(i)+1,position:e.indexOf(r)+1}}createBookItem(e){let t=document.createElement("p");return t.classList.add("result-item"),t.innerHTML=e,t}constructor(){super(),this.wrapper=document.createElement("div"),this.wrapper.classList.add("result-list"),this.bookListing=[{id:"suzuha",initialHTML:"Suzuha",element:this.createBookItem("1. Suzuha")},{id:"ede",initialHTML:"L'Enfant des Esprits",element:this.createBookItem("2. L'Enfant des Esprits")},{id:"vdy",initialHTML:"Le Voeu de Yoko",element:this.createBookItem("3. Le Voeu de Yoko")}],this.bookListing.forEach((e=>{this.wrapper.appendChild(e.element)}));var t=this.attachShadow({mode:"closed"});t.innerHTML=`\n \n \n `,t.appendChild(this.wrapper)}}customElements.define("adr-result-list",a); +//# sourceMappingURL=index.f434942e.js.map diff --git a/index.f529d83e.js.map b/index.f434942e.js.map similarity index 96% rename from index.f529d83e.js.map rename to index.f434942e.js.map index eb73273e..ef1823df 100644 --- a/index.f529d83e.js.map +++ b/index.f434942e.js.map @@ -1 +1 @@ -{"mappings":"qhBAAAA,EAAA,SAAAC,SAA8CC,KAAKC,MAAM,8b,MCAzDC,EAAc,IAAAC,IAAuBL,EAAA,SAAAM,QAA6C,SAAOC,OAAAC,KAAAC,KAAGC,W,MCMtFC,UAAsBC,YAEfC,gCACT,MAAO,CAAC,QACV,CAEAC,yBAAyBC,EAAGC,EAAIC,GAC9B,IAAIC,EAAQhB,KAAKC,MAAMc,GACnBE,EAAU,GAEd,IAAK,IAAKC,EAAKC,KAAUC,OAAOC,QAAQL,GACtCC,EAAQK,KAAK,CACXC,GAAIL,E,MACJC,IAIJF,EAAUA,EAAQO,MAAI,CAAEC,EAAGC,IAAMA,EAAEP,MAAQM,EAAEN,QAG7CQ,KAAKC,YAAYC,SAASC,IACxB,IAAIC,EAAUJ,KAAKK,aAAaf,EAASa,EAASP,IAC9CU,EA1BQ,MA2BZ,OAAOF,EAAQG,UACb,KAAK,EACHD,EA5BQ,OA6BR,MACF,KAAK,EACHA,EA9BQ,QAiCZH,EAASK,QAAQC,MAAM,cAAgBH,EACvCH,EAASK,QAAQE,UAAS,GAAMN,EAAQO,SAASR,EAASS,aAAW,GAGzE,CAEAP,aAAaf,EAASuB,GAEpB,IAAIC,EAAaxB,EAAQyB,MAAI,EAAGnB,GAACA,KAASA,IAAOiB,IAE7CG,EAAiB1B,EAAQyB,MAAI,EAAGvB,MAACA,KAAYsB,EAAWtB,QAAUA,IAEtE,MAAO,CAELmB,KAAMrB,EAAQ2B,QAAQD,GAAkB,EAExCT,SAAUjB,EAAQ2B,QAAQH,GAAc,EAE5C,CAqCAI,eAAeR,GACb,IAAIP,EAAWgB,SAASC,cAAc,KAGtC,OAFAjB,EAASkB,UAAUC,IAAI,eACvBnB,EAASO,UAAYA,EACdP,CACT,C,cAvCEoB,QACAvB,KAAKwB,QAAUL,SAASC,cAAc,OACtCpB,KAAKwB,QAAQH,UAAUC,IAAI,eAE3BtB,KAAKC,YAAc,CACjB,CACEL,GAAI,SACJgB,YAAa,SACbJ,QAASR,KAAKkB,eAAe,cAE/B,CACEtB,GAAI,MACJgB,YAAa,uBACbJ,QAASR,KAAKkB,eAAe,4BAE/B,CACEtB,GAAI,MACJgB,YAAa,kBACbJ,QAASR,KAAKkB,eAAe,wBAIjClB,KAAKC,YAAYC,SAASC,IACxBH,KAAKwB,QAAQC,YAAYtB,EAASK,QAAO,IAG3C,IAAIkB,EAAS1B,KAAK2B,aAAa,CAACC,KAAM,WACtCF,EAAOhB,UAAS,iJAEiCmB,EAAAtD,aAEjDmD,EAAOD,YAAYzB,KAAKwB,QAC1B,EAUFM,eAAeC,OAAO,kBAAmBjD","sources":["node_modules/@parcel/runtime-js/lib/runtime-485ade996c73f7aa.js","node_modules/@parcel/runtime-js/lib/runtime-c0665e2809cfadba.js","js/adr-result-list.js"],"sourcesContent":["require('./helpers/bundle-manifest').register(JSON.parse(\"{\\\"fMMq7\\\":\\\"index.f529d83e.js\\\",\\\"gbcXk\\\":\\\"style.9d159f0e.css\\\",\\\"hwmB9\\\":\\\"background.761bc37b.jpg\\\",\\\"d3YkH\\\":\\\"artwork-suzuha.09fac1ca.png\\\",\\\"aroW2\\\":\\\"artwork-ede.54057cad.png\\\",\\\"ilpGW\\\":\\\"cover-renaissance-s4-1024.6b8555ec.png\\\",\\\"6Vjqf\\\":\\\"artwork-statue-chateau-s4.d48a5537.png\\\",\\\"gR7QX\\\":\\\"artwork-lecture-s4.7439fb69.png\\\"}\"));","module.exports = new __parcel__URL__(require('./helpers/bundle-manifest').resolve(\"gbcXk\")).toString();","import styleUrl from \"url:../styles/style.css\";\n\nconst position1 = '0px'\nconst position2 = '50px'\nconst position3 = '100px'\n\nclass AdrResultList extends HTMLElement {\n\n static get observedAttributes() {\n return ['score']\n }\n\n attributeChangedCallback(_, __, newValue) {\n let score = JSON.parse(newValue)\n let results = []\n // We need to transform the score dictionary into an array...\n for (let [key, value] of Object.entries(score)) {\n results.push({\n id: key,\n value\n })\n }\n // ...in order to sort this array by score\n results = results.sort((a, b) => b.value - a.value)\n\n // Then for each book, apply margin-top depending on its index in results\n this.bookListing.forEach((bookItem) => {\n let ranking = this.bookPosition(results, bookItem.id)\n let marginValue = position1 \n switch(ranking.position) {\n case 2:\n marginValue = position2\n break;\n case 3:\n marginValue = position3\n break\n }\n bookItem.element.style['margin-top'] = marginValue\n bookItem.element.innerHTML = `${ranking.rank}. ${bookItem.initialHTML}`\n })\n \n }\n\n bookPosition(results, bookId) {\n // Find the first (and only) element corresponding to the bookId in the results array\n let resultItem = results.find(({ id }) => id === bookId)\n // Find the first element with the same score as the found book\n let firstScoreItem = results.find(({ value }) => resultItem.value === value)\n // Then return the index of this element + 1 to get its position\n return {\n // The rank is the actual rank related to the score\n rank: results.indexOf(firstScoreItem) + 1,\n // The position id for the display order of the boxes\n position: results.indexOf(resultItem) + 1\n }\n }\n\n constructor() {\n super()\n this.wrapper = document.createElement('div')\n this.wrapper.classList.add('result-list')\n\n this.bookListing = [\n { \n id: 'suzuha', \n initialHTML: 'Suzuha',\n element: this.createBookItem('1. Suzuha')\n },\n { \n id: 'ede', \n initialHTML: 'L\\'Enfant des Esprits',\n element: this.createBookItem('2. L\\'Enfant des Esprits') \n },\n { \n id: 'vdy',\n initialHTML: 'Le Voeu de Yoko',\n element: this.createBookItem('3. Le Voeu de Yoko')\n }\n ]\n\n this.bookListing.forEach((bookItem) => {\n this.wrapper.appendChild(bookItem.element)\n })\n\n var shadow = this.attachShadow({mode: 'closed'})\n shadow.innerHTML = `\n \n \n `\n shadow.appendChild(this.wrapper)\n }\n\n createBookItem(innerHTML) {\n let bookItem = document.createElement('p')\n bookItem.classList.add('result-item')\n bookItem.innerHTML = innerHTML\n return bookItem\n }\n}\n\ncustomElements.define('adr-result-list', AdrResultList)"],"names":["parcelRequire","register","JSON","parse","$7c2b628dc2e2d7cd$exports","URL","resolve","import","meta","url","toString","$0d8c9b79c9db4877$var$AdrResultList","HTMLElement","observedAttributes","attributeChangedCallback","_","__","newValue","score","results","key","value","Object","entries","push","id","sort","a","b","this","bookListing","forEach","bookItem","ranking","bookPosition","marginValue","position","element","style","innerHTML","rank","initialHTML","bookId","resultItem","find","firstScoreItem","indexOf","createBookItem","document","createElement","classList","add","super","wrapper","appendChild","shadow","attachShadow","mode","$parcel$interopDefault","customElements","define"],"version":3,"file":"index.f529d83e.js.map"} \ No newline at end of file +{"mappings":"qhBAAAA,EAAA,SAAAC,SAA8CC,KAAKC,MAAM,8b,MCAzDC,EAAc,IAAAC,IAAuBL,EAAA,SAAAM,QAA6C,SAAOC,OAAAC,KAAAC,KAAGC,W,MCMtFC,UAAsBC,YAEfC,gCACT,MAAO,CAAC,QACV,CAEAC,yBAAyBC,EAAGC,EAAIC,GAC9B,IAAIC,EAAQhB,KAAKC,MAAMc,GACnBE,EAAU,GAEd,IAAK,IAAKC,EAAKC,KAAUC,O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tD,aAEjDmD,EAAOD,YAAYzB,KAAKwB,QAC1B,EAUFM,eAAeC,OAAO,kBAAmBjD","sources":["node_modules/@parcel/runtime-js/lib/runtime-485ade996c73f7aa.js","node_modules/@parcel/runtime-js/lib/runtime-c0665e2809cfadba.js","js/adr-result-list.js"],"sourcesContent":["require('./helpers/bundle-manifest').register(JSON.parse(\"{\\\"fMMq7\\\":\\\"index.f434942e.js\\\",\\\"gbcXk\\\":\\\"style.695090bc.css\\\",\\\"hwmB9\\\":\\\"background.761bc37b.jpg\\\",\\\"d3YkH\\\":\\\"artwork-suzuha.09fac1ca.png\\\",\\\"aroW2\\\":\\\"artwork-ede.54057cad.png\\\",\\\"ilpGW\\\":\\\"cover-renaissance-s4-1024.6b8555ec.png\\\",\\\"6Vjqf\\\":\\\"artwork-statue-chateau-s4.d48a5537.png\\\",\\\"gR7QX\\\":\\\"artwork-lecture-s4.7439fb69.png\\\"}\"));","module.exports = new __parcel__URL__(require('./helpers/bundle-manifest').resolve(\"gbcXk\")).toString();","import styleUrl from \"url:../styles/style.css\";\n\nconst position1 = '0px'\nconst position2 = '50px'\nconst position3 = '100px'\n\nclass AdrResultList extends HTMLElement {\n\n static get observedAttributes() {\n return ['score']\n }\n\n attributeChangedCallback(_, __, newValue) {\n let score = JSON.parse(newValue)\n let results = []\n // We need to transform the score dictionary into an array...\n for (let [key, value] of Object.entries(score)) {\n results.push({\n id: key,\n value\n })\n }\n // ...in order to sort this array by score\n results = results.sort((a, b) => b.value - a.value)\n\n // Then for each book, apply margin-top depending on its index in results\n this.bookListing.forEach((bookItem) => {\n let ranking = this.bookPosition(results, bookItem.id)\n let marginValue = position1 \n switch(ranking.position) {\n case 2:\n marginValue = position2\n break;\n case 3:\n marginValue = position3\n break\n }\n bookItem.element.style['margin-top'] = marginValue\n bookItem.element.innerHTML = `${ranking.rank}. ${bookItem.initialHTML}`\n })\n \n }\n\n bookPosition(results, bookId) {\n // Find the first (and only) element corresponding to the bookId in the results array\n let resultItem = results.find(({ id }) => id === bookId)\n // Find the first element with the same score as the found book\n let firstScoreItem = results.find(({ value }) => resultItem.value === value)\n // Then return the index of this element + 1 to get its position\n return {\n // The rank is the actual rank related to the score\n rank: results.indexOf(firstScoreItem) + 1,\n // The position id for the display order of the boxes\n position: results.indexOf(resultItem) + 1\n }\n }\n\n constructor() {\n super()\n this.wrapper = document.createElement('div')\n this.wrapper.classList.add('result-list')\n\n this.bookListing = [\n { \n id: 'suzuha', \n initialHTML: 'Suzuha',\n element: this.createBookItem('1. Suzuha')\n },\n { \n id: 'ede', \n initialHTML: 'L\\'Enfant des Esprits',\n element: this.createBookItem('2. L\\'Enfant des Esprits') \n },\n { \n id: 'vdy',\n initialHTML: 'Le Voeu de Yoko',\n element: this.createBookItem('3. Le Voeu de Yoko')\n }\n ]\n\n this.bookListing.forEach((bookItem) => {\n this.wrapper.appendChild(bookItem.element)\n })\n\n var shadow = this.attachShadow({mode: 'closed'})\n shadow.innerHTML = `\n \n \n `\n shadow.appendChild(this.wrapper)\n }\n\n createBookItem(innerHTML) {\n let bookItem = document.createElement('p')\n bookItem.classList.add('result-item')\n bookItem.innerHTML = innerHTML\n return bookItem\n }\n}\n\ncustomElements.define('adr-result-list', AdrResultList)"],"names":["parcelRequire","register","JSON","parse","$7c2b628dc2e2d7cd$exports","URL","resolve","import","meta","url","toString","$0d8c9b79c9db4877$var$AdrResultList","HTMLElement","observedAttributes","attributeChangedCallback","_","__","newValue","score","results","key","value","Object","entries","push","id","sort","a","b","this","bookListing","forEach","bookItem","ranking","bookPosition","marginValue","position","element","style","innerHTML","rank","initialHTML","bookId","resultItem","find","firstScoreItem","indexOf","createBookItem","document","createElement","classList","add","super","wrapper","appendChild","shadow","attachShadow","mode","$parcel$interopDefault","customElements","define"],"version":3,"file":"index.f434942e.js.map"} \ No newline at end of file diff --git a/index.47c23ee8.js b/index.fdddd637.js similarity index 95% rename from index.47c23ee8.js rename to index.fdddd637.js index 34adb425..d7a65d7d 100644 --- a/index.47c23ee8.js +++ b/index.fdddd637.js @@ -1,2 +1,2 @@ -function e(e,r,t,n){Object.defineProperty(e,r,{get:t,set:n,enumerable:!0,configurable:!0})}function r(e){return e&&e.__esModule?e.default:e}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},n={},o={},s=t.parcelRequire1ebe;null==s&&((s=function(e){if(e in n)return n[e].exports;if(e in o){var r=o[e];delete o[e];var t={id:e,exports:{}};return n[e]=t,r.call(t.exports,t,t.exports),t.exports}var s=new Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s}).register=function(e,r){o[e]=r},t.parcelRequire1ebe=s),s.register("hqokU",(function(r,t){var n,o;e(r.exports,"register",(function(){return n}),(function(e){return n=e})),e(r.exports,"resolve",(function(){return o}),(function(e){return o=e}));var s={};n=function(e){for(var r=Object.keys(e),t=0;t\n
\n
🔗
\n
\n ${this.getAttribute("title")}\n
\n sur ${this.getAttribute("platform")}\n
\n
\n \n `;var t=this.attachShadow({mode:"closed"});t.innerHTML=`\n \n \n `,t.appendChild(e)}}customElements.define("adr-article-button",a); -//# sourceMappingURL=index.47c23ee8.js.map +function e(e,r,t,n){Object.defineProperty(e,r,{get:t,set:n,enumerable:!0,configurable:!0})}function r(e){return e&&e.__esModule?e.default:e}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},n={},o={},s=t.parcelRequire1ebe;null==s&&((s=function(e){if(e in n)return n[e].exports;if(e in o){var r=o[e];delete o[e];var t={id:e,exports:{}};return n[e]=t,r.call(t.exports,t,t.exports),t.exports}var s=new Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s}).register=function(e,r){o[e]=r},t.parcelRequire1ebe=s),s.register("hqokU",(function(r,t){var n,o;e(r.exports,"register",(function(){return n}),(function(e){return n=e})),e(r.exports,"resolve",(function(){return o}),(function(e){return o=e}));var s={};n=function(e){for(var r=Object.keys(e),t=0;t\n
\n
🔗
\n
\n ${this.getAttribute("title")}\n
\n sur ${this.getAttribute("platform")}\n
\n
\n \n `;var t=this.attachShadow({mode:"closed"});t.innerHTML=`\n \n \n `,t.appendChild(e)}}customElements.define("adr-article-button",a); +//# sourceMappingURL=index.fdddd637.js.map diff --git a/index.47c23ee8.js.map b/index.fdddd637.js.map similarity index 94% rename from index.47c23ee8.js.map rename to index.fdddd637.js.map index 585d5d53..5c21a4f8 100644 --- a/index.47c23ee8.js.map +++ b/index.fdddd637.js.map @@ -1 +1 @@ -{"mappings":"kpBAsBA,IAAuBA,EACDC,E,iJArBtB,IAAIC,EAAU,CAAC,EAoBfF,E,SAlBkBG,GAGhB,IAFA,IAAIC,EAAOC,OAAOD,KAAKD,GAEdG,EAAI,EAAGA,EAAIF,EAAKG,OAAQD,IAC/BJ,EAAQE,EAAKE,IAAMH,EAAMC,EAAKE,GAElC,EAaAL,E,SAXiBO,GACf,IAAIC,EAAWP,EAAQM,GAEvB,GAAgB,MAAZC,EACF,MAAM,IAAIC,MAAM,oCAAsCF,GAGxD,OAAOC,CACT,C,ICpBAE,EAAA,SAAAC,SAA8CC,KAAKC,MAAM,8b,MCAzDC,EAAc,IAAAC,IAAuBL,EAAA,SAAAM,QAA6C,SAAOC,OAAAC,KAAAC,KAAGC,W,MCEtFC,UAAyBC,Y,cAE3BC,QACA,IAAIC,EAAUC,SAASC,cAAc,OACrCF,EAAQG,UAAS,8IAINC,KAAKC,aAAa,qKAIZD,KAAKC,aAAa,gEAEfD,KAAKC,aAAa,yEAKtC,IAAIC,EAASF,KAAKG,aAAa,CAACC,KAAM,WACtCF,EAAOH,UAAS,iJAEiCM,EAAAnB,aAEjDgB,EAAOI,YAAYV,EACrB,EAGFW,eAAeC,OAAO,qBAAsBf","sources":["node_modules/@parcel/runtime-js/lib/helpers/bundle-manifest.js","node_modules/@parcel/runtime-js/lib/runtime-2a5d0e7fea06a091.js","node_modules/@parcel/runtime-js/lib/runtime-c0665e2809cfadba.js","js/adr-article-button.js"],"sourcesContent":["\"use strict\";\n\nvar mapping = {};\n\nfunction register(pairs) {\n var keys = Object.keys(pairs);\n\n for (var i = 0; i < keys.length; i++) {\n mapping[keys[i]] = pairs[keys[i]];\n }\n}\n\nfunction resolve(id) {\n var resolved = mapping[id];\n\n if (resolved == null) {\n throw new Error('Could not resolve bundle with id ' + id);\n }\n\n return resolved;\n}\n\nmodule.exports.register = register;\nmodule.exports.resolve = resolve;","require('./helpers/bundle-manifest').register(JSON.parse(\"{\\\"9sjbO\\\":\\\"index.47c23ee8.js\\\",\\\"gbcXk\\\":\\\"style.9d159f0e.css\\\",\\\"hwmB9\\\":\\\"background.761bc37b.jpg\\\",\\\"d3YkH\\\":\\\"artwork-suzuha.09fac1ca.png\\\",\\\"aroW2\\\":\\\"artwork-ede.54057cad.png\\\",\\\"ilpGW\\\":\\\"cover-renaissance-s4-1024.6b8555ec.png\\\",\\\"6Vjqf\\\":\\\"artwork-statue-chateau-s4.d48a5537.png\\\",\\\"gR7QX\\\":\\\"artwork-lecture-s4.7439fb69.png\\\"}\"));","module.exports = new __parcel__URL__(require('./helpers/bundle-manifest').resolve(\"gbcXk\")).toString();","import styleUrl from \"url:../styles/style.css\";\n\nclass AdrArticleButton extends HTMLElement {\n constructor() {\n super()\n var wrapper = document.createElement('div')\n wrapper.innerHTML = `\n \n
\n
🔗
\n
\n ${this.getAttribute('title')}\n
\n sur ${this.getAttribute('platform')}\n
\n
\n
\n `\n var shadow = this.attachShadow({mode: 'closed'})\n shadow.innerHTML = `\n \n \n `\n shadow.appendChild(wrapper)\n }\n}\n\ncustomElements.define('adr-article-button', AdrArticleButton)"],"names":["$caf7be09e81127c6$export$6503ec6e8aabbaf","$caf7be09e81127c6$export$f7ad0328861e2f03","$caf7be09e81127c6$var$mapping","pairs","keys","Object","i","length","id","resolved","Error","parcelRequire","register","JSON","parse","$7c2b628dc2e2d7cd$exports","URL","resolve","import","meta","url","toString","$ced230eb3aa0ac0f$var$AdrArticleButton","HTMLElement","super","wrapper","document","createElement","innerHTML","this","getAttribute","shadow","attachShadow","mode","$parcel$interopDefault","appendChild","customElements","define"],"version":3,"file":"index.47c23ee8.js.map"} \ No newline at end of file +{"mappings":"kpBAsBA,IAAuBA,EACDC,E,iJArBtB,IAAIC,EAAU,CAAC,EAoBfF,E,SAlBkBG,GAGhB,IAFA,IAAIC,EAAOC,OAAOD,KAAKD,GAEdG,EAAI,EAAGA,EAAIF,EAAKG,OAAQD,IAC/BJ,EAAQE,EAAKE,IAAMH,EAAMC,EAAKE,GAElC,EAaAL,E,SAXiBO,GACf,IAAIC,EAAWP,EAAQM,GAEvB,GAAgB,MAAZC,EACF,MAAM,IAAIC,MAAM,oCAAsCF,GAGxD,OAAOC,CACT,C,ICpBAE,EAAA,SAAAC,SAA8CC,KAAKC,MAAM,8b,MCAzDC,EAAc,IAAAC,IAAuBL,EAAA,SAAAM,QAA6C,SAAOC,OAAAC,KAAAC,KAAGC,W,MCEtFC,UAAyBC,Y,cAE3BC,QACA,IAAIC,EAAUC,SAASC,cAAc,OACrCF,EAAQG,UAAS,8IAINC,KAAKC,aAAa,qKAIZD,KAAKC,aAAa,gEAEfD,KAAKC,aAAa,yEAKtC,IAAIC,EAASF,KAAKG,aAAa,CAACC,KAAM,WACtCF,EAAOH,UAAS,iJAEiCM,EAAAnB,aAEjDgB,EAAOI,YAAYV,EACrB,EAGFW,eAAeC,OAAO,qBAAsBf","sources":["node_modules/@parcel/runtime-js/lib/helpers/bundle-manifest.js","node_modules/@parcel/runtime-js/lib/runtime-2a5d0e7fea06a091.js","node_modules/@parcel/runtime-js/lib/runtime-c0665e2809cfadba.js","js/adr-article-button.js"],"sourcesContent":["\"use strict\";\n\nvar mapping = {};\n\nfunction register(pairs) {\n var keys = Object.keys(pairs);\n\n for (var i = 0; i < keys.length; i++) {\n mapping[keys[i]] = pairs[keys[i]];\n }\n}\n\nfunction resolve(id) {\n var resolved = mapping[id];\n\n if (resolved == null) {\n throw new Error('Could not resolve bundle with id ' + id);\n }\n\n return resolved;\n}\n\nmodule.exports.register = register;\nmodule.exports.resolve = resolve;","require('./helpers/bundle-manifest').register(JSON.parse(\"{\\\"9sjbO\\\":\\\"index.fdddd637.js\\\",\\\"gbcXk\\\":\\\"style.695090bc.css\\\",\\\"hwmB9\\\":\\\"background.761bc37b.jpg\\\",\\\"d3YkH\\\":\\\"artwork-suzuha.09fac1ca.png\\\",\\\"aroW2\\\":\\\"artwork-ede.54057cad.png\\\",\\\"ilpGW\\\":\\\"cover-renaissance-s4-1024.6b8555ec.png\\\",\\\"6Vjqf\\\":\\\"artwork-statue-chateau-s4.d48a5537.png\\\",\\\"gR7QX\\\":\\\"artwork-lecture-s4.7439fb69.png\\\"}\"));","module.exports = new __parcel__URL__(require('./helpers/bundle-manifest').resolve(\"gbcXk\")).toString();","import styleUrl from \"url:../styles/style.css\";\n\nclass AdrArticleButton extends HTMLElement {\n constructor() {\n super()\n var wrapper = document.createElement('div')\n wrapper.innerHTML = `\n \n
\n
🔗
\n
\n ${this.getAttribute('title')}\n
\n sur ${this.getAttribute('platform')}\n
\n
\n
\n `\n var shadow = this.attachShadow({mode: 'closed'})\n shadow.innerHTML = `\n \n \n `\n shadow.appendChild(wrapper)\n }\n}\n\ncustomElements.define('adr-article-button', AdrArticleButton)"],"names":["$caf7be09e81127c6$export$6503ec6e8aabbaf","$caf7be09e81127c6$export$f7ad0328861e2f03","$caf7be09e81127c6$var$mapping","pairs","keys","Object","i","length","id","resolved","Error","parcelRequire","register","JSON","parse","$7c2b628dc2e2d7cd$exports","URL","resolve","import","meta","url","toString","$ced230eb3aa0ac0f$var$AdrArticleButton","HTMLElement","super","wrapper","document","createElement","innerHTML","this","getAttribute","shadow","attachShadow","mode","$parcel$interopDefault","appendChild","customElements","define"],"version":3,"file":"index.fdddd637.js.map"} \ No newline at end of file diff --git a/index.html b/index.html index 14724126..e59a3502 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -Académie des Renards

Une fantasy pour toutes et tous


* Pour tous les budgets

Pour que le plaisir de lire n'ait pas de prix, les livres numériques de l'Académie des Renards sont disponibles gratuitement sous licence CC BY-NC-ND. Chaque lecteur peut choisir de soutenir financièrement le projet.

* Pour tous les goûts

Chaque histoire possède sa propre ambiance et son propre style narratif. Le monde de l'Académie des Renards se découvre en plusieurs lieux et plusieurs époques.

* Et pour les oreilles ?

Les livres numériques de l'Académie des Renards ne sont pas encore disponibles en livres audio. Ce projet constitue le prochain cap pour l'académie en parallèle de la publication des romans.

Quelle lecture choisir ?

Pour échanger avec l'auteure : academiedesrenards@gmail.com

Hébergé par GitHub Inc - 88 Colin P Kelly Jr Street San Francisco, CA 94107 United States - 1-415-448-6673

\ No newline at end of file +Académie des Renards

Une fantasy pour toutes et tous


* Pour tous les budgets

Pour que le plaisir de lire n'ait pas de prix, les livres numériques de l'Académie des Renards sont disponibles gratuitement sous licence CC BY-NC-ND. Chaque lecteur peut choisir de soutenir financièrement le projet.

* Pour tous les goûts

Chaque histoire possède sa propre ambiance et son propre style narratif. Le monde de l'Académie des Renards se découvre en plusieurs lieux et plusieurs époques.

* Et pour les oreilles ?

Les livres numériques de l'Académie des Renards ne sont pas encore disponibles en livres audio. Ce projet constitue le prochain cap pour l'académie en parallèle de la publication des romans.

Quelle lecture choisir ?

Pour échanger avec l'auteure : academiedesrenards@gmail.com

Hébergé par GitHub Inc - 88 Colin P Kelly Jr Street San Francisco, CA 94107 United States - 1-415-448-6673

\ No newline at end of file diff --git a/style.695090bc.css b/style.695090bc.css new file mode 100644 index 00000000..09234ee0 --- /dev/null +++ b/style.695090bc.css @@ -0,0 +1,2 @@ +.article-button{padding:.8em 1.2em;white-space:inherit;width:100%}.article-button .article-button-icon{text-align:left}@media (min-width:72em){.article-button{width:80%}}@media (min-width:86em){.article-button{width:70%}}.pure-img-responsive{height:auto;max-width:100%}.pure-menu{background:#191818;border:none;color:#999}.pure-menu a{border:none;color:#999;padding:.6em}.pure-menu a.pure-menu-selected{color:#eee}.pure-menu ul{background:#191818;border:none}.pure-menu .menu-item-divided,.pure-menu ul{border-top:1px solid #333}.pure-menu li a:hover{background:#332b38;color:#eee}.pure-menu .pure-menu-selected,.pure-menu li a:focus{background:#6f5aa1;text-transform:none}.pure-menu .pure-menu-selected .pure-menu-link:visited{color:#eee}#layout,#menu,.menu-link{-webkit-transition:all .2s ease-out;-moz-transition:all .2s ease-out;-ms-transition:all .2s ease-out;-o-transition:all .2s ease-out;transition:all .2s ease-out}#layout{left:0;padding-left:0;position:relative}#layout.active #menu{left:260px;width:260px}#layout.active .menu-link{left:260px}#main{width:100%}.content{line-height:1.6em;margin:0 auto 50px;max-width:800px;padding:0 2em}.header{border-bottom:1px solid #eee;color:#333;margin:0;padding:2.5em 2em 0;text-align:center}.header h1{font-size:3em;font-weight:300;margin:.2em 0}.header h2{color:#ccc;font-weight:300;margin-top:0;padding:0}.content-subhead{color:#888;font-weight:300;margin:50px 0 20px}#menu{-webkit-overflow-scrolling:touch;background:#191818;bottom:0;left:0;margin-left:-260px;overflow-y:auto;position:fixed;top:0;width:260px;z-index:50}#menu a.pure-menu-link{font-weight:700}#sorting-trigger.pure-menu-item,#sorting-trigger.pure-menu-item:focus{background:#332b38}.menu-link{background:#191818;display:block;font-size:10px;height:auto;left:0;padding:2.1em 1.6em;position:fixed;top:0;width:2em;z-index:10}.menu-link:focus,.menu-link:hover{background:#332b38}.menu-link span{background-color:#eee;display:block;height:.2em;position:relative;width:100%}.menu-link span:after,.menu-link span:before{background-color:#eee;content:" ";height:.2em;margin-top:-.6em;position:absolute;width:100%}.menu-link span:after{margin-top:.6em}a.support-button{background-color:#6f5aa1;color:#eee;font-weight:700}.rs-links{display:flex;flex-flow:wrap;justify-content:center;padding-left:25px;padding-right:25px}.rs-links a{color:#eee;padding:0;text-decoration:none}.rs-link{padding:15px}.rs-link:hover,a:focus .rs-link{background:#332b38}@media (min-width:48em){.content,.header{padding-left:2em;padding-right:2em}#layout{left:0;padding-left:260px}#menu{left:260px}.menu-link{display:none;left:260px;position:fixed}#layout.active .menu-link{left:260px}}@media (max-width:48em){#layout.active{left:260px;position:relative}#menuList{margin-left:50px}}.wtr-horizontal-menu{margin:0}.question-number{font-size:smaller;text-align:right}.question-number p{margin:0}.result-list{display:block;min-height:150px}.result-item{background-color:#6f5aa1;border-radius:2px;margin-bottom:4px;margin-top:4px;min-width:200px;padding:10px;position:absolute;transition-duration:.8s;transition-property:margin-top}.result-item--1{margin-top:0}.result-item--2{margin-top:50px}.result-item--3{margin-top:100px}.pure-button,.pure-g [class*=pure-u]{font-family:Roboto,Segoe UI,-apple-system,BlinkMacSystemFont,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.pure-button{box-shadow:2px 2px 2px #191818;margin-bottom:10px}.pure-button--black{background-color:#191818;color:#eee}.pure-button--black:focus,.pure-button--black:hover{background-color:#332b38}body{background-color:#191818;background-position:50%;background-repeat:no-repeat;background-size:cover;font-family:Roboto,Segoe UI,-apple-system,BlinkMacSystemFont,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;letter-spacing:0;line-height:1.4rem}a,body{color:#eee}h1{font-size:1.5rem}h1,h2{font-family:Tahoma,Verdana,Roboto,Segoe UI,-apple-system,BlinkMacSystemFont,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-weight:700;margin-top:20px}h2{font-size:1.3rem}.mentions{color:#999;font-size:.8rem}.container{min-height:calc(100vh - 170px)}.content{padding-top:50px}.centered{text-align:center}.right{text-align:right}.margin-bottom--medium{margin-bottom:20px}.padding--small{padding:10px}.padding--medium{padding:20px}.padding--large{padding:40px}.inline{display:inline-block}.vertical-center{vertical-align:super}.infobox{background-color:#453864a3;border-radius:2px;padding:20px;text-align:center}.infobox,.video-container{overflow:hidden}.author-header{display:flex;padding-bottom:20px}.author-header .author-header--img-container{min-width:100px}.author-header .author-header--img-container img{border-radius:50%}.author-header p{padding-left:20px}.book-background{width:100%}.background--classic{background-image:url(background.761bc37b.jpg);background-position:100%}.background--classic,.background--suzuha{background-repeat:no-repeat;background-size:cover}.background--suzuha{background-image:url(artwork-suzuha.09fac1ca.png);background-position:top}.background--ede{background-image:url(artwork-ede.54057cad.png);background-position:0}.background--ede,.background--vdy{background-repeat:no-repeat;background-size:cover}.background--vdy{background-image:url(cover-renaissance-s4-1024.6b8555ec.png);background-position:100% 0}.background--renard{background-image:url(artwork-statue-chateau-s4.d48a5537.png)}.background--lecture,.background--renard{background-position:0;background-repeat:no-repeat;background-size:cover}.background--lecture{background-image:url(artwork-lecture-s4.7439fb69.png)}.book{background-color:#453864a3}.quote{margin-bottom:10px;padding:4px;text-align:center}.download-button{height:60px;margin-right:3px;padding:5px 0 0;width:112px}.download-button img{height:50px}#info p{margin-top:0}#info .title{background-color:#453864a3}#info .title h2{margin:0}#info .info-item{background-color:#1918183d;text-align:justify}.footer{height:60px;letter-spacing:0}.hidden{display:none}.primary-button{background-color:#453864a3;font-weight:700}.primary-button:focus,.primary-button:hover{background-color:#6f5aa1}.pure-button.pa{background-color:#d14b52;color:#eee}.book-links{display:flex;flex-flow:row wrap;justify-content:space-between}.show-from-left{animation:from-left .6s}@keyframes from-left{0%{opacity:0;transform:translateX(-80px)}to{opacity:1;transform:translateX(0)}}.show-from-right{animation:from-right .6s}@keyframes from-right{0%{opacity:0;transform:translateX(80px)}to{opacity:1;transform:translateX(0)}} +/*# sourceMappingURL=style.695090bc.css.map */ diff --git a/style.695090bc.css.map b/style.695090bc.css.map new file mode 100644 index 00000000..2d08a563 --- /dev/null +++ b/style.695090bc.css.map @@ -0,0 +1 @@ +{"mappings":"AAEA,gBAEE,kBAAA,CAIA,mBAAA,CAFA,UCMF,CDFE,qCACE,eCIJ,CDAA,wBACE,gBAEE,SCEF,CACF,CDCA,wBACE,gBAEE,SCCF,CACF,CCxBA,qBAEE,WAAA,CADA,cD4BF,CCzBA,WACE,kBAAA,CAEA,WAAA,CADA,UD4BF,CC1BE,aAEE,WAAA,CADA,UAAA,CAEA,YD4BJ,CC3BI,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I,iDACE,iBHsSN,CGnSE,iBACE,iBHqSJ,CGhSA,iBACE,UHmSF,CG1RA,qBALE,8DAAA,CAEA,wBHmSF,CG7RA,yCALE,2BAAA,CAFA,qBH0SF,CGnSA,oBARE,kEAAA,CAEA,uBHySF,CGhSA,iBAXE,+DAAA,CAEA,qBH+SF,CGnSA,kCAXE,2BAAA,CAFA,qBHsTF,CGzSA,iBAdE,6EAAA,CAEA,0BHqTF,CGtSA,oBAjBE,6EH6TF,CGzSA,yCAlBE,qBAAA,CACA,2BAAA,CAFA,qBHkUF,CG/SA,qBApBE,sEHmUF,CG3SA,MACE,0BH6SF,CG1SA,OAGE,kBAAA,CADA,WAAA,CADA,iBH8SF,CGxSA,iBAIE,WAAA,CAHA,gBAAA,CAEA,eAAA,CAEA,WH2SF,CG1SE,qBACE,WH4SJ,CGhSE,QACE,YHmSJ,CGjSE,aACE,0BHmSJ,CGlSI,gBACE,QHoSN,CGjSE,iBACE,0BAAA,CACA,kBHmSJ,CG9RA,QACE,WAAA,CACA,gBHiSF,CG7RA,QACE,YHgSF,CG5RA,gBACE,0BAAA,CACA,eH+RF,CG9RE,4CACE,wBHgSJ,CG3RA,gBACE,wBAAA,CACA,UH8RF,CG1RA,YACE,YAAA,CACA,kBAAA,CACA,6BH6RF,CG1RA,gBACE,uBH4RF,CGzRA,qBACE,GACE,SAAA,CACA,2BH2RF,CGzRA,GACE,SAAA,CACA,uBH2RF,CACF,CGxRA,iBACE,wBH0RF,CGvRA,sBACE,GACE,SAAA,CACA,0BHyRF,CGvRA,GACE,SAAA,CACA,uBHyRF,CACF","sources":["styles/_adr-article-button.scss","%3Cinput%20css%20_mPVTs%3E","styles/_menu.scss","styles/_what-to-read.scss","styles/style.scss"],"sourcesContent":["@use 'variables';\n\n.article-button {\n /* override pure-button to have more space to read */\n padding: .8em 1.2em;\n /* Set a width to have all buttons at the same size */\n width: 100%;\n /* Text is not wrapped by default on elements */\n white-space: inherit;\n\n .article-button-icon {\n text-align: left;\n }\n}\n\n@media (min-width: 72em) {\n .article-button {\n /* Set a width to have all buttons at the same size (bigger screen) */\n width: 80%;\n }\n}\n\n@media (min-width: 86em) {\n .article-button {\n /* Set a width to have all buttons at the same size (bigger screen) */\n width: 70%;\n }\n}\n","/* Fonts */\n/* Backgrounds colors */\n/* Texts colors */\n/* Other colors */\n/* Sizes */\n.article-button {\n /* override pure-button to have more space to read */\n padding: 0.8em 1.2em;\n /* Set a width to have all buttons at the same size */\n width: 100%;\n /* Text is not wrapped by default on elements */\n white-space: inherit;\n}\n.article-button .article-button-icon {\n text-align: left;\n}\n@media (min-width: 72em) {\n .article-button {\n /* Set a width to have all buttons at the same size (bigger screen) */\n width: 80%;\n }\n}\n@media (min-width: 86em) {\n .article-button {\n /* Set a width to have all buttons at the same size (bigger screen) */\n width: 70%;\n }\n}\n/* Pure-menu CSS override */\n.pure-img-responsive {\n max-width: 100%;\n height: auto;\n}\n.pure-menu {\n background: #191818;\n color: #999;\n border: none;\n}\n.pure-menu a {\n color: #999;\n border: none;\n padding: 0.6em 0.6em 0.6em 0.6em;\n}\n.pure-menu a.pure-menu-selected {\n color: #eee;\n}\n.pure-menu ul {\n border: none;\n background: #191818;\n border-top: 1px solid #333;\n}\n.pure-menu .menu-item-divided {\n border-top: 1px solid #333;\n}\n.pure-menu li a:hover {\n background: #332B38;\n color: #eee;\n}\n.pure-menu li a:focus {\n text-transform: none;\n background: #6f5aa1;\n}\n.pure-menu .pure-menu-selected {\n text-transform: none;\n background: #6f5aa1;\n}\n.pure-menu .pure-menu-selected .pure-menu-link:visited {\n color: #eee;\n}\n/*\nAdd transition to containers so they can push in and out.\n*/\n#layout,\n#menu,\n.menu-link {\n -webkit-transition: all 0.2s ease-out;\n -moz-transition: all 0.2s ease-out;\n -ms-transition: all 0.2s ease-out;\n -o-transition: all 0.2s ease-out;\n transition: all 0.2s ease-out;\n}\n/*\nThis is the parent `
` that contains the menu and the content area.\n*/\n#layout {\n position: relative;\n left: 0;\n padding-left: 0;\n}\n#layout.active #menu {\n left: 260px;\n width: 260px;\n}\n#layout.active .menu-link {\n left: 260px;\n}\n#main {\n width: 100%;\n}\n.content {\n margin: 0 auto;\n padding: 0 2em;\n max-width: 800px;\n margin-bottom: 50px;\n line-height: 1.6em;\n}\n.header {\n margin: 0;\n color: #333;\n text-align: center;\n padding: 2.5em 2em 0;\n border-bottom: 1px solid #eee;\n}\n.header h1 {\n margin: 0.2em 0;\n font-size: 3em;\n font-weight: 300;\n}\n.header h2 {\n font-weight: 300;\n color: #ccc;\n padding: 0;\n margin-top: 0;\n}\n.content-subhead {\n margin: 50px 0 20px 0;\n font-weight: 300;\n color: #888;\n}\n#menu {\n margin-left: -260px;\n width: 260px;\n position: fixed;\n top: 0;\n left: 0;\n bottom: 0;\n z-index: 50;\n background: #191818;\n overflow-y: auto;\n -webkit-overflow-scrolling: touch;\n}\n#menu a.pure-menu-link {\n font-weight: bold;\n}\n#sorting-trigger.pure-menu-item,\n#sorting-trigger.pure-menu-item:focus {\n background: #332B38;\n}\n/* -- Dynamic Button For Responsive Menu -------------------------------------*/\n/*\nThe button to open/close the Menu is custom-made and not part of Pure. Here's\nhow it works:\n*/\n/*\n`.menu-link` represents the responsive menu toggle that shows/hides on\nsmall screens.\n*/\n.menu-link {\n position: fixed;\n display: block;\n /* show this only on small screens */\n top: 0;\n left: 0;\n /* \"#menu width\" */\n background: #191818;\n font-size: 10px;\n /* change this value to increase/decrease button size */\n z-index: 10;\n width: 2em;\n height: auto;\n padding: 2.1em 1.6em;\n}\n.menu-link:hover, .menu-link:focus {\n background: #332B38;\n}\n.menu-link span {\n position: relative;\n display: block;\n background-color: #eee;\n width: 100%;\n height: 0.2em;\n}\n.menu-link span:before, .menu-link span:after {\n background-color: #eee;\n width: 100%;\n height: 0.2em;\n position: absolute;\n margin-top: -0.6em;\n content: \" \";\n}\n.menu-link span:after {\n margin-top: 0.6em;\n}\na.support-button {\n background-color: #6f5aa1;\n color: #eee;\n font-weight: bold;\n}\n/** Rs part **/\n.rs-links {\n display: flex;\n flex-flow: wrap;\n justify-content: center;\n /* Prevent buttons to be larger than Ko-Fi button */\n padding-left: 25px;\n padding-right: 25px;\n}\n.rs-links a {\n padding: 0px;\n color: #eee;\n /** BlueSky only **/\n text-decoration: none;\n /** BlueSky only **/\n}\n.rs-link {\n padding: 15px;\n}\n.rs-link:hover,\na:focus .rs-link {\n background: #332B38;\n}\n/* -- Responsive Styles (Media Queries) ------------------------------------- */\n/*\nHides the menu at `48em`, but modify this based on your app's needs.\n*/\n@media (min-width: 48em) {\n .header,\n.content {\n padding-left: 2em;\n padding-right: 2em;\n }\n\n #layout {\n padding-left: 260px;\n /* left col width \"#menu\" */\n left: 0;\n }\n\n #menu {\n left: 260px;\n }\n\n .menu-link {\n position: fixed;\n left: 260px;\n display: none;\n }\n\n #layout.active .menu-link {\n left: 260px;\n }\n}\n@media (max-width: 48em) {\n /* Only apply this when the window is small. Otherwise, the following\n * case results in extra padding on the left:\n * Make the window small.\n * Tap the menu to trigger the active state.\n * Make the window large again.\n */\n #layout.active {\n position: relative;\n left: 260px;\n }\n\n #menuList {\n margin-left: 50px;\n }\n}\n.wtr-horizontal-menu {\n margin: 0px;\n}\n.question-number {\n font-size: smaller;\n text-align: right;\n}\n.question-number p {\n margin: 0px;\n}\n.result-list {\n display: block;\n min-height: 150px;\n}\n.result-item {\n background-color: #6f5aa1;\n border-radius: 2px;\n margin-top: 4px;\n margin-bottom: 4px;\n padding: 10px;\n position: absolute;\n position: absolute;\n min-width: 200px;\n transition-property: margin-top;\n transition-duration: 0.8s;\n}\n.result-item--1 {\n margin-top: 0px;\n}\n.result-item--2 {\n margin-top: 50px;\n}\n.result-item--3 {\n margin-top: 100px;\n}\n/* Pure override */\n.pure-g [class*=pure-u] {\n font-family: Roboto, \"Segoe UI\", -apple-system, BlinkMacSystemFont, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\n}\n/* Pure-button CSS override */\n.pure-button {\n font-family: Roboto, \"Segoe UI\", -apple-system, BlinkMacSystemFont, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\n box-shadow: 2px 2px 2px #191818;\n margin-bottom: 10px;\n}\n.pure-button--black {\n color: #eee;\n background-color: #191818;\n}\n.pure-button--black:hover,\n.pure-button--black:focus {\n background-color: #332B38;\n}\n/** Basic classes and typography **/\nbody {\n font-family: Roboto, \"Segoe UI\", -apple-system, BlinkMacSystemFont, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\n color: #eee;\n background-color: #191818;\n background-size: cover;\n background-position: center center;\n background-repeat: no-repeat;\n letter-spacing: 0;\n line-height: 1.4rem;\n}\na {\n color: #eee;\n}\nh1 {\n font-family: Tahoma, Verdana, Roboto, \"Segoe UI\", -apple-system, BlinkMacSystemFont, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\n font-weight: bold;\n margin-top: 20px;\n font-size: 1.5rem;\n}\nh2 {\n font-family: Tahoma, Verdana, Roboto, \"Segoe UI\", -apple-system, BlinkMacSystemFont, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\n font-weight: bold;\n margin-top: 20px;\n font-size: 1.3rem;\n}\n.mentions {\n font-size: 0.8rem;\n color: #999;\n}\n/** General rules **/\n.container {\n min-height: calc(100vh - 70px - 100px);\n}\n.content {\n padding-top: 50px;\n}\n.centered {\n text-align: center;\n}\n.right {\n text-align: right;\n}\n.margin-bottom--medium {\n margin-bottom: 20px;\n}\n.padding--small {\n padding: 10px;\n}\n.padding--medium {\n padding: 20px;\n}\n.padding--large {\n padding: 40px;\n}\n.inline {\n display: inline-block;\n}\n.vertical-center {\n vertical-align: super;\n}\n/* Reusable elements */\n.infobox {\n background-color: #453864a3;\n border-radius: 2px;\n padding: 20px;\n overflow: hidden;\n text-align: center;\n}\n.video-container {\n overflow: hidden;\n}\n.author-header {\n display: flex;\n padding-bottom: 20px;\n}\n.author-header .author-header--img-container {\n min-width: 100px;\n}\n.author-header .author-header--img-container img {\n border-radius: 50%;\n}\n.author-header p {\n padding-left: 20px;\n}\n/** Page livre **/\n.book-background {\n width: 100%;\n}\n.background--classic {\n background-image: url(\"background.761bc37b.jpg\");\n background-size: cover;\n background-position: center right;\n background-repeat: no-repeat;\n}\n.background--suzuha {\n background-image: url(\"artwork-suzuha.09fac1ca.png\");\n background-size: cover;\n background-position: top center;\n background-repeat: no-repeat;\n}\n.background--ede {\n background-image: url(\"artwork-ede.54057cad.png\");\n background-size: cover;\n background-position: center left;\n background-repeat: no-repeat;\n}\n.background--vdy {\n background-image: url(\"cover-renaissance-s4-1024.6b8555ec.png\");\n background-size: cover;\n background-position: top right;\n background-repeat: no-repeat;\n}\n.background--renard {\n background-image: url(\"artwork-statue-chateau-s4.d48a5537.png\");\n background-size: cover;\n background-position: center left;\n background-repeat: no-repeat;\n}\n.background--lecture {\n background-image: url(\"artwork-lecture-s4.7439fb69.png\");\n background-size: cover;\n background-position: center left;\n background-repeat: no-repeat;\n}\n.book {\n background-color: #453864a3;\n}\n.quote {\n text-align: center;\n padding: 4px;\n margin-bottom: 10px;\n}\n/* Specific gumroad buttons */\n.download-button {\n margin-right: 3px;\n padding: 0px;\n padding-top: 5px;\n height: 60px;\n width: 112px;\n}\n.download-button img {\n height: 50px;\n}\n/** Page d'info **/\n#info p {\n margin-top: 0px;\n}\n#info .title {\n background-color: #453864a3;\n}\n#info .title h2 {\n margin: 0px;\n}\n#info .info-item {\n background-color: #1918183d;\n text-align: justify;\n}\n/** Footer **/\n.footer {\n height: 60px;\n letter-spacing: 0;\n}\n/* Cache des pages */\n.hidden {\n display: none;\n}\n/** Primary button **/\n.primary-button {\n background-color: #453864a3;\n font-weight: bold;\n}\n.primary-button:hover, .primary-button:focus {\n background-color: #6f5aa1;\n}\n/** PA button **/\n.pure-button.pa {\n background-color: #d14b52;\n color: #eee;\n}\n/** Book links **/\n.book-links {\n display: flex;\n flex-flow: row wrap;\n justify-content: space-between;\n}\n.show-from-left {\n animation: from-left 0.6s;\n}\n@keyframes from-left {\n 0% {\n opacity: 0;\n transform: translateX(-80px);\n }\n 100% {\n opacity: 1;\n transform: translateX(0px);\n }\n}\n.show-from-right {\n animation: from-right 0.6s;\n}\n@keyframes from-right {\n 0% {\n opacity: 0;\n transform: translateX(80px);\n }\n 100% {\n opacity: 1;\n transform: translateX(0px);\n }\n}\n\n\n/*# sourceMappingURL=style.695090bc.css.map */\n","@use 'variables';\n\n/* Pure-menu CSS override */\n.pure-img-responsive {\n max-width: 100%;\n height: auto;\n}\n.pure-menu {\n background: variables.$primary-color;\n color: variables.$second-text-color;\n border: none;\n a {\n color: variables.$second-text-color;\n border: none;\n padding: 0.6em 0.6em 0.6em 0.6em;\n &.pure-menu-selected {\n color: variables.$primary-text-color; \n }\n }\n ul {\n border: none;\n background: variables.$primary-color;\n border-top: 1px solid variables.$separator-color;\n }\n .menu-item-divided {\n border-top: 1px solid variables.$separator-color;\n }\n li {\n a:hover {\n background: variables.$primary-color-light;\n color: variables.$primary-text-color;\n } \n a:focus {\n text-transform: none;\n background: variables.$second-color;\n }\n } \n .pure-menu-selected {\n text-transform: none;\n background: variables.$second-color;\n .pure-menu-link:visited {\n color: variables.$primary-text-color;\n }\n }\n}\n\n/*\nAdd transition to containers so they can push in and out.\n*/\n#layout,\n#menu,\n.menu-link {\n -webkit-transition: all 0.2s ease-out;\n -moz-transition: all 0.2s ease-out;\n -ms-transition: all 0.2s ease-out;\n -o-transition: all 0.2s ease-out;\n transition: all 0.2s ease-out;\n}\n\n/*\nThis is the parent `
` that contains the menu and the content area.\n*/\n#layout {\n position: relative;\n left: 0;\n padding-left: 0;\n &.active {\n #menu {\n left: variables.$menu-width;\n width: variables.$menu-width;\n }\n .menu-link {\n left: variables.$menu-width;\n }\n }\n}\n\n#main {\n width:100%;\n}\n\n.content {\n margin: 0 auto;\n padding: 0 2em;\n max-width: 800px;\n margin-bottom: 50px;\n line-height: 1.6em;\n}\n\n.header {\n margin: 0;\n color: #333;\n text-align: center;\n padding: 2.5em 2em 0;\n border-bottom: 1px solid #eee;\n h1 {\n margin: 0.2em 0;\n font-size: 3em;\n font-weight: 300;\n }\n h2 {\n font-weight: 300;\n color: #ccc;\n padding: 0;\n margin-top: 0;\n }\n}\n\n.content-subhead {\n margin: 50px 0 20px 0;\n font-weight: 300;\n color: #888;\n}\n\n#menu {\n margin-left: -(variables.$menu-width);\n width: variables.$menu-width;\n position: fixed;\n top: 0;\n left: 0;\n bottom: 0;\n z-index: 50;\n background: #191818;\n overflow-y: auto;\n -webkit-overflow-scrolling: touch;\n}\n\n#menu a.pure-menu-link {\n font-weight: bold;\n}\n\n#sorting-trigger.pure-menu-item,\n#sorting-trigger.pure-menu-item:focus {\n background: variables.$primary-color-light;\n}\n\n/* -- Dynamic Button For Responsive Menu -------------------------------------*/\n\n/*\nThe button to open/close the Menu is custom-made and not part of Pure. Here's\nhow it works:\n*/\n\n/*\n`.menu-link` represents the responsive menu toggle that shows/hides on\nsmall screens.\n*/\n.menu-link {\n position: fixed;\n display: block; /* show this only on small screens */\n top: 0;\n left: 0; /* \"#menu width\" */\n background: variables.$primary-color;\n font-size: 10px; /* change this value to increase/decrease button size */\n z-index: 10;\n width: 2em;\n height: auto;\n padding: 2.1em 1.6em;\n &:hover, &:focus {\n background: variables.$primary-color-light;\n } \n span {\n position: relative;\n display: block;\n background-color: variables.$primary-text-color;\n width: 100%;\n height: 0.2em;\n &:before, &:after {\n background-color: variables.$primary-text-color;\n width: 100%;\n height: 0.2em;\n position: absolute;\n margin-top: -0.6em;\n content: \" \";\n }\n &:after {\n margin-top: 0.6em;\n }\n }\n}\n\na.support-button {\n background-color: variables.$second-color;\n color: variables.$primary-text-color;\n font-weight: bold;\n}\n\n/** Rs part **/\n.rs-links {\n display: flex;\n flex-flow: wrap;\n justify-content: center;\n\n /* Prevent buttons to be larger than Ko-Fi button */\n padding-left: 25px;\n padding-right: 25px;\n\n a {\n padding: 0px;\n color: variables.$primary-text-color; /** BlueSky only **/\n text-decoration: none; /** BlueSky only **/\n }\n}\n.rs-link {\n padding: 15px;\n}\n.rs-link:hover,\na:focus .rs-link {\n background: variables.$primary-color-light;\n}\n\n\n/* -- Responsive Styles (Media Queries) ------------------------------------- */\n\n/*\nHides the menu at `48em`, but modify this based on your app's needs.\n*/\n@media (min-width: 48em) {\n .header,\n .content {\n padding-left: 2em;\n padding-right: 2em;\n }\n\n #layout {\n padding-left: variables.$menu-width; /* left col width \"#menu\" */\n left: 0;\n }\n #menu {\n left: variables.$menu-width;\n }\n\n .menu-link {\n position: fixed;\n left: variables.$menu-width;\n display: none;\n }\n\n #layout.active .menu-link {\n left: variables.$menu-width;\n }\n}\n\n@media (max-width: 48em) {\n /* Only apply this when the window is small. Otherwise, the following\n * case results in extra padding on the left:\n * Make the window small.\n * Tap the menu to trigger the active state.\n * Make the window large again.\n */\n #layout.active {\n position: relative;\n left: variables.$menu-width;\n }\n\n #menuList {\n margin-left: 50px;\n }\n}\n","@use 'variables';\n\n.wtr-horizontal-menu {\n margin: 0px;\n }\n \n .question-number {\n font-size: smaller;\n text-align: right;\n p {\n margin: 0px;\n }\n }\n \n .result-list {\n display: block;\n min-height: 150px;\n }\n \n .result-item {\n background-color: variables.$second-color;\n border-radius: 2px;\n margin-top: variables.$space-tiny;\n margin-bottom: variables.$space-tiny;\n padding: variables.$space-small;\n position: absolute;\n position: absolute;\n min-width: 200px;\n transition-property: margin-top;\n transition-duration: 0.8s;\n }\n \n .result-item--1 {\n margin-top: 0px;\n }\n \n .result-item--2 {\n margin-top: 50px;\n }\n \n .result-item--3 {\n margin-top: 100px;\n }","@use 'variables';\n@use 'adr-article-button';\n@use 'menu';\n@use 'what-to-read';\n\n/* Pure override */\n.pure-g [class*=\"pure-u\"] {\n font-family: variables.$body-font;\n}\n\n/* Pure-button CSS override */\n.pure-button {\n font-family: variables.$body-font;\n box-shadow: 2px 2px 2px variables.$primary-color;\n margin-bottom: variables.$space-small;\n}\n.pure-button--black {\n color: variables.$primary-text-color;\n background-color: variables.$primary-color;\n}\n.pure-button--black:hover,\n.pure-button--black:focus {\n background-color: variables.$primary-color-light;\n}\n\n/** Basic classes and typography **/\nbody {\n font-family: variables.$body-font;\n color: variables.$primary-text-color;\n background-color: variables.$primary-color;\n background-size: cover;\n background-position: center center;\n background-repeat: no-repeat;\n letter-spacing: 0;\n line-height: 1.4rem;\n}\na {\n color: variables.$primary-text-color;\n}\n@mixin typo() {\n font-family: variables.$title-font;\n font-weight: bold;\n margin-top: variables.$space-medium;\n}\nh1 {\n @include typo;\n font-size: 1.5rem;\n}\nh2 {\n @include typo;\n font-size: 1.3rem;\n}\n.mentions {\n font-size: 0.8rem;\n color: variables.$second-text-color;\n}\n\n/** General rules **/\n.container {\n min-height: calc(100vh - 70px - 100px);\n}\n.content {\n padding-top: 50px;\n}\n.centered {\n text-align: center;\n}\n.right {\n text-align: right;\n}\n.margin-bottom--medium {\n margin-bottom: variables.$space-medium;\n}\n.padding--small {\n padding: variables.$space-small;\n}\n.padding--medium {\n padding: variables.$space-medium;\n}\n.padding--large {\n padding: variables.$space-large;\n}\n.inline {\n display: inline-block;\n}\n.vertical-center {\n vertical-align: super;\n}\n\n/* Reusable elements */\n.infobox {\n background-color: variables.$second-color-faded;\n border-radius: variables.$radius;\n padding: variables.$space-medium;\n overflow: hidden;\n text-align: center;\n}\n\n.video-container {\n overflow: hidden;\n}\n\n.author-header {\n display: flex;\n padding-bottom: variables.$space-medium;\n .author-header--img-container {\n min-width: 100px;\n img {\n border-radius: 50%;\n }\n }\n p {\n padding-left: variables.$space-medium;\n }\n}\n\n/** Page livre **/\n.book-background {\n width: 100%;\n}\n\n@mixin theme($cover: url(\"../assets/background.jpg\"), $position: center right) {\n background-image: $cover;\n background-size: cover;\n background-position: $position;\n background-repeat: no-repeat;\n}\n.background--classic {\n @include theme;\n}\n.background--suzuha {\n @include theme($cover: url(\"../assets/artwork-suzuha.png\"), $position: top center);\n}\n.background--ede {\n @include theme($cover: url(\"../assets/artwork-ede.png\"), $position: center left);\n}\n.background--vdy {\n @include theme($cover: url(\"../assets/cover-renaissance-s4-1024.png\"), $position: top right);\n}\n.background--renard {\n @include theme($cover: url(\"../assets/artwork-statue-chateau-s4.png\"), $position: center left);\n}\n.background--lecture {\n @include theme($cover: url(\"../assets/artwork-lecture-s4.png\"), $position: center left);\n}\n\n.book {\n background-color: variables.$second-color-faded;\n}\n\n.quote{\n text-align: center;\n padding: variables.$space-tiny;\n margin-bottom: variables.$space-small;\n}\n\n/* Specific gumroad buttons */\n.download-button {\n margin-right: 3px;\n padding: 0px;\n padding-top: 5px;\n height: 60px;\n width: 112px;\n img {\n height: 50px;\n }\n}\n\n// .vertical-center-children {\n// display: flex;\n// justify-content: center;\n// align-items: center;\n// }\n\n/** Page d'info **/\n#info {\n p {\n margin-top: 0px;\n }\n .title {\n background-color: variables.$second-color-faded;\n h2 {\n margin: 0px;\n }\n }\n .info-item {\n background-color: variables.$primary-color-faded;\n text-align: justify;\n }\n}\n\n/** Footer **/\n.footer {\n height: 60px;\n letter-spacing: 0;\n}\n\n/* Cache des pages */\n.hidden {\n display: none;\n}\n\n/** Primary button **/\n.primary-button {\n background-color: variables.$second-color-faded;\n font-weight: bold;\n &:hover, &:focus {\n background-color: variables.$second-color; \n }\n}\n\n/** PA button **/\n.pure-button.pa {\n background-color: #d14b52;\n color: variables.$primary-text-color;\n}\n\n/** Book links **/ \n.book-links {\n display: flex;\n flex-flow: row wrap;\n justify-content: space-between;\n}\n\n.show-from-left {\n animation: from-left 0.6s;\n}\n\n@keyframes from-left {\n 0% {\n opacity: 0;\n transform: translateX(-80px);\n }\n 100% {\n opacity: 1;\n transform: translateX(0px);\n }\n}\n\n.show-from-right {\n animation: from-right 0.6s;\n}\n\n@keyframes from-right {\n 0% {\n opacity: 0;\n transform: translateX(80px);\n }\n 100% {\n opacity: 1;\n transform: translateX(0px);\n }\n}\n"],"names":[],"version":3,"file":"style.695090bc.css.map"} \ No newline at end of file diff --git a/style.9d159f0e.css b/style.9d159f0e.css deleted file mode 100644 index 71978ecf..00000000 --- a/style.9d159f0e.css +++ /dev/null @@ -1,2 +0,0 @@ -.article-button{padding:.8em 1.2em;white-space:inherit;width:100%}.article-button .article-button-icon{text-align:left}@media (min-width:72em){.article-button{width:80%}}@media (min-width:86em){.article-button{width:70%}}.pure-img-responsive{height:auto;max-width:100%}.pure-menu{background:#191818;border:none;color:#999}.pure-menu a{border:none;color:#999;padding:.6em}.pure-menu a.pure-menu-selected{color:#eee}.pure-menu ul{background:#191818;border:none}.pure-menu .menu-item-divided,.pure-menu ul{border-top:1px solid #333}.pure-menu li a:hover{background:#332b38;color:#eee}.pure-menu .pure-menu-selected,.pure-menu li a:focus{background:#6f5aa1;text-transform:none}.pure-menu .pure-menu-selected .pure-menu-link:visited{color:#eee}#layout,#menu,.menu-link{-webkit-transition:all .2s ease-out;-moz-transition:all .2s ease-out;-ms-transition:all .2s ease-out;-o-transition:all .2s ease-out;transition:all .2s ease-out}#layout{left:0;padding-left:0;position:relative}#layout.active #menu{left:260px;width:260px}#layout.active .menu-link{left:260px}#main{width:100%}.content{line-height:1.6em;margin:0 auto 50px;max-width:800px;padding:0 2em}.header{border-bottom:1px solid #eee;color:#333;margin:0;padding:2.5em 2em 0;text-align:center}.header h1{font-size:3em;font-weight:300;margin:.2em 0}.header h2{color:#ccc;font-weight:300;margin-top:0;padding:0}.content-subhead{color:#888;font-weight:300;margin:50px 0 20px}#menu{-webkit-overflow-scrolling:touch;background:#191818;bottom:0;left:0;margin-left:-260px;overflow-y:auto;position:fixed;top:0;width:260px;z-index:50}#menu a.pure-menu-link{font-weight:700}#sorting-trigger.pure-menu-item,#sorting-trigger.pure-menu-item:focus{background:#332b38}.menu-link{background:#191818;display:block;font-size:10px;height:auto;left:0;padding:2.1em 1.6em;position:fixed;top:0;width:2em;z-index:10}.menu-link:focus,.menu-link:hover{background:#332b38}.menu-link span{background-color:#eee;display:block;height:.2em;position:relative;width:100%}.menu-link span:after,.menu-link span:before{background-color:#eee;content:" ";height:.2em;margin-top:-.6em;position:absolute;width:100%}.menu-link span:after{margin-top:.6em}.rs-links{display:flex;flex-flow:wrap;justify-content:center;padding-left:25px;padding-right:25px}.rs-links a{color:#eee;padding:0;text-decoration:none}.rs-link{padding:15px}.rs-link:hover,a:focus .rs-link{background:#332b38}@media (min-width:48em){.content,.header{padding-left:2em;padding-right:2em}#layout{left:0;padding-left:260px}#menu{left:260px}.menu-link{display:none;left:260px;position:fixed}#layout.active .menu-link{left:260px}}@media (max-width:48em){#layout.active{left:260px;position:relative}#menuList{margin-left:50px}}.wtr-horizontal-menu{margin:0}.question-number{font-size:smaller;text-align:right}.question-number p{margin:0}.result-list{display:block;min-height:150px}.result-item{background-color:#6f5aa1;border-radius:2px;margin-bottom:4px;margin-top:4px;min-width:200px;padding:10px;position:absolute;transition-duration:.8s;transition-property:margin-top}.result-item--1{margin-top:0}.result-item--2{margin-top:50px}.result-item--3{margin-top:100px}.pure-button,.pure-g [class*=pure-u]{font-family:Roboto,Segoe UI,-apple-system,BlinkMacSystemFont,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.pure-button{box-shadow:2px 2px 2px #191818;margin-bottom:10px}.pure-button--black{background-color:#191818;color:#eee}.pure-button--black:focus,.pure-button--black:hover{background-color:#332b38}body{background-color:#191818;background-position:50%;background-repeat:no-repeat;background-size:cover;font-family:Roboto,Segoe UI,-apple-system,BlinkMacSystemFont,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;letter-spacing:0;line-height:1.4rem}a,body{color:#eee}h1{font-size:1.5rem}h1,h2{font-family:Tahoma,Verdana,Roboto,Segoe UI,-apple-system,BlinkMacSystemFont,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-weight:700;margin-top:20px}h2{font-size:1.3rem}.mentions{color:#999;font-size:.8rem}.container{min-height:calc(100vh - 170px)}.content{padding-top:50px}.centered{text-align:center}.right{text-align:right}.margin-bottom--medium{margin-bottom:20px}.padding--small{padding:10px}.padding--medium{padding:20px}.padding--large{padding:40px}.inline{display:inline-block}.vertical-center{vertical-align:super}.infobox{background-color:#453864a3;border-radius:2px;padding:20px;text-align:center}.infobox,.video-container{overflow:hidden}.author-header{display:flex;padding-bottom:20px}.author-header .author-header--img-container{min-width:100px}.author-header .author-header--img-container img{border-radius:50%}.author-header p{padding-left:20px}.book-background{width:100%}.background--classic{background-image:url(background.761bc37b.jpg);background-position:100%}.background--classic,.background--suzuha{background-repeat:no-repeat;background-size:cover}.background--suzuha{background-image:url(artwork-suzuha.09fac1ca.png);background-position:top}.background--ede{background-image:url(artwork-ede.54057cad.png);background-position:0}.background--ede,.background--vdy{background-repeat:no-repeat;background-size:cover}.background--vdy{background-image:url(cover-renaissance-s4-1024.6b8555ec.png);background-position:100% 0}.background--renard{background-image:url(artwork-statue-chateau-s4.d48a5537.png)}.background--lecture,.background--renard{background-position:0;background-repeat:no-repeat;background-size:cover}.background--lecture{background-image:url(artwork-lecture-s4.7439fb69.png)}.book{background-color:#453864a3}.quote{margin-bottom:10px;padding:4px;text-align:center}.download-button{height:60px;margin-right:3px;padding:5px 0 0;width:112px}.download-button img{height:50px}#info p{margin-top:0}#info .title{background-color:#453864a3}#info .title h2{margin:0}#info .info-item{background-color:#1918183d;text-align:justify}.footer{height:60px;letter-spacing:0}.hidden{display:none}.primary-button{background-color:#453864a3;font-weight:700}.primary-button:focus,.primary-button:hover{background-color:#6f5aa1}.pure-button.pa{background-color:#d14b52;color:#eee}.book-links{display:flex;flex-flow:row wrap;justify-content:space-between}.show-from-left{animation:from-left .6s}@keyframes from-left{0%{opacity:0;transform:translateX(-80px)}to{opacity:1;transform:translateX(0)}}.show-from-right{animation:from-right .6s}@keyframes from-right{0%{opacity:0;transform:translateX(80px)}to{opacity:1;transform:translateX(0)}} -/*# sourceMappingURL=style.9d159f0e.css.map */ diff --git a/style.9d159f0e.css.map b/style.9d159f0e.css.map deleted file mode 100644 index 4b36fff0..00000000 --- a/style.9d159f0e.css.map +++ /dev/null @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_adr-article-button.scss","%3Cinput%20css%20KF2Sc5%3E","styles/_menu.scss","styles/_what-to-read.scss","styles/style.scss"],"sourcesContent":["@use 'variables';\n\n.article-button {\n /* override pure-button to have more space to read */\n padding: .8em 1.2em;\n /* Set a width to have all buttons at the same size */\n width: 100%;\n /* Text is not wrapped by default on elements */\n white-space: inherit;\n\n .article-button-icon {\n text-align: left;\n }\n}\n\n@media (min-width: 72em) {\n .article-button {\n /* Set a width to have all buttons at the same size (bigger screen) */\n width: 80%;\n }\n}\n\n@media (min-width: 86em) {\n .article-button {\n /* Set a width to have all buttons at the same size (bigger screen) */\n width: 70%;\n }\n}\n","/* Fonts */\n/* Backgrounds colors */\n/* Texts colors */\n/* Other colors */\n/* Sizes */\n.article-button {\n /* override pure-button to have more space to read */\n padding: 0.8em 1.2em;\n /* Set a width to have all buttons at the same size */\n width: 100%;\n /* Text is not wrapped by default on elements */\n white-space: inherit;\n}\n.article-button .article-button-icon {\n text-align: left;\n}\n@media (min-width: 72em) {\n .article-button {\n /* Set a width to have all buttons at the same size (bigger screen) */\n width: 80%;\n }\n}\n@media (min-width: 86em) {\n .article-button {\n /* Set a width to have all buttons at the same size (bigger screen) */\n width: 70%;\n }\n}\n/* Pure-menu CSS override */\n.pure-img-responsive {\n max-width: 100%;\n height: auto;\n}\n.pure-menu {\n background: #191818;\n color: #999;\n border: none;\n}\n.pure-menu a {\n color: #999;\n border: none;\n padding: 0.6em 0.6em 0.6em 0.6em;\n}\n.pure-menu a.pure-menu-selected {\n color: #eee;\n}\n.pure-menu ul {\n border: none;\n background: #191818;\n border-top: 1px solid #333;\n}\n.pure-menu .menu-item-divided {\n border-top: 1px solid #333;\n}\n.pure-menu li a:hover {\n background: #332B38;\n color: #eee;\n}\n.pure-menu li a:focus {\n text-transform: none;\n background: #6f5aa1;\n}\n.pure-menu .pure-menu-selected {\n text-transform: none;\n background: #6f5aa1;\n}\n.pure-menu .pure-menu-selected .pure-menu-link:visited {\n color: #eee;\n}\n/*\nAdd transition to containers so they can push in and out.\n*/\n#layout,\n#menu,\n.menu-link {\n -webkit-transition: all 0.2s ease-out;\n -moz-transition: all 0.2s ease-out;\n -ms-transition: all 0.2s ease-out;\n -o-transition: all 0.2s ease-out;\n transition: all 0.2s ease-out;\n}\n/*\nThis is the parent `
` that contains the menu and the content area.\n*/\n#layout {\n position: relative;\n left: 0;\n padding-left: 0;\n}\n#layout.active #menu {\n left: 260px;\n width: 260px;\n}\n#layout.active .menu-link {\n left: 260px;\n}\n#main {\n width: 100%;\n}\n.content {\n margin: 0 auto;\n padding: 0 2em;\n max-width: 800px;\n margin-bottom: 50px;\n line-height: 1.6em;\n}\n.header {\n margin: 0;\n color: #333;\n text-align: center;\n padding: 2.5em 2em 0;\n border-bottom: 1px solid #eee;\n}\n.header h1 {\n margin: 0.2em 0;\n font-size: 3em;\n font-weight: 300;\n}\n.header h2 {\n font-weight: 300;\n color: #ccc;\n padding: 0;\n margin-top: 0;\n}\n.content-subhead {\n margin: 50px 0 20px 0;\n font-weight: 300;\n color: #888;\n}\n#menu {\n margin-left: -260px;\n width: 260px;\n position: fixed;\n top: 0;\n left: 0;\n bottom: 0;\n z-index: 50;\n background: #191818;\n overflow-y: auto;\n -webkit-overflow-scrolling: touch;\n}\n#menu a.pure-menu-link {\n font-weight: bold;\n}\n#sorting-trigger.pure-menu-item,\n#sorting-trigger.pure-menu-item:focus {\n background: #332B38;\n}\n/* -- Dynamic Button For Responsive Menu -------------------------------------*/\n/*\nThe button to open/close the Menu is custom-made and not part of Pure. Here's\nhow it works:\n*/\n/*\n`.menu-link` represents the responsive menu toggle that shows/hides on\nsmall screens.\n*/\n.menu-link {\n position: fixed;\n display: block;\n /* show this only on small screens */\n top: 0;\n left: 0;\n /* \"#menu width\" */\n background: #191818;\n font-size: 10px;\n /* change this value to increase/decrease button size */\n z-index: 10;\n width: 2em;\n height: auto;\n padding: 2.1em 1.6em;\n}\n.menu-link:hover, .menu-link:focus {\n background: #332B38;\n}\n.menu-link span {\n position: relative;\n display: block;\n background-color: #eee;\n width: 100%;\n height: 0.2em;\n}\n.menu-link span:before, .menu-link span:after {\n background-color: #eee;\n width: 100%;\n height: 0.2em;\n position: absolute;\n margin-top: -0.6em;\n content: \" \";\n}\n.menu-link span:after {\n margin-top: 0.6em;\n}\n/** Rs part **/\n.rs-links {\n display: flex;\n flex-flow: wrap;\n justify-content: center;\n /* Prevent buttons to be larger than Ko-Fi button */\n padding-left: 25px;\n padding-right: 25px;\n}\n.rs-links a {\n padding: 0px;\n color: #eee;\n /** BlueSky only **/\n text-decoration: none;\n /** BlueSky only **/\n}\n.rs-link {\n padding: 15px;\n}\n.rs-link:hover,\na:focus .rs-link {\n background: #332B38;\n}\n/* -- Responsive Styles (Media Queries) ------------------------------------- */\n/*\nHides the menu at `48em`, but modify this based on your app's needs.\n*/\n@media (min-width: 48em) {\n .header,\n.content {\n padding-left: 2em;\n padding-right: 2em;\n }\n\n #layout {\n padding-left: 260px;\n /* left col width \"#menu\" */\n left: 0;\n }\n\n #menu {\n left: 260px;\n }\n\n .menu-link {\n position: fixed;\n left: 260px;\n display: none;\n }\n\n #layout.active .menu-link {\n left: 260px;\n }\n}\n@media (max-width: 48em) {\n /* Only apply this when the window is small. Otherwise, the following\n * case results in extra padding on the left:\n * Make the window small.\n * Tap the menu to trigger the active state.\n * Make the window large again.\n */\n #layout.active {\n position: relative;\n left: 260px;\n }\n\n #menuList {\n margin-left: 50px;\n }\n}\n.wtr-horizontal-menu {\n margin: 0px;\n}\n.question-number {\n font-size: smaller;\n text-align: right;\n}\n.question-number p {\n margin: 0px;\n}\n.result-list {\n display: block;\n min-height: 150px;\n}\n.result-item {\n background-color: #6f5aa1;\n border-radius: 2px;\n margin-top: 4px;\n margin-bottom: 4px;\n padding: 10px;\n position: absolute;\n position: absolute;\n min-width: 200px;\n transition-property: margin-top;\n transition-duration: 0.8s;\n}\n.result-item--1 {\n margin-top: 0px;\n}\n.result-item--2 {\n margin-top: 50px;\n}\n.result-item--3 {\n margin-top: 100px;\n}\n/* Pure override */\n.pure-g [class*=pure-u] {\n font-family: Roboto, \"Segoe UI\", -apple-system, BlinkMacSystemFont, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\n}\n/* Pure-button CSS override */\n.pure-button {\n font-family: Roboto, \"Segoe UI\", -apple-system, BlinkMacSystemFont, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\n box-shadow: 2px 2px 2px #191818;\n margin-bottom: 10px;\n}\n.pure-button--black {\n color: #eee;\n background-color: #191818;\n}\n.pure-button--black:hover,\n.pure-button--black:focus {\n background-color: #332B38;\n}\n/** Basic classes and typography **/\nbody {\n font-family: Roboto, \"Segoe UI\", -apple-system, BlinkMacSystemFont, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\n color: #eee;\n background-color: #191818;\n background-size: cover;\n background-position: center center;\n background-repeat: no-repeat;\n letter-spacing: 0;\n line-height: 1.4rem;\n}\na {\n color: #eee;\n}\nh1 {\n font-family: Tahoma, Verdana, Roboto, \"Segoe UI\", -apple-system, BlinkMacSystemFont, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\n font-weight: bold;\n margin-top: 20px;\n font-size: 1.5rem;\n}\nh2 {\n font-family: Tahoma, Verdana, Roboto, \"Segoe UI\", -apple-system, BlinkMacSystemFont, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\n font-weight: bold;\n margin-top: 20px;\n font-size: 1.3rem;\n}\n.mentions {\n font-size: 0.8rem;\n color: #999;\n}\n/** General rules **/\n.container {\n min-height: calc(100vh - 70px - 100px);\n}\n.content {\n padding-top: 50px;\n}\n.centered {\n text-align: center;\n}\n.right {\n text-align: right;\n}\n.margin-bottom--medium {\n margin-bottom: 20px;\n}\n.padding--small {\n padding: 10px;\n}\n.padding--medium {\n padding: 20px;\n}\n.padding--large {\n padding: 40px;\n}\n.inline {\n display: inline-block;\n}\n.vertical-center {\n vertical-align: super;\n}\n/* Reusable elements */\n.infobox {\n background-color: #453864a3;\n border-radius: 2px;\n padding: 20px;\n overflow: hidden;\n text-align: center;\n}\n.video-container {\n overflow: hidden;\n}\n.author-header {\n display: flex;\n padding-bottom: 20px;\n}\n.author-header .author-header--img-container {\n min-width: 100px;\n}\n.author-header .author-header--img-container img {\n border-radius: 50%;\n}\n.author-header p {\n padding-left: 20px;\n}\n/** Page livre **/\n.book-background {\n width: 100%;\n}\n.background--classic {\n background-image: url(\"background.761bc37b.jpg\");\n background-size: cover;\n background-position: center right;\n background-repeat: no-repeat;\n}\n.background--suzuha {\n background-image: url(\"artwork-suzuha.09fac1ca.png\");\n background-size: cover;\n background-position: top center;\n background-repeat: no-repeat;\n}\n.background--ede {\n background-image: url(\"artwork-ede.54057cad.png\");\n background-size: cover;\n background-position: center left;\n background-repeat: no-repeat;\n}\n.background--vdy {\n background-image: url(\"cover-renaissance-s4-1024.6b8555ec.png\");\n background-size: cover;\n background-position: top right;\n background-repeat: no-repeat;\n}\n.background--renard {\n background-image: url(\"artwork-statue-chateau-s4.d48a5537.png\");\n background-size: cover;\n background-position: center left;\n background-repeat: no-repeat;\n}\n.background--lecture {\n background-image: url(\"artwork-lecture-s4.7439fb69.png\");\n background-size: cover;\n background-position: center left;\n background-repeat: no-repeat;\n}\n.book {\n background-color: #453864a3;\n}\n.quote {\n text-align: center;\n padding: 4px;\n margin-bottom: 10px;\n}\n/* Specific gumroad buttons */\n.download-button {\n margin-right: 3px;\n padding: 0px;\n padding-top: 5px;\n height: 60px;\n width: 112px;\n}\n.download-button img {\n height: 50px;\n}\n/** Page d'info **/\n#info p {\n margin-top: 0px;\n}\n#info .title {\n background-color: #453864a3;\n}\n#info .title h2 {\n margin: 0px;\n}\n#info .info-item {\n background-color: #1918183d;\n text-align: justify;\n}\n/** Footer **/\n.footer {\n height: 60px;\n letter-spacing: 0;\n}\n/* Cache des pages */\n.hidden {\n display: none;\n}\n/** Primary button **/\n.primary-button {\n background-color: #453864a3;\n font-weight: bold;\n}\n.primary-button:hover, .primary-button:focus {\n background-color: #6f5aa1;\n}\n/** PA button **/\n.pure-button.pa {\n background-color: #d14b52;\n color: #eee;\n}\n/** Book links **/\n.book-links {\n display: flex;\n flex-flow: row wrap;\n justify-content: space-between;\n}\n.show-from-left {\n animation: from-left 0.6s;\n}\n@keyframes from-left {\n 0% {\n opacity: 0;\n transform: translateX(-80px);\n }\n 100% {\n opacity: 1;\n transform: translateX(0px);\n }\n}\n.show-from-right {\n animation: from-right 0.6s;\n}\n@keyframes from-right {\n 0% {\n opacity: 0;\n transform: translateX(80px);\n }\n 100% {\n opacity: 1;\n transform: translateX(0px);\n }\n}\n\n\n/*# sourceMappingURL=style.9d159f0e.css.map */\n","@use 'variables';\n\n/* Pure-menu CSS override */\n.pure-img-responsive {\n max-width: 100%;\n height: auto;\n}\n.pure-menu {\n background: variables.$primary-color;\n color: variables.$second-text-color;\n border: none;\n a {\n color: variables.$second-text-color;\n border: none;\n padding: 0.6em 0.6em 0.6em 0.6em;\n &.pure-menu-selected {\n color: variables.$primary-text-color; \n }\n }\n ul {\n border: none;\n background: variables.$primary-color;\n border-top: 1px solid variables.$separator-color;\n }\n .menu-item-divided {\n border-top: 1px solid variables.$separator-color;\n }\n li {\n a:hover {\n background: variables.$primary-color-light;\n color: variables.$primary-text-color;\n } \n a:focus {\n text-transform: none;\n background: variables.$second-color;\n }\n } \n .pure-menu-selected {\n text-transform: none;\n background: variables.$second-color;\n .pure-menu-link:visited {\n color: variables.$primary-text-color;\n }\n }\n}\n\n/*\nAdd transition to containers so they can push in and out.\n*/\n#layout,\n#menu,\n.menu-link {\n -webkit-transition: all 0.2s ease-out;\n -moz-transition: all 0.2s ease-out;\n -ms-transition: all 0.2s ease-out;\n -o-transition: all 0.2s ease-out;\n transition: all 0.2s ease-out;\n}\n\n/*\nThis is the parent `
` that contains the menu and the content area.\n*/\n#layout {\n position: relative;\n left: 0;\n padding-left: 0;\n &.active {\n #menu {\n left: variables.$menu-width;\n width: variables.$menu-width;\n }\n .menu-link {\n left: variables.$menu-width;\n }\n }\n}\n\n#main {\n width:100%;\n}\n\n.content {\n margin: 0 auto;\n padding: 0 2em;\n max-width: 800px;\n margin-bottom: 50px;\n line-height: 1.6em;\n}\n\n.header {\n margin: 0;\n color: #333;\n text-align: center;\n padding: 2.5em 2em 0;\n border-bottom: 1px solid #eee;\n h1 {\n margin: 0.2em 0;\n font-size: 3em;\n font-weight: 300;\n }\n h2 {\n font-weight: 300;\n color: #ccc;\n padding: 0;\n margin-top: 0;\n }\n}\n\n.content-subhead {\n margin: 50px 0 20px 0;\n font-weight: 300;\n color: #888;\n}\n\n#menu {\n margin-left: -(variables.$menu-width);\n width: variables.$menu-width;\n position: fixed;\n top: 0;\n left: 0;\n bottom: 0;\n z-index: 50;\n background: #191818;\n overflow-y: auto;\n -webkit-overflow-scrolling: touch;\n}\n\n#menu a.pure-menu-link {\n font-weight: bold;\n}\n\n#sorting-trigger.pure-menu-item,\n#sorting-trigger.pure-menu-item:focus {\n background: variables.$primary-color-light;\n}\n\n/* -- Dynamic Button For Responsive Menu -------------------------------------*/\n\n/*\nThe button to open/close the Menu is custom-made and not part of Pure. Here's\nhow it works:\n*/\n\n/*\n`.menu-link` represents the responsive menu toggle that shows/hides on\nsmall screens.\n*/\n.menu-link {\n position: fixed;\n display: block; /* show this only on small screens */\n top: 0;\n left: 0; /* \"#menu width\" */\n background: variables.$primary-color;\n font-size: 10px; /* change this value to increase/decrease button size */\n z-index: 10;\n width: 2em;\n height: auto;\n padding: 2.1em 1.6em;\n &:hover, &:focus {\n background: variables.$primary-color-light;\n } \n span {\n position: relative;\n display: block;\n background-color: variables.$primary-text-color;\n width: 100%;\n height: 0.2em;\n &:before, &:after {\n background-color: variables.$primary-text-color;\n width: 100%;\n height: 0.2em;\n position: absolute;\n margin-top: -0.6em;\n content: \" \";\n }\n &:after {\n margin-top: 0.6em;\n }\n }\n}\n\n/** Rs part **/\n.rs-links {\n display: flex;\n flex-flow: wrap;\n justify-content: center;\n\n /* Prevent buttons to be larger than Ko-Fi button */\n padding-left: 25px;\n padding-right: 25px;\n\n a {\n padding: 0px;\n color: variables.$primary-text-color; /** BlueSky only **/\n text-decoration: none; /** BlueSky only **/\n }\n}\n.rs-link {\n padding: 15px;\n}\n.rs-link:hover,\na:focus .rs-link {\n background: variables.$primary-color-light;\n}\n\n\n/* -- Responsive Styles (Media Queries) ------------------------------------- */\n\n/*\nHides the menu at `48em`, but modify this based on your app's needs.\n*/\n@media (min-width: 48em) {\n .header,\n .content {\n padding-left: 2em;\n padding-right: 2em;\n }\n\n #layout {\n padding-left: variables.$menu-width; /* left col width \"#menu\" */\n left: 0;\n }\n #menu {\n left: variables.$menu-width;\n }\n\n .menu-link {\n position: fixed;\n left: variables.$menu-width;\n display: none;\n }\n\n #layout.active .menu-link {\n left: variables.$menu-width;\n }\n}\n\n@media (max-width: 48em) {\n /* Only apply this when the window is small. Otherwise, the following\n * case results in extra padding on the left:\n * Make the window small.\n * Tap the menu to trigger the active state.\n * Make the window large again.\n */\n #layout.active {\n position: relative;\n left: variables.$menu-width;\n }\n\n #menuList {\n margin-left: 50px;\n }\n}\n","@use 'variables';\n\n.wtr-horizontal-menu {\n margin: 0px;\n }\n \n .question-number {\n font-size: smaller;\n text-align: right;\n p {\n margin: 0px;\n }\n }\n \n .result-list {\n display: block;\n min-height: 150px;\n }\n \n .result-item {\n background-color: variables.$second-color;\n border-radius: 2px;\n margin-top: variables.$space-tiny;\n margin-bottom: variables.$space-tiny;\n padding: variables.$space-small;\n position: absolute;\n position: absolute;\n min-width: 200px;\n transition-property: margin-top;\n transition-duration: 0.8s;\n }\n \n .result-item--1 {\n margin-top: 0px;\n }\n \n .result-item--2 {\n margin-top: 50px;\n }\n \n .result-item--3 {\n margin-top: 100px;\n }","@use 'variables';\n@use 'adr-article-button';\n@use 'menu';\n@use 'what-to-read';\n\n/* Pure override */\n.pure-g [class*=\"pure-u\"] {\n font-family: variables.$body-font;\n}\n\n/* Pure-button CSS override */\n.pure-button {\n font-family: variables.$body-font;\n box-shadow: 2px 2px 2px variables.$primary-color;\n margin-bottom: variables.$space-small;\n}\n.pure-button--black {\n color: variables.$primary-text-color;\n background-color: variables.$primary-color;\n}\n.pure-button--black:hover,\n.pure-button--black:focus {\n background-color: variables.$primary-color-light;\n}\n\n/** Basic classes and typography **/\nbody {\n font-family: variables.$body-font;\n color: variables.$primary-text-color;\n background-color: variables.$primary-color;\n background-size: cover;\n background-position: center center;\n background-repeat: no-repeat;\n letter-spacing: 0;\n line-height: 1.4rem;\n}\na {\n color: variables.$primary-text-color;\n}\n@mixin typo() {\n font-family: variables.$title-font;\n font-weight: bold;\n margin-top: variables.$space-medium;\n}\nh1 {\n @include typo;\n font-size: 1.5rem;\n}\nh2 {\n @include typo;\n font-size: 1.3rem;\n}\n.mentions {\n font-size: 0.8rem;\n color: variables.$second-text-color;\n}\n\n/** General rules **/\n.container {\n min-height: calc(100vh - 70px - 100px);\n}\n.content {\n padding-top: 50px;\n}\n.centered {\n text-align: center;\n}\n.right {\n text-align: right;\n}\n.margin-bottom--medium {\n margin-bottom: variables.$space-medium;\n}\n.padding--small {\n padding: variables.$space-small;\n}\n.padding--medium {\n padding: variables.$space-medium;\n}\n.padding--large {\n padding: variables.$space-large;\n}\n.inline {\n display: inline-block;\n}\n.vertical-center {\n vertical-align: super;\n}\n\n/* Reusable elements */\n.infobox {\n background-color: variables.$second-color-faded;\n border-radius: variables.$radius;\n padding: variables.$space-medium;\n overflow: hidden;\n text-align: center;\n}\n\n.video-container {\n overflow: hidden;\n}\n\n.author-header {\n display: flex;\n padding-bottom: variables.$space-medium;\n .author-header--img-container {\n min-width: 100px;\n img {\n border-radius: 50%;\n }\n }\n p {\n padding-left: variables.$space-medium;\n }\n}\n\n/** Page livre **/\n.book-background {\n width: 100%;\n}\n\n@mixin theme($cover: url(\"../assets/background.jpg\"), $position: center right) {\n background-image: $cover;\n background-size: cover;\n background-position: $position;\n background-repeat: no-repeat;\n}\n.background--classic {\n @include theme;\n}\n.background--suzuha {\n @include theme($cover: url(\"../assets/artwork-suzuha.png\"), $position: top center);\n}\n.background--ede {\n @include theme($cover: url(\"../assets/artwork-ede.png\"), $position: center left);\n}\n.background--vdy {\n @include theme($cover: url(\"../assets/cover-renaissance-s4-1024.png\"), $position: top right);\n}\n.background--renard {\n @include theme($cover: url(\"../assets/artwork-statue-chateau-s4.png\"), $position: center left);\n}\n.background--lecture {\n @include theme($cover: url(\"../assets/artwork-lecture-s4.png\"), $position: center left);\n}\n\n.book {\n background-color: variables.$second-color-faded;\n}\n\n.quote{\n text-align: center;\n padding: variables.$space-tiny;\n margin-bottom: variables.$space-small;\n}\n\n/* Specific gumroad buttons */\n.download-button {\n margin-right: 3px;\n padding: 0px;\n padding-top: 5px;\n height: 60px;\n width: 112px;\n img {\n height: 50px;\n }\n}\n\n// .vertical-center-children {\n// display: flex;\n// justify-content: center;\n// align-items: center;\n// }\n\n/** Page d'info **/\n#info {\n p {\n margin-top: 0px;\n }\n .title {\n background-color: variables.$second-color-faded;\n h2 {\n margin: 0px;\n }\n }\n .info-item {\n background-color: variables.$primary-color-faded;\n text-align: justify;\n }\n}\n\n/** Footer **/\n.footer {\n height: 60px;\n letter-spacing: 0;\n}\n\n/* Cache des pages */\n.hidden {\n display: none;\n}\n\n/** Primary button **/\n.primary-button {\n background-color: variables.$second-color-faded;\n font-weight: bold;\n &:hover, &:focus {\n background-color: variables.$second-color; \n }\n}\n\n/** PA button **/\n.pure-button.pa {\n background-color: #d14b52;\n color: variables.$primary-text-color;\n}\n\n/** Book links **/ \n.book-links {\n display: flex;\n flex-flow: row wrap;\n justify-content: space-between;\n}\n\n.show-from-left {\n animation: from-left 0.6s;\n}\n\n@keyframes from-left {\n 0% {\n opacity: 0;\n transform: translateX(-80px);\n }\n 100% {\n opacity: 1;\n transform: translateX(0px);\n }\n}\n\n.show-from-right {\n animation: from-right 0.6s;\n}\n\n@keyframes from-right {\n 0% {\n opacity: 0;\n transform: translateX(80px);\n }\n 100% {\n opacity: 1;\n transform: translateX(0px);\n }\n}\n"],"names":[],"version":3,"file":"style.9d159f0e.css.map"} \ No newline at end of file