WMYA / WLOS –
Ces scores seront mis à jour tout au long de la nuit:
Hendersonville: 35
Brévard: 15
FINAL
Poursuite: 50
Centre RS: 49
FINAL
TC Roberson: 35 ans
North Henderson: 28
FINAL
Rosman: 32
Hayesville: 14
FINAL
Cherokee: 21
Murphy: 43 ans
FINAL
Ardrey Kell: 23 ans
AC Reynolds: 0
FINAL
Pisgah: 34
Franklin: 11
FINAL
Robbinsville: 35
Andrews: 0
FINAL
Enka: 10
West Henderson: 28
FINAL
Comté d’Avery: 43
Owen: 50 ans
FINAL
Tuscola: 24
North Buncombe: 6
FINAL
Henderson est: 0
Smoky Mountain: 63
FINAL
(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 = "http://connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
$(function(){
//- FB.ui({
//- method: 'share',
//- href: window.location.href,
//- }, function(response){});
})
var socialGetter = (function() {
function injectScript(url) {
var script = document.createElement('script');
script.async = true;
script.src = url;
document.body.appendChild(script);
}
return {
getFacebookCount: function(url, callbackName) {
injectScript('https://graph.facebook.com/?id=' + url + '&callback=' + callbackName);
},
getTwitterCount: function(url, callbackName) {
injectScript('http://urls.api.twitter.com/1/urls/count.json?url=" + url + "&callback=' + callbackName);
}
};
})();
}
sinclairDigital.dependencies.define([],function(){
if(typeof FB !== 'object'){
window.fbAsyncInit = function() {
FB.init({
appId : '',
xfbml : true,
version : 'v2.5'
});
};
(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 = "http://connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
}
if(typeof socialGetter !== 'function'){
var socialGetter = (function() {
function injectScript(url) {
var script = document.createElement('script');
script.async = true;
script.src = url;
document.body.appendChild(script);
}
return {
getFacebookCount: function(url, callbackName) {
injectScript('https://graph.facebook.com/?id=' + url + '&callback=' + callbackName);
},
getTwitterCount: function(url, callbackName) {
injectScript('http://urls.api.twitter.com/1/urls/count.json?url=" + url + "&callback=' + callbackName);
}
};
})();
}
$(function(){
socialGetter.getFacebookCount(window.location.href, 'facebookCallback');
//socialGetter.getTwitterCount(window.location.href, 'twitterCallback');
//console.log(window.location.href)
})
var storyUrl = window.location.origin + window.location.pathname;
var $sharer = $( '.social-share-tiles' );
var storyTitle = $('.story-title-text h1').text();
$( '.component-social-share-v2 .tile a' ).off().click( function ( e ) {
var self = this;
console.log( 'data-social', $(self).data('social') );
$.ajax( {
contentType: "application/json; charset=UTF-8",
type: "PUT",
url: "/api/rest/analytics/story/shared",
data: JSON.stringify( {
"url": window.location.href,
"storySlug": "friday-football-frenzy-all-your-scores-highlights-04-02-21",
"storyType": "story",
"storyIdentifier": "d432bda8-165f-4356-8dcc-68f74d716faf",
"shareType": $(self).data('social')
} )
} );
if($(self).data('social')==='facebook'){
if(''){
FB.ui({
method: 'share',
href: 'http://my40.tv/sports/friday-night-rivals/highlights/friday-football-frenzy-all-your-scores-highlights-04-02-21',
}, function(response){});
return false;
} else {
window.open('http://www.facebook.com/sharer/sharer.php?u=http://my40.tv/sports/friday-night-rivals/highlights/friday-football-frenzy-all-your-scores-highlights-04-02-21', '_blank');
}
}
if ( $( self ).data( "social" ) == "print" ) {
window.print();
return false;
}
} );
//- // DYNAMICALLY REPLACE {canonicalUrl} THE story.canonicalUrl IS EMPTY
//- $.each( $sharer.find( 'a' ), function () {
//- var href = $( this ).attr( 'href' ).replace( '{canonicalUrl}', storyUrl );
//- $( this ).attr( 'href', href );
//- } );
// Generate window for Twitter sharing
var genericShare = function (url, site) {
var width = ($(window).width() < 1024) ? $(window).width() - 40 : 575,
height = 450,
left = ($(window).width() - width) / 2,
top = ($(window).height() - height) / 2,
opts="status=1" +
',width=" + width +
",height=" + height +
",top=' + top +
',left=" + left;
window.open(url, site, opts);
};
var $twitter = $(".tile.twitter').find('a');
$twitter.click(function () {
genericShare('http://twitter.com/share?text=" + storyTitle + "&url=" + storyUrl, "Twitter');
});
},true);
//.fb-like.pull-left(data-href="my40.tv/sports/friday-night-rivals/highlights/friday-football-frenzy-all-your-scores-highlights-04-02-21", data-layout="button_count", data-share="true", data-width="450")
//http://graph.facebook.com/?id=http://wjla.com/news/local/house-fire-kills-two-in-spotsylvania-county
.