:
var ratingsController = RatingController.getInstance();
ratingsController.config({
mediaUrl: "https://2img.net/h/i164.photobucket.com/albums/u38/ilam96/wellcome.jpg",
id: "rating",
rating: 0,
loggedIn: false,
rated: false,
starClass: "star",
messageIndices: ["Hate it!", "Boring.", "OK.", "Good.","Love it!"],
ratingCountId: "ratingCount",
ratingStatusId: "ratingStatus",
ratingMessageId: "ratingMessage"
});
var commentsController = CommentsController.getInstance();
// call mixin again to pass in element ids
commentsController.mixIn({
mediaUrl: "https://2img.net/h/i164.photobucket.com/albums/u38/ilam96/wellcome.jpg",
commentRedirectUrl: "http://photobucket.com/login?returnUrl=http%3A%2F%2Fmedia.photobucket.com%2Fimage%2Fwellcome%2Filam96%2Fwellcome.jpg%3FaddComment%3D1",
attachRedirectUrl: "http://photobucket.com/login?returnUrl=http%3A%2F%2Fmedia.photobucket.com%2Fimage%2Fwellcome%2Filam96%2Fwellcome.jpg%3FattachImage%3D1",
viewerAlbumUrl: "",
maxCommentChars: 1000,
commentLimit: 10,
canComment: true,
autoApproved: true,
manageComments: false,
count: 0,
fullcount: 0,
offset: 0
});