SHOW:
|
|
- or go back to the newest paste.
| 1 | ||
| 2 | var showMyLocation = document.createElement('input');
| |
| 3 | showMyLocation.type = "checkbox"; | |
| 4 | showMyLocation.className = "checkboxForRange"; | |
| 5 | showMyLocation.id = "showMyLocation"; | |
| 6 | ||
| 7 | $$.children("#showMyLocation").html('<p style="float:left">Vis min posisjon :</p>').append(showMyLocation);
| |
| 8 | ||
| 9 | $('#' + showMyLocation.id).change(function () { //location
| |
| 10 | console.log("clicked");
| |
| 11 | if ($(this).is(":checked")) {
| |
| 12 | console.log("y");
| |
| 13 | GarageHandler.showPosition(); | |
| 14 | } else {
| |
| 15 | console.log("n");
| |
| 16 | GarageHandler.hidePosition(); | |
| 17 | } | |
| 18 | }); |