Need a short JavaScript Code for Adobe Captivate
€20-40 EUR
货到付款
Hey guys,
i made this short video to describe my problem.
[login to view URL]
I got a code from a friend which already could be correct but didnt get it to include it into Adobe Captivate like it works. Maybey it helps you:
Antwort: <input id="myinput" onchange="calcScore([login to view URL]);"> Punkte: <span id="result"></span>
<script>
function getScore(value) {
var lowerLimit = 75, upperLimit = 80,
maxValue = 100, maxScore = 10;
if (value < lowerLimit) factor = value / lowerLimit;
else if (value > upperLimit) factor = (maxValue - value) / (maxValue - upperLimit);
else factor = 1;
return maxScore * factor;
}
function calcScore(value) {
[login to view URL]("result").textContent = getScore(value);
}
</script>
sry, here the correct link: https://www.youtube.com/watch?v=ALexZW289oU
项目ID: #16761539
关于项目
有6名威客正在参与此工作的竞标,均价€79/小时
Hello, I'm sure if you can change in-built function as you use standard type of question. It's simply to create this activity if you don't need to provide results into LMS. Thanks.