item search working

This commit is contained in:
color.diff=auto
2021-03-30 13:40:11 -06:00
parent 3eadaac01e
commit 02527a0d65
8 changed files with 181 additions and 89 deletions

View File

@@ -39,6 +39,14 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
function search() {
$.get("/ajax/uniqueitems.php?cmd=search&search=" + searchbox.value, function (data) {
$('.uniqueitems-select').html(data)
});
}
$(document).ready(function () {
$('.form-text').hide();
$('.help').click(function () {
@@ -157,5 +165,11 @@ $(document).ready(function () {
});
});
searchbox = document.getElementById('search');
searchbox.addEventListener('input', search);
});

View File

@@ -132,4 +132,35 @@ h1,h2,h3,h4,h5,h6, div > p {
top:0px;
right: 0px;
color: #ccc;
}
select {
font-size: 18px;
border: 1px solid #CCC;
height: 34px;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background: url(https://stackoverflow.com/favicon.ico) 96% / 15% no-repeat #EEE;
}
/* CAUTION: Internet Explorer hackery ahead */
select::-ms-expand {
display: none; /* Remove default arrow in Internet Explorer 10 and 11 */
}
/* Target Internet Explorer 9 to undo the custom arrow */
@media screen and (min-width:0\0) {
select {
background: none\9;
padding: 5px\9;
}
}
option {
-webkit-appearance: none;
-moz-appearance: none;
}