首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >EPUB分数捕捉

EPUB分数捕捉
EN

Stack Overflow用户
提问于 2016-12-20 14:26:28
回答 1查看 49关注 0票数 0

我通过Adobe InDesign CC创建了一个EPUB。在将项目导出到EPUB之后,我解压了文件,以便可以为练习插入一个(html,javascript)页面。有没有人可以帮帮忙,我怎样才能把一个epub中的值(可能是分数)扔到一个网站上,并在离线时将该值(分数)存储在epub中。

代码语言:javascript
复制
<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>

下面是javascript:

代码语言:javascript
复制
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;
EN

回答 1

Stack Overflow用户

发布于 2016-12-20 18:48:17

这个问题已经在一些Adobe论坛上讨论过了,答案似乎是你不能:https://forums.adobe.com/thread/1939249

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/41236129

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档