mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
added Score limit
This commit is contained in:
parent
ef98b9dd28
commit
7492036445
2 changed files with 5 additions and 1 deletions
|
|
@ -28,6 +28,7 @@
|
||||||
<div>
|
<div>
|
||||||
<h2>Create your own!</h2>
|
<h2>Create your own!</h2>
|
||||||
<p><label>Name:<br> <input id="customname"></label></p>
|
<p><label>Name:<br> <input id="customname"></label></p>
|
||||||
|
<p><label>Score limit:<br> <input id="scoreLimit" type="number" value="5"></label></p>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>Maps</legend>
|
<legend>Maps</legend>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
|
||||||
|
|
@ -247,9 +247,12 @@ function create(channelName, callback) {
|
||||||
levelUids: maps,
|
levelUids: maps,
|
||||||
maxUsers: 10,
|
maxUsers: 10,
|
||||||
minUsers: 2,
|
minUsers: 2,
|
||||||
scoreLimit: 10
|
scoreLimit: parseInt($("#scoreLimit").value, 10)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log(options)
|
||||||
|
return
|
||||||
|
|
||||||
localStorage["customname"] = channelName;
|
localStorage["customname"] = channelName;
|
||||||
|
|
||||||
var xhr = new XMLHttpRequest();
|
var xhr = new XMLHttpRequest();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue