xxxxxxxxxx
%%html
<style>
import 'https://fonts.googleapis.com/css?family=Ewert';
</style>
<button style='background-color:silver; color:#3636ff;
font-family:Ewert; font-size:120%;'
type='button'onclick='fun()'>
Click to Display a Random Number in the Interval [0;1]
</button><p id='demo'
style='color:#3636ff; font-family:Ewert; font-size:200%;'>
</p><script>
var idx='demo';
function fun() {
return document.getElementById(idx).innerHTML=Math.random()};
No comments:
Post a Comment