回答編集履歴
1
調整
test
CHANGED
@@ -31,3 +31,223 @@
|
|
31
31
|
↓↓↓
|
32
32
|
|
33
33
|
.hide()
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
# 調整
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
内容をみてみましたがminimumはlauncherWrapの中にあるのですから
|
42
|
+
|
43
|
+
minimumのクリックでlauncharWrapを非表示にしてしまうと
|
44
|
+
|
45
|
+
再表示する手段がないのでは?
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
```html
|
50
|
+
|
51
|
+
<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css" />
|
52
|
+
|
53
|
+
<style>
|
54
|
+
|
55
|
+
.Button{
|
56
|
+
|
57
|
+
width:100px;
|
58
|
+
|
59
|
+
height:20px;
|
60
|
+
|
61
|
+
border: 3px solid white;
|
62
|
+
|
63
|
+
background-color: #0080FF;
|
64
|
+
|
65
|
+
border-radius:10px;
|
66
|
+
|
67
|
+
font-size:15px ;
|
68
|
+
|
69
|
+
font-weight:bold;
|
70
|
+
|
71
|
+
padding:10px;
|
72
|
+
|
73
|
+
color:white;
|
74
|
+
|
75
|
+
text-align: right;
|
76
|
+
|
77
|
+
line-height: 20px;
|
78
|
+
|
79
|
+
}
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
.launcherWrap {
|
84
|
+
|
85
|
+
width:320px;
|
86
|
+
|
87
|
+
height: 50px;
|
88
|
+
|
89
|
+
border: 1px solid #0080FF;
|
90
|
+
|
91
|
+
background-color: white;
|
92
|
+
|
93
|
+
border-radius:10px;
|
94
|
+
|
95
|
+
justify-content: space-evenly;
|
96
|
+
|
97
|
+
display: -webkit-flex;
|
98
|
+
|
99
|
+
line-height: 50px;
|
100
|
+
|
101
|
+
}
|
102
|
+
|
103
|
+
#matomari{
|
104
|
+
|
105
|
+
width:105px;
|
106
|
+
|
107
|
+
height: 40px;
|
108
|
+
|
109
|
+
margin:5px;
|
110
|
+
|
111
|
+
text-align: center;
|
112
|
+
|
113
|
+
margin-bottom:auto;
|
114
|
+
|
115
|
+
box-sizing: border-box;
|
116
|
+
|
117
|
+
justify-content: space-evenly;
|
118
|
+
|
119
|
+
}
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
#kakikomi{
|
124
|
+
|
125
|
+
width:105px;
|
126
|
+
|
127
|
+
height: 40px;
|
128
|
+
|
129
|
+
margin:5px;
|
130
|
+
|
131
|
+
margin-bottom:auto;
|
132
|
+
|
133
|
+
box-sizing: border-box;
|
134
|
+
|
135
|
+
text-align: center;
|
136
|
+
|
137
|
+
justify-content: space-evenly;
|
138
|
+
|
139
|
+
}
|
140
|
+
|
141
|
+
a > span{
|
142
|
+
|
143
|
+
width:130px;
|
144
|
+
|
145
|
+
height: 40px;
|
146
|
+
|
147
|
+
font-size: 20px ;
|
148
|
+
|
149
|
+
font-weight:bold;
|
150
|
+
|
151
|
+
padding:5px;
|
152
|
+
|
153
|
+
text-align:center;
|
154
|
+
|
155
|
+
margin:3px 4px ;
|
156
|
+
|
157
|
+
border: 1px solid #0080FF;
|
158
|
+
|
159
|
+
border-radius:10px;
|
160
|
+
|
161
|
+
}
|
162
|
+
|
163
|
+
#minimum{
|
164
|
+
|
165
|
+
width:60px;
|
166
|
+
|
167
|
+
height: 40px;
|
168
|
+
|
169
|
+
margin:5px;
|
170
|
+
|
171
|
+
margin-bottom:auto;
|
172
|
+
|
173
|
+
box-sizing: border-box;
|
174
|
+
|
175
|
+
justify-content: space-evenly;
|
176
|
+
|
177
|
+
}
|
178
|
+
|
179
|
+
.borderDiv {
|
180
|
+
|
181
|
+
background: #97938a;
|
182
|
+
|
183
|
+
display: block;
|
184
|
+
|
185
|
+
width: 2px;
|
186
|
+
|
187
|
+
height: 30%;
|
188
|
+
|
189
|
+
top: 0;
|
190
|
+
|
191
|
+
bottom: 0;
|
192
|
+
|
193
|
+
margin-bottom: auto;
|
194
|
+
|
195
|
+
margin-top: auto;
|
196
|
+
|
197
|
+
}
|
198
|
+
|
199
|
+
img{
|
200
|
+
|
201
|
+
width:35px;
|
202
|
+
|
203
|
+
height:35px;
|
204
|
+
|
205
|
+
}
|
206
|
+
|
207
|
+
</style>
|
208
|
+
|
209
|
+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
|
210
|
+
|
211
|
+
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
|
212
|
+
|
213
|
+
<script>
|
214
|
+
|
215
|
+
$(function(){
|
216
|
+
|
217
|
+
var mini = $("#minimum");
|
218
|
+
|
219
|
+
var launcher = $(".launcherWrap");
|
220
|
+
|
221
|
+
$(mini).click(function(){
|
222
|
+
|
223
|
+
alert("aaa3");
|
224
|
+
|
225
|
+
launcher.toggle();
|
226
|
+
|
227
|
+
});
|
228
|
+
|
229
|
+
$(".Button,.launcherWrap" ).draggable();
|
230
|
+
|
231
|
+
});
|
232
|
+
|
233
|
+
</script>
|
234
|
+
|
235
|
+
<div class="launcherGroup">
|
236
|
+
|
237
|
+
<header>Launcher Test</header>
|
238
|
+
|
239
|
+
<div class="launcherWrap">
|
240
|
+
|
241
|
+
<div class= "toolbox" id="matomari"><img src="images/matomari.png" /></div>
|
242
|
+
|
243
|
+
<div class="borderDiv"></div>
|
244
|
+
|
245
|
+
<div class= "toolbox-minimum" id="minimum"><img src="images/minimum.png" /></div>
|
246
|
+
|
247
|
+
</div>
|
248
|
+
|
249
|
+
<div class="Button"><span>表示設定</span></div>
|
250
|
+
|
251
|
+
</div>
|
252
|
+
|
253
|
+
```
|