Add URL button
This commit is contained in:
parent
8d5de762d0
commit
2c6834a18f
2 changed files with 10 additions and 3 deletions
|
@ -27,6 +27,7 @@
|
||||||
<p class="card-text">{{ profile.statusMessage }}</p>
|
<p class="card-text">{{ profile.statusMessage }}</p>
|
||||||
<button class="btn btn-primary" onclick="toggle()">Transform!</button>
|
<button class="btn btn-primary" onclick="toggle()">Transform!</button>
|
||||||
<button class="btn btn-primary" onclick="share()">Share</button>
|
<button class="btn btn-primary" onclick="share()">Share</button>
|
||||||
|
<button class="btn btn-info" onclick="url()">URL</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -42,7 +43,7 @@
|
||||||
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
|
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
|
||||||
crossorigin="anonymous"></script>
|
crossorigin="anonymous"></script>
|
||||||
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
|
||||||
<script src="meetup-liff.js?a=7"></script>
|
<script src="meetup-liff.js?a=8"></script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
|
@ -54,6 +54,12 @@ function share() {
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}])
|
}]).then(() => liff.closeWindow(), err => app.error = err)
|
||||||
.then(() => liff.closeWindow(), err => app.error = err)
|
}
|
||||||
|
|
||||||
|
function url() {
|
||||||
|
liff.sendMessages([{
|
||||||
|
"type": "text",
|
||||||
|
"text": "Endpoint: https://adamu.github.io/line_dm_liff/\nRepository: https://github.com/adamu/line_dm_liff"
|
||||||
|
}]).then(() => liff.closeWindow(), err => app.error = err)
|
||||||
}
|
}
|
Loading…
Reference in a new issue