diff --git a/.DS_Store b/.DS_Store index 4c19ce9..c82819d 100644 --- a/.DS_Store +++ b/.DS_Store Binary files differ diff --git a/chiriin.html b/chiriin.html new file mode 100644 index 0000000..6d8550d --- /dev/null +++ b/chiriin.html @@ -0,0 +1,15 @@ + + + + + + + + + +

Map

+
+ + \ No newline at end of file diff --git a/chiriin.js b/chiriin.js new file mode 100644 index 0000000..c06ccec --- /dev/null +++ b/chiriin.js @@ -0,0 +1,8 @@ +var mymap = L.map("hogemap").setView([38.891, 139.824], 16); +L.tileLayer('//{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { + attribution: + '© OpenStreetMap contributors' +}).addTo(mymap); +L.marker([38.891, 139.824]).addTo(mymap); + +document.addEventListener('DOMContentLoaded', mymap) \ No newline at end of file diff --git a/fetch.html b/fetch.html index 99d4c52..ddba95c 100644 --- a/fetch.html +++ b/fetch.html @@ -28,6 +28,8 @@ }).then((txt) => { // それを txt として受け取る pre.textContent = txt; // pre要素の内容をそれに置き換える }); + if fetch(file.uuu.txt).then + return <>そんなファイルありません }); diff --git a/popup-click.js b/popup-click.js index f98223b..491250c 100644 --- a/popup-click.js +++ b/popup-click.js @@ -7,7 +7,7 @@ L.control.scale().addTo(mymap); // クリック位置にマーカーを追加 mymap.on("click", (e) => { - var pop = document.getElementById("foo").value, + var pop = document.getElementById("foo").value="", mkr = L.marker(e.latlng, {draggable: true}); //マーカーを生成 mkr.bindPopup(pop).addTo(mymap); //bindPopup(文字列)で設定、それを足す diff --git a/scope.rb b/scope.rb new file mode 100755 index 0000000..efb5abf --- /dev/null +++ b/scope.rb @@ -0,0 +1,7 @@ +var a=5; +function foo() { + var a=3; + console.log("a="+a); +} +foo(); +console.log("a="+a); \ No newline at end of file