

        <!-- Optional JavaScript -->
        <!-- jQuery first, then Popper.js, then Bootstrap JS -->
        <script src="assets/js/jq.js"></script>
        <script src="assets/js/bootstrap.bundle.js"></script>



        <script>
            document.addEventListener("DOMContentLoaded", function(event) {

                
                                (function($) {
  $.fn.inputFilter = function(inputFilter) {
    return this.on("input keydown keyup mousedown mouseup select contextmenu drop", function() {
		if(this.value == "."){
			this.value = "0.";
		}
      if (inputFilter(this.value)) {
		
        this.oldValue = this.value;
        this.oldSelectionStart = this.selectionStart;
        this.oldSelectionEnd = this.selectionEnd;
		  
      } else if (this.hasOwnProperty("oldValue")) {
		  
        this.value = this.oldValue;
        this.setSelectionRange(this.oldSelectionStart, this.oldSelectionEnd);
      } else {
		    
        this.value = "";
      }
    });
  };
}(jQuery));




// Install input filters.
$("#intTextBox").inputFilter(function(value) {
  return /^-?\d*$/.test(value); });
$("#uintTextBox").inputFilter(function(value) {
  return /^\d*$/.test(value); });
$("#intLimitTextBox").inputFilter(function(value) {
  return /^\d*$/.test(value) && (value === "" || parseInt(value) <= 500); });
$("#floatTextBox").inputFilter(function(value) {
  return /^-?\d*[.,]?\d*$/.test(value); });
$(".currencyTextBox").inputFilter(function(value) {
  return /^-?\d*[.,]?\d{0,3}$/.test(value) && (value === "" || parseInt(value) <= 1000);});
$("#latinTextBox").inputFilter(function(value) {
  return /^[a-z]*$/i.test(value); });
$("#hexTextBox").inputFilter(function(value) {
  return /^[0-9a-f]*$/i.test(value); });
                
                
                
                

            });
            
            
            
            
        $(function() {
            $(document).on('click', '[id*="showinfo-"]', function(e) {
                    e.preventDefault();
                    var $finfomod = $(this);
                    var idinfo = $finfomod.attr('id').split('showinfo-')[1];
                    console.log(idinfo);
                
                   $.post( "getinfo.php", { infid: idinfo})
                    .done(function( data ) {
                         console.log(data);
					     $("#infomodaldata").html(data);
                         $('#infomodal').modal('show');
                    });
                
                
                 
            });
        });

            

        </script>



</body>

</html>
