<!-- Scripts -->
<script src="js/jQuery.js"></script>
<script>
$(document).ready(() => {
$('#buttonConnect').on('click',() =>{
const inputIp = $('#ip');
const inputControlPort = $('#controlPort');
if(inputIp.val()){
window.location.href = "./.html?ip="+inputIp.val();
}else{
alert("Check Connection Settings!");
}
});
});
</script>
<span class="input-group-text" style="width: 100px">IP</span>
</div>
<input type="text" class="form-control" placeholder="Camera IP" id="ip">
</div>
//HTML
<div class="input-group mb-3">
<div class="input-group-prepend">
<button class="btn btn-primary" id="buttonConnect">CONNECT</button>
|