Search bar now resizes responsively via javascript

This commit is contained in:
Raelon Masters
2020-07-05 14:43:58 -04:00
parent 7eec7ae883
commit 3d5430a43c
3 changed files with 12 additions and 3 deletions

View File

@@ -8,7 +8,7 @@ $(document).ready(function(){
/* Initialize ui variables */
var outstream = []; // put customlog messages here
var win_height = window.innerHeight; // Get the displays height
var win_width = window.innwerWidth; // Get the displays width
var win_width = window.innerWidth; // Get the displays width
var scr_height = window.outerHeight;
var scr_width = window.outerWidth;
var hdr_height = $('.app_hdr').height(); // Get our header height
@@ -85,4 +85,10 @@ $(document).ready(function(){
window.location.href=_location;
});
$('#search_string').html("<i> "+$('#_search').val().substr(0,15)+"</i>")
if (win_width >= 1024)
$('.search_string').attr('size', 20)
$('.search_string').val("Search")
if (win_width >= 425)
$('.search_string').attr('size', 10)
$('.search_string').val("Search")
});