0
Adobe InDesign CC를 통해 EPUB를 만들었습니다. 프로젝트를 EPUB로 내보내고 나면 파일을 추출하여 연습을위한 (html, javascript) 페이지를 삽입 할 수 있습니다. 누군가 온라인을 통해 epub (아마도 점수)에서 웹 사이트로 값을 던져서 오프라인 일 때 epub에 값 (점수)을 저장하는 방법을 도울 수 있습니까?EPUB 점수 받기
<form action="#" method="post">
<section id="1" epub:type="item">
<p>1. smile - smiled <label id="checker" style="color:red"></label></p>
<input type="radio" id="myRadio" name="c1" value="1" />
<label>YES</label>
<input type="radio" id="myRadio" name="c1" value="0" />
<label>NO</label><br/>
</section>
<section id="2" epub:type="item">
<p>2. dance - danced <label id="checker2" style="color:red"></label></p>
<input type="radio" id="myRadio2" name="c2" value="1" />
<label>YES</label>
<input type="radio" id="myRadio2" name="c2" value="0" />
<label>NO</label><br/>
</section>
<section id="3" epub:type="item">
<p>3. rise - rised <label id="checker3" style="color:red"></label></p>
<input type="radio" id="myRadio3" name="c3" value="1" />
<label>YES</label>
<input type="radio" id="myRadio3" name="c3" value="0" />
<label>NO</label><br/>
</section>
</div>
</form>
Heres는 자바 스크립트가 :
temp = 0;
if (getRadioVal(document.getElementById('demoForm'), 'c1') === "1") {
temp = temp + 1;
} else{
document.getElementById('checker').innerHTML = "| wrong";
}
if (getRadioVal(document.getElementById('demoForm'), 'c2') === "1") {
temp = temp + 1;
} else{
document.getElementById('checker2').innerHTML = "| wrong";
}
if (getRadioVal(document.getElementById('demoForm'), 'c3') === "0") {
temp = temp + 1;
} else{
document.getElementById('checker3').innerHTML = "| wrong";
}
document.getElementById("score").innerHTML = temp;