| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/business/sites/all/themes/responsive_business/js/ |
Upload File : |
jQuery(function($){
$(document).ready(function(){
//remove img height and width attributes for better responsiveness
$('img').each(function(){
$(this).removeAttr('width')
$(this).removeAttr('height');
});
//responsive drop-down
$("<select />").appendTo("#navigation");
$("<option />", {
"selected": "selected",
"value": "",
"text": "Menu"
}).appendTo("#navigation select");
$("#navigation a").each(function() {
var el = $(this);
$("<option />", {
"value" : el.attr("href"),
"text" : el.text()
}).appendTo("#navigation select");
});
//remove options with # symbol for value
$("#navigation option").each(function() {
var navOption = $(this);
if( navOption.val() == '#' ) {
navOption.remove();
}
});
$("#navigation select").change(function() {
window.location = $(this).find("option:selected").val();
});
//uniform
$(function(){
$("#navigation select").uniform();
});
}); // END doc ready
}); // END function