platoo/public/js/accueil.js
2020-05-19 19:14:33 +02:00

11 lines
372 B
JavaScript
Executable file

$(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);
};
});
});