Last active
October 16, 2018 09:20
-
-
Save kilica/4ed6e00af04db5a93ebc44619866c4fd to your computer and use it in GitHub Desktop.
トランプのデッキを引く JS の雛形
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<!-- 以下の showCards() function を実装すること --> | |
<script type="text/javascript"> | |
function showCards(size, serial) { | |
return "S1"; | |
} | |
</script> | |
</head> | |
<body> | |
<!-- ここに、 showCards() の結果が表示される --> | |
<div id="result"></div> | |
<!-- HTMLファイルが読み込まれたときに以下が実行される。showCards() を実行し、その結果を div#result に表示する --> | |
<script type="text/javascript"> | |
document.querySelector('div#result').textContent = showCards(1, 1); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment