-
Notifications
You must be signed in to change notification settings - Fork 0
/
share.html
40 lines (34 loc) · 1.15 KB
/
share.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>分享</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="format-detection" content="telephone=no">
<meta name="msapplication-tap-highlight" content="no">
<link rel="icon" type="image/x-icon" href="./res/favicon.ico">
<style type="text/css">
.icon {
display: none;
}
</style>
<script type="text/javascript">
function shareTimeline() {
WeixinJSBridge.invoke('shareTimeline', {
"img_url": "https://peakandyuri.github.io/reeves/res/wx_pic.png",
"img_width": "200",
"img_height": "200",
"link": "https://peakandyuri.github.io/reeves/index.html",
"desc": "时光荏苒",
"title": "悄悄流走"
}, function (res) {
// alert('timeline', res.err_msg);
});
}
</script>
</head>
<body>
<input type='button' value="分享" onclick="shareTimeline()" />
<div id="result"></div>
</body>
</html>