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

質問編集履歴

2

記載ミス

2016/07/26 10:56

投稿

sunagimochan
sunagimochan

スコア12

title CHANGED
File without changes
body CHANGED
@@ -7,9 +7,9 @@
7
7
 
8
8
  ###該当のソースコード
9
9
  ```html
10
- <div class="frame_pop" id="peep_base">
10
+ <div class="frame_pop" id="pop_base">
11
11
  <p class="btn_close">閉じる</p>
12
- <div class="inner_pop" id="peep_popup">
12
+ <div class="inner_pop" id="pop_popup">
13
13
  <a href="https://www.google.co.jp/" id="pop_link" class="pop_link"><img src="spacer.gif"></a>
14
14
  </div>
15
15
  </div>
@@ -62,8 +62,8 @@
62
62
  $(function () {
63
63
  'use strict';
64
64
  var btn = '#pop_link';
65
- var baseID = '#peep_base';
65
+ var baseID = '#pop_base';
66
- var popID = '#peep_popup';
66
+ var popID = '#pop_popup';
67
67
  var aTxt = 'active';
68
68
 
69
69
  $(popID).click(function (e) {

1

記載ミス

2016/07/26 10:56

投稿

sunagimochan
sunagimochan

スコア12

title CHANGED
File without changes
body CHANGED
@@ -76,7 +76,7 @@
76
76
 
77
77
  $(baseID + ' .btn_close').click(function () {
78
78
  console.log();
79
- $(baseID).removeClass('active');
79
+ $(baseID).removeClass(aTxt);
80
80
  });
81
81
  e.preventDefault();
82
82
  });