Repository navigation
Expand file tree
/
Copy pathss25.js
More file actions
128 lines (106 loc) · 3.62 KB
/
Copy pathss25.js
File metadata and controls
128 lines (106 loc) · 3.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
//textarea用 テキスト・ロード-----------------------------------
//testSave
function loadText_testSave() {
if (window.XMLHttpRequest) {
xmlHttp1 = new XMLHttpRequest();
} else {
if (window.ActiveXObject) {
xmlHttp1 = new ActiveXObject("Microsoft.XMLHTTP");
} else {
xmlHttp1 = null;
}
}
xmlHttp1.onreadystatechange = checkStatus_testSave;
xmlHttp1.open("GET", "proso\\testSave.txt", true);
xmlHttp1.send(null);
}
function checkStatus_testSave() {
if (xmlHttp1.readyState == 4 && xmlHttp1.status == 200) {
document.ajaxForm1.result.value = xmlHttp1.responseText;
}
else {
document.ajaxForm1.result.value = "";
}
}
//スマホ用左寄せ-----------------------------------
function moveLeft() {
var w;
w = window.innerWidth;
var ele1;
ele1 = document.getElementById("left1");
var ele2;
ele2 = document.getElementById("left2");
var ele3;
ele3 = document.getElementById("left3");
var ele4;
ele4 = document.getElementById("left4");
var ele5;
ele5 = document.getElementById("left5");
var ele6;
ele6 = document.getElementById("left6");
if (w < 760) {
ele1.style.position = "relative";
ele1.style.top = "0px";
ele1.style.marginLeft = "20px";
ele1.style.marginRight = "auto";
ele2.style.position = "relative";
ele2.style.top = "0px";
ele2.style.marginLeft = "20px";
ele2.style.marginRight = "auto";
ele3.style.position = "relative";
ele3.style.top = "0px";
ele3.style.marginLeft = "0px";
ele3.style.marginRight = "auto";
ele3.style.width = "300px";
ele3.style.height = "auto";
ele4.style.position = "relative";
ele4.style.top = "320px";
ele4.style.marginLeft = "0px";
ele4.style.marginRight = "auto";
ele4.style.width = "300px";
ele4.style.height = "auto";
ele5.style.position = "relative";
ele5.style.top = "320px";
ele5.style.marginLeft = "0px";
ele5.style.marginRight = "auto";
ele6.style.position = "relative";
ele6.style.top = "300px";
ele6.style.marginLeft = "0px";
ele6.style.marginRight = "auto";
ele6.style.width = "100%";
ele6.style.height = "100px";
}
else {
ele1.style.position = "relative";
ele1.style.top = "0px";
ele1.style.marginLeft = "200px";
ele1.style.marginRight = "auto";
ele2.style.position = "relative";
ele2.style.top = "0px";
ele2.style.marginLeft = "40px";
ele2.style.marginRight = "auto";
ele3.style.position = "relative";
ele3.style.top = "0px";
ele3.style.marginLeft = "0px";
ele3.style.marginRight = "auto";
ele3.style.width = "500px";
ele3.style.height = "300px";
ele4.style.position = "relative";
ele4.style.top = "-15px";
ele4.style.marginLeft = "520px";
ele4.style.marginRight = "auto";
ele4.style.width = "500px";
ele4.style.height = "300px";
ele5.style.position = "relative";
ele5.style.top = "0px";
ele5.style.marginLeft = "40px";
ele5.style.marginRight = "auto";
ele6.style.position = "relative";
ele6.style.top = "0px";
ele6.style.marginLeft = "0px";
ele6.style.marginRight = "auto";
ele6.style.width = "100%";
ele6.style.height = "100px";
}
}