I have a problem in a function using Jquery and a file that I call inside my html that are conflicting, it is only working one, I tried using jQuery.noConflict () but apparently it did not work, I do not know how to use it correctly follows the script and call that they are conflicting:
<script>
var $JQuery = jQuery.noConflict()
$jQuery(document).ready(function($) {
$(".page-scroll").click(function(event){
event.preventDefault();
$('html,body').animate({scrollTop:$(this.hash).offset().top}, 1000);
});
});
</script>
<script src="/js/demo.js"></script>