├── _config.yml ├── favicon.ico ├── logo192.png ├── logo512.png ├── robots.txt ├── manifest.json ├── precache-manifest.030e0fa724c21da457e9f8b0e5db674e.js ├── static ├── js │ ├── 2.593dcfa9.chunk.js.LICENSE.txt │ ├── runtime-main.64cdb813.js │ ├── runtime-main.64cdb813.js.map │ ├── main.c5480c88.chunk.js │ ├── main.c5480c88.chunk.js.map │ └── 2.593dcfa9.chunk.js └── css │ ├── main.0f93a89c.chunk.css │ └── main.0f93a89c.chunk.css.map ├── asset-manifest.json ├── service-worker.js └── index.html /_config.yml: -------------------------------------------------------------------------------- 1 | theme: jekyll-theme-hacker -------------------------------------------------------------------------------- /favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JaberWiki/react_quiz/HEAD/favicon.ico -------------------------------------------------------------------------------- /logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JaberWiki/react_quiz/HEAD/logo192.png -------------------------------------------------------------------------------- /logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JaberWiki/react_quiz/HEAD/logo512.png -------------------------------------------------------------------------------- /robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | }, 10 | { 11 | "src": "logo192.png", 12 | "type": "image/png", 13 | "sizes": "192x192" 14 | }, 15 | { 16 | "src": "logo512.png", 17 | "type": "image/png", 18 | "sizes": "512x512" 19 | } 20 | ], 21 | "start_url": ".", 22 | "display": "standalone", 23 | "theme_color": "#000000", 24 | "background_color": "#ffffff" 25 | } 26 | -------------------------------------------------------------------------------- /precache-manifest.030e0fa724c21da457e9f8b0e5db674e.js: -------------------------------------------------------------------------------- 1 | self.__precacheManifest = (self.__precacheManifest || []).concat([ 2 | { 3 | "revision": "755cd66f555806a526cd1a58e1de5593", 4 | "url": "/index.html" 5 | }, 6 | { 7 | "revision": "f5703cc60403cd6f9ef2", 8 | "url": "/static/css/main.0f93a89c.chunk.css" 9 | }, 10 | { 11 | "revision": "dce5557e948fca640e7d", 12 | "url": "/static/js/2.593dcfa9.chunk.js" 13 | }, 14 | { 15 | "revision": "e88a3e95b5364d46e95b35ae8c0dc27d", 16 | "url": "/static/js/2.593dcfa9.chunk.js.LICENSE.txt" 17 | }, 18 | { 19 | "revision": "f5703cc60403cd6f9ef2", 20 | "url": "/static/js/main.c5480c88.chunk.js" 21 | }, 22 | { 23 | "revision": "9fd988a7c3804845b4c8", 24 | "url": "/static/js/runtime-main.64cdb813.js" 25 | } 26 | ]); -------------------------------------------------------------------------------- /static/js/2.593dcfa9.chunk.js.LICENSE.txt: -------------------------------------------------------------------------------- 1 | /* 2 | object-assign 3 | (c) Sindre Sorhus 4 | @license MIT 5 | */ 6 | 7 | /** @license React v0.19.1 8 | * scheduler.production.min.js 9 | * 10 | * Copyright (c) Facebook, Inc. and its affiliates. 11 | * 12 | * This source code is licensed under the MIT license found in the 13 | * LICENSE file in the root directory of this source tree. 14 | */ 15 | 16 | /** @license React v16.13.1 17 | * react-dom.production.min.js 18 | * 19 | * Copyright (c) Facebook, Inc. and its affiliates. 20 | * 21 | * This source code is licensed under the MIT license found in the 22 | * LICENSE file in the root directory of this source tree. 23 | */ 24 | 25 | /** @license React v16.13.1 26 | * react.production.min.js 27 | * 28 | * Copyright (c) Facebook, Inc. and its affiliates. 29 | * 30 | * This source code is licensed under the MIT license found in the 31 | * LICENSE file in the root directory of this source tree. 32 | */ 33 | -------------------------------------------------------------------------------- /asset-manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "files": { 3 | "main.css": "/static/css/main.0f93a89c.chunk.css", 4 | "main.js": "/static/js/main.c5480c88.chunk.js", 5 | "main.js.map": "/static/js/main.c5480c88.chunk.js.map", 6 | "runtime-main.js": "/static/js/runtime-main.64cdb813.js", 7 | "runtime-main.js.map": "/static/js/runtime-main.64cdb813.js.map", 8 | "static/js/2.593dcfa9.chunk.js": "/static/js/2.593dcfa9.chunk.js", 9 | "static/js/2.593dcfa9.chunk.js.map": "/static/js/2.593dcfa9.chunk.js.map", 10 | "index.html": "/index.html", 11 | "precache-manifest.030e0fa724c21da457e9f8b0e5db674e.js": "/precache-manifest.030e0fa724c21da457e9f8b0e5db674e.js", 12 | "service-worker.js": "/service-worker.js", 13 | "static/css/main.0f93a89c.chunk.css.map": "/static/css/main.0f93a89c.chunk.css.map", 14 | "static/js/2.593dcfa9.chunk.js.LICENSE.txt": "/static/js/2.593dcfa9.chunk.js.LICENSE.txt" 15 | }, 16 | "entrypoints": [ 17 | "static/js/runtime-main.64cdb813.js", 18 | "static/js/2.593dcfa9.chunk.js", 19 | "static/css/main.0f93a89c.chunk.css", 20 | "static/js/main.c5480c88.chunk.js" 21 | ] 22 | } -------------------------------------------------------------------------------- /static/css/main.0f93a89c.chunk.css: -------------------------------------------------------------------------------- 1 | @import url(https://fonts.googleapis.com/css?family=Raleway);*{font-family:"Raleway",sans-serif}.container{position:absolute;width:1024px;height:800px;border:1px solid rgba(0,0,0,.2);box-shadow:0 2px 10px rgba(0,0,0,.1);border-radius:10px;padding:10px;box-sizing:border-box;top:0;bottom:0;left:0;right:0;margin:auto}.title{position:relative;background-color:#000;color:#fff;padding:20px;font-size:1.8em;border-radius:5px}.question{font-size:1.2em;font-weight:700;margin-bottom:5px}.questionBox{position:relative;border:1px solid rgba(0,0,0,.2);margin-top:5px;padding:15px;box-sizing:border-box;background-color:#fafafa}.answerBtn{position:relative;padding:10px;background-color:#fa9725;display:inline-block;margin:10px;outline:none;border:none;font-size:1em;color:#fff;font-weight:700;border-radius:4px;cursor:pointer}.score-board{position:relative;height:700px}.score{width:1024px;font-size:3em;top:250px;text-align:center}.playBtn,.score{position:absolute}.playBtn{font-size:1.4em;padding:10px;top:350px;background-color:#2eb62e;color:#fff;width:150px;left:0;right:0;margin:auto;outline:none;cursor:pointer} 2 | /*# sourceMappingURL=main.0f93a89c.chunk.css.map */ -------------------------------------------------------------------------------- /service-worker.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Welcome to your Workbox-powered service worker! 3 | * 4 | * You'll need to register this file in your web app and you should 5 | * disable HTTP caching for this file too. 6 | * See https://goo.gl/nhQhGp 7 | * 8 | * The rest of the code is auto-generated. Please don't update this file 9 | * directly; instead, make changes to your Workbox build configuration 10 | * and re-run your build process. 11 | * See https://goo.gl/2aRDsh 12 | */ 13 | 14 | importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js"); 15 | 16 | importScripts( 17 | "/precache-manifest.030e0fa724c21da457e9f8b0e5db674e.js" 18 | ); 19 | 20 | self.addEventListener('message', (event) => { 21 | if (event.data && event.data.type === 'SKIP_WAITING') { 22 | self.skipWaiting(); 23 | } 24 | }); 25 | 26 | workbox.core.clientsClaim(); 27 | 28 | /** 29 | * The workboxSW.precacheAndRoute() method efficiently caches and responds to 30 | * requests for URLs in the manifest. 31 | * See https://goo.gl/S9QRab 32 | */ 33 | self.__precacheManifest = [].concat(self.__precacheManifest || []); 34 | workbox.precaching.precacheAndRoute(self.__precacheManifest, {}); 35 | 36 | workbox.routing.registerNavigationRoute(workbox.precaching.getCacheKeyForURL("/index.html"), { 37 | 38 | blacklist: [/^\/_/,/\/[^/?]+\.[^/]+$/], 39 | }); 40 | -------------------------------------------------------------------------------- /static/js/runtime-main.64cdb813.js: -------------------------------------------------------------------------------- 1 | !function(e){function r(r){for(var n,i,l=r[0],f=r[1],a=r[2],c=0,s=[];cReact App
-------------------------------------------------------------------------------- /static/css/main.0f93a89c.chunk.css.map: -------------------------------------------------------------------------------- 1 | {"version":3,"sources":["main.0f93a89c.chunk.css","style.css"],"names":[],"mappings":"AAAA,4DAA4D,CCE5D,EACE,gCACF,CAEA,WACE,iBAAkB,CAClB,YAAa,CACb,YAAa,CACb,+BAAoC,CACpC,oCAA2C,CAC3C,kBAAmB,CACnB,YAAa,CACb,qBAAsB,CACtB,KAAQ,CACR,QAAW,CACX,MAAS,CACT,OAAU,CACV,WACF,CAEA,OACE,iBAAkB,CAClB,qBAAkC,CAClC,UAAyB,CACzB,YAAa,CACb,eAAgB,CAChB,iBACF,CAEA,UACE,eAAgB,CAChB,eAAiB,CACjB,iBACF,CAEA,aACE,iBAAkB,CAClB,+BAAoC,CACpC,cAAe,CACf,YAAa,CACb,qBAAsB,CACtB,wBACF,CAEA,WACE,iBAAkB,CAClB,YAAa,CACb,wBAAmC,CACnC,oBAAqB,CACrB,WAAY,CACZ,YAAa,CACb,WAAY,CACZ,aAAc,CACd,UAAyB,CACzB,eAAiB,CACjB,iBAAkB,CAClB,cACF,CAEA,aACE,iBAAkB,CAClB,YACF,CAEA,OAEE,YAAa,CACb,aAAc,CACd,SAAU,CACV,iBACF,CAEA,gBAPE,iBAoBF,CAbA,SAEE,eAAgB,CAChB,YAAa,CACb,SAAU,CACV,wBAAkC,CAClC,UAAyB,CACzB,WAAY,CACZ,MAAS,CACT,OAAU,CACV,WAAY,CACZ,YAAa,CACb,cACF","file":"main.0f93a89c.chunk.css","sourcesContent":["@import url(https://fonts.googleapis.com/css?family=Raleway);\n* {\n font-family: \"Raleway\", sans-serif;\n}\n\n.container {\n position: absolute;\n width: 1024px;\n height: 800px;\n border: 1px solid rgba(0, 0, 0, 0.2);\n box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);\n border-radius: 10px;\n padding: 10px;\n box-sizing: border-box;\n top: 0px;\n bottom: 0px;\n left: 0px;\n right: 0px;\n margin: auto;\n}\n\n.title {\n position: relative;\n background-color: rgba(0, 0, 0, 1);\n color: rgb(255, 255, 255);\n padding: 20px;\n font-size: 1.8em;\n border-radius: 5px;\n}\n\n.question {\n font-size: 1.2em;\n font-weight: bold;\n margin-bottom: 5px;\n}\n\n.questionBox {\n position: relative;\n border: 1px solid rgba(0, 0, 0, 0.2);\n margin-top: 5px;\n padding: 15px;\n box-sizing: border-box;\n background-color: rgb(250, 250, 250);\n}\n\n.answerBtn {\n position: relative;\n padding: 10px;\n background-color: rgb(250, 151, 37);\n display: inline-block;\n margin: 10px;\n outline: none;\n border: none;\n font-size: 1em;\n color: rgb(255, 255, 255);\n font-weight: bold;\n border-radius: 4px;\n cursor: pointer;\n}\n\n.score-board {\n position: relative;\n height: 700px;\n}\n\n.score {\n position: absolute;\n width: 1024px;\n font-size: 3em;\n top: 250px;\n text-align: center;\n}\n\n.playBtn {\n position: absolute;\n font-size: 1.4em;\n padding: 10px;\n top: 350px;\n background-color: rgb(46, 182, 46);\n color: rgb(255, 255, 255);\n width: 150px;\n left: 0px;\n right: 0px;\n margin: auto;\n outline: none;\n cursor: pointer;\n}\n\n","@import url(\"https://fonts.googleapis.com/css?family=Raleway\");\n\n* {\n font-family: \"Raleway\", sans-serif;\n}\n\n.container {\n position: absolute;\n width: 1024px;\n height: 800px;\n border: 1px solid rgba(0, 0, 0, 0.2);\n box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);\n border-radius: 10px;\n padding: 10px;\n box-sizing: border-box;\n top: 0px;\n bottom: 0px;\n left: 0px;\n right: 0px;\n margin: auto;\n}\n\n.title {\n position: relative;\n background-color: rgba(0, 0, 0, 1);\n color: rgb(255, 255, 255);\n padding: 20px;\n font-size: 1.8em;\n border-radius: 5px;\n}\n\n.question {\n font-size: 1.2em;\n font-weight: bold;\n margin-bottom: 5px;\n}\n\n.questionBox {\n position: relative;\n border: 1px solid rgba(0, 0, 0, 0.2);\n margin-top: 5px;\n padding: 15px;\n box-sizing: border-box;\n background-color: rgb(250, 250, 250);\n}\n\n.answerBtn {\n position: relative;\n padding: 10px;\n background-color: rgb(250, 151, 37);\n display: inline-block;\n margin: 10px;\n outline: none;\n border: none;\n font-size: 1em;\n color: rgb(255, 255, 255);\n font-weight: bold;\n border-radius: 4px;\n cursor: pointer;\n}\n\n.score-board {\n position: relative;\n height: 700px;\n}\n\n.score {\n position: absolute;\n width: 1024px;\n font-size: 3em;\n top: 250px;\n text-align: center;\n}\n\n.playBtn {\n position: absolute;\n font-size: 1.4em;\n padding: 10px;\n top: 350px;\n background-color: rgb(46, 182, 46);\n color: rgb(255, 255, 255);\n width: 150px;\n left: 0px;\n right: 0px;\n margin: auto;\n outline: none;\n cursor: pointer;\n}\n"]} -------------------------------------------------------------------------------- /static/js/runtime-main.64cdb813.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"sources":["../webpack/bootstrap"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","1","exports","module","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","this","oldJsonpFunction","slice"],"mappings":"aACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAAW,GACpCD,EAAIH,EAASK,OAAQF,IACzBJ,EAAUC,EAASG,GAChBG,OAAOC,UAAUC,eAAeC,KAAKC,EAAiBX,IAAYW,EAAgBX,IACpFK,EAASO,KAAKD,EAAgBX,GAAS,IAExCW,EAAgBX,GAAW,EAE5B,IAAID,KAAYG,EACZK,OAAOC,UAAUC,eAAeC,KAAKR,EAAaH,KACpDc,EAAQd,GAAYG,EAAYH,IAKlC,IAFGe,GAAqBA,EAAoBhB,GAEtCO,EAASC,QACdD,EAASU,OAATV,GAOD,OAHAW,EAAgBJ,KAAKK,MAAMD,EAAiBb,GAAkB,IAGvDe,IAER,SAASA,IAER,IADA,IAAIC,EACIf,EAAI,EAAGA,EAAIY,EAAgBV,OAAQF,IAAK,CAG/C,IAF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,EAAMK,MAAOA,IACtD,EAAPE,GAA4B,iBAATF,EAAmB,IAAI,IAAIM,KAAON,EAAOnB,EAAoBS,EAAEc,EAAIE,EAAK,SAASA,GAAO,OAAON,EAAMM,IAAQC,KAAK,KAAMD,IAC9I,OAAOF,GAIRvB,EAAoB2B,EAAI,SAAStB,GAChC,IAAIM,EAASN,GAAUA,EAAOiB,WAC7B,WAAwB,OAAOjB,EAAgB,SAC/C,WAA8B,OAAOA,GAEtC,OADAL,EAAoBS,EAAEE,EAAQ,IAAKA,GAC5BA,GAIRX,EAAoBY,EAAI,SAASgB,EAAQC,GAAY,OAAO/C,OAAOC,UAAUC,eAAeC,KAAK2C,EAAQC,IAGzG7B,EAAoB8B,EAAI,IAExB,IAAIC,EAAaC,KAA0B,oBAAIA,KAA0B,qBAAK,GAC1EC,EAAmBF,EAAW5C,KAAKuC,KAAKK,GAC5CA,EAAW5C,KAAOf,EAClB2D,EAAaA,EAAWG,QACxB,IAAI,IAAIvD,EAAI,EAAGA,EAAIoD,EAAWlD,OAAQF,IAAKP,EAAqB2D,EAAWpD,IAC3E,IAAIU,EAAsB4C,EAI1BxC,I","file":"static/js/runtime-main.64cdb813.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t1: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \tvar jsonpArray = this[\"webpackJsonpquizbox\"] = this[\"webpackJsonpquizbox\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// run deferred modules from other chunks\n \tcheckDeferredModules();\n"],"sourceRoot":""} -------------------------------------------------------------------------------- /static/js/main.c5480c88.chunk.js: -------------------------------------------------------------------------------- 1 | (this.webpackJsonpquizbox=this.webpackJsonpquizbox||[]).push([[0],{13:function(e,t,n){},14:function(e,t,n){"use strict";n.r(t);var s=n(2),o=n(3),a=n(7),r=n(5),i=n(0),c=n.n(i),u=n(4),h=n.n(u),l=(n(13),[{question:"Virgin Trains, Virgin Atlantic and Virgin Racing, are all companies owned by which famous entrepreneur? ",answers:["Richard Branson","Alan Sugar","Donald Trump","Bill Gates"],correct:"Richard Branson",questionId:"099099"},{question:'Where is the train station "Llanfair\xadpwllgwyngyll\xadgogery\xadchwyrn\xaddrobwll\xadllan\xadtysilio\xadgogo\xadgoch"?',answers:["Wales","Moldova","Czech Republic","Denmark"],correct:"Wales",questionId:"183452"},{question:"Which company did Valve cooperate with in the creation of the Vive?",answers:["HTC","Oculus","Google","Razer"],correct:"HTC",questionId:"267908"},{question:"What's the name of Batman's parents?",answers:["Thomas & Martha","Joey & Jackie","Jason & Sarah","Todd & Mira"],correct:"Thomas & Martha",questionId:"333247"},{question:"What is the most common surname Wales?",answers:["Jones","Williams","Davies","Evans"],correct:"Jones",questionId:"496293"},{question:"What was the name of the WWF professional wrestling tag team made up of the wrestlers Ax and Smash?",answers:["Demolition","The Dream Team","The Bushwhackers","The British Bulldogs"],correct:"Demolition",questionId:"588909"},{question:'What name represents the letter "M" in the NATO phonetic alphabet?',answers:["Mike","Matthew","Mark","Max"],correct:"Mike",questionId:"648452"},{question:"What is the first book of the Old Testament?",answers:["Genesis","Exodus","Leviticus","Numbers"],correct:"Genesis",questionId:"786649"},{question:"In the video-game franchise Kingdom Hearts, the main protagonist, carries a weapon with what shape?",answers:["Key","Sword","Pen","Cellphone"],correct:"Key",questionId:"839754"},{question:"Which best selling toy of 1983 caused hysteria, resulting in riots breaking out in stores?",answers:["Cabbage Patch Kids","Transformers","Care Bears","Rubik\u2019s Cube"],correct:"Cabbage Patch Kids",questionId:"98390"},{question:"What does a funambulist walk on?",answers:["A Tight Rope","Broken Glass","Balls","The Moon"],correct:"A Tight Rope",questionId:"1071006"},{question:"In past times, what would a gentleman keep in his fob pocket?",answers:["Watch","Money","Keys","Notebook"],correct:"Watch",questionId:"1174154"},{question:"Area 51 is located in which US state?",answers:["Nevada","Arizona","New Mexico","Utah"],correct:"Nevada",questionId:"1226535"},{question:"How would one say goodbye in Spanish?",answers:["Adi\xf3s"," Hola","Au Revoir","Salir"],correct:"Adi\xf3s",questionId:"1310938"},{question:"What is the largest organ of the human body?",answers:["Skin","Heart","large Intestine","Liver"],correct:"Skin",questionId:"1436873"},{question:"Which sign of the zodiac is represented by the Crab?",answers:["Cancer","Libra","Virgo","Sagittarius"],correct:"Cancer",questionId:"1515110"},{question:"On a dartboard, what number is directly opposite No. 1?",answers:["19","20","12","15"],correct:"19",questionId:"1642728"},{question:"What does the 'S' stand for in the abbreviation SIM, as in SIM card? ",answers:["Subscriber","Single","Secure","Solid"],correct:"Subscriber",questionId:"1747256"},{question:"What word represents the letter 'T' in the NATO phonetic alphabet?",answers:["Tango","Target","Taxi","Turkey"],correct:"Tango",questionId:"1822532"},{question:"Which American president appears on a one dollar bill?",answers:["George Washington","Thomas Jefferson","Abraham Lincoln","Benjamin Franklin"],correct:"George Washington",questionId:"195075"},{question:'What is "dabbing"?',answers:["A dance","A medical procedure","A sport","A language"],correct:"A dance",questionId:"2019778"},{question:"What is the name of the Jewish New Year?",answers:["Rosh Hashanah","Elul","New Year","Succoss"],correct:"Rosh Hashanah",questionId:"2134343"},{question:"Which one of the following rhythm games was made by Harmonix?",answers:["Rock Band","Meat Beat Mania","Guitar Hero Live","Dance Dance Revolution"],correct:"Rock Band",questionId:"2210799"},{question:"What type of animal was Harambe, who was shot after a child fell into it's enclosure at the Cincinnati Zoo?",answers:["Gorilla","Tiger","Panda","Crocodile"],correct:"Gorilla",questionId:"2379831"},{question:"Red Vines is a brand of what type of candy?",answers:["Licorice","Lollipop","Chocolate","Bubblegum"],correct:"Licorice",questionId:"2426418"},{question:"What is the nickname of the US state of California?",answers:["Golden State","Sunshine State","Bay State","Treasure State"],correct:"Golden State",questionId:"2510086"},{question:"What is on display in the Madame Tussaud's museum in London?",answers:["Wax sculptures","Designer clothing","Unreleased film reels","Vintage cars"],correct:"Wax sculptures",questionId:"2685745"},{question:"What was the nickname given to the Hughes H-4 Hercules, a heavy transport flying boat which achieved flight in 1947?",answers:["Spruce Goose","Noah's Ark","Fat Man","Trojan Horse"],correct:"Spruce Goose",questionId:"2796884"},{question:"Which of these colours is NOT featured in the logo for Google?",answers:["Pink","Yellow","Blue","Green"],correct:"Pink",questionId:"2838900"},{question:'What is the French word for "hat"?',answers:["Chapeau","Bonnet"," \xc9charpe"," Casque"],correct:"Chapeau",questionId:"298060"},{question:"Five dollars is worth how many nickles?",answers:["100","50","25","69"],correct:"100",questionId:"3096579"},{question:"Who is depicted on the US hundred dollar bill?",answers:["Benjamin Franklin","George Washington","Abraham Lincoln","Thomas Jefferson"],correct:"Benjamin Franklin",questionId:"3182461"},{question:"What do the letters in the GMT time zone stand for?",answers:["Greenwich Mean Time","Global Meridian Time","General Median Time","Glasgow Man Time"],correct:"Greenwich Mean Time",questionId:"3239112"},{question:"Which one of these is not a typical European sword design?",answers:["Scimitar","Falchion","Ulfberht","Flamberge"],correct:"Scimitar",questionId:"3318503"},{question:'According to Sherlock Holmes, "If you eliminate the impossible, whatever remains, however improbable, must be the..."',answers:["Truth","Answer","Cause","Source"],correct:"Truth",questionId:"3410327"},{question:"What is the name of Poland in Polish?",answers:["Polska","Pupcia","Polszka","P\xf3land"],correct:"Polska",questionId:"3542596"},{question:"The New York Times slogan is, \u201cAll the News That\u2019s Fit to\u2026\u201d",answers:["Print","Digest","Look","Read"],correct:"Print",questionId:"3667517"},{question:"What do the letters of the fast food chain KFC stand for?",answers:["Kentucky Fried Chicken","Kentucky Fresh Cheese","Kibbled Freaky Cow","Kiwi Food Cut"],correct:"Kentucky Fried Chicken",questionId:"3791672"},{question:"Which restaurant's mascot is a clown?",answers:["McDonald's","Whataburger","Burger King","Sonic"],correct:"McDonald's",questionId:"3893585"},{question:'What color is the "Ex" in FedEx Ground?',answers:["Green","Red","Light Blue","Orange"],correct:"Green",questionId:"3913430"},{question:"How tall is the Burj Khalifa?",answers:["2,722 ft","2,717 ft","2,546 ft","3,024 ft"],correct:"2,722 ft",questionId:"4049121"},{question:"Which of the following card games revolves around numbers and basic math?",answers:["Uno","Go Fish","Twister","Munchkin"],correct:"Uno",questionId:"4150746"},{question:"What machine element is located in the center of fidget spinners?",answers:["Bearings","Axles","Gears","Belts"],correct:"Bearings",questionId:"4235063"},{question:"Which sign of the zodiac comes between Virgo and Scorpio?",answers:["Libra","Gemini","Taurus","Capricorn"],correct:"Libra",questionId:"4321002"},{question:"Which of the following presidents is not on Mount Rushmore?",answers:["John F. Kennedy","Theodore Roosevelt","Abraham Lincoln","Thomas Jefferson"],correct:"John F. Kennedy",questionId:"4442286"},{question:"What is Tasmania?",answers:["An Australian State","A flavor of Ben and Jerry's ice-cream","A Psychological Disorder","The Name of a Warner Brothers Cartoon Character"],correct:"An Australian State",questionId:"4564430"},{question:"What company developed the vocaloid Hatsune Miku?",answers:["Crypton Future Media","Sega","Sony","Yamaha Corporation"],correct:"Crypton Future Media",questionId:"4630606"},{question:"Which country, not including Japan, has the most people of japanese decent?",answers:["Brazil","China","South Korea","United States of America"],correct:"Brazil",questionId:"4795960"},{question:"Which candy is NOT made by Mars?",answers:["Almond Joy","M&M's","Twix","Snickers"],correct:"Almond Joy",questionId:"4811162"},{question:"In which fast food chain can you order a Jamocha Shake?",answers:["Arby's","McDonald's","Burger King","Wendy's"],correct:"Arby's",questionId:"4982981"}]),d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5;return Promise.resolve(l.sort((function(){return.5-Math.random()})).slice(0,e))},m=n(6),w=function(e){var t=e.question,n=e.options,s=e.selected,o=Object(i.useState)(n),a=Object(m.a)(o,2),r=a[0],u=a[1];return c.a.createElement("div",{className:"questionBox"},c.a.createElement("div",{className:"question"},t),r.map((function(e,t){return c.a.createElement("button",{key:t,className:"answerBtn",onClick:function(){u([e]),s(e)}},e)})))},q=function(e){var t=e.score,n=e.playAgain;return c.a.createElement("div",{className:"score-board"},c.a.createElement("div",{className:"score"},"You scored ",t," / 5 correct answers!"),c.a.createElement("button",{className:"playBtn",onClick:n},"Play again!"))},g=function(e){Object(a.a)(n,e);var t=Object(r.a)(n);function n(){var e;Object(s.a)(this,n);for(var o=arguments.length,a=new Array(o),r=0;r0&&this.state.responses<5&&this.state.questionBank.map((function(t){var n=t.question,s=t.answers,o=t.correct,a=t.questionId;return c.a.createElement(w,{question:n,options:s,key:a,selected:function(t){return e.computeAnswer(t,o)}})})),5===this.state.responses?c.a.createElement(q,{score:this.state.score,playAgain:this.playAgain}):null)}}]),n}(i.Component);h.a.render(c.a.createElement(g,null),document.getElementById("root"))},8:function(e,t,n){e.exports=n(14)}},[[8,1,2]]]); 2 | //# sourceMappingURL=main.c5480c88.chunk.js.map -------------------------------------------------------------------------------- /static/js/main.c5480c88.chunk.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"sources":["quizService/index.js","components/QuestionBox.js","components/Result.js","index.js"],"names":["qBank","question","answers","correct","questionId","n","Promise","resolve","sort","Math","random","slice","QuestionBox","options","selected","useState","answer","setAnswer","className","map","text","index","key","onClick","Result","score","playAgain","QuizBox","state","questionBank","responses","getQuestions","quizService","then","setState","computeAnswer","correctAnswer","this","length","Component","ReactDOM","render","document","getElementById"],"mappings":"+LAAMA,G,MAAQ,CACZ,CACEC,SACE,6GACFC,QAAS,CAAC,kBAAmB,aAAc,eAAgB,cAC3DC,QAAS,kBACTC,WAAY,UAEd,CACEH,SACE,2HACFC,QAAS,CAAC,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AAKG,SAAS,CACZT,MAAO,EACPK,UAAW,K,kEAIbO,KAAKN,iB,+BAEE,IAAD,OACN,OACE,yBAAKb,UAAU,aACb,yBAAKA,UAAU,SAAf,WACCmB,KAAKT,MAAMC,aAAaS,OAAS,GAClCD,KAAKT,MAAME,UAAW,GACtBO,KAAKT,MAAMC,aAAaV,KACtB,gBAAElB,EAAF,EAAEA,SAAUC,EAAZ,EAAYA,QAASC,EAArB,EAAqBA,QAASC,EAA9B,EAA8BA,WAA9B,OACA,kBAAC,EAAD,CACEH,SAAYA,EACZY,QAAWX,EACXoB,IAAMlB,EACNU,SAAY,SAAAE,GAAM,OAAI,EAAKmB,cAAcnB,EAAQb,SAI3B,IAAzBkC,KAAKT,MAAME,UACZ,kBAAC,EAAD,CAAQL,MAASY,KAAKT,MAAMH,MAAOC,UAAaW,KAAKX,YACjD,U,GAnDUa,aAyDtBC,IAASC,OACP,kBAAC,EAAD,MAAYC,SAASC,eAAe,U","file":"static/js/main.c5480c88.chunk.js","sourcesContent":["const qBank = [\n {\n question:\n \"Virgin Trains, Virgin Atlantic and Virgin Racing, are all companies owned by which famous entrepreneur? \",\n answers: [\"Richard Branson\", \"Alan Sugar\", \"Donald Trump\", \"Bill Gates\"],\n correct: \"Richard Branson\",\n questionId: \"099099\"\n },\n {\n question:\n 'Where is the train station \"Llanfair­pwllgwyngyll­gogery­chwyrn­drobwll­llan­tysilio­gogo­goch\"?',\n answers: [\"Wales\", \"Moldova\", \"Czech Republic\", \"Denmark\"],\n correct: \"Wales\",\n questionId: \"183452\"\n },\n {\n question:\n \"Which company did Valve cooperate with in the creation of the Vive?\",\n answers: [\"HTC\", \"Oculus\", \"Google\", \"Razer\"],\n correct: \"HTC\",\n questionId: \"267908\"\n },\n {\n question: \"What's the name of Batman's parents?\",\n answers: [\n \"Thomas & Martha\",\n \"Joey & Jackie\",\n \"Jason & Sarah\",\n \"Todd & Mira\"\n ],\n correct: \"Thomas & Martha\",\n questionId: \"333247\"\n },\n {\n question: \"What is the most common surname Wales?\",\n answers: [\"Jones\", \"Williams\", \"Davies\", \"Evans\"],\n correct: \"Jones\",\n questionId: \"496293\"\n },\n {\n question:\n \"What was the name of the WWF professional wrestling tag team made up of the wrestlers Ax and Smash?\",\n answers: [\n \"Demolition\",\n \"The Dream Team\",\n \"The Bushwhackers\",\n \"The British Bulldogs\"\n ],\n correct: \"Demolition\",\n questionId: \"588909\"\n },\n {\n question:\n 'What name represents the letter \"M\" in the NATO phonetic alphabet?',\n answers: [\"Mike\", \"Matthew\", \"Mark\", \"Max\"],\n correct: \"Mike\",\n questionId: \"648452\"\n },\n {\n question: \"What is the first book of the Old Testament?\",\n answers: [\"Genesis\", \"Exodus\", \"Leviticus\", \"Numbers\"],\n correct: \"Genesis\",\n questionId: \"786649\"\n },\n {\n question:\n \"In the video-game franchise Kingdom Hearts, the main protagonist, carries a weapon with what shape?\",\n answers: [\"Key\", \"Sword\", \"Pen\", \"Cellphone\"],\n correct: \"Key\",\n questionId: \"839754\"\n },\n {\n question:\n \"Which best selling toy of 1983 caused hysteria, resulting in riots breaking out in stores?\",\n answers: [\n \"Cabbage Patch Kids\",\n \"Transformers\",\n \"Care Bears\",\n \"Rubik’s Cube\"\n ],\n correct: \"Cabbage Patch Kids\",\n questionId: \"98390\"\n },\n {\n question: \"What does a funambulist walk on?\",\n answers: [\"A Tight Rope\", \"Broken Glass\", \"Balls\", \"The Moon\"],\n correct: \"A Tight Rope\",\n questionId: \"1071006\"\n },\n {\n question: \"In past times, what would a gentleman keep in his fob pocket?\",\n answers: [\"Watch\", \"Money\", \"Keys\", \"Notebook\"],\n correct: \"Watch\",\n questionId: \"1174154\"\n },\n {\n question: \"Area 51 is located in which US state?\",\n answers: [\"Nevada\", \"Arizona\", \"New Mexico\", \"Utah\"],\n correct: \"Nevada\",\n questionId: \"1226535\"\n },\n {\n question: \"How would one say goodbye in Spanish?\",\n answers: [\"Adiós\", \" Hola\", \"Au Revoir\", \"Salir\"],\n correct: \"Adiós\",\n questionId: \"1310938\"\n },\n {\n question: \"What is the largest organ of the human body?\",\n answers: [\"Skin\", \"Heart\", \"large Intestine\", \"Liver\"],\n correct: \"Skin\",\n questionId: \"1436873\"\n },\n {\n question: \"Which sign of the zodiac is represented by the Crab?\",\n answers: [\"Cancer\", \"Libra\", \"Virgo\", \"Sagittarius\"],\n correct: \"Cancer\",\n questionId: \"1515110\"\n },\n {\n question: \"On a dartboard, what number is directly opposite No. 1?\",\n answers: [\"19\", \"20\", \"12\", \"15\"],\n correct: \"19\",\n questionId: \"1642728\"\n },\n {\n question:\n \"What does the 'S' stand for in the abbreviation SIM, as in SIM card? \",\n answers: [\"Subscriber\", \"Single\", \"Secure\", \"Solid\"],\n correct: \"Subscriber\",\n questionId: \"1747256\"\n },\n {\n question:\n \"What word represents the letter 'T' in the NATO phonetic alphabet?\",\n answers: [\"Tango\", \"Target\", \"Taxi\", \"Turkey\"],\n correct: \"Tango\",\n questionId: \"1822532\"\n },\n {\n question: \"Which American president appears on a one dollar bill?\",\n answers: [\n \"George Washington\",\n \"Thomas Jefferson\",\n \"Abraham Lincoln\",\n \"Benjamin Franklin\"\n ],\n correct: \"George Washington\",\n questionId: \"195075\"\n },\n {\n question: 'What is \"dabbing\"?',\n answers: [\"A dance\", \"A medical procedure\", \"A sport\", \"A language\"],\n correct: \"A dance\",\n questionId: \"2019778\"\n },\n {\n question: \"What is the name of the Jewish New Year?\",\n answers: [\"Rosh Hashanah\", \"Elul\", \"New Year\", \"Succoss\"],\n correct: \"Rosh Hashanah\",\n questionId: \"2134343\"\n },\n {\n question: \"Which one of the following rhythm games was made by Harmonix?\",\n answers: [\n \"Rock Band\",\n \"Meat Beat Mania\",\n \"Guitar Hero Live\",\n \"Dance Dance Revolution\"\n ],\n correct: \"Rock Band\",\n questionId: \"2210799\"\n },\n {\n question:\n \"What type of animal was Harambe, who was shot after a child fell into it's enclosure at the Cincinnati Zoo?\",\n answers: [\"Gorilla\", \"Tiger\", \"Panda\", \"Crocodile\"],\n correct: \"Gorilla\",\n questionId: \"2379831\"\n },\n {\n question: \"Red Vines is a brand of what type of candy?\",\n answers: [\"Licorice\", \"Lollipop\", \"Chocolate\", \"Bubblegum\"],\n correct: \"Licorice\",\n questionId: \"2426418\"\n },\n {\n question: \"What is the nickname of the US state of California?\",\n answers: [\"Golden State\", \"Sunshine State\", \"Bay State\", \"Treasure State\"],\n correct: \"Golden State\",\n questionId: \"2510086\"\n },\n {\n question: \"What is on display in the Madame Tussaud's museum in London?\",\n answers: [\n \"Wax sculptures\",\n \"Designer clothing\",\n \"Unreleased film reels\",\n \"Vintage cars\"\n ],\n correct: \"Wax sculptures\",\n questionId: \"2685745\"\n },\n {\n question:\n \"What was the nickname given to the Hughes H-4 Hercules, a heavy transport flying boat which achieved flight in 1947?\",\n answers: [\"Spruce Goose\", \"Noah's Ark\", \"Fat Man\", \"Trojan Horse\"],\n correct: \"Spruce Goose\",\n questionId: \"2796884\"\n },\n {\n question: \"Which of these colours is NOT featured in the logo for Google?\",\n answers: [\"Pink\", \"Yellow\", \"Blue\", \"Green\"],\n correct: \"Pink\",\n questionId: \"2838900\"\n },\n {\n question: 'What is the French word for \"hat\"?',\n answers: [\"Chapeau\", \"Bonnet\", \" Écharpe\", \" Casque\"],\n correct: \"Chapeau\",\n questionId: \"298060\"\n },\n {\n question: \"Five dollars is worth how many nickles?\",\n answers: [\"100\", \"50\", \"25\", \"69\"],\n correct: \"100\",\n questionId: \"3096579\"\n },\n {\n question: \"Who is depicted on the US hundred dollar bill?\",\n answers: [\n \"Benjamin Franklin\",\n \"George Washington\",\n \"Abraham Lincoln\",\n \"Thomas Jefferson\"\n ],\n correct: \"Benjamin Franklin\",\n questionId: \"3182461\"\n },\n {\n question: \"What do the letters in the GMT time zone stand for?\",\n answers: [\n \"Greenwich Mean Time\",\n \"Global Meridian Time\",\n \"General Median Time\",\n \"Glasgow Man Time\"\n ],\n correct: \"Greenwich Mean Time\",\n questionId: \"3239112\"\n },\n {\n question: \"Which one of these is not a typical European sword design?\",\n answers: [\"Scimitar\", \"Falchion\", \"Ulfberht\", \"Flamberge\"],\n correct: \"Scimitar\",\n questionId: \"3318503\"\n },\n {\n question:\n 'According to Sherlock Holmes, \"If you eliminate the impossible, whatever remains, however improbable, must be the...\"',\n answers: [\"Truth\", \"Answer\", \"Cause\", \"Source\"],\n correct: \"Truth\",\n questionId: \"3410327\"\n },\n {\n question: \"What is the name of Poland in Polish?\",\n answers: [\"Polska\", \"Pupcia\", \"Polszka\", \"Póland\"],\n correct: \"Polska\",\n questionId: \"3542596\"\n },\n {\n question: \"The New York Times slogan is, “All the News That’s Fit to…”\",\n answers: [\"Print\", \"Digest\", \"Look\", \"Read\"],\n correct: \"Print\",\n questionId: \"3667517\"\n },\n {\n question: \"What do the letters of the fast food chain KFC stand for?\",\n answers: [\n \"Kentucky Fried Chicken\",\n \"Kentucky Fresh Cheese\",\n \"Kibbled Freaky Cow\",\n \"Kiwi Food Cut\"\n ],\n correct: \"Kentucky Fried Chicken\",\n questionId: \"3791672\"\n },\n {\n question: \"Which restaurant's mascot is a clown?\",\n answers: [\"McDonald's\", \"Whataburger\", \"Burger King\", \"Sonic\"],\n correct: \"McDonald's\",\n questionId: \"3893585\"\n },\n {\n question: 'What color is the \"Ex\" in FedEx Ground?',\n answers: [\"Green\", \"Red\", \"Light Blue\", \"Orange\"],\n correct: \"Green\",\n questionId: \"3913430\"\n },\n {\n question: \"How tall is the Burj Khalifa?\",\n answers: [\"2,722 ft\", \"2,717 ft\", \"2,546 ft\", \"3,024 ft\"],\n correct: \"2,722 ft\",\n questionId: \"4049121\"\n },\n {\n question:\n \"Which of the following card games revolves around numbers and basic math?\",\n answers: [\"Uno\", \"Go Fish\", \"Twister\", \"Munchkin\"],\n correct: \"Uno\",\n questionId: \"4150746\"\n },\n {\n question:\n \"What machine element is located in the center of fidget spinners?\",\n answers: [\"Bearings\", \"Axles\", \"Gears\", \"Belts\"],\n correct: \"Bearings\",\n questionId: \"4235063\"\n },\n {\n question: \"Which sign of the zodiac comes between Virgo and Scorpio?\",\n answers: [\"Libra\", \"Gemini\", \"Taurus\", \"Capricorn\"],\n correct: \"Libra\",\n questionId: \"4321002\"\n },\n {\n question: \"Which of the following presidents is not on Mount Rushmore?\",\n answers: [\n \"John F. Kennedy\",\n \"Theodore Roosevelt\",\n \"Abraham Lincoln\",\n \"Thomas Jefferson\"\n ],\n correct: \"John F. Kennedy\",\n questionId: \"4442286\"\n },\n {\n question: \"What is Tasmania?\",\n answers: [\n \"An Australian State\",\n \"A flavor of Ben and Jerry's ice-cream\",\n \"A Psychological Disorder\",\n \"The Name of a Warner Brothers Cartoon Character\"\n ],\n correct: \"An Australian State\",\n questionId: \"4564430\"\n },\n {\n question: \"What company developed the vocaloid Hatsune Miku?\",\n answers: [\"Crypton Future Media\", \"Sega\", \"Sony\", \"Yamaha Corporation\"],\n correct: \"Crypton Future Media\",\n questionId: \"4630606\"\n },\n {\n question:\n \"Which country, not including Japan, has the most people of japanese decent?\",\n answers: [\"Brazil\", \"China\", \"South Korea\", \"United States of America\"],\n correct: \"Brazil\",\n questionId: \"4795960\"\n },\n {\n question: \"Which candy is NOT made by Mars?\",\n answers: [\"Almond Joy\", \"M&M's\", \"Twix\", \"Snickers\"],\n correct: \"Almond Joy\",\n questionId: \"4811162\"\n },\n {\n question: \"In which fast food chain can you order a Jamocha Shake?\",\n answers: [\"Arby's\", \"McDonald's\", \"Burger King\", \"Wendy's\"],\n correct: \"Arby's\",\n questionId: \"4982981\"\n }\n];\n\nexport default (n = 5) =>\n Promise.resolve(qBank.sort(() => 0.5 - Math.random()).slice(0, n));\n","import React, {useState} from \"react\";\n\nconst QuestionBox = ({question, options, selected}) => {\n const [answer, setAnswer] = useState(options);\n return (\n
\n
{question}
\n {answer.map((text, index) => (\n {\n setAnswer([text]);\n selected(text);\n }}\n >\n {text}\n \n ))}\n
\n );\n};\n\nexport default QuestionBox;\n","import React from \"react\";\n\nconst Result = ({score, playAgain}) => (\n
\n
You scored {score} / 5 correct answers!
\n \n
\n);\n\nexport default Result;\n","import React, { Component } from 'react';\nimport ReactDOM from 'react-dom';\nimport \"./assets/style.css\";\nimport quizService from \"./quizService\";\nimport QuestionBox from \"./components/QuestionBox\";\nimport Result from \"./components/Result\";\n\nclass QuizBox extends Component{\n state = {\n questionBank: [],\n score: 0,\n responses: 0,\n };\n getQuestions = () =>{\n quizService().then(question => {\n this.setState({\n questionBank: question\n });\n });\n };\n computeAnswer = (answer, correctAnswer) =>{\n if (answer === correctAnswer) {\n this.setState({\n score: this.state.score + 1\n });\n };\n this.setState({\n responses: this.state.responses <5 ? this.state.responses + 1 : 5\n });\n };\n playAgain = () => {\n this.getQuestions();\n this.setState({\n score: 0,\n responses: 0\n })\n }\n componentDidMount() {\n this.getQuestions();\n }\n render(){\n return(\n
\n
QuizBox
\n {this.state.questionBank.length > 0 &&\n this.state.responses <5 && \n this.state.questionBank.map(\n ({question, answers, correct, questionId}) =>(\n this.computeAnswer(answer, correct)}\n />\n )\n )}\n {this.state.responses === 5 ? (\n \n ) : null}\n
\n )\n }\n}\n\nReactDOM.render(\n , document.getElementById('root')\n);"],"sourceRoot":""} -------------------------------------------------------------------------------- /static/js/2.593dcfa9.chunk.js: -------------------------------------------------------------------------------- 1 | /*! For license information please see 2.593dcfa9.chunk.js.LICENSE.txt */ 2 | (this.webpackJsonpquizbox=this.webpackJsonpquizbox||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(9)},function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function o(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(l){return!1}}()?Object.assign:function(e,t){for(var n,a,u=o(e),c=1;ce.length)&&(t=e.length);for(var n=0,r=new Array(t);nO.length&&O.push(e)}function M(e,t,n){return null==e?0:function e(t,n,r,l){var a=typeof t;"undefined"!==a&&"boolean"!==a||(t=null);var u=!1;if(null===t)u=!0;else switch(a){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case i:case o:u=!0}}if(u)return r(l,t,""===n?"."+I(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;c