forked from purplecabbage/phonegap-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
578dbfe
commit 024aa73
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
|
||
|
||
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"/> |