PageSourceSearch

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

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

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