Viima / jquery-comments

The Javascript library of choice for implementing commenting in your web app
http://viima.github.io/jquery-comments/
MIT License
294 stars 118 forks source link

Can't get it to show up at all. #117

Open Userian22 opened 7 years ago

Userian22 commented 7 years ago

head

<link rel="stylesheet" type="text/css" href="./jquery-comments/css/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="./jquery-comments/js/jquery-comments.js"></script>
<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>

/head

body <div id="comments-container"></div> /body

I've also tried by just adding JQuery and Font-Awesome to my server, and calling the scripts locally. Didn't help.

I noticed, in the ./jquery-comments/index.html that there's also a data file added between the head tags. Added that, as well - still didn't work.

When I go open up ./jquery-comments/tests/SpecRunner.html it returns the following:

Jasmine 1.3.1 revision 1354556913
* X * * * * * * * * * * * * * * * * * * * * * * * (might be more dots)
Failing 1 spec
28 specs | 1 failing

Basic features Should have rendered the comments.

Expected 9 to be 10.
Error: Expected 9 to be 10.
    at new jasmine.ExpectationResult (file:///C:/inetpub/test/jquery-comments/tests/lib/jasmine-1.3.1/jasmine.js:114:32)
    at matchersClass.toBe (file:///C:/inetpub/test/jquery-comments/tests/lib/jasmine-1.3.1/jasmine.js:1235:29)
    at compareDates (file:///C:/inetpub/test/jquery-comments/tests/spec/MainSpec.js:900:33)
    at jasmine.Spec.<anonymous> (file:///C:/inetpub/test/jquery-comments/tests/spec/MainSpec.js:108:9)
    at jasmine.Block.execute (file:///C:/inetpub/test/jquery-comments/tests/lib/jasmine-1.3.1/jasmine.js:1064:17)
    at jasmine.Queue.next_ (file:///C:/inetpub/test/jquery-comments/tests/lib/jasmine-1.3.1/jasmine.js:2096:31)
    at jasmine.Queue.start (file:///C:/inetpub/test/jquery-comments/tests/lib/jasmine-1.3.1/jasmine.js:2049:8)
    at jasmine.Spec.execute (file:///C:/inetpub/test/jquery-comments/tests/lib/jasmine-1.3.1/jasmine.js:2376:14)
    at jasmine.Queue.next_ (file:///C:/inetpub/test/jquery-comments/tests/lib/jasmine-1.3.1/jasmine.js:2096:31)
    at onComplete (file:///C:/inetpub/test/jquery-comments/tests/lib/jasmine-1.3.1/jasmine.js:2092:18)