diff --git a/geoguessr.js b/geoguessr.js index fc6a0c3..da2269f 100644 --- a/geoguessr.js +++ b/geoguessr.js @@ -1,5 +1,5 @@ document.addEventListener("DOMContentLoaded", ()=>{ - /*const scene = document.querySelector('a-scene'); + const scene = document.querySelector('a-scene'); if (!scene){ console.error("not found") return; @@ -7,7 +7,7 @@ scene.addEventListener('loaded', () => { initConn(); -});*/ +}); var place; // あとでcsvから読み込まれて配列になる var sky = document.getElementById("sky"); // 360画像 @@ -15,27 +15,6 @@ var cam = document.getElementById("camera"); // カメラ var dir = "image/"; // 画像格納ディレクトリ var inirot = {}; // カメラの初期の向き - /*var connect = document.getElementById("connect");*/ - var conn, PORT = 9999, server = location.hostname||"localhost"; - var conn; - - /*function initConn() {*/ - try { - conn = new Websocket('ws://' + server + ':' + PORT + '/'); - conn.onopen = function() { - console.log("websocket connection established"); - }; - conn.onerror = function(err) { - alert('WebSocket failure:' + err); - }; - conn.onmessage = function(ev) { - /*info.textContent = ev.data;*/ - console.log("Message from server" + ev.data) - }; - }catch(err){ - alert("creation error" , + err.message); - } - //} function addSphere(attr) { // CSVの該当行の位置に球を配置する // photo,color,radius,opacity,x,y,z,next