Skip to content

Commit

Permalink
Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
purplecabbage committed Nov 4, 2011
1 parent 578dbfe commit 024aa73
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions WindowsPhone/PGSocialShare/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Sample Use:
===============

<script type="text/javascript" charset="utf-8" src="PGSocialShare.js"></script&gt


function shareStatus()
{
navigator.plugins.pgSocialShare.shareStatus("This was shared from JS+PhoneGap+WP7 Yo!");
}

function shareLink()
{
navigator.plugins.pgSocialShare.shareLink("WP7 PhoneGap Plugins",
"https://github.com/purplecabbage/phonegap-plugins/tree/master/WindowsPhone",
"Watch for updates here soon! Shared from JavaScript");
}



<input style="display:block;margin:40px 0px" type="button" onclick="shareLink()" value="Share a Link"/>
<input style="display:block;margin:40px 0px" type="button" onclick="shareStatus()" value="Update your Status"/>

0 comments on commit 024aa73

Please sign in to comment.