function commentColours() {
$(".comment").each(function(i) {
var commentEl = $(this);
i%2 ? commentEl.addClass("alt") : commentEl.addClass("norm");
});
}
function copyUrl() {
var urlToCopy = $("#short-url").val();
ZeroClipboard.setMoviePath( '/themes/site_themes/default/lib/scripts/ZeroClipboard.swf' );
var clip = new ZeroClipboard.Client();
clip.setText(urlToCopy);
clip.glue( "copy-text" );
clip.addEventListener( 'complete', function(client, text) {
targetEl = $("#copy-result");
if( targetEl.text() !== "Copied") {
$(".social-links input").before(' Copied');
alert("The short URL was copied to the clipboard");
}
});
return false;
}
function setFacebookPlugin(isHomePage) {
var htmlToAdd = "";
if(isHomePage) {
htmlToAdd = '