質問編集履歴
3
ソースコード追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -182,4 +182,432 @@
|
|
182
182
|
|
183
183
|
|
184
184
|
|
185
|
+
ソースを表示を行うと下のようになります。
|
186
|
+
|
187
|
+
```html
|
188
|
+
|
189
|
+
<!DOCTYPE html>
|
190
|
+
|
191
|
+
<html>
|
192
|
+
|
193
|
+
<body>
|
194
|
+
|
195
|
+
<!DOCTYPE html>
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
<meta name="viewport" content="width=device-width,user-scalable=no,maximum-scale=1" />
|
200
|
+
|
201
|
+
<header>
|
202
|
+
|
203
|
+
<nav class="nav navbar navbar-default">
|
204
|
+
|
205
|
+
<div class="navbar-left">
|
206
|
+
|
207
|
+
<span class="sr-only">メニュー</span>
|
208
|
+
|
209
|
+
<a href="/"><img src="/assets/comilog-d9fa57ddd3291e7a3494cb41526bdc41c441a5483e90aab70ad202f556bcaf6b.png" alt="Comilog" /></a>
|
210
|
+
|
211
|
+
</div>
|
212
|
+
|
213
|
+
<div class="searchbox">
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
<form action="/comics/search" accept-charset="UTF-8" method="get"><input name="utf8" type="hidden" value="✓" />
|
218
|
+
|
219
|
+
<input type="text" name="search" id="search" placeholder="作品名・サークル名など" style="position:absolute;left:50%;width:230px;height:50px;border:solid black;border-radius:10px;" />
|
220
|
+
|
221
|
+
<div class="glass">
|
222
|
+
|
223
|
+
<input alt="Glass" type="image" src="/assets/glass-3115adcf693de65345921dc56cbbd01d2988b8a7408fed2e6a779dbfa886b90a.png" />
|
224
|
+
|
225
|
+
</div>
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
</form></div>
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
<div class="nav navbar-nav navbar-right">
|
236
|
+
|
237
|
+
<!-- さんログイン中 %> -->
|
238
|
+
|
239
|
+
<a rel="nofollow" data-method="delete" href="/users/sign_out">
|
240
|
+
|
241
|
+
<img style="background-color:#fd6458;" src="/assets/logout-aa0e2397a0cb1b694a197104c310f311e5d1a39fd0efe904610d32280bef732a.png" alt="Logout" />
|
242
|
+
|
243
|
+
</a> </div>
|
244
|
+
|
245
|
+
</div>
|
246
|
+
|
247
|
+
</nav>
|
248
|
+
|
249
|
+
</header>
|
250
|
+
|
251
|
+
<nav class="navbar navbar-default navbar-fixed-bottom " role="navigation">
|
252
|
+
|
253
|
+
<div class="row">
|
254
|
+
|
255
|
+
<div class="btn-group btn-group-justified">
|
256
|
+
|
257
|
+
<a href="/" class="btn" >ホーム</a>
|
258
|
+
|
259
|
+
<a href="/user/:id" class="btn">お気に入り</a>
|
260
|
+
|
261
|
+
<a href="/user/:id/comics/rank" class="btn">ランキング</a>
|
262
|
+
|
263
|
+
<a href="/user/:id/comics/search" class="btn">検索</a>
|
264
|
+
|
265
|
+
<a href="/user/:id/comics/new" class="btn">出品</a>
|
266
|
+
|
267
|
+
<a href="/user/:id/comics/manage" class="btn">マイページ</a>
|
268
|
+
|
269
|
+
</div>
|
270
|
+
|
271
|
+
</div>
|
272
|
+
|
273
|
+
</nav>
|
274
|
+
|
275
|
+
<form action="/comics/search" accept-charset="UTF-8" method="get"><input name="utf8" type="hidden" value="✓" />
|
276
|
+
|
277
|
+
</form>
|
278
|
+
|
279
|
+
<div class="topnew">ランキング</div>
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
<div class="toprankingbox">
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
<a href="/user/1/comics/52"><img src="https://comilog-object.s3.amazonaws.com/uploads/20180113154450.jpg" alt="20180113154450" /></a>
|
288
|
+
|
289
|
+
<div class="gold_crown_index" >
|
290
|
+
|
291
|
+
<img src="/assets/gold_crown-7247ae59ca76a5f59d1127d65103f0b20ecced6c96ea69c69470973831bee15b.png" alt="Gold crown" />
|
292
|
+
|
293
|
+
</div>
|
294
|
+
|
295
|
+
<div class ="first_intro">
|
296
|
+
|
297
|
+
<img src="/assets/likedstar-94c981f44151b4411d8814d655cea17122e6fdf6894ceccf9ce6765e48604e7b.png" alt="Likedstar" />
|
298
|
+
|
299
|
+
1
|
300
|
+
|
301
|
+
</div>
|
302
|
+
|
303
|
+
<div class ="character">
|
304
|
+
|
305
|
+
<img src="/assets/character-dfe3ed6c8b64585ad539c3a4bf2ddbcc0d12cf1a421f3317b26003616f9e2926.png" alt="Character" />
|
306
|
+
|
307
|
+
www
|
308
|
+
|
309
|
+
</div>
|
310
|
+
|
311
|
+
</div>
|
312
|
+
|
313
|
+
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
</div>
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
<div class="toprankingbox">
|
326
|
+
|
327
|
+
|
328
|
+
|
329
|
+
|
330
|
+
|
331
|
+
|
332
|
+
|
333
|
+
<a href="/user/1/comics/53"><img src="https://comilog-object.s3.amazonaws.com/uploads/20180113154513.jpg" alt="20180113154513" /></a>
|
334
|
+
|
335
|
+
<div class="silver_crown_index" >
|
336
|
+
|
337
|
+
<img src="/assets/silver_crown-30cb2d0b17e4fe098925460243d9d9e04ce1e6ac4b19ac15f6bacfda2c1974e2.png" alt="Silver crown" />
|
338
|
+
|
339
|
+
</div>
|
340
|
+
|
341
|
+
<div class ="first_intro">
|
342
|
+
|
343
|
+
<img src="/assets/likedstar-94c981f44151b4411d8814d655cea17122e6fdf6894ceccf9ce6765e48604e7b.png" alt="Likedstar" />
|
344
|
+
|
345
|
+
1
|
346
|
+
|
347
|
+
</div>
|
348
|
+
|
349
|
+
<div class ="character">
|
350
|
+
|
351
|
+
<img src="/assets/character-dfe3ed6c8b64585ad539c3a4bf2ddbcc0d12cf1a421f3317b26003616f9e2926.png" alt="Character" />
|
352
|
+
|
353
|
+
www
|
354
|
+
|
355
|
+
</div>
|
356
|
+
|
357
|
+
</div>
|
358
|
+
|
359
|
+
|
360
|
+
|
361
|
+
</div>
|
362
|
+
|
363
|
+
|
364
|
+
|
365
|
+
<div class="toprankingbox">
|
366
|
+
|
367
|
+
|
368
|
+
|
369
|
+
|
370
|
+
|
371
|
+
|
372
|
+
|
373
|
+
<a href="/user/1/comics/54"><img src="https://comilog-object.s3.amazonaws.com/uploads/20180116214151.jpg" alt="20180116214151" /></a>
|
374
|
+
|
375
|
+
<div class="copper_crown_index" >
|
376
|
+
|
377
|
+
<img src="/assets/copper_crown-2e980e0da7dc1a43a4d4797d1594dbf612aa59f027d41b5157c37d62f1c3b0c4.png" alt="Copper crown" />
|
378
|
+
|
379
|
+
</div>
|
380
|
+
|
381
|
+
<div class ="first_intro">
|
382
|
+
|
383
|
+
<img src="/assets/likedstar-94c981f44151b4411d8814d655cea17122e6fdf6894ceccf9ce6765e48604e7b.png" alt="Likedstar" />
|
384
|
+
|
385
|
+
1
|
386
|
+
|
387
|
+
</div>
|
388
|
+
|
389
|
+
<div class ="character">
|
390
|
+
|
391
|
+
<img src="/assets/character-dfe3ed6c8b64585ad539c3a4bf2ddbcc0d12cf1a421f3317b26003616f9e2926.png" alt="Character" />
|
392
|
+
|
393
|
+
qqqqqqqq
|
394
|
+
|
395
|
+
</div>
|
396
|
+
|
397
|
+
</div>
|
398
|
+
|
399
|
+
</div>
|
400
|
+
|
401
|
+
</div>
|
402
|
+
|
403
|
+
|
404
|
+
|
405
|
+
|
406
|
+
|
407
|
+
|
408
|
+
|
409
|
+
|
410
|
+
|
411
|
+
<div class="topnew">新着作品</div>
|
412
|
+
|
413
|
+
<table id="comic_index">
|
414
|
+
|
415
|
+
<tbody class="page">
|
416
|
+
|
417
|
+
<span style="display:inline-block;background-color:white;width:100%;">
|
418
|
+
|
419
|
+
|
420
|
+
|
421
|
+
<div class="topnewbox"><a href="/user/1/comics/56"><img src="https://comilog-object.s3.amazonaws.com/uploads/20180126230835.jpg" alt="20180126230835" /></a>
|
422
|
+
|
423
|
+
|
424
|
+
|
425
|
+
|
426
|
+
|
427
|
+
|
428
|
+
|
429
|
+
|
430
|
+
|
431
|
+
|
432
|
+
|
433
|
+
|
434
|
+
|
435
|
+
|
436
|
+
|
437
|
+
|
438
|
+
|
439
|
+
</div>
|
440
|
+
|
441
|
+
<div class="topnewbox"><a href="/user/1/comics/55"><img src="https://comilog-object.s3.amazonaws.com/uploads/20180126230633.jpg" alt="20180126230633" /></a>
|
442
|
+
|
443
|
+
|
444
|
+
|
445
|
+
|
446
|
+
|
447
|
+
|
448
|
+
|
449
|
+
|
450
|
+
|
451
|
+
|
452
|
+
|
453
|
+
|
454
|
+
|
455
|
+
|
456
|
+
|
457
|
+
|
458
|
+
|
459
|
+
</div>
|
460
|
+
|
461
|
+
<div class="topnewbox"><a href="/user/1/comics/54"><img src="https://comilog-object.s3.amazonaws.com/uploads/20180116214151.jpg" alt="20180116214151" /></a>
|
462
|
+
|
463
|
+
|
464
|
+
|
465
|
+
|
466
|
+
|
467
|
+
|
468
|
+
|
469
|
+
|
470
|
+
|
471
|
+
|
472
|
+
|
473
|
+
|
474
|
+
|
475
|
+
|
476
|
+
|
477
|
+
|
478
|
+
|
479
|
+
</div>
|
480
|
+
|
481
|
+
<div class="topnewbox"><a href="/user/1/comics/53"><img src="https://comilog-object.s3.amazonaws.com/uploads/20180113154513.jpg" alt="20180113154513" /></a>
|
482
|
+
|
483
|
+
|
484
|
+
|
485
|
+
|
486
|
+
|
487
|
+
|
488
|
+
|
489
|
+
|
490
|
+
|
491
|
+
|
492
|
+
|
493
|
+
|
494
|
+
|
495
|
+
|
496
|
+
|
497
|
+
|
498
|
+
|
499
|
+
</div>
|
500
|
+
|
501
|
+
<div class="topnewbox"><a href="/user/1/comics/52"><img src="https://comilog-object.s3.amazonaws.com/uploads/20180113154450.jpg" alt="20180113154450" /></a>
|
502
|
+
|
503
|
+
|
504
|
+
|
505
|
+
|
506
|
+
|
507
|
+
|
508
|
+
|
509
|
+
|
510
|
+
|
511
|
+
|
512
|
+
|
513
|
+
|
514
|
+
|
515
|
+
|
516
|
+
|
517
|
+
|
518
|
+
|
519
|
+
</div>
|
520
|
+
|
521
|
+
<div class="topnewbox"><a href="/user/1/comics/51"><img src="https://comilog-object.s3.amazonaws.com/uploads/20180113154432.jpg" alt="20180113154432" /></a>
|
522
|
+
|
523
|
+
|
524
|
+
|
525
|
+
|
526
|
+
|
527
|
+
|
528
|
+
|
529
|
+
|
530
|
+
|
531
|
+
|
532
|
+
|
533
|
+
|
534
|
+
|
535
|
+
|
536
|
+
|
537
|
+
|
538
|
+
|
539
|
+
</div>
|
540
|
+
|
541
|
+
|
542
|
+
|
543
|
+
|
544
|
+
|
545
|
+
|
546
|
+
|
547
|
+
</tbody>
|
548
|
+
|
549
|
+
|
550
|
+
|
551
|
+
</span>
|
552
|
+
|
553
|
+
|
554
|
+
|
555
|
+
</table>
|
556
|
+
|
557
|
+
<nav class="pagination">
|
558
|
+
|
559
|
+
|
560
|
+
|
561
|
+
|
562
|
+
|
563
|
+
<span class="page current">
|
564
|
+
|
565
|
+
1
|
566
|
+
|
567
|
+
</span>
|
568
|
+
|
569
|
+
|
570
|
+
|
571
|
+
<span class="page">
|
572
|
+
|
573
|
+
<a rel="next" href="/?page=2">2</a>
|
574
|
+
|
575
|
+
</span>
|
576
|
+
|
577
|
+
|
578
|
+
|
579
|
+
<span class="page">
|
580
|
+
|
581
|
+
<a href="/?page=3">3</a>
|
582
|
+
|
583
|
+
</span>
|
584
|
+
|
585
|
+
|
586
|
+
|
587
|
+
<span class="next">
|
588
|
+
|
589
|
+
<a rel="next" href="/?page=2">次</a>
|
590
|
+
|
591
|
+
</span>
|
592
|
+
|
593
|
+
|
594
|
+
|
595
|
+
<span class="last">
|
596
|
+
|
597
|
+
<a href="/?page=3">最後</a>
|
598
|
+
|
599
|
+
</span>
|
600
|
+
|
601
|
+
|
602
|
+
|
603
|
+
</nav>
|
604
|
+
|
605
|
+
</body>
|
606
|
+
|
607
|
+
</html>
|
608
|
+
|
609
|
+
```
|
610
|
+
|
611
|
+
|
612
|
+
|
185
613
|
何卒宜しくお願い申し上げます。
|
2
コード説明追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -15,6 +15,10 @@
|
|
15
15
|
|
16
16
|
|
17
17
|
すみません。コードを失念しておりましたので、追記いたします。
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
画像右の箱一個ぶんのコードです。
|
18
22
|
|
19
23
|
|
20
24
|
|
1
コード追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,4 +14,168 @@
|
|
14
14
|
|
15
15
|
|
16
16
|
|
17
|
+
すみません。コードを失念しておりましたので、追記いたします。
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
```html
|
24
|
+
|
25
|
+
<div class="toprankingbox">
|
26
|
+
|
27
|
+
<% if !@comic_ranking.first.nil? %>
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
<%= link_to (image_tag @comic_ranking.first.front_cover.to_s),user_comic_path(id: @comic_ranking.first.id, user_id: current_user.id)%>
|
32
|
+
|
33
|
+
<div class="gold_crown_index" >
|
34
|
+
|
35
|
+
<%= image_tag "gold_crown.png"%>
|
36
|
+
|
37
|
+
</div>
|
38
|
+
|
39
|
+
<div class ="first_intro">
|
40
|
+
|
41
|
+
<%= image_tag "likedstar.png"%>
|
42
|
+
|
43
|
+
<%= @comic_ranking.first.likes.count%>
|
44
|
+
|
45
|
+
</div>
|
46
|
+
|
47
|
+
<div class ="character">
|
48
|
+
|
49
|
+
<%= image_tag "character.png" %>
|
50
|
+
|
51
|
+
<%= @comic_ranking.first.author%>
|
52
|
+
|
53
|
+
</div>
|
54
|
+
|
55
|
+
<% end %>
|
56
|
+
|
57
|
+
</div>
|
58
|
+
|
59
|
+
```
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
```css
|
64
|
+
|
65
|
+
.toprankingbox{
|
66
|
+
|
67
|
+
position:relative;
|
68
|
+
|
69
|
+
text-align: center;
|
70
|
+
|
71
|
+
width:32%;
|
72
|
+
|
73
|
+
display: inline-block;
|
74
|
+
|
75
|
+
margin: 5px;
|
76
|
+
|
77
|
+
height:50%;
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
.gold_crown_index {
|
82
|
+
|
83
|
+
display:inline;
|
84
|
+
|
85
|
+
position:relative;
|
86
|
+
|
87
|
+
/*top:30%;*/
|
88
|
+
|
89
|
+
}
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
.gold_crown_index img{
|
94
|
+
|
95
|
+
display:inline;
|
96
|
+
|
97
|
+
bottom:84%;
|
98
|
+
|
99
|
+
left:-15%;
|
100
|
+
|
101
|
+
position:relative ;
|
102
|
+
|
103
|
+
width:20%;
|
104
|
+
|
105
|
+
}
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
.first_intro {
|
110
|
+
|
111
|
+
display:inline;
|
112
|
+
|
113
|
+
position:relative;
|
114
|
+
|
115
|
+
top:2%;
|
116
|
+
|
117
|
+
left:-20%;
|
118
|
+
|
119
|
+
width:40%;
|
120
|
+
|
121
|
+
height:10%;
|
122
|
+
|
123
|
+
font-size:110%;
|
124
|
+
|
125
|
+
}
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
.first_intro img {
|
130
|
+
|
131
|
+
position:relative;
|
132
|
+
|
133
|
+
display:inline;
|
134
|
+
|
135
|
+
height:6%;
|
136
|
+
|
137
|
+
width:9%;
|
138
|
+
|
139
|
+
left:-5%;
|
140
|
+
|
141
|
+
bottom:1%;
|
142
|
+
|
143
|
+
}
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
.character {
|
148
|
+
|
149
|
+
display:inline;
|
150
|
+
|
151
|
+
position:relative;
|
152
|
+
|
153
|
+
left:1%;
|
154
|
+
|
155
|
+
top:1%;
|
156
|
+
|
157
|
+
}
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
.character img {
|
162
|
+
|
163
|
+
display:inline;
|
164
|
+
|
165
|
+
position:relative;
|
166
|
+
|
167
|
+
top:10%;
|
168
|
+
|
169
|
+
width:10%;
|
170
|
+
|
171
|
+
left:-3%;
|
172
|
+
|
173
|
+
margin-top:-29%;
|
174
|
+
|
175
|
+
}
|
176
|
+
|
177
|
+
```
|
178
|
+
|
179
|
+
|
180
|
+
|
17
181
|
何卒宜しくお願い申し上げます。
|