質問編集履歴
3
修正前のソースを追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
|
12
12
|
|
13
|
-
```html
|
13
|
+
```html
|
14
14
|
|
15
15
|
<!DOCTYPE html>
|
16
16
|
|
@@ -134,6 +134,22 @@
|
|
134
134
|
|
135
135
|
}
|
136
136
|
|
137
|
+
/*function Title(){
|
138
|
+
|
139
|
+
if(getCookie('vstitle1')){
|
140
|
+
|
141
|
+
var vstitle1 = getCookie('vstitle1');
|
142
|
+
|
143
|
+
$("strong.visit").text( getCookie('vstitle1') );
|
144
|
+
|
145
|
+
}
|
146
|
+
|
147
|
+
else{
|
148
|
+
|
149
|
+
echo , test;}
|
150
|
+
|
151
|
+
}*/
|
152
|
+
|
137
153
|
|
138
154
|
|
139
155
|
|
@@ -214,6 +230,8 @@
|
|
214
230
|
|
215
231
|
<p><strong class="visit"></strong></p>
|
216
232
|
|
233
|
+
<!--<ul><strong class="visit"></strong></ul>-->
|
234
|
+
|
217
235
|
<button id="setButton" onclick="TitleWrite();">保存</button>
|
218
236
|
|
219
237
|
</body>
|
2
文法の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -122,13 +122,15 @@
|
|
122
122
|
|
123
123
|
function Title(){
|
124
124
|
|
125
|
-
if(getCookie('vstitle1')
|
125
|
+
if(getCookie('vstitle1')){
|
126
|
-
|
126
|
+
|
127
|
-
$("s
|
127
|
+
$("span.visit").text( getCookie('vstitle1') );
|
128
128
|
|
129
129
|
}
|
130
130
|
|
131
|
-
else{
|
131
|
+
else{
|
132
|
+
|
133
|
+
echo , test;}
|
132
134
|
|
133
135
|
}
|
134
136
|
|
@@ -136,6 +138,8 @@
|
|
136
138
|
|
137
139
|
|
138
140
|
|
141
|
+
|
142
|
+
|
139
143
|
//①空きチェック forループで そのクッキーが存在するかをチェック isset($_COOKIE["vstitle"]))
|
140
144
|
|
141
145
|
// 空いてたら中断する 一番が存在しなかったら、そのループ内にいれる、保存できる空き容量にメモリーカウントが4だったら終了する break
|
@@ -196,6 +200,8 @@
|
|
196
200
|
|
197
201
|
|
198
202
|
|
203
|
+
|
204
|
+
|
199
205
|
</script>
|
200
206
|
|
201
207
|
|
@@ -206,9 +212,7 @@
|
|
206
212
|
|
207
213
|
<h2 class="title">titleを記録</h2>
|
208
214
|
|
209
|
-
<h2 class="title">title2を記録</h2>
|
210
|
-
|
211
|
-
<
|
215
|
+
<p><strong class="visit"></strong></p>
|
212
216
|
|
213
217
|
<button id="setButton" onclick="TitleWrite();">保存</button>
|
214
218
|
|
1
ソース修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -194,10 +194,6 @@
|
|
194
194
|
|
195
195
|
}
|
196
196
|
|
197
|
-
|
198
|
-
|
199
|
-
// ⑤閉じるボタンをクリックで削除
|
200
|
-
|
201
197
|
|
202
198
|
|
203
199
|
</script>
|