mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2025-10-13 08:24:24 -05:00
item search working
This commit is contained in:
14
res/app.js
14
res/app.js
@@ -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);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
});
|
@@ -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;
|
||||
}
|
Reference in New Issue
Block a user