Updated README and html
This commit is contained in:
parent
f88c7f856d
commit
361d113c9a
|
@ -16,7 +16,7 @@ example
|
||||||
|
|
||||||
>>> three = these.three_words(CERN)
|
>>> three = these.three_words(CERN)
|
||||||
>>> print three
|
>>> print three
|
||||||
'treaty-crane-seldes'
|
'zeljka-worry-suhai'
|
||||||
>>> these.decode(three)
|
>>> these.decode(three)
|
||||||
(46.232335567474365, 6.055419445037842)
|
(46.232335567474365, 6.055419445037842)
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
Find a location anywhere in the world identified by three simple words.
|
Find a location anywhere in the world identified by three simple words.
|
||||||
</p>
|
</p>
|
||||||
<p id="input3wordsContainer">
|
<p id="input3wordsContainer">
|
||||||
<input type="text" class="form-control" id="input3words" placeholder="treaty-crane-seldes">
|
<input type="text" class="form-control" id="input3words" placeholder="zeljka-worry-suhai">
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<button id="button3words" class="btn btn-lg btn-primary">Find on Map</button>
|
<button id="button3words" class="btn btn-lg btn-primary">Find on Map</button>
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
</main>
|
</main>
|
||||||
<script>
|
<script>
|
||||||
(function() {
|
(function() {
|
||||||
var default3words = 'treaty-crane-seldes';
|
var default3words = 'zeljka-worry-suhai';
|
||||||
var threewordsField = document.getElementById('input3words');
|
var threewordsField = document.getElementById('input3words');
|
||||||
document.getElementById('button3words').addEventListener('click', function(evt) {
|
document.getElementById('button3words').addEventListener('click', function(evt) {
|
||||||
var threewords = threewordsField.value;
|
var threewords = threewordsField.value;
|
||||||
|
|
Loading…
Reference in New Issue