I hereby claim:
- I am nerdissimo on github.
- I am nerdissimo (https://keybase.io/nerdissimo) on keybase.
- I have a public key whose fingerprint is A9FF 21E9 A83D FAC8 B2A2 CF0E DF30 0579 5415 356A
To claim this, I am signing this object:
var mainloop = function() { | |
updateGame(); | |
drawGame(); | |
}; | |
var animFrame = window.requestAnimationFrame || | |
window.webkitRequestAnimationFrame || | |
window.mozRequestAnimationFrame || | |
window.oRequestAnimationFrame || | |
window.msRequestAnimationFrame || |
I hereby claim:
To claim this, I am signing this object:
j=prompt('Tot. puntate'),p=['Ambo','Terno','Quaterna','Cinquina','Tombola'];while(i=p.pop())alert(i+': '+(j-=j/2)) |
function a(m,u,p,o,k){(x=new XMLHttpRequest).open(m,u);x.onreadystatechange=function(){x.readyState>3?(x.status==200?o:k)(x):0};x.send(p)} |
<!doctype html> | |
<html> | |
<head> | |
<script type="text/javascript"> | |
/* Con questa funzione è possibile effettuare una solo chiamata alla volta, ma credo che vada bene per lo scopo. */ | |
var longpolling=(function() { | |
/* | |
* Per poter essere il più compatibile possibile non possiamo instanziare solo un oggetto XMLHttpRequest. | |
* Testiamo, quindi, con un try catch quale dei vari oggetti è possibile utilizzare per poter effettuare una chiamata ajax. | |
* In questa implementazione ho preferito istanziare un solo oggetto XMLHttpRequest perché tanto verrà effettuata una sola |
<!doctype HTML> | |
<html> | |
<head> | |
<link href="style.css" rel="stylesheet" /> | |
</head> | |
<body> | |
<section id="container"> | |
<section class="cols"> | |
<div class="box" id="box-top"></div> | |
<div class="box" id="box-bottom"></div> |