OSDN Git Service

Changes to be committed:
[vem/WITs.git] / JS / canvas.js
index 95bb410..7bc071e 100644 (file)
@@ -9,7 +9,7 @@ function tabcheck() {
     var insingle = document.getElementById('singleparticlecontents');
     var intomo = document.getElementById('tomography');
     var inmds = document.getElementById('mds');
-    
+
     if (insingle.style.display == "") {
         canvasmode = 1;
         canvasApp();
@@ -49,7 +49,7 @@ function eventWindowLoaded() {
  */
 //var movex = document.forms.movestage.movex.value;
 //var movey = document.forms.movestage.movey.value;
-/*       
+/*
  function putTxt(){
  document.onkeydown = funcKey;
  }
@@ -186,7 +186,7 @@ function gamepad() {
      if (gamepad.axes[1] > 0.5) {
      movey = parseInt(movey) + parseInt(10);
      canvasApp();
-     
+
      }
      },1000/60);
      */
@@ -295,8 +295,8 @@ function gamepad() {
             }
         }
     }, 1000 / 60);
-   
-    
+
+
     window.addEventListener("gamepaddisconnected", function(e) {
             console.log("gamepad disconnected");
         });
@@ -305,7 +305,7 @@ function gamepad() {
                 e.gamepad.index, e.gamepad.id,
                 e.gamepad.buttons.length, e.gamepad.axes.length);
     });
-    
+
 };
 
 
@@ -329,11 +329,11 @@ function canvasApp() {
             //if(document.forms.movestage.movey.value!=moveformy){
             moveformy = document.forms.movestage.movey.value;
             movey=parseInt(moveformy);
-            
+
             moveformz = document.forms.moveza.movez.value;
             movez=parseInt(moveformz);
-   
-            
+
+
             stagecontrol('stage',movex,movey,movez,movea);
             emcondition('request');
             //}
@@ -341,7 +341,7 @@ function canvasApp() {
         }
         /*
         var movez = document.forms.s2.movez.value;
-        
+
         if (movez == 0) {
             movez = 1;
         }
@@ -362,7 +362,7 @@ function canvasApp() {
         }
 
         //見る画像
-        img.src = "./CC124crudeダイニン.jpg";
+        img.src = "./image/CC124crudeダイニン.jpg";
 
         //--ふちの設定--現在見えてない
         context.strokeStyle = "#000000";
@@ -393,10 +393,10 @@ function canvastomo() {
             //if(document.forms.movestage.movey.value!=moveformy){
             moveformy = document.forms.movestagetomo.movey.value;
             movey=parseInt(moveformy);
-            
+
             moveformz = document.forms.moveztomo.movez.value;
             movez=parseInt(moveformz);
-            
+
             if (tiltmode == 1) {
                 moveformas = document.forms.setting.standardnum.value;
                 movea = parseInt(moveformas);
@@ -415,7 +415,7 @@ function canvastomo() {
         }
         /*
         var movez = document.forms.s2.movez.value;
-        
+
         if (movez == 0) {
             movez = 1;
         }
@@ -436,7 +436,7 @@ function canvastomo() {
         }
 
         //見る画像
-        img.src = "./axoF11-2 .jpg";
+        img.src = "./image/axoF11-2 .jpg";
 
         //--ふちの設定--現在見えてない
         context.strokeStyle = "#000000";
@@ -457,14 +457,14 @@ function controlmodeselect(modename){
         document.getElementById("gamepad").style.backgroundColor = 'transparent';
         document.getElementById("gamepad2").style.backgroundColor = 'transparent';
         document.getElementById("gamepad3").style.backgroundColor = 'transparent';
-        
+
         if(modename){
             document.getElementById(modename).style.backgroundColor = '#e0ffff';
         }
 }
 
 
-/* 
+/*
  * To change this license header, choose License Headers in Project Properties.
  * To change this template file, choose Tools | Templates
  * and open the template in the editor.
@@ -503,11 +503,11 @@ function canvasmds() {
             //if(document.forms.movestage.movey.value!=moveformy){
             moveformy = document.forms.movestagemds.movey.value;
             movey=parseInt(moveformy);
-            
+
             moveformz = document.forms.movezmds.movez.value;
             movez=parseInt(moveformz);
-   
-            
+
+
             stagecontrol('stage',movex,movey,movez,movea);
             emcondition('request');
             //}
@@ -515,7 +515,7 @@ function canvasmds() {
         }
         /*
         var movez = document.forms.s2.movez.value;
-        
+
         if (movez == 0) {
             movez = 1;
         }
@@ -536,7 +536,7 @@ function canvasmds() {
         }
 
         //見る画像
-        img.src = "./flower.jpg";
+        img.src = "./image/flower.jpg";
 
         //--ふちの設定--現在見えてない
         context.strokeStyle = "#000000";
@@ -584,11 +584,11 @@ function canvasroot() {
             //if(document.forms.movestage.movey.value!=moveformy){
             moveformy = document.forms.movestage.movey.value;
             movey=parseInt(moveformy);
-            
+
             moveformz = document.forms.moveza.movez.value;
             movez=parseInt(moveformz);
-   
-            
+
+
             stagecontrol('stage',movex,movey,movez,movea);
             emcondition('request');
             //}
@@ -596,7 +596,7 @@ function canvasroot() {
         }*/
         /*
         var movez = document.forms.s2.movez.value;
-        
+
         if (movez == 0) {
             movez = 1;
         }
@@ -617,7 +617,7 @@ function canvasroot() {
         }
 
         //見る画像
-        img.src = "./ele.jpg";
+        img.src = "./image/ele.jpg";
 
         //--ふちの設定--現在見えてない
         context.strokeStyle = "#000000";
@@ -626,4 +626,4 @@ function canvasroot() {
         //わくの輪郭を書く、引数は左端のx,y,幅,高さ
     }
     drawScreen();
-}
\ No newline at end of file
+}