platoo/public/js/accueil.js

12 lines
372 B
JavaScript
Raw Normal View History

2020-05-19 17:14:33 +00:00
$(function(){
//var socket = io.connect('http://localhost:8080');
// var socket = io.connect('https://hebergement.deuxfleurs.fr/~victor:3000');
$('#hasard').on('change',function(e){
if($(this).is(':checked')){
$('#url').prop('required',false).prop('disabled',true);
}else{
$('#url').prop('required',true).prop('disabled',false);
};
});
});