-
Notifications
You must be signed in to change notification settings - Fork 3
/
socialShare.html
158 lines (136 loc) · 9.21 KB
/
socialShare.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<!DOCTYPE HTML>
<html><!-- InstanceBegin template="/Templates/main.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>Mobile App</title>
<link href="http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,700"
rel="stylesheet" type="text/css"/>
<link href="css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
<link href="css/jquerymobile.css" rel="stylesheet" type="text/css"/>
<!-- nativeDroid core CSS -->
<link href="css/jquerymobile.nativedroid.css" rel="stylesheet" type="text/css"/>
<!-- nativeDroid: Light/Dark -->
<link href="css/jquerymobile.nativedroid.dark.css" rel="stylesheet" type="text/css" id='jQMnDTheme'/>
<!-- nativeDroid: Color Schemes -->
<link href="css/jquerymobile.nativedroid.color.green.css" rel="stylesheet" type="text/css" id='jQMnDColor'/>
<link href="css/style.css" rel="stylesheet" type="text/css"/>
<script src="js/jquery-1.11.0.min.js" type="text/javascript"></script>
<script src="js/jquery.mobile-1.4.2.min.js" type="text/javascript"></script>
<script src="js/logger.js" type="text/javascript"></script>
<script src="cordova.js" type="text/javascript"></script>
<script src="js/functions.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
allowAccess();
$(document).on( 'pagecreate','#page', function(event){
setUserToken();
});
getHeaderBgColor();
getUserMenu();
});
</script>
<!-- InstanceBeginEditable name="EditableHead" -->
<!-- InstanceEndEditable -->
</head>
<body>
<div data-role="page" id="pageone" class="content_wrapper container" data-theme='b'>
<div data-role="header" data-position="fixed" data-tap-toggle="false" data-theme="e"
id="header" class="bg-black">
<div class="container">
<div class="top-icons ti-left">
<a href="#sidebar_panael" class="ui-btn ui-corner-all ui-shadow manu_btn" data-role='button' data-icon='tasks' data-iconpos='left' data-inline='true'><i class='fa fa-bars'></i></a>
</div>
<div id="header-logo">
<div class="tile-box text-center">
<a href="dashboard.html" rel="external">
<img src="images/taxi-logo.png" alt="Get a Taxi App">
</a>
</div>
</div>
<div class="top-icons ti-right" id="header-right">
<!--<a href="#">
<i class="icon-user"></i>
</a>
<a href="#right-panel" data-role="button" data-icon="tasks" data-iconpos="right" data-inline="true">
<i class="icon-cogs"></i>
</a>
<a href="#">
<i class="icon-cogs"></i>
</a>-->
</div>
<!-- InstanceBeginEditable name="EditableHeader" -->
<!-- InstanceEndEditable -->
<div class="clearfix"></div>
</div>
</div>
<div id="content">
<div class="container">
<!-- InstanceBeginEditable name="EditableBody" -->
<div class="help-bg content-position">
<h2>Customer Help</h2>
<p>
<button onclick="window.plugins.socialsharing.share('Message only')">message only</button>
<button onclick="window.plugins.socialsharing.share('Message and subject', 'The subject')">message and subject</button>
<button onclick="window.plugins.socialsharing.share(null, null, null, 'http://www.x-services.nl')">link only</button>
<button onclick="window.plugins.socialsharing.share('Message and link', null, null, 'http://www.x-services.nl')">message and link</button>
<button onclick="window.plugins.socialsharing.share(null, null, 'https://www.google.nl/images/srpr/logo4w.png', null)">image only</button>
<button onclick="window.plugins.socialsharing.share(null, null, 'data:image/png;base64,R0lGODlhDAAMALMBAP8AAP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAUKAAEALAAAAAAMAAwAQAQZMMhJK7iY4p3nlZ8XgmNlnibXdVqolmhcRQA7', null)">base64 image only</button>
<button onclick="window.plugins.socialsharing.share('Message and image', null, 'https://www.google.nl/images/srpr/logo4w.png', null)">message and image</button>
<button onclick="window.plugins.socialsharing.share('Message, image and link', null, 'https://www.google.nl/images/srpr/logo4w.png', 'http://www.x-services.nl')">message, image and link</button>
<button onclick="window.plugins.socialsharing.share('Message, subject, image and link', 'The subject', 'https://www.google.nl/images/srpr/logo4w.png', 'http://www.x-services.nl')">message, subject, image and link</button>
<button onclick="window.plugins.socialsharing.shareViaTwitter('Message via Twitter')">message via Twitter</button>
<button onclick="window.plugins.socialsharing.shareViaTwitter('Message and link via Twitter', null, 'http://www.x-services.nl')">msg and link via Twitter</button>
<button onclick="window.plugins.socialsharing.shareViaFacebook('Message via Facebook', null, null, function() {console.log('share ok')}, function(errormsg){alert(errormsg)})">msg via Facebook (with errcallback)</button>
<button onclick="window.plugins.socialsharing.shareViaWhatsApp('Message via WhatsApp', null, null, function() {console.log('share ok')}, function(errormsg){alert(errormsg)})">msg via WhatsApp (with errcallback)</button>
<!-- Want to share a prefilled SMS text? -->
<button onclick="window.plugins.socialsharing.shareViaSMS('My cool message', null /* see the note below */, function(msg) {console.log('ok: ' + msg)}, function(msg) {alert('error: ' + msg)})">share via SMS</button>
<!-- Want to prefill some phonenumbers as well? Pass this instead of null. Important notes: For stable usage of shareViaSMS on Android 4.4 and up you require to add at least one phonenumber! Also, on Android make sure you use v4.0.3 or higher of this plugin, otherwise sharing multiple numbers to non-Samsung devices will fail -->
<button onclick="window.plugins.socialsharing.shareViaSMS('My cool message', '0612345678,0687654321', function(msg) {console.log('ok: ' + msg)}, function(msg) {alert('error: ' + msg)})">share via SMS</button>
</p>
</div>
<!-- InstanceEndEditable -->
</div>
<div class="clearfix"></div>
</div>
<!-- <div data-position="fixed" data-tap-toggle="false" data-role="footer" data-tap-toggle="false" data-theme="b"
id="footer">
<div class="container">
<div data-role="navbar">
<ul>
<li>
<a href="index.html">
<i class="icon-home"></i>
</a>
</li>
<li>
<a href="#">
<i class="icon-picture"></i>
</a>
</li>
<li>
<a href="logout.html" id="logout">
<i class="icon-signout"></i>
</a>
</li>
</ul>
</div>-->
<!-- InstanceBeginEditable name="EditableFooter" -->
<!-- InstanceEndEditable -->
<!-- </div> -->
<!--left panel content-->
<div data-role="panel" id="sidebar_panael" data-dismissible="false" data-display="push" data-theme="b">
<ul data-role="listview">
<li><h2>Your wishes</h2></li>
<li data-icon='false'><a href="#"><i class='lIcon fa fa-coffee'></i>About us</a></li>
<li data-icon='false'><a href="#"><i class='lIcon fa fa-beer'></i>Testomonial</a></li>
<li data-icon='false'><a href="#"><i class='lIcon fa fa-music'></i>Hire a taxi</a></li>
<li data-icon='false'><a href="#"><i class='lIcon fa fa-fire'></i>Location</a></li>
<li data-icon='false'><a href="#"><i class='lIcon fa fa-bullhorn'></i>Contact us</a></li>
<li data-icon='false'><a href="#"><i class='lIcon fa fa-heart'></i>Tell a friend</a></li>
<li data-icon='false'><a href="#"><i class='lIcon fa fa-trophy'></i>Rate this apps</a></li>
</ul>
</div>
</div>
</div>
</body>
<!-- InstanceEnd --></html>