-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.html
More file actions
27 lines (21 loc) · 781 Bytes
/
test.html
File metadata and controls
27 lines (21 loc) · 781 Bytes
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
<html>
<head>
<title></title>
<script src="./jquery-2.0.1.js"></script>
<script type="text/javascript">
jQuery(function(){
jQuery("#name, #url").on("input", generateLink);
function generateLink() {
console.log("generating link");
jQuery("#link").attr("href",
"wemoin://?name="+jQuery("#name").val()+"&teamkube_url="+encodeURIComponent(jQuery("#url").val()));
}
});
</script>
</head>
<body>
Name: <input autocapitalize="off" autocorrect="off" id="name" length="20" value="admin"></input><br>
URL: <input id="url" length="20" value="http://cwep-paperless.gss.com.tw/team/default"></input><br>
<a target="_blank" id="link" href="wemoin://?name=admin&teamkube_url=http%3A%2F%2Fcwep-paperless.gss.com.tw%2Fteam%2Fdefault">open wemoin</a>
</body>
</html>