質問編集履歴

4

trimmingImg関数の呼び出し先を追加

2018/12/13 03:52

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -44,7 +44,7 @@
44
44
 
45
45
  ===ここから===
46
46
 
47
- ```ここに言語を入力
47
+ ```JavaScript
48
48
 
49
49
  function trimmingImage(ls_obj) {
50
50
 
@@ -170,6 +170,10 @@
170
170
 
171
171
  ```
172
172
 
173
+
174
+
175
+
176
+
173
177
  ===ここまで===
174
178
 
175
179
 
@@ -178,7 +182,7 @@
178
182
 
179
183
  ==ここから==
180
184
 
181
- ```ここに言語を入力
185
+ ```HTML
182
186
 
183
187
  <div class="modal fade" id="basicExampleModal20" tabindex="-20" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
184
188
 
@@ -234,6 +238,46 @@
234
238
 
235
239
  ```
236
240
 
241
+ trimmingImg関数呼び出し箇所
242
+
243
+ ===ここから===
244
+
245
+ ```HTML
246
+
247
+ <div class="carousel-inner">
248
+
249
+ {section name=i start=0 loop=$user_data["user_images"]|@count}
250
+
251
+ {if $smarty.section.i.index == 0}
252
+
253
+ <div class="carousel-item active">
254
+
255
+ <input type="image" name="image_data_{$smarty.section.i.index}" src=".{$user_data["user_images"][$smarty.section.i.index]}{$time}" alt="画像アップロード" class="w-100" data-slide-to="{$smarty.section.i.index}" onclick="trimmingImage(this);">
256
+
257
+ {*<input type="image" name="image_data_{$smarty.section.i.index}" src="{$user_data["user_images"][$smarty.section.i.index]}{$time}" alt="画像アップロード" data-slide-to="{$smarty.section.i.index}" onclick="trimmingImage(this);">*}
258
+
259
+ <input accept="image/*" type="file" class="profileImgFile hide" data-slide-to="{$smarty.section.i.index}" class="w-100" value="">
260
+
261
+ </div>
262
+
263
+ {else}
264
+
265
+ <div class="carousel-item">
266
+
267
+ <input type="image" name="image_data_{$smarty.section.i.index}" src=".{$user_data["user_images"][$smarty.section.i.index]}{$time}" alt="画像アップロード" class="w-100" data-slide-to="{$smarty.section.i.index}" onclick="trimmingImage(this);">
268
+
269
+ <input accept="image/*" type="file" class="profileImgFile hide" data-slide-to="{$smarty.section.i.index}" value="">
270
+
271
+ </div>
272
+
273
+ {/if}
274
+
275
+ {/section}
276
+
277
+ </div>
278
+
279
+ ```
280
+
237
281
  ==ここまで==
238
282
 
239
283
  ```ここに言語名を入力

3

初心者マークの追加

2018/12/13 03:52

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
File without changes

2

上げ忘れ

2018/12/13 01:54

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -174,12 +174,12 @@
174
174
 
175
175
 
176
176
 
177
+ HTML側
178
+
179
+ ==ここから==
180
+
177
181
  ```ここに言語を入力
178
182
 
179
- HTML側
180
-
181
- ==ここから==
182
-
183
183
  <div class="modal fade" id="basicExampleModal20" tabindex="-20" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
184
184
 
185
185
  <div class="modal-dialog" role="document">
@@ -232,10 +232,10 @@
232
232
 
233
233
  </div>
234
234
 
235
+ ```
236
+
235
237
  ==ここまで==
236
238
 
237
- ```
238
-
239
239
  ```ここに言語名を入力
240
240
 
241
241
  HTML、JavaScript(JQuery)

1

code化し忘れておりました。

2018/12/13 01:27

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -44,6 +44,8 @@
44
44
 
45
45
  ===ここから===
46
46
 
47
+ ```ここに言語を入力
48
+
47
49
  function trimmingImage(ls_obj) {
48
50
 
49
51
  var ls_obj = $(ls_obj);
@@ -166,10 +168,14 @@
166
168
 
167
169
  }
168
170
 
171
+ ```
172
+
169
173
  ===ここまで===
170
174
 
171
175
 
172
176
 
177
+ ```ここに言語を入力
178
+
173
179
  HTML側
174
180
 
175
181
  ==ここから==
@@ -228,6 +234,8 @@
228
234
 
229
235
  ==ここまで==
230
236
 
237
+ ```
238
+
231
239
  ```ここに言語名を入力
232
240
 
233
241
  HTML、JavaScript(JQuery)