Bonjour,
Voila je rencontre un petit problème avec mon code.
l'emplacement du fichiers js correct
***<script src="{{ asset('kk/jquery.datetimepicker.full.js') }}"></script>
<script src="{{ asset('kk/jquery.js') }}"></script>
<link href="{{ asset('kk/jquery.datetimepicker.css') }}" rel="stylesheet" type="text/css"/>
<link href="{{ asset('kk/bootstrap.css') }}" rel="stylesheet" type="text/css"/>
***
<h3>Custom Date Styling</h3>
<p>Make the background of the date 2 days from now bright red.</p>
<input type="text" id="datetimepicker12"/>
<style type="text/css">
.custom-date-style {
background-color: red !important;
}
.input{
width: 500px;
}
</style>
<script>
var logic = function( currentDateTime ){
if (currentDateTime && currentDateTime.getDay() == 6){
this.setOptions({
minTime:'11:00'
});
}else
this.setOptions({
minTime:'8:00'
});
};
var dateToDisable = new Date();
dateToDisable.setDate(dateToDisable.getDate() + 2);
$('#datetimepicker11').datetimepicker({
beforeShowDay: function(date) {
if (date.getMonth() == dateToDisable.getMonth() && date.getDate() == dateToDisable.getDate()) {
return [false, ""]
}
return [true, ""];
}
});
$('#datetimepicker12').datetimepicker({
beforeShowDay: function(date) {
if (date.getMonth() == dateToDisable.getMonth() && date.getDate() == dateToDisable.getDate()) {
return [true, "custom-date-style"];
}
return [true, ""];
}
});
</script>
je veux integrer une datetimepicker
les fichier javascript ne fonctionne pas