It's not on your web server, it's hosted at ajax.googleapis.com, you're linking to it using a <script> tag as Osgood posted.
You don't add Osgoods second code snippet to the script file, you add it after the script link on the page.
https://forums.adobe.com/people/Jon+Fritz+II wrote It's not on your web server, it's hosted at ajax.googleapis.com, you're linking to it using a <script> tag as Osgood posted. You don't add Osgoods second code snippet to the script file, you add it after the script link on the page. |
Yup, so bottom of page should look like below, once <script> block has been added:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script>
$(function() {
var selector = '.nav li';
$(selector).on('click', function(){
$(selector).removeClass('active');
$(this).addClass('active');
});
});
</script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="chatSocketAchex.js"></script>
<script type="text/javascript">
$("#Chatroom").ChatSocket();
</script>
</body>
</html>