PageSourceSearch

https://quiz-app-seven.vercel.app/js/app.76c5b723.js

js quiz-app-seven.vercel.app collected 2026-10-03 07:33:52 UTC 6,499 bytes, 2 lines download raw bytes

1(function(e){function t(t){for(var r,c,i=t[0],a=t[1],u=t[2],f=0,d=[];f<i.length;f++)c=i[f],Object.prototype.hasOwnProperty.call(s,c)&&s[c]&&d.push(s[c][0]),s[c]=0;for(r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r]);l&&l(t);while(d.length)d.shift()();return o.push.apply(o,u||[]),n()}function n(){for(var e,t=0;t<o.length;t++){for(var n=o[t],r=!0,i=1;i<n.length;i++){var a=n[i];0!==s[a]&&(r=!1)}r&&(o.splice(t--,1),e=c(c.s=n[0]))}return e}var r={},s={app:0},o=[];function c(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,c),n.l=!0,n.exports}c.m=e,c.c=r,c.d=function(e,t,n){c.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},c.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.t=function(e,t){if(1&t&&(e=c(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(c.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)c.d(n,r,function(t){return e[t]}.bind(null,r));return n},c.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return c.d(t,"a",t),t},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c.p="/";var i=window["webpackJsonp"]=window["webpackJsonp"]||[],a=i.push.bind(i);i.push=t,i=i.slice();for(var u=0;u<i.length;u++)t(i[u]);var l=a;o.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("56d7")},"0d17":function(e,t,n){},"56d7":function(e,t,n){"use strict";n.r(t);n("e260"),n("e6cf"),n("cca6"),n("a79d"),n("0cdd");var r=n("2b0e"),s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-app",[n("v-app-bar",{attrs:{app:"",color:"primary",dark:""}},[n("h3",[e._v("Fancy quiz app by "),n("a",{attrs:{href:"https://madhusudan.live"}},[e._v("Madhusudan")])]),n("v-spacer"),n("h4",[e._v("score: "+e._s(e.numCorrect)+" / "+e._s(e.numTotal))])],1),n("v-main",[n("v-container",{staticClass:"grey lighten-5"},[n("v-row",{attrs:{"no-gutters":""}},[e.questions.length?n("v-col",{staticClass:"mx-auto",attrs:{cols:"12",md:"12",lg:"9"}},[n("QuestionBox",{staticStyle:{margin:"0 auto","margin-top":"2em"},attrs:{next:e.next,currentQuestion:e.questions[e.index],increment:e.increment}})],1):e.err?n("div",[e._v(e._s(e.err))]):n("v-col",{attrs:{cols:"3",offssm:"3",md:"3"}},[n("v-spacer"),n("v-progress-circular",{staticClass:"mx-auto",attrs:{size:70,width:7,color:"purple",indeterminate:""}}),n("v-spacer")],1)],1)],1)],1)],1)},o=[],c=(n("d3b7"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"question-box",staticStyle:{"text-align":"center"}},[n("div",[e._m(0),[e._v(e._s(e.currentQuestion.question))],n("hr",{staticClass:"my-4"}),n("v-container",e._l(e.shuffledAnswers,(function(t,r){return n("v-btn",{key:r,staticClass:"list mx-5",class:e.ansClass(r),attrs:{text:""},on:{click:function(t){return t.preventDefault(),e.select(r)}}},[e._v(e._s(t))])})),1),n("hr",{staticClass:"my-5"}),n("v-btn",{staticClass:"mx-5",attrs:{raised:"",color:"primary",disabled:null===e.selected||e.answered},on:{click:e.submitAnswer}},[e._v("Submit")]),n("v-btn",{attrs:{raised:"",color:"success",disabled:!e.answered},on:{click:e.next}},[e._v("Next")])],2)])}),i=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"row"},[n("h1",{staticStyle:{margin:"0 auto","margin-bottom":"1.5em"}},[e._v("Quiz")])])}],a=(n("99af"),n("c975"),n("2909")),u=n("2ef0"),l=n.n(u),f={props:{currentQuestion:Object,next:Function,increment:Function},data:function(){return{selected:null,shuffledAnswers:[],answered:!1,correctIndex:null}},computed:{answers:function(){var e=Object(a["a"])(this.currentQuestion.incorrect_answers);return e.push(this.currentQuestion.correct_answer),e}},methods:{select:function(e){console.log(e),this.selected=e},shuffleAnswers:function(){var e=[].concat(Object(a["a"])(this.currentQuestion.incorrect_answers),[this.currentQuestion.correct_answer]);this.shuffledAnswers=l.a.shuffle(e),this.correctIndex=this.shuffledAnswers.indexOf(this.currentQuestion.correct_answer)},submitAnswer:function(){var e=!1;this.selected===this.correctIndex&&(e=!0),this.answered=!0,this.increment(e)},ansClass:function(e){var t="";return t=this.answered||this.selected!==e?this.answered&&this.correctIndex===e?"correct":this.answered&&this.selected===e&&this.correctIndex!==e?"wrong":"":"selected",t}},watch:{currentQuestion:{immediate:!0,handler:function(){this.selected=null,this.shuffleAnswers(),this.answered=!1}}}},d=f,p=(n("f8b9"),n("2877")),h=n("6544"),v=n.n(h),m=n("8336"),b=n("a523"),w=Object(p["a"])(d,c,i,!1,null,"61074b29",null),g=w.exports;v()(w,{VBtn:m["a"],VContainer:b["a"]});var y={name:"App",components:{QuestionBox:g},mounted:function(){var e=this;fetch("https://opentdb.com/api.php?amount=10&category=27&ype=multiple",{method:"get"}).then((function(e){return e.json()})).then((function(t){e.questions=t.results})).catch((function(t){e.err=t.message,console.log(t.message)}))},data:function(){return{questions:[],index:0,err:null,numCorrect:0,numTotal:0}},methods:{next:function(){this.index++},increment:function(e){e&&this.numCorrect++,this.numTotal++}}},_=y,x=n("7496"),C=n("40dc"),O=n("62ad"),j=n("f6c4"),A=n("490a"),k=n("0fd9"),Q=n("2fa4"),S=Object(p["a"])(_,s,o,!1,null,null,null),V=S.exports;v()(S,{VApp:x["a"],VAppBar:C["a"],VCol:O["a"],VContainer:b["a"],VMain:j["a"],VProgressCircular:A["a"],VRow:k["a"],VSpacer:Q["a"]});var q=n("f309");r["a"].use(q["a"]);var P=new q["a"]({}),M=n("9483");Object(M["a"])("".concat("/","service-worker.js"),{ready:function(){console.log("App is being served from cache by a service worker.\nFor more details, visit https://goo.gl/AFskqB")},registered:function(){console.log("Service worker has been registered.")},cached:function(){console.log("Content has been cached for offline use.")},updatefound:function(){console.log("New content is downloading.")},updated:function(){console.log("New content is available; please refresh.")},offline:function(){console.log("No internet connection found. App is running in offline mode.")},error:function(e){console.error("Error during service worker registration:",e)}}),r["a"].config.productionTip=!1,new r["a"]({vuetify:P,render:function(e){return e(V)}}).$mount("#app")},f8b9:function(e,t,n){"use strict";var r=n("0d17"),s=n.n(r);s.a}});
2//# sourceMappingURL=app.76c5b723.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.