diff options
| author | Yuval Adam <_@yuv.al> | 2017-07-03 00:00:45 +0300 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2017-07-03 00:00:45 +0300 |
| commit | 696c4afd48fcb21c0d242c5d8968e74c2170133a (patch) | |
| tree | 449b2e949b556d63d9ea196849013e4119e71ff6 | |
Initial vue.js structure
| -rw-r--r-- | index.html | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/index.html b/index.html new file mode 100644 index 0000000..715bca1 --- /dev/null +++ b/index.html @@ -0,0 +1,30 @@ +<!DOCTYPE html> +<html> +<head> + <meta charset="utf-8"> + <title>Direct link to your WhatsApp contacts | WhatZap.space</title> + <script src="https://unpkg.com/vue"></script> +</head> +<body> + <div id="app"> + <h1>Direct link to your WhatsApp contacts</h1> + <input v-model="number" type="number"> + <br> + <a v-bind:href="href">+{{ number }}</a> + </div> + + <script> + var app = new Vue({ + el: '#app', + data: { + number: '1234', + }, + computed: { + href: function () { + return 'whatsapp://send?phone=+' + this.number + '&text=abc' + } + } + }) + </script> +</body> +</html> |
