Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ルーレットの結果が毎回同じ #41

Open
kugimasa opened this issue Sep 28, 2020 · 0 comments
Open

ルーレットの結果が毎回同じ #41

kugimasa opened this issue Sep 28, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@kugimasa
Copy link
Member

kugimasa commented Sep 28, 2020

playRoulette(stopImageNumber);

ここまではstopImageNumber毎回変わってそう

var p = {
startCallback: function () {},
slowDownCallback: function () {},
stopCallback: function () {
showFaceText(stopImageNumber);
setTimeout(() => countDown(), 3000);
},
stopImageNumber: stopImageNumber,
};

stopImageNumberここも変わってる

var showFaceText = function(stopImageNumber) {
targetFacialExpression = facialExpressionLabel[stopImageNumber];
var target = document.getElementById("target-facial-expression");
target.textContent = targetFacialExpression;
}

ここではstopImageNumberがずっと同じ値

@kugimasa kugimasa added the bug Something isn't working label Sep 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant