teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

4

openning.js追記

2021/02/09 09:51

投稿

DrsriN
DrsriN

スコア11

title CHANGED
File without changes
body CHANGED
@@ -201,4 +201,27 @@
201
201
  </html>
202
202
  ```
203
203
 
204
- htmlの書き方に問題があったりしますでしょうか?
204
+ htmlの書き方に問題があったりしますでしょうか?
205
+
206
+ ### 追記2
207
+
208
+ ```openning.js
209
+ $(function () {
210
+ setTimeout(function () {
211
+ $('.open').fadeOut();
212
+ }, 1500);
213
+ });
214
+
215
+ $(function () {
216
+ $("#out").css({
217
+ opacity: '1'
218
+ });
219
+ setTimeout(function () {
220
+ $("#out").css("display", "block");
221
+ $("#out").stop().animate({
222
+ opacity: '1'
223
+ }, 1000);
224
+ }, 1800);
225
+ });
226
+ ```
227
+ こちら消すとボタンが表示されるようになりました。

3

jquery削除

2021/02/09 09:51

投稿

DrsriN
DrsriN

スコア11

title CHANGED
File without changes
body CHANGED
@@ -193,8 +193,7 @@
193
193
  <script src="javascript/pagetop.js"></script>
194
194
  <script src="javascript/openning.js"></script>
195
195
 
196
- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
197
- <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
196
+ <script type="text/javascript" >src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
198
197
  <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
199
198
 
200
199
  </body>

2

html全体を追加しました

2021/02/09 09:13

投稿

DrsriN
DrsriN

スコア11

title CHANGED
File without changes
body CHANGED
@@ -67,4 +67,139 @@
67
67
  また、cssやhtmlがそもそも間違っているのかと思い、jsを消してみました。その結果、ボタンはしっかりと表示されていました。
68
68
 
69
69
  その後、こちらのjsが反応しているか確認するため、pagetop.hide();のhideを削除してみたところボタンが表示されました。
70
- jsは問題なく動いているかと思います。
70
+ jsは問題なく動いているかと思います。
71
+
72
+ ### 追記(コード全体)
73
+ ```html
74
+ <!DOCTYPE html>
75
+ <html lang="ja">
76
+ <head>
77
+
78
+ <meta charset="UTF-8">
79
+ <title>Portfolio</title>
80
+ <link rel="stylesheet" href="css/style.css">
81
+ <link rel="stylesheet" href="css/normalize.css">
82
+
83
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"/>
84
+ <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
85
+
86
+ <link rel="preconnect" href="https://fonts.gstatic.com">
87
+ <link href="https://fonts.googleapis.com/css2?family=Permanent+Marker&display=swap" rel="stylesheet">
88
+
89
+ <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
90
+ <meta name="viewport" content="width=device-width,initial-scale=1.0,viewport-fit=cover">
91
+
92
+ <link rel="icon" type="image/x-icon" href="img/logo.png">
93
+ </head>
94
+
95
+ <body>
96
+
97
+ <!-- openning -->
98
+ <div class="open">
99
+ <img src="img/cloud.gif"/>
100
+ </div>
101
+
102
+ <!-- out -->
103
+ <div id="out">
104
+
105
+ <p class="pagetop" ontouchstart=""><a href="#mv">▲</a></p>
106
+
107
+ <!-- scroll area -->
108
+ <section class="area">
109
+
110
+ <!-- top -->
111
+ <div id="mv">
112
+
113
+ <!-- header -->
114
+ <header>
115
+ <div id="head-box">
116
+ <div id="head-color"></div>
117
+ <a href="index.html"><img src="img/logo.png" alt=""></a>
118
+ <p id="h-p"><ruby>和<rt>wa</rt></ruby>rtfolio</p>
119
+ </div>
120
+ </header>
121
+
122
+ <div class="sisi-box">
123
+ <img src="img/sisi.png" alt="唐獅子" id="sisi">
124
+ </div>
125
+
126
+ <div class="swirl-box">
127
+ <img src="img/ swirl.png" alt="" id="swirl1">
128
+ <img src="img/ swirlh.png" alt="" id="swirlh1">
129
+ <img src="img/ swirl.png" alt="" id="swirl2">
130
+ <img src="img/ swirlh.png" alt="" id="swirlh2">
131
+ <img src="img/ swirl.png" alt="" id="swirl3">
132
+ <img src="img/ swirl.png" alt="" id="swirl4">
133
+ <img src="img/ swirlh.png" alt="" id="swirlh4">
134
+ <img src="img/ swirl.png" alt="" id="swirl5">
135
+ <img src="img/ swirlh.png" alt="" id="swirlh5">
136
+ <img src="img/ swirl.png" alt="" id="swirl6">
137
+ </div>
138
+
139
+ <ul id="nav-box">
140
+ <a href="works.html#window" id="work"><li class="fadein nav1">WORK</li></a>
141
+ <a href="profile.html#window" id="profile"><li class="fadein nav2">PROFILE</li></a>
142
+ <a href="contact.html#window" id="contact"><li class="fadein nav3">CONTACT</li></a>
143
+ </ul>
144
+
145
+ <div id="lant-box">
146
+ <a href="index.html"><img src="img/lantern.png" alt="" id="lant"></a>
147
+ </div>
148
+
149
+ </div>
150
+
151
+ </section>
152
+
153
+ <!-- scroll area -->
154
+ <section class="area">
155
+
156
+ <!-- window -->
157
+ <div id="window">
158
+
159
+ <!-- middle -->
160
+ <div id="middle">
161
+ <div id="rm-box"></div>
162
+ </div>
163
+
164
+ <div class="content" id="content" ontouchstart="">
165
+ <div class="room-box">
166
+
167
+ <!-- magatama -->
168
+ <div id="mt-box" ontouchstart="">
169
+ <img src="img/magatama.png" usemap="#ImageMap" alt="" id="mt">
170
+ <map name="ImageMap">
171
+ <area id="maga1" shape="poly" coords="114,34,127,27,146,24,161,25,177,28,193,33,216,45,231,57,246,71,257,90,268,115,274,135,275,150,275,161,274,171,273,179,267,166,264,156,258,147,252,140,242,132,236,128,215,121,197,122,188,125,174,128,152,136,141,136,130,133,124,132,117,129,109,122,101,111,94,99,92,85,92,76,94,66,99,52,106,43,110,38,114,36,114,36" alt="緑" />
172
+ <area id="maga2" shape="poly" coords="63,245,68,249,73,253,83,259,95,265,110,270,122,273,138,276,152,277,161,277,173,275,184,273,202,267,214,260,225,253,232,245,243,237,249,230,257,217,261,210,266,196,268,185,265,168,262,159,257,152,252,146,240,137,230,132,216,129,203,128,195,130,186,132,176,138,171,142,167,148,162,154,159,161,156,170,154,181,152,189,149,199,147,206,144,214,141,221,133,230,128,234,120,239,112,243,99,247,92,247,81,247,74,246,69,246,64,244,83,247" alt="黄色" />
173
+ <area id="maga3" shape="poly" coords="106,34,98,35,91,38,85,41,79,45,75,48,69,53,63,57,61,59,57,62,52,71,47,76,45,78,36,92,34,101,32,104,28,116,25,125,24,136,22,149,23,160,24,167,25,177,27,184,28,189,32,201,37,211,40,216,44,224,48,227,54,232,61,236,67,238,78,241,90,242,102,241,109,238,114,235,119,232,123,229,126,226,132,221,136,215,141,207,144,198,144,192,146,187,144,176,145,203,146,184,143,170,139,164,137,159,130,149,123,142,119,140,111,132,108,129,105,125,96,117,92,109,89,99,87,86,89,70,90,63,92,58,93,54,96,49,98,44,101,41,104,36,104,36" alt="赤" />
174
+ </map>
175
+ </div>
176
+
177
+
178
+ <p class='navT'>勾玉をクリックしてください</p>
179
+ <!-- door -->
180
+ <div class="left"><a href="javascript:cL();"></a></div>
181
+ <div class="right"><a href="javascript:cR();"></a></div>
182
+ </div>
183
+
184
+ </div>
185
+
186
+ </div>
187
+
188
+ </section>
189
+
190
+ </div>
191
+
192
+ <script src="javascript/jquery.js"></script>
193
+ <script src="javascript/pagetop.js"></script>
194
+ <script src="javascript/openning.js"></script>
195
+
196
+ <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
197
+ <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
198
+ <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
199
+
200
+ </body>
201
+
202
+ </html>
203
+ ```
204
+
205
+ htmlの書き方に問題があったりしますでしょうか?

1

IE-9を削除いたしました

2021/02/09 08:54

投稿

DrsriN
DrsriN

スコア11

title CHANGED
File without changes
body CHANGED
@@ -23,7 +23,6 @@
23
23
  font-size: 20px;
24
24
  text-decoration: none;
25
25
  padding:3px 10px;
26
- filter:alpha(opacity=50);
27
26
  opacity: 0.8;
28
27
  transition: all 0.4s;
29
28
  }
@@ -36,7 +35,6 @@
36
35
  font-size: 20px;
37
36
  text-decoration: none;
38
37
  padding:3px 10px;
39
- filter:alpha(opacity=50);
40
38
  opacity: 0.8;
41
39
  }
42
40
  ```