PageSourceSearch

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

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

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