Body
Videos
THIS IS AN ADVERTISEMENT
THIS IS AN ADVERTISEMENT
function twShareFunction() {
var shareTitle = "Share this video";
console.log(shareTitle);
var TwshareURL = jQuery("#hiddenTxt").attr("class");
// var href = 'https://twitter.com/intent/tweet?text=' + encodeURIComponent(shareTitle) + '&url=' + encodeURIComponent(TwshareURL);
// jQuery('div#block-views-block-videos-block-4 .sharewrapper a.icon-twitter').attr("href", href);
// window.open(href, "Twitter", "height=285,width=550,resizable=1");
var href = 'https://twitter.com/intent/tweet?text=' + encodeURIComponent(shareTitle) + '&url=' + encodeURIComponent(TwshareURL);
jQuery('div#block-views-block-videos-block-4 .sharewrapper a.icon-twitter').attr("href", href);
window.open(href, "Twitter", "height=285,width=550,resizable=1");
}
window.fbAsyncInit = function () {
// init the FB JS SDK
FB.init({
appId: '184523392768703', // App ID from the app dashboard
status: true, // Check Facebook Login statusshare
xfbml: true // Look for social plugins on the page
});
// Additional initialization code such as adding Event Listeners goes here
};
// Load the SDK asynchronously
(function (d, s, id) {
var js,
fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {
return;
}
js = d.createElement(s);
js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.8";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
function postfeed() {
console.log("inside fb");
var currentURL = jQuery("#hiddenTxt").attr("class");
var obj = {
app_id : '184523392768703',
method : "feed",
link : "https://www.coolaccidents.com/video/add-to-cart-with-rico-nasty",
picture : "https://d8startersitev2.wmg-gardens.com/sites/g/files/g2000009681/files/2020-01/placeholder-og.jpg",
name : "Cool Accidents. The best place to find the latest in new music & the coolest in pop culture. Read, listen, watch and win. Cool A",
display : "popup"
};console.log(obj);
FB.ui(obj);
return false;
}
jQuery(window).load(function () {
jQuery("div#block-views-block-videos-block-4 .sharewrapper a.icon-facebook").click(function () {
postfeed();
});
jQuery("div#block-views-block-videos-block-4 .sharewrapper a.icon-twitter").click(function () {
//twShareFunction();
});
});
#block-views-block-videos-block-4 .item-list.video-block-list-wrapper li{display: none;
}
#block-views-block-videos-block-4 .item-list.video-block-list-wrapper li:first-child{display: block;
}
Add To Cart With Rico Nasty
featured video10 Things You Didn't Know About SUPER CRUEL
featured videoGetting High (Tea) With Dune Rats
featured video
SIGN UP FOR STUFF
Thank you!
x
Welcome to Cool Accidents' mailing list.
Customize your notifications for tour dates near your hometown, birthday wishes, or special discounts in our online store!