function showFooter($fastLoad = true, $extra = '') { if (loadvar(POST_PARAM_AJAX_LOAD) == AJAX_LOAD) { return; } $returnStr = ' <!-- Bootstrap core JavaScript ================================================== --> <!-- Placed at the end of the document so the pages load faster -->'; if ($fastLoad) { $returnStr .= '<script src="bootstrap/assets/js/jquery.js"></script>'; } $returnStr .= '<script src="bootstrap/dist/js/bootstrap.min.js"></script>'; $returnStr .= $extra; if (dbConfig::defaultDevice() == DEVICE_TABLET) { //WOULD NEED A dbConfig check here!! $returnStr .= '<script type="text/javascript">'; $str = 'if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {'; $str .= '$( ".btn" ).removeClass("btn").addClass("btn-lg");'; $str .= '$( "#searchbutton" ).removeClass("btn-lg").addClass("btn");'; $str .= '$("input[type=radio]").addClass("form-control");'; $str .= '$("input[type=radio]").css("width", "50px");'; $str .= '$( ".uscic-radio" ).css("font-size", "26px");'; $str .= '$( ".uscic-radio" ).css("border", "1px dotted gray");'; $str .= '$("input[type=checkbox]").addClass("form-control");'; $str .= '$("input[type=checkbox]").css("width", "50px");'; $str .= '$( ".uscic-checkbox" ).css("font-size", "26px");'; $str .= '$( ".uscic-checkbox" ).css("border", "1px dotted gray");'; $str .= '}'; $returnStr .= minifyScript($str); $returnStr .= '</script>'; } $returnStr .= '</body></html>'; return $returnStr; }