forked from JefferyWang/nativeShare.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.html
26 lines (25 loc) · 831 Bytes
/
demo.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
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>nativeShare.js Demo</title>
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
<meta name="description" content="demo" />
<script src="nativeShare.js"></script>
<link rel="stylesheet" href="nativeShare.css"/>
</head>
<body>
<div id="nativeShare"></div>
<script>
var config = {
url:'http://blog.wangjunfeng.com',
title:'王俊锋的个人博客',
desc:'王俊锋的个人博客',
img:'http://www.wangjunfeng.com/img/face.jpg',
img_title:'王俊锋的个人博客',
from:'王俊锋的博客'
};
var share_obj = new nativeShare('nativeShare',config);
</script>
</body>
</html>