PageSourceSearch

https://giga-drill.com/_nuxt/C9IZTHDL.js

js giga-drill.com collected 2026-10-06 08:03:39 UTC 2,397 bytes, 1 lines download raw bytes

1import{b as j}from"./B1ANI7s_.js";import{d as x}from"./DpSUvzOu.js";import{c as E}from"./DFwrOiIh.js";import{g as v}from"./dQh_cajN.js";import{f as H}from"./DytGS_oV.js";import{d as n}from"./B9BvQYN_.js";import{_ as S}from"./DlAUqK2U.js";import{a as M}from"./CrfJppij.js";import{V as W}from"./6nf4KObW.js";import{r as c,B as q,g as A,n as g,o as D,c as L,b as f,w as b,a as y,H as t,ae as V,aj as O,G as P}from"./C--HIF4D.js";import"./COzyvX5r.js";const z=["innerHTML"],G="width: 200px;",I={__name:"WariaiKuraberuFraction",props:{params:Object},emits:["answer"],setup(C,{expose:N,emit:T}){const p=C,u=c(""),r=c([]),l=c(""),e=c(""),m=c(null),h=q(()=>`${u.value}${l.value}の${H.Fraction(r.value[0],r.value[1])}は何${l.value}?`),k=[a=>!!a||"入れて!"],K=async()=>{u.value="",r.value="",l.value="",e.value="",_(),await g(()=>m.value.focus())},_=()=>{l.value=x.unit[Math.floor(Math.random()*x.unit.length)];const a=()=>{for(let o=0;o<1e4;o++){const s=v.randomNumComfortable(p.params.factor_array,p.params.moto_min,p.params.moto_max),i=v.randomNum(1,4,0),d=v.randomNum(2,12,0);if(s*i/d==Math.floor(s*i/d)&&E.coprime(i,d))return[s,[i,d]]}};[u.value,r.value]=a()},R=a=>{const o=u.value*r.value[0]/r.value[1],s=o==e.value;return{question:h.value,true_answer:o,your_answer:e.value,is_correct:s,moto:u.value,ratio:r.value,unit:l.value}},w=T,$=a=>{if(a.key=="Enter"&&e.value)return w("answer")},B=a=>{e.value===null&&(e.value=""),a==="C"?e.value="":a==="answer"?w("answer"):e.value+=a,m.value.focus()},F=j();return N({start:K,checkAnswer:R,onTouchPanelPress:B}),A(async()=>{_(),await g(()=>m.value.focus())}),(a,o)=>(D(),L("div",null,[f(M,{class:"mb-2 text-center"},{default:b(()=>[y("p",{innerHTML:t(h),class:V(["font-weight-bold",{"text-h3":!t(n).isMobile(),"text-h5":t(n).isMobile()}])},null,10,z)]),_:1}),f(M,null,{default:b(()=>[f(W,{class:"justify-center pb-6 mb-2"},{default:b(()=>[y("div",{style:G},[f(O,{ref_key:"answerRef",ref:m,onKeydown:$,modelValue:t(e),"onUpdate:modelValue":o[0]||(o[0]=s=>P(e)?e.value=s:null),label:"答え",class:V(["text-h3 answer",{"text-h3":!t(n).isMobile(),"text-h5":t(n).isMobile()}]),height:t(n).isMobile()?60:100,"hide-spin-buttons":"",variant:"outlined",rules:k,readonly:t(n).isMobileOrTablet()&&!t(F).isEnableKeyboard},null,8,["modelValue","class","height","readonly"])])]),_:1})]),_:1})]))}},se=S(I,[["__scopeId","data-v-517a6a03"]]);export{se as default};

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.