質問編集履歴

2

書式設定

2019/09/05 01:46

投稿

toritor
toritor

スコア13

test CHANGED
File without changes
test CHANGED
@@ -14,7 +14,7 @@
14
14
 
15
15
 
16
16
 
17
- ### 該当のソースコード![![://www](bbabdecb7d9f8b68903ab4fd0796a21f.png)](1769084ef6b8cb8c93a744652f624526.png)
17
+ ### 該当のソースコード
18
18
 
19
19
 
20
20
 

1

書式の改善

2019/09/05 01:46

投稿

toritor
toritor

スコア13

test CHANGED
@@ -1 +1 @@
1
- トーストからリンクして別タブで表示たいです。
1
+ トーストからリンクしてページを見せたいのですが、その際別タブで表示させたいです。
test CHANGED
@@ -1,10 +1,6 @@
1
- トーストからリンクして別タブでページを見せたいです。
1
+ トーストからリンクしてページを見せたいですが、その際別タブで表示させたいです
2
-
3
-
4
-
2
+
5
- ■■な機能を実装中に以下のエラーメッセージが発生しした
3
+ ※トースト表示はできているで、エラーメッセージはありせん![イメージ説明](3854e84b831babfdc71f8061f2825c98.png)
6
-
7
-
8
4
 
9
5
  ### 発生している問題・エラーメッセージ
10
6
 
@@ -18,7 +14,53 @@
18
14
 
19
15
 
20
16
 
17
+ ### 該当のソースコード![![://www](bbabdecb7d9f8b68903ab4fd0796a21f.png)](1769084ef6b8cb8c93a744652f624526.png)
18
+
19
+
20
+
21
+ <?xml version="1.0" encoding="utf-8"?>
22
+
23
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
24
+
25
+ <html dir="ltr" xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja">
26
+
27
+ <!--入口-->
28
+
21
- ### 該当のソースコード
29
+ <head>
30
+
31
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,requiresActiveX=true" />
32
+
33
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
34
+
35
+ <meta http-equiv="Content-Style-Type" content="text/css" />
36
+
37
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
38
+
39
+ <meta http-equiv="Pragma" content="no-cache" />
40
+
41
+ <meta http-equiv="Cache-control" content="no-store" />
42
+
43
+ <meta http-equiv="Cache-control" content="no-cache" />
44
+
45
+ <meta http-equiv="Expires" content="Thu, 01 Dec 1994 16:00:00 GMT" />
46
+
47
+ <meta name="Description" content="" />
48
+
49
+ <meta name="Keywords" content="" />
50
+
51
+ <meta http-equiv="Expires" content="0">
52
+
53
+ <!-- jQuery.jsの読み込み -->
54
+
55
+ <script type="text/javascript" src="/gci/js/jquery-1.5.2.min.js?date=2016052601"></script>
56
+
57
+ <script type="text/javascript" src="/gci/js/jquery.sticky.js?date=2016052601"></script>
58
+
59
+
60
+
61
+
62
+
63
+ <!--トーストパターン1-->
22
64
 
23
65
  <link href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/css/toastr.min.css" rel="stylesheet"/>
24
66
 
@@ -40,32 +82,190 @@
40
82
 
41
83
  }
42
84
 
43
- Command: toastr["info"]("開催日程は<a href=\"https://XXXXXXXXXXXX/\">こちら!</a>", "セミナー情報");
85
+ Command: toastr["info"]("開催は<a href=\"https://www.yahoo.co.jp//\">こちら!</a>", "お得情報");
44
86
 
45
87
  });
46
88
 
47
89
  </script>
48
90
 
91
+
92
+
93
+ <!--トーストパターン1-->
94
+
95
+
96
+
97
+
98
+
99
+ <!-- Original script -->
100
+
101
+ <script type="text/javascript" src="/gci/js/script_less.js?date=2016052601"></script>
102
+
103
+ <script type="text/javascript">
104
+
105
+ $(function(){
106
+
107
+ $("#notice").load("/gci/inc/notice.html"); <!-- お知らせ -->
108
+
109
+ $("#cando").load("/gci/inc/cando.html"); <!-- できること -->
110
+
111
+ $("#application").load("/gci/inc/application.html"); <!-- 利用までの流れ -->
112
+
113
+ $("#manual").load("/gci/inc/manual.html"); <!-- マニュアル -->
114
+
115
+ $("#seminar").load("/gci/inc/seminar.html"); <!-- セミナー -->
116
+
117
+ $("#inquiry").load("/gci/inc/inquiry.html"); <!-- お問い合わせ -->
118
+
119
+ $("#faq").load("http://www.nwinfo.nttdata.co.jp/faq/gci/gci_index.asp");<!-- FAQ -->
120
+
121
+ $("#footer").load("/gci/inc/footer.html"); <!-- フッター -->
122
+
123
+ })
124
+
125
+ </script>
126
+
127
+ <title>グローバルコミュニケーション基盤ポータル</title>
128
+
129
+
130
+
131
+ <!-- 全般,一般 -->
132
+
133
+ <link href="/gci/img/favicon.ico" rel="shortcut icon">
134
+
135
+ <link rel="stylesheet" href="/gci/css/general.css?date=2016052601" type="text/css" />
136
+
137
+ <!-- index.html -->
138
+
139
+ <link rel="stylesheet" href="/gci/css/index.css?date=2016052601" type="text/css" />
140
+
141
+ <!-- 900px以下の設定 -->
142
+
143
+ <link rel="stylesheet" href="/gci/css/overwriteless900.css?date=2016052601" />
144
+
145
+ </head>
146
+
147
+ <body>
148
+
149
+ <div id="top">
150
+
151
+ <div id="title1">グローバルコミュニケーション<span class="br">基盤</span></div>
152
+
153
+ <div id="title2">Global Communication Infrastructure Services</div>
154
+
155
+ <div id="notice_area2"> グローバルコミュニケーション基盤は、「Teams」と「OneDrive」を利用したサービスです。<br />
156
+
157
+ 「チーム間」、「個人間」のスレッドベースコミュニケーションや「ファイル共有」など、様々なリアルタイム・コミュニケーションを可能にし、柔軟なコミュニケーションをサポートします。 <br />
158
+
159
+ </div>
160
+
161
+
162
+
163
+ <!--ページメニュー-->
164
+
165
+ <div id="sticky-menubar">
166
+
167
+ <div class="navToggle"> <span></span><span></span><span></span> </div>
168
+
169
+ <div id="globalMenuSp">
170
+
171
+ <ul id="manu" class="menu">
172
+
173
+ <li><a href="#notice" target="_top" class="menu_notice">お知らせ</a></li>
174
+
175
+ <li><a href="#cando" target="_top" class="menu_cando">できること</a></li>
176
+
177
+ <li><a href="#application" target="_top" class="menu_application">利用までの流れ</a></li>
178
+
179
+ <li><a href="#manual" target="_top" class="menu_manual">ドキュメント</a></li>
180
+
181
+ <li><a href="#seminar" target="_top" class="menu_seminar">セミナー</a></li>
182
+
183
+ <li><a href="#inquiry" target="_top" class="menu_inquiry">お問い合わせ</a></li>
184
+
185
+ <li><a href="#xxxxxx" target="_top" class="menu_sche">FAQ<span style="font-size:70%;">(OIヘルプ)</span></a></li>
186
+
187
+ </ul>
188
+
189
+ </div>
190
+
191
+ </div>
192
+
193
+ <!-- ページメニュー end -->
194
+
195
+ </div>
196
+
197
+
198
+
199
+ </body>
200
+
201
+ </html>
202
+
203
+
204
+
49
205
  ```ここに言語名を入力
50
206
 
51
207
  ソースコード
52
208
 
53
209
  ```
54
210
 
211
+ <link href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/css/toastr.min.css" rel="stylesheet"/>
212
+
213
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/js/toastr.min.js"></script>
214
+
215
+ <script type="text/javascript">
216
+
217
+ $(document).ready(function() {
218
+
219
+ toastr.options.timeOut = 5000; // タイムアウト時間 5秒
220
+
221
+ toastr.options = {
222
+
223
+ "closeButton": true,//閉じるボタンの有効
224
+
225
+ "positionClass": "toast-top-right",//トーストの表示位置
226
+
227
+ "extendedTimeOut": "1000",//トースト上からマウスを離した際にタイムアウト時間 
228
+
229
+ }
230
+
55
- Command: toastr["info"]("開催日程は<a href=\"https://XXXXXXXXXXXX/\" target="_blank">こちら!</a>", "セミナー情報");
231
+ Command: toastr["info"]("開催は<a href=\"https://www.yahoo.co.jp//\">こちら!</a>", "お得情報");
232
+
233
+ });
234
+
235
+ </script>
236
+
237
+
56
238
 
57
239
  ### 試したこと
58
240
 
59
241
 
60
242
 
243
+ <link href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/css/toastr.min.css" rel="stylesheet"/>
244
+
61
- ここに問題に対して試したことを記載してください。
245
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/js/toastr.min.js"></script>
62
-
246
+
63
- target="_blank"を追記するとトースト表示されません。
247
+ <script type="text/javascript">
248
+
64
-
249
+ $(document).ready(function() {
250
+
251
+ toastr.options.timeOut = 5000; // タイムアウト時間 5秒
252
+
65
- お手上げで困ってます。
253
+ toastr.options = {
254
+
255
+ "closeButton": true,//閉じるボタンの有効
256
+
257
+ "positionClass": "toast-top-right",//トーストの表示位置
258
+
259
+ "extendedTimeOut": "1000",//トースト上からマウスを離した際にタイムアウト時間 
260
+
261
+ }
262
+
263
+ Command: toastr["info"]("開催は<a href=\"https://www.yahoo.co.jp//\"target="_blank">こちら!</a>", "お得情報");
264
+
265
+ });
266
+
267
+ </script>
268
+
269
+
66
270
 
67
271
  ### 補足情報(FW/ツールのバージョンなど)
68
-
69
-
70
-
71
- ここにより詳細な情報を記載してください。