There a exist a brilliant comments plugin that I would like to implement on my site. It can be found here https://github.com/Viima/jquery-comments.
However I am having difficulty getting anything to appear when I try to implement it (first time using a plugin). Any suggestions would be great. Below is my code. (I would provide a JSFiddle however the external resources require links starting with "https.." and mine begin with "http...")
HTML
<!doctype html>
<html>
<head>
<meta name=description content="">
<meta name=viewport content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="http://**MYURL**.net/jquery-comments.css">
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script type="text/javascript" src="http://**MYURL**.net/jquery-comments.js"></script>
</head>
<body>
<div id="comments-container"></div>
<script type="text/javascript">
$('#comments-container').comments({
getComments: function(success, error) {
var commentsArray = [{
id: 1,
created: '2015-10-01',
content: 'Lorem ipsum dolort sit amet',
fullname: 'Simon Powell',
upvote_count: 2,
user_has_upvoted: false
}];
success(commentsArray);
}
});
</script>
</body>
</html>
Copyright Notice:Content Author:「RyeGuy」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/39088019/jquery-comments-plugin-not-running