-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex2.html
34 lines (30 loc) · 994 Bytes
/
index2.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
</head>
<body>
<h1>傳送訊息(權杖)</h1>
<span>權杖</span><input type="text" id="myKey">
<br>
<span>我的訊息</span><input type="text" id="myMessage">
<br>
<br>
<button onclick="mySubmit()">傳送訊息</button>
</body>
<script>
function mySubmit(){
var myMessage = document.getElementById('myMessage').value;
var myKey = document.getElementById('myKey').value;
console.log(myMessage);
let url = 'https://script.google.com/macros/s/AKfycbxjYvzIK3DUZGDQRtlYQgI9CpYnlkhO1YFXgVXi581lxTFOeXrb/exec' //johnny
$.post(url,
{msg:myMessage,NKey:myKey}
)
}
</script>
</html>