added Score limit

This commit is contained in:
Jeena 2014-06-07 16:40:07 +02:00
parent ef98b9dd28
commit 7492036445
2 changed files with 5 additions and 1 deletions

View file

@ -28,6 +28,7 @@
<div>
<h2>Create your own!</h2>
<p><label>Name:<br> <input id="customname"></label></p>
<p><label>Score limit:<br> <input id="scoreLimit" type="number" value="5"></label></p>
<fieldset>
<legend>Maps</legend>
<ul>

View file

@ -247,9 +247,12 @@ function create(channelName, callback) {
levelUids: maps,
maxUsers: 10,
minUsers: 2,
scoreLimit: 10
scoreLimit: parseInt($("#scoreLimit").value, 10)
}
console.log(options)
return
localStorage["customname"] = channelName;
var xhr = new XMLHttpRequest();