I'm attempting to implement this example found here : ClassyNotty, I've imported the necessary references for the css and js.
If I do $.ClassNotty in the chrome console the js script is accessible, any idea?
<h:head> <script src="#{request.contextPath}/resources/js/jquery.classynotty.min.js"></script> <link rel="stylesheet" href="#{request.contextPath}/resources/css/jquery.classynotty.min.css"></link> </h:head> <div> <a id="sample1" href="#">Messages!</a> <script> $(document).ready(function(){ $("#sample1").click({ $.ClassyNotty({ title : 'Title', content : 'This is a notification' }); }); }); </script> </div>