text: $(document).ready(function(){$.ajaxSetup({headers:{"X-CSRF-TOKEN":$('meta[name="csrf-token"]').attr("content")}}),$("#topofpage").on("click",function(){$("html, body").animate({scrollTop:$("#header").offset().top},1e3)}),$("#link-offer-1").on("click",function(){$("html, body").animate({scrollTop:$("#offer-detail-1").offset().top},800)}),$("#link-offer-2").on("click",function(){$("html, body").animate({scrollTop:$("#offer-detail-2").offset().top},1e3)}),$("#link-offer-3").on("click",function(){$("html, body").animate({scrollTop:$("#offer-detail-3").offset().top},1e3)}),$(".dropdown-toggle").dropdown();var o=1;10>=o&&$(".add-file").on("click",function(e){o++,e.preventDefault(),$(".add-file-area").append('<div class="form-group"><label for="thumbnail_'+o+'">Choisir une photo</label><input class="form-control" name="thumbnail_'+o+'" type="file"><br></div>')})});