mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 02:34:00 +00:00
Missing href token adds
This commit is contained in:
@@ -14,8 +14,8 @@
|
||||
color: #00f;
|
||||
font-family: Georgia, Arial, sans-serif;
|
||||
}
|
||||
img {
|
||||
border: 0px;
|
||||
img {
|
||||
border: 0px;
|
||||
}
|
||||
p.lic {
|
||||
font-size: 6pt;
|
||||
@@ -26,18 +26,19 @@
|
||||
<body>
|
||||
<form name="spawner" action="byond://?src=/* ref src */" method="get">
|
||||
<input type="hidden" name="src" value="/* ref src */">
|
||||
/* hreftokenfield */
|
||||
<input type="hidden" name="action" value="object_list">
|
||||
|
||||
|
||||
Type <input type="text" name="filter" value="" onkeypress="submitFirst(event)" style="width:280px;height:25"> <input type = "button" value = "Search" onclick = "updateSearch()" /><br>
|
||||
Offset: <input type="text" name="offset" value="x,y,z" style="width:250px">
|
||||
|
||||
|
||||
A <input type="radio" name="offset_type" value="absolute">
|
||||
R <input type="radio" name="offset_type" value="relative" checked="checked"><br>
|
||||
|
||||
|
||||
Number: <input type="text" name="object_count" value="1" style="width:30px">
|
||||
Dir: <input type="text" name="object_dir" value="2" style="width:30px">
|
||||
Name: <input type="text" name="object_name" value="" style="width:180px"><br>
|
||||
Where:
|
||||
Name: <input type="text" name="object_name" value="" style="width:180px"><br>
|
||||
Where:
|
||||
<select name='object_where' style="width:320px">
|
||||
<option value='onfloor'>On floor below own mob</option>
|
||||
<!-- <option value='inhand'>In own mob's hand</option> -->
|
||||
@@ -46,26 +47,26 @@
|
||||
<br><br>
|
||||
Number of matches: <input id="number" value="0" style="width:180px"><br>
|
||||
<br><br>
|
||||
|
||||
<div id="selector_hs">
|
||||
|
||||
<div id="selector_hs">
|
||||
<select name="object_list" id="object_list" multiple size="20">
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<br>
|
||||
<input type="submit" value="spawn">
|
||||
</form>
|
||||
|
||||
|
||||
<script language="JavaScript">
|
||||
var old_search = "";
|
||||
var object_list = document.spawner.object_list;
|
||||
var object_list_container = document.getElementById('selector_hs');
|
||||
var object_paths = null /* object types */;
|
||||
var objects = object_paths == null ? new Array() : object_paths.split(";");
|
||||
|
||||
|
||||
document.spawner.filter.focus();
|
||||
populateList(objects);
|
||||
|
||||
|
||||
function populateList(from_list)
|
||||
{
|
||||
var newOpts = '';
|
||||
@@ -75,21 +76,21 @@
|
||||
newOpts += '<option value="' + from_list[i] + '">'
|
||||
+ from_list[i] + '</option>';
|
||||
}
|
||||
object_list_container.innerHTML = '<select name="object_list" id="object_list" multiple size="20">' +
|
||||
object_list_container.innerHTML = '<select name="object_list" id="object_list" multiple size="20">' +
|
||||
newOpts + '</select>';
|
||||
document.getElementById("number").value = from_list.length;
|
||||
}
|
||||
|
||||
|
||||
function updateSearch()
|
||||
{
|
||||
if (old_search == document.spawner.filter.value)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
old_search = document.spawner.filter.value;
|
||||
|
||||
|
||||
|
||||
|
||||
var filtered = new Array();
|
||||
var i;
|
||||
for (i in objects)
|
||||
@@ -98,25 +99,25 @@
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
filtered.push(objects[i]);
|
||||
}
|
||||
|
||||
|
||||
populateList(filtered);
|
||||
|
||||
|
||||
if (object_list.options.length)
|
||||
object_list.options[0].selected = 'true';
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
function submitFirst(event)
|
||||
{
|
||||
if (!object_list.options.length)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
if (event.keyCode == 13 || event.which == 13)
|
||||
{
|
||||
object_list.options[0].selected = 'true';
|
||||
@@ -125,4 +126,4 @@
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user