summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2017-07-15 12:28:25 +0300
committerYuval Adam <_@yuv.al>2017-07-15 12:28:25 +0300
commitef6e24b7e688274af6f0611873bfe9c13a6517d9 (patch)
treeaa40acad08da3838bc4a8895824247fcb31e2365 /index.html
parenteb7ed78bc5f076d7eb717b74081127066c2a5b10 (diff)
A proper working version with CCsgh-pages
Diffstat (limited to 'index.html')
-rw-r--r--index.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/index.html b/index.html
index 469d5df..044f67c 100644
--- a/index.html
+++ b/index.html
@@ -5,13 +5,14 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Direct link to your WhatsApp contacts | WhatZap.space</title>
<link rel="stylesheet" type="text/css" href="style.css">
+ <script src="cc.js"></script>
<script src="vue.min.js"></script>
</head>
<body>
<div id="app">
<h1>Direct link to your WhatsApp contacts</h1>
<div id="input">
- <input v-model="tel" pattern="\d*">
+ <input v-model="number" pattern="\d*">
</div>
<div id="link">
<a v-bind:href="href">+{{ number }}</a>
@@ -22,7 +23,7 @@
var app = new Vue({
el: '#app',
data: {
- number: '1234',
+ number: '',
},
computed: {
href: function () {
@@ -41,7 +42,7 @@
}
});
function locationCallback(res) {
- console.log(res);
+ app.number = cc[res['country']];
}
</script>
</body>