【问题标题】:EPUB Score catchingEPUB 分数捕捉
【发布时间】:2016-12-20 06:26:27
【问题描述】:

我通过 Adob​​e InDesign CC 创建了一个 EPUB。将项目导出到 EPUB 后,我提取了文件,以便我可以为练习插入一个(html、javascript)页面。有人可以帮助我如何在在线时将 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>

这是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;

【问题讨论】:

    标签: javascript xml html epub adobe-indesign


    【解决方案1】:

    这个问题已经在一些 Adob​​e 论坛中讨论过,答案似乎你不能:https://forums.adobe.com/thread/1939249

    【讨论】:

      猜你喜欢
      • 2017-07-15
      • 1970-01-01
      • 2012-06-27
      • 1970-01-01
      • 2021-07-10
      • 2012-04-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多