summaryrefslogtreecommitdiff
path: root/index.html
blob: d1b5958adc18b7fb82f202675940422bfcffe955 (plain)
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
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>Direct link to your WhatsApp contacts | WhatZap.space</title>
  <script src="vue.min.js"></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>