質問編集履歴

12

修正

2016/06/29 07:33

投稿

leoairen
leoairen

スコア122

test CHANGED
File without changes
test CHANGED
@@ -52,7 +52,7 @@
52
52
 
53
53
 
54
54
 
55
- ``` var holiday = '';
55
+ ``` varholiday = '';
56
56
 
57
57
  if(ymd == holiday){
58
58
 

11

修正

2016/06/29 07:33

投稿

leoairen
leoairen

スコア122

test CHANGED
File without changes
test CHANGED
@@ -52,17 +52,7 @@
52
52
 
53
53
 
54
54
 
55
- ``` var holiday = '';
55
+ ``` var holiday = '';
56
-
57
- if(ymd == holiday){
58
-
59
- html +=' <td data-flag="on" class="'+class_td+'" id="'+id+'">'+day+'</td>';
60
-
61
- }else{
62
-
63
- html +=' <td data-flag="off" class="'+class_td+'" id="'+id+'">'+day+'</td>';
64
-
65
- }
66
56
 
67
57
  if(ymd == holiday){
68
58
 

10

修正

2016/06/29 07:32

投稿

leoairen
leoairen

スコア122

test CHANGED
File without changes
test CHANGED
@@ -52,7 +52,17 @@
52
52
 
53
53
 
54
54
 
55
- ``` var id = settings.prefix+''+ymd;
55
+ ``` var holiday = '';
56
+
57
+ if(ymd == holiday){
58
+
59
+ html +=' <td data-flag="on" class="'+class_td+'" id="'+id+'">'+day+'</td>';
60
+
61
+ }else{
62
+
63
+ html +=' <td data-flag="off" class="'+class_td+'" id="'+id+'">'+day+'</td>';
64
+
65
+ }
56
66
 
57
67
  if(ymd == holiday){
58
68
 

9

補足

2016/06/29 07:31

投稿

leoairen
leoairen

スコア122

test CHANGED
File without changes
test CHANGED
@@ -45,3 +45,33 @@
45
45
  }
46
46
 
47
47
  ```
48
+
49
+
50
+
51
+ 上記の追加コードを下記に修正しました。
52
+
53
+
54
+
55
+ ``` var id = settings.prefix+''+ymd;
56
+
57
+ if(ymd == holiday){
58
+
59
+ html +=' <td data-flag="on" class="'+class_td+'" id="'+id+'">'+day+'</td>';
60
+
61
+ }else{
62
+
63
+ html +=' <td data-flag="off" class="'+class_td+'" id="'+id+'">'+day+'</td>';
64
+
65
+ }
66
+
67
+ ```
68
+
69
+
70
+
71
+ $holidayという変数で下記のような配列を取得しております。
72
+
73
+ ```
74
+
75
+ array(6) { [0]=> string(10) "2016-09-12" [1]=> string(10) "2016-09-14" [2]=> string(10) "2016-09-20" [3]=> string(10) "2016-09-26" [4]=> string(10) "2016-09-28" }
76
+
77
+ ```

8

修正

2016/06/29 07:23

投稿

leoairen
leoairen

スコア122

test CHANGED
File without changes
test CHANGED
@@ -2,13 +2,9 @@
2
2
 
3
3
 
4
4
 
5
- 配布サイト
5
+ [配布サイト](http://studio-key.com/1248.html)
6
6
 
7
- [リンク内容](http://studio-key.com/1248.html)
8
-
9
- JSファイル
10
-
11
- [リンク内容](http://studio-key.com/Sample/MyPlugin/CheckCalendar/check.calendar.js)
7
+ [JSファイル](http://studio-key.com/Sample/MyPlugin/CheckCalendar/check.calendar.js)
12
8
 
13
9
 
14
10
 

7

補足

2016/06/29 05:11

投稿

leoairen
leoairen

スコア122

test CHANGED
File without changes
test CHANGED
@@ -1,18 +1,14 @@
1
- 初心者です。
2
-
3
1
  下記のURLよりカレンダーをアレンジして作っております。
4
2
 
5
3
 
6
4
 
7
5
  配布サイト
8
6
 
9
- http://studio-key.com/1248.html
7
+ [リンク内容](http://studio-key.com/1248.html)
10
-
11
-
12
8
 
13
9
  JSファイル
14
10
 
15
- http://studio-key.com/Sample/MyPlugin/CheckCalendar/check.calendar.js
11
+ [リンク内容](http://studio-key.com/Sample/MyPlugin/CheckCalendar/check.calendar.js)
16
12
 
17
13
 
18
14
 

6

補足

2016/06/29 05:09

投稿

leoairen
leoairen

スコア122

test CHANGED
File without changes
test CHANGED
File without changes

5

誤字

2016/06/29 05:07

投稿

leoairen
leoairen

スコア122

test CHANGED
@@ -1 +1 @@
1
- しゅうカレンダーにある指定日の色を変化させる
1
+ カレンダーにある指定日の色を変化させる
test CHANGED
File without changes

4

補足

2016/06/29 05:06

投稿

leoairen
leoairen

スコア122

test CHANGED
File without changes
test CHANGED
@@ -1,6 +1,16 @@
1
1
  初心者です。
2
2
 
3
3
  下記のURLよりカレンダーをアレンジして作っております。
4
+
5
+
6
+
7
+ 配布サイト
8
+
9
+ http://studio-key.com/1248.html
10
+
11
+
12
+
13
+ JSファイル
4
14
 
5
15
  http://studio-key.com/Sample/MyPlugin/CheckCalendar/check.calendar.js
6
16
 

3

補足

2016/06/29 05:03

投稿

leoairen
leoairen

スコア122

test CHANGED
@@ -1 +1 @@
1
- カレンダーにある指定日の色を変化させる
1
+ しゅうカレンダーにある指定日の色を変化させる
test CHANGED
@@ -34,7 +34,7 @@
34
34
 
35
35
  /*今回追加したコード*/
36
36
 
37
- if(s_yy + s_mm + s_dd == '%%data:earthholidayinput%%'){
37
+ if(s_yy + s_mm + s_dd == '休日の配列を取得した変数'){
38
38
 
39
39
  $(this).css({'background-color': '#F7BFB9'});
40
40
 

2

修正

2016/06/29 04:57

投稿

leoairen
leoairen

スコア122

test CHANGED
File without changes
test CHANGED
@@ -14,9 +14,9 @@
14
14
 
15
15
 
16
16
 
17
- ``` * 全解除(元のコード)
17
+ ```
18
18
 
19
- */
19
+ /* 全解除(元のコード)*/
20
20
 
21
21
  $(document).on('click','#'+class_month_off,function(e){
22
22
 

1

情報追加

2016/06/29 04:50

投稿

leoairen
leoairen

スコア122

test CHANGED
File without changes
test CHANGED
@@ -14,7 +14,25 @@
14
14
 
15
15
 
16
16
 
17
+ ``` * 全解除(元のコード)
18
+
19
+ */
20
+
21
+ $(document).on('click','#'+class_month_off,function(e){
22
+
23
+ $(this).parents('table').find('td').css({'background-color': settings.td_off});
24
+
25
+ $(this).parents('table').find('td').data("flag","off");
26
+
27
+ getDate();
28
+
29
+ e.preventDefault();
30
+
17
- ```
31
+ });
32
+
33
+
34
+
35
+ /*今回追加したコード*/
18
36
 
19
37
  if(s_yy + s_mm + s_dd == '%%data:earthholidayinput%%'){
20
38