質問編集履歴
1
文面変更
title
CHANGED
File without changes
|
body
CHANGED
@@ -38,7 +38,6 @@
|
|
38
38
|
//読み込み
|
39
39
|
var reader = new FileReader();
|
40
40
|
reader.readAsDataURL(fileList[0]);
|
41
|
-
// ファイル複数個取得
|
42
41
|
|
43
42
|
//読み込み後
|
44
43
|
reader.onload = function () {
|
@@ -61,59 +60,8 @@
|
|
61
60
|
ーーーーーーーーー
|
62
61
|
html-------
|
63
62
|
<%= javascript_include_tag "corde.js" %>
|
64
|
-
<!-- コーデ登録 -->
|
65
|
-
<div class="corde_container">
|
66
|
-
<div class="row">
|
67
|
-
<div class="col-lg-4">
|
68
|
-
</div>
|
69
|
-
<div class="col-lg-8">
|
70
|
-
<div class="corde_visual">
|
71
|
-
<div class="corde_visual_image"></div>
|
72
|
-
<%#= image_tag 'image_item.jpg' ,class: "corde_visual_image" %>
|
73
|
-
</div>
|
74
63
|
|
75
|
-
<h1>コーデ登録</h1>
|
76
64
|
|
77
|
-
<div class="image_box">
|
78
|
-
<img src="" id="preview" class="corde_image ui-draggable ui-draggable-handle" style="position: relative;">
|
79
|
-
</div>
|
80
|
-
|
81
|
-
<%= form_for(@corde_new, url: new_corde_path) do |f| %>
|
82
|
-
|
83
|
-
<input type="image" name="corde[image]" id="preview" />
|
84
|
-
<input type="file" name="attachment" id="getphoto" />
|
85
|
-
|
86
|
-
<label for="name">▷コーデ名</label>
|
87
|
-
<input type="text" name="corde[corde_name]" id="corde_corde_name" />
|
88
|
-
|
89
|
-
<label for="name">▷シーズン</label>
|
90
|
-
<input type="radio" name="corde[season]" value="春" id="corde_season" />春
|
91
|
-
<input type="radio" name="corde[season]" value="夏" id="corde_season" />夏
|
92
|
-
<input type="radio" name="corde[season]" value="秋" id="corde_season" />秋
|
93
|
-
<input type="radio" name="corde[season]" value="冬" id="corde_season" />冬
|
94
|
-
<%= f.submit'保存' %>
|
95
|
-
<% end %>
|
96
|
-
</div>
|
97
|
-
</div>
|
98
|
-
</div>
|
99
|
-
ーーーーーーーーーー
|
100
|
-
css-------
|
101
|
-
.corde_visual {
|
102
|
-
width: 800px;
|
103
|
-
height: 300px
|
104
|
-
background-color: green;
|
105
|
-
}
|
106
|
-
|
107
|
-
.corde_visual_image {
|
108
|
-
background-image: url("/assets/image_item.jpg");
|
109
|
-
width: 100%;
|
110
|
-
height: 100%;
|
111
|
-
display: block;
|
112
|
-
}
|
113
|
-
|
114
|
-
ーーーーーーーーーーーー
|
115
|
-
|
116
|
-
|
117
65
|
```
|
118
66
|
|
119
67
|
### 試したこと
|