【发布时间】:2020-05-28 18:45:33
【问题描述】:
I have a circular progress bar where the user can select the time for a countdown, when the time is chosen the value is saved in an ID but I cannot get this countdown to start from that ID
<script>
$(document).ready(function() {
$('.dial').knob({
'min':0,
'max':20,
'width':250,
'height':250,
'displayInput':true,
'fgColor':"#e74c3c",
'pColor' :"FFA491",
'release':function(v) {
document.getElementById('v').innerHTML = v;
},
});
});
</script>
在发布时记录该值,然后转换为ID“v”
我已经在这个页面上传了结果:https://juanmannnuel.neocities.org/
【问题讨论】:
-
嗨胡安!您能否提供更多上下文,最好是 codepen 或 jsfiddle 中的一个孤立示例?
-
抱歉,我发现上传它的唯一方法是在新城市
标签: javascript html jquery countdown