return'https://www.facebook.com/sharer/sharer.php?s=100&p[url]='+link+'&p[title]='+encodeURIComponent('Open Video Annotation')+'&p[summary]='+noteText;
},
'twitter':function(title,link,noteText){
return'https://twitter.com/intent/tweet?original_referer='+link+'&source=tweetbutton&url='+link+"&via=OpenVideoAnnotation&text="+encodeURIComponent('I want to share the following Open Video Annotation: ');
},
'google':function(title,link,noteText){
return'https://plus.google.com/share?url='+link;
},
'email':function(title,link,noteText){
return'mailto:?subject='+title+'&body='+link;
}
},
baseUrl:'',//baseUrl = the base url for all the shared annotations
};
__extends(Share,_super);
// Default Share configuration
Share.prototype.options={
shareIn:['facebook','twitter','email','google'],
getUrl:{
'facebook':function(title,link,noteText){
return'https://www.facebook.com/sharer/sharer.php?s=100&p[url]='+link+'&p[title]='+encodeURIComponent('Open Video Annotation')+'&p[summary]='+noteText;
},
'twitter':function(title,link,noteText){
return'https://twitter.com/intent/tweet?original_referer='+link+'&source=tweetbutton&url='+link+"&via=OpenVideoAnnotation&text="+encodeURIComponent('I want to share the following Open Video Annotation: ');
},
'google':function(title,link,noteText){
return'https://plus.google.com/share?url='+link;
},
'email':function(title,link,noteText){
return'mailto:?subject='+title+'&body='+link;
}
},
baseUrl:'',// baseUrl = the base url for all the shared annotations
//Method 2 API with all the parameter to load the annotation
//Example with video: http://danielcebrian.com/annotations/demo.html?ovaContainer=vid1&ovaSrc=http%3A%2F%2Fvideo-js.zencoder.com%2Foceans-clip.mp4&ovaStart=2&ovaEnd=10&ovaText=This%20is%20test&ovaUser=Test%20User
//Example with text: http://danielcebrian.com/annotations/demo.html?ovaStart=%2Fp%5B1%5D&ovaEnd=%2Fp%5B1%5D&ovastartOffset=542&ovaendOffset=572&ovaText=API
if(start!=''&&end!=''&&container!=''&&src!=''){//video api
// Method 2 API with all the parameter to load the annotation
// Example with video: http://danielcebrian.com/annotations/demo.html?ovaContainer=vid1&ovaSrc=http%3A%2F%2Fvideo-js.zencoder.com%2Foceans-clip.mp4&ovaStart=2&ovaEnd=10&ovaText=This%20is%20test&ovaUser=Test%20User
// Example with text: http://danielcebrian.com/annotations/demo.html?ovaStart=%2Fp%5B1%5D&ovaEnd=%2Fp%5B1%5D&ovastartOffset=542&ovaendOffset=572&ovaText=API
if(start!=''&&end!=''&&container!=''&&src!=''){// video api