jeudi, août 07, 2014 Super User Jeux à boire 9469
.cartes { margin-top: 4px; box-shadow: 35px 30px 9px #aaa; height:116px; width:72px; border-width:2px; } .cartes:hover{ border-color:#AF5; } //Alert CSS function CustomAlert(){ this.render = function(dialog){ var winW = window.innerWidth; var winH = window.innerHeight; var dialogoverlay = document.getElementById('dialogoverlay'); var dialogbox = document.getElementById('dialogbox'); dialogoverlay.style.display = "block"; dialogoverlay.style.height = winH+"px"; dialogbox.style.left = (winW/2) - (550 * .5)+"px"; dialogbox.style.display = "block"; document.getElementById('dialogboxhead').innerHTML = tab[noms]; document.getElementById('dialogboxbody').innerHTML = dialog; document.getElementById('dialogboxfoot').innerHTML = ' OK '; } this.ok = function(){ document.getElementById('dialogbox').style.display = "none"; document.getElementById('dialogoverlay').style.display = "none"; } } var Alert = new CustomAlert(); //+ Jonas Raoni Soares Silva //@ http://jsfromhell.com/array/shuffle [v1.0] function shuffle(o){ //v1.0 for(var j, x, i = o.length; i; j = Math.floor(Math.random() * i), x = o[--i], o[i] = o[j], o[j] = x); return o; }; var cont, test, test2; var w = 0 var o = 0 var noms = 0 var cartes=["C01","C07","C08","C09","C10","C11","C12","C13","T01","T07","T08","T09","T10","T11","T12","T13","K01","K07","K08","K09","K10","K11","K12","K13","P01","P07","P08","P09","P10","P11","P12","P13"]; cartesalea = shuffle(cartes); var nombres=["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31"]; nombresalea = shuffle(nombres); p=nombresalea[0]; function joue(n) { o = o+1 p = nombresalea[o]; if (tab[noms]==undefined) { var tabperso = ["Gromit","Woody","Baloo","Wall-E","Marjane","Jessica Rabbit","Maléfique","Le Géant De Fer","Dumbo","Dug","Le Chat Potté","Lilo","Buzz L'éclair","Tetsuo","Coraline","Cruella D'enfer","Dory","Totoro","Madame Souza","Le Génie","L'âne","Jack Skellington","Mike Razowski","Capitaine Crochet","Kristofferson","Harold","Chihiro","Steve Le Singe","Carl Fredricksen","Grincheux","Shifu","Homer J. Simpson","Roger Rabbit","Insectosaure","Skipper Le Pingouin","Satan","Lumière","Rhino Le Hamster","Fiével","Panpan","Le Crapaud","Daffy Duck","Cinquain","Mickey Mouse","Forrest Gump","Jules Winnfield","Travis Bickle","Hans Gruber","Neo","Ferris Bueller","The Terminator","Gollum","John McClane","James Bond","Vito Corleone","Ellen Ripley","Captain Jack Sparrow","The Dude","Indiana Jones","Hannibal Lecter","Han Solo","The Joker","Darth Vader","MLB l'admin","Tyler Durden","Mario","Link","Master Chief","Solid Snake","Cloud Strife","Pac-Man","Lara Croft","Gordon Freeman","Kratos","Sonic","Crash","Soap MacTavish","Nico Bellic","Samus Aran","Captain Price","Kirby","Marcus Fenix","Pikachu","Yoshi","CJ Johnson","Mega Man","Sam Fisher","Shadow","Jak","Duke Nukem","Dante","Naruto","Altair","Zelda","Sephiroth","Donkey Kong","The Prince","Ezio","Leon S","Red","Guybrush Threepwood","Spyro","Ghost Riley","Goku","Max Payne","Jill Valentine","Princess Peach","Larry Laffer","Augustus Cole","Eddie Riggs","Ryu","Sackboy"] tabpersoalea = shuffle(tabperso); tabpersoaleacoupe=tabpersoalea.slice(0,32); tab=tabpersoaleacoupe; console.log(tab); } if (tab[noms + 1]==undefined) { noms=0 } else { noms++ } if ((n> =0) && (n
lundi, mars 09, 2015 Super User Uncategorised 3276
.cartes { margin-top: 4px; box-shadow: 35px 30px 9px #aaa; height:116px; width:72px; border-width:2px; } //Alert CSS function CustomAlert(){ this.render = function(dialog){ var winW = window.innerWidth; var winH = window.innerHeight; var dialogoverlay = document.getElementById('dialogoverlay'); var dialogbox = document.getElementById('dialogbox'); dialogoverlay.style.display = "block"; dialogoverlay.style.height = winH+"px"; dialogbox.style.left = (winW/2) - (550 * .5)+"px"; dialogbox.style.display = "block"; document.getElementById('dialogboxhead').innerHTML = tab[noms] + ' :'; document.getElementById('dialogboxbody').innerHTML = dialog; document.getElementById('dialogboxfoot').innerHTML = ' OK '; } this.ok = function(){ document.getElementById('dialogbox').style.display = "none"; document.getElementById('dialogoverlay').style.display = "none"; } } var Alert = new CustomAlert(); //+ Jonas Raoni Soares Silva //@ http://jsfromhell.com/array/shuffle [v1.0] function shuffle(o){ //v1.0 for(var j, x, i = o.length; i; j = Math.floor(Math.random() * i), x = o[--i], o[i] = o[j], o[j] = x); return o; }; var cont, test, test2; var w = 0 var o = 0 var noms = 0 var cartes=["C01","C07","C08","C09","C10","C11","C12","C13","T01","T07","T08","T09","T10","T11","T12","T13","K01","K07","K08","K09","K10","K11","K12","K13","P01","P07","P08","P09","P10","P11","P12","P13"]; cartesalea = shuffle(cartes); var nombres=["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31"]; nombresalea = shuffle(nombres); p=nombresalea[0]; function joue(n) { o = o+1 p = nombresalea[o]; if (tab[noms]==undefined) { var tabperso = ["Gromit","Woody","Baloo","Wall-E","Marjane","Jessica Rabbit","Maléfique","Le Géant De Fer","Dumbo","Dug","Le Chat Potté","Lilo","Buzz L'éclair","Tetsuo","Coraline","Cruella D'enfer","Dory","Totoro","Madame Souza","Le Génie","L'âne","Jack Skellington","Mike Razowski","Capitaine Crochet","Kristofferson","Harold","Chihiro","Steve Le Singe","Carl Fredricksen","Grincheux","Shifu","Homer J. Simpson","Roger Rabbit","Insectosaure","Skipper Le Pingouin","Satan","Lumière","Rhino Le Hamster","Fiével","Panpan","Le Crapaud","Daffy Duck","Cinquain","Mickey Mouse","Forrest Gump","Jules Winnfield","Travis Bickle","Hans Gruber","Neo","Ferris Bueller","The Terminator","Gollum","John McClane","James Bond","Vito Corleone","Ellen Ripley","Captain Jack Sparrow","The Dude","Indiana Jones","Hannibal Lecter","Han Solo","The Joker","Darth Vader","MLB l'admin","Tyler Durden","Mario","Link","Master Chief","Solid Snake","Cloud Strife","Pac-Man","Lara Croft","Gordon Freeman","Kratos","Sonic","Crash","Soap MacTavish","Nico Bellic","Samus Aran","Captain Price","Kirby","Marcus Fenix","Pikachu","Yoshi","CJ Johnson","Mega Man","Sam Fisher","Shadow","Jak","Duke Nukem","Dante","Naruto","Altair","Zelda","Sephiroth","Donkey Kong","The Prince","Ezio","Leon S","Red","Guybrush Threepwood","Spyro","Ghost Riley","Goku","Max Payne","Jill Valentine","Princess Peach","Larry Laffer","Augustus Cole","Eddie Riggs","Ryu","Sackboy"] tabpersoalea = shuffle(tabperso); tabpersoaleacoupe=tabpersoalea.slice(0,32); tab=tabpersoaleacoupe; console.log(tab); } if (tab[noms + 1]==undefined) { noms=0 } else { noms++ } if ((n> =0) && (n