-
Notifications
You must be signed in to change notification settings - Fork 0
/
backup.html
41 lines (38 loc) · 1.1 KB
/
backup.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Scouting Restore</title>
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<script src="lib/vue.js"></script>
<script src="lib/vue-resource.min.js"></script>
<script src="lib/sweetalert2.min.js"></script>
<link rel="stylesheet" href="css/semantic.min.css">
<link rel="stylesheet" href="css/sweetalert2.min.css">
</head>
<body>
<div id="app">
<textarea v-model="data" cols="30" rows="10"></textarea>
<button @click="submit">SUBMIT</button>
</div>
</body>
<script type="text/javascript">
var app = new Vue({
el: '#app',
data: {
data: "",
},
methods: {
submit: function() {
this.$http.post('/', this.data).then((function() {
swal('u did it')
}), function() {
swal("failed")
});
}
},
})
</script>
</html>