jquery-weekline-rails 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 79ddb69eac53c3adf70dbf518196ba36f4884f91
4
+ data.tar.gz: 5bd9a1db0259c3828b4820f809bb3e6e99e14290
5
+ SHA512:
6
+ metadata.gz: 8c039a587686766e5e475dd848aef28ddbcc9b3a56dd40ec30f823a44577e991ec4c8d03c2bec638430341152929116f02e050316d84544ba2b45000f5c42650
7
+ data.tar.gz: 79407e04e68f52486cf1cfecec7b47ef37483e86a47ade8f79a601a9faa46eb3d8be416d13c115a7dd0f1101d7ffa1f7d2bb155b0876c2e0293c9580ada4cc01
data/README.md ADDED
@@ -0,0 +1,36 @@
1
+ # Jquery::Weekline::Rails
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/jquery/weekline/rails`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'jquery-weekline-rails'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install jquery-weekline-rails
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/jquery-weekline-rails. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
+
@@ -0,0 +1,10 @@
1
+ require "jquery/weekline/rails/version"
2
+
3
+ module Jquery
4
+ module Weekline
5
+ module Rails
6
+ class Engine < ::Rails::Engine
7
+ end
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,7 @@
1
+ module Jquery
2
+ module Weekline
3
+ module Rails
4
+ VERSION = "0.1.0"
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,212 @@
1
+ (function ($) {
2
+
3
+ $.fn.weekLine = function (params) {
4
+ if (methods[params]) {
5
+ return methods[params].apply(this, Array.prototype.slice.call(arguments, 1));
6
+ } else if (typeof params === 'object' || !params) {
7
+ return methods.init.apply(this, arguments);
8
+ } else {
9
+ $.error('Method ' + params + ' does not exist on jQuery.weekLine');
10
+ }
11
+ };
12
+
13
+ $.fn.weekLine.defaultSettings = {
14
+ dayLabels: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
15
+ mousedownSel: true,
16
+ startDate: null,
17
+ singleDaySelect: false,
18
+ allowDeselect: true,
19
+ // dark, white, jquery-ui
20
+ theme: "dark",
21
+ onChange: null
22
+ };
23
+
24
+ var methods = {
25
+ init: function (options) {
26
+ return this.each(function () {
27
+ var $week = $(this),
28
+ mouseDown = false,
29
+ selectedDay = "selectedDay",
30
+ weekDaysStyle = "",
31
+ weekHTML = "";
32
+ $week.settings =
33
+ $.extend(true, {}, $.fn.weekLine.defaultSettings, options || {});
34
+ var theme = $week.settings.theme;
35
+
36
+ for (i in $week.settings.dayLabels) {
37
+ weekHTML += "<a data-index-number='" + i +
38
+ (theme == "jquery-ui" ? "' class='ui-state-default'>" : "'>") +
39
+ $week.settings.dayLabels[i] + "</a>";
40
+ }
41
+
42
+ if (theme == "jquery-ui") {
43
+ weekDaysStyle = "ui-widget ui-WeekDays";
44
+ selectedDay = "ui-state-active";
45
+ } else {
46
+ weekDaysStyle = "cleanslate weekDays-" + theme;
47
+ }
48
+
49
+ $week.settings.selectedDay = selectedDay;
50
+ $week.data("weekLine", $week.settings);
51
+
52
+ $week
53
+ .addClass(weekDaysStyle)
54
+ .append(weekHTML)
55
+ .mouseup(function () {
56
+ mouseDown = false;
57
+ return false;
58
+ });
59
+
60
+ $days = $week.children()
61
+ .bind("mousedown", function () {
62
+ if ($week.settings.mousedownSel) {
63
+ mouseDown = true;
64
+ }
65
+
66
+ //do not select the day if disabled
67
+ if(!$(this).attr('disabled')){
68
+ selectDay(this)
69
+ };
70
+ return false;
71
+ })
72
+ .bind("mouseenter", function () {
73
+ if (!mouseDown) {
74
+ return false;
75
+ }
76
+ //do not select the day if disabled
77
+ if(!$(this).attr('disabled')){
78
+ selectDay(this)
79
+ };
80
+ return false;
81
+ });
82
+
83
+ if (theme == "jquery-ui") {
84
+ $days.bind("hover", function () {
85
+ $(this).toggleClass("ui-state-hover");
86
+ });
87
+ }
88
+
89
+ function selectDay(day) {
90
+ if ($week.settings.singleDaySelect) {
91
+ $(day).siblings().removeClass(selectedDay);
92
+ }
93
+
94
+ if ($week.settings.allowDeselect || !$(day).hasClass(selectedDay))
95
+ {
96
+ $(day).toggleClass(selectedDay);
97
+ }
98
+
99
+ // Check if set (because its default is null)
100
+ if ($.isFunction($week.settings.onChange)) {
101
+ $week.settings.onChange.call($week);
102
+ }
103
+ }
104
+ });
105
+ },
106
+ // Returns selected days in various formats
107
+ getSelected: function (format, date) {
108
+ var $settings = $(this).data("weekLine"),
109
+ $prev = null,
110
+ selected = "";
111
+
112
+ this.children().each(function () {
113
+ $day = $(this);
114
+
115
+ if ($day.hasClass($settings.selectedDay)) {
116
+ switch (format) {
117
+ case "indexes":
118
+ selected += $day.data('indexNumber') + ",";
119
+ break;
120
+ case "dates":
121
+ selected +=
122
+ addDays(date ? date :
123
+ ($settings.startDate ? $settings.startDate : new Date()),
124
+ $day.data('indexNumber')) + ",";
125
+ break;
126
+ case "descriptive":
127
+ if ($prev == null) {
128
+ selected = $day.html();
129
+ }
130
+ else {
131
+ if ($day.data('indexNumber') - $prev.data('indexNumber') == 1) {
132
+ var parts =
133
+ selected.split(',')[selected.split(',').length - 1].split('-');
134
+
135
+ if (parts.length > 1) {
136
+ selected =
137
+ selected.replace(parts[parts.length - 1], $day.html());
138
+ } else {
139
+ selected += "-" + $day.html();
140
+ }
141
+ } else {
142
+ selected += ", " + $day.html();
143
+ }
144
+ }
145
+
146
+ $prev = $day;
147
+ break;
148
+ case "labels":
149
+ default:
150
+ selected += $day.html() + ",";
151
+ break;
152
+ }
153
+ }
154
+ });
155
+
156
+ return selected.replace(/,+$/, '');
157
+ },
158
+ setSelected: function (selectedDays) {
159
+ var $this = $(this),
160
+ $settings = $this.data("weekLine"),
161
+ $days = $this.children(),
162
+ selDays = selectedDays.split(',');
163
+
164
+ // Reset selected days
165
+ $days.removeClass($settings.selectedDay);
166
+
167
+ for (i in selDays) {
168
+ $days.filter(isNaN(selDays[i]) ?
169
+ "a:contains('" + selDays[i] + "')" :
170
+ "a[data-index-number='" + selDays[i] + "']").addClass($settings.selectedDay);
171
+ }
172
+ },
173
+
174
+ setDisabled: function (disabledDays) {
175
+ var $this = $(this),
176
+ $settings = $this.data("weekLine"),
177
+ $days = $this.children(),
178
+ selDays = disabledDays.split(',');
179
+
180
+ // Reset disabled days
181
+ $days.removeAttr( "disabled" );
182
+
183
+ for (i in selDays) {
184
+ $days.filter(isNaN(selDays[i]) ?
185
+ "a:contains('" + selDays[i] + "')" :
186
+ "a[data-index-number='" + selDays[i] + "']").attr( "disabled", true );
187
+ }
188
+ }
189
+
190
+ };
191
+
192
+ function addDays(strDt, days) {
193
+ var dt = new Date(strDt),
194
+ dt = new Date(dt.setDate(dt.getDate() + Number(days))),
195
+ d = dt.getDate(),
196
+ m = dt.getMonth() + 1,
197
+ y = dt.getFullYear();
198
+
199
+ // Return date in ISO 8601 format
200
+ return y + "/" + (m < 10 ? '0' + m : m) + "/" + (d < 10 ? '0' + d : d);
201
+ }
202
+
203
+ })(jQuery);
204
+
205
+ // Helper function for getting the next week day
206
+ // Monday (0) to Sunday (6)
207
+ function nextDay(dayNum) {
208
+ return function(date) {
209
+ var dt = new Date(date || new Date());
210
+ return new Date(dt.getTime() + ((dayNum - dt.getDay() + 7) % 7 + 1) * 86400000);
211
+ };
212
+ }
@@ -0,0 +1 @@
1
+ function nextDay(e){return function(t){var a=new Date(t||new Date);return new Date(a.getTime()+864e5*((e-a.getDay()+7)%7+1))}}!function(e){function t(e,t){var a=new Date(e),a=new Date(a.setDate(a.getDate()+Number(t))),n=a.getDate(),i=a.getMonth()+1,s=a.getFullYear();return s+"/"+(10>i?"0"+i:i)+"/"+(10>n?"0"+n:n)}e.fn.weekLine=function(t){return a[t]?a[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist on jQuery.weekLine"):a.init.apply(this,arguments)},e.fn.weekLine.defaultSettings={dayLabels:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],mousedownSel:!0,startDate:null,singleDaySelect:!1,allowDeselect:!0,theme:"dark",onChange:null};var a={init:function(t){return this.each(function(){function a(t){n.settings.singleDaySelect&&e(t).siblings().removeClass(l),(n.settings.allowDeselect||!e(t).hasClass(l))&&e(t).toggleClass(l),e.isFunction(n.settings.onChange)&&n.settings.onChange.call(n)}var n=e(this),s=!1,l="selectedDay",d="",r="";n.settings=e.extend(!0,{},e.fn.weekLine.defaultSettings,t||{});var u=n.settings.theme;for(i in n.settings.dayLabels)r+="<a data-index-number='"+i+("jquery-ui"==u?"' class='ui-state-default'>":"'>")+n.settings.dayLabels[i]+"</a>";"jquery-ui"==u?(d="ui-widget ui-WeekDays",l="ui-state-active"):d="cleanslate weekDays-"+u,n.settings.selectedDay=l,n.data("weekLine",n.settings),n.addClass(d).append(r).mouseup(function(){return s=!1,!1}),$days=n.children().bind("mousedown",function(){return n.settings.mousedownSel&&(s=!0),e(this).attr("disabled")||a(this),!1}).bind("mouseenter",function(){return s?(e(this).attr("disabled")||a(this),!1):!1}),"jquery-ui"==u&&$days.bind("hover",function(){e(this).toggleClass("ui-state-hover")})})},getSelected:function(a,n){var i=e(this).data("weekLine"),s=null,l="";return this.children().each(function(){if($day=e(this),$day.hasClass(i.selectedDay))switch(a){case"indexes":l+=$day.data("indexNumber")+",";break;case"dates":l+=t(n?n:i.startDate?i.startDate:new Date,$day.data("indexNumber"))+",";break;case"descriptive":if(null==s)l=$day.html();else if($day.data("indexNumber")-s.data("indexNumber")==1){var d=l.split(",")[l.split(",").length-1].split("-");d.length>1?l=l.replace(d[d.length-1],$day.html()):l+="-"+$day.html()}else l+=", "+$day.html();s=$day;break;case"labels":default:l+=$day.html()+","}}),l.replace(/,+$/,"")},setSelected:function(t){var a=e(this),n=a.data("weekLine"),s=a.children(),l=t.split(",");s.removeClass(n.selectedDay);for(i in l)s.filter(isNaN(l[i])?"a:contains('"+l[i]+"')":"a[data-index-number='"+l[i]+"']").addClass(n.selectedDay)},setDisabled:function(t){var a=e(this),n=(a.data("weekLine"),a.children()),s=t.split(",");n.removeAttr("disabled");for(i in s)n.filter(isNaN(s[i])?"a:contains('"+s[i]+"')":"a[data-index-number='"+s[i]+"']").attr("disabled",!0)}}}(jQuery);
@@ -0,0 +1,227 @@
1
+ /*!
2
+ * CleanSlate
3
+ * github.com/premasagar/cleanslate
4
+ *
5
+ *//*
6
+ An extreme CSS reset stylesheet, for normalising the styling of a container element and its children.
7
+
8
+ by Premasagar Rose
9
+ dharmafly.com
10
+
11
+ license
12
+ opensource.org/licenses/mit-license.php
13
+
14
+ **
15
+
16
+ v0.9.2
17
+
18
+ */
19
+
20
+ /* == BLANKET RESET RULES == */
21
+
22
+ /* HTML 4.01 */
23
+ .cleanslate, .cleanslate h1, .cleanslate h2, .cleanslate h3, .cleanslate h4, .cleanslate h5, .cleanslate h6, .cleanslate p, .cleanslate td, .cleanslate dl, .cleanslate tr, .cleanslate dt, .cleanslate ol, .cleanslate form, .cleanslate select, .cleanslate option, .cleanslate pre, .cleanslate div, .cleanslate table, .cleanslate th, .cleanslate tbody, .cleanslate tfoot, .cleanslate caption, .cleanslate thead, .cleanslate ul, .cleanslate li, .cleanslate address, .cleanslate blockquote, .cleanslate dd, .cleanslate fieldset, .cleanslate li, .cleanslate iframe, .cleanslate strong, .cleanslate legend, .cleanslate em, .cleanslate s, .cleanslate cite, .cleanslate span, .cleanslate input, .cleanslate sup, .cleanslate label, .cleanslate dfn, .cleanslate object, .cleanslate big, .cleanslate q, .cleanslate font, .cleanslate samp, .cleanslate acronym, .cleanslate small, .cleanslate img, .cleanslate strike, .cleanslate code, .cleanslate sub, .cleanslate ins, .cleanslate textarea, .cleanslate var, .cleanslate a, .cleanslate abbr, .cleanslate applet, .cleanslate del, .cleanslate kbd, .cleanslate tt, .cleanslate b, .cleanslate i, .cleanslate hr,
24
+
25
+ /* HTML5 */
26
+ .cleanslate article, .cleanslate aside, .cleanslate dialog, .cleanslate figure, .cleanslate footer, .cleanslate header, .cleanslate hgroup, .cleanslate menu, .cleanslate nav, .cleanslate section, .cleanslate time, .cleanslate mark, .cleanslate audio, .cleanslate video {
27
+ background-attachment:scroll !important;
28
+ background-color:transparent !important;
29
+ background-image:none !important; /* This rule affects the use of pngfix JavaScript http://dillerdesign.com/experiment/DD_BelatedPNG for IE6, which is used to force the browser to recognise alpha-transparent PNGs files that replace the IE6 lack of PNG transparency. (The rule overrides the VML image that is used to replace the given CSS background-image). If you don't know what that means, then you probably haven't used the pngfix script, and this comment may be ignored :) */
30
+ background-position:0 0 !important;
31
+ background-repeat:repeat !important;
32
+ border-color:black !important;
33
+ border-color:currentColor !important; /* `border-color` should match font color. Modern browsers (incl. IE9) allow the use of "currentColor" to match the current font 'color' value <http://www.w3.org/TR/css3-color/#currentcolor>. For older browsers, a default of 'black' is given before this rule. Guideline to support older browsers: if you haven't already declared a border-color for an element, be sure to do so, e.g. when you first declare the border-width. */
34
+ border-radius:0 !important;
35
+ border-style:none !important;
36
+ border-width:medium !important;
37
+ bottom:auto !important;
38
+ clear:none !important;
39
+ clip:auto !important;
40
+ color:inherit !important;
41
+ counter-increment:none !important;
42
+ counter-reset:none !important;
43
+ cursor:auto !important;
44
+ direction:inherit !important;
45
+ display:inline !important;
46
+ float:none !important;
47
+ font-family: inherit !important; /* As with other inherit values, this needs to be set on the root container element */
48
+ font-size: inherit !important;
49
+ font-style:inherit !important;
50
+ font-variant:normal !important;
51
+ font-weight:inherit !important;
52
+ height:auto !important;
53
+ left:auto !important;
54
+ letter-spacing:normal !important;
55
+ line-height:inherit !important;
56
+ list-style-type: inherit !important; /* Could set list-style-type to none */
57
+ list-style-position: outside !important;
58
+ list-style-image: none !important;
59
+ margin:0 !important;
60
+ max-height:none !important;
61
+ max-width:none !important;
62
+ min-height:0 !important;
63
+ min-width:0 !important;
64
+ opacity:1;
65
+ outline:invert none medium !important;
66
+ overflow:visible !important;
67
+ padding:0 !important;
68
+ position:static !important;
69
+ quotes: "" "" !important;
70
+ right:auto !important;
71
+ table-layout:auto !important;
72
+ text-align:inherit !important;
73
+ text-decoration:inherit !important;
74
+ text-indent:0 !important;
75
+ text-transform:none !important;
76
+ top:auto !important;
77
+ unicode-bidi:normal !important;
78
+ vertical-align:baseline !important;
79
+ visibility:inherit !important;
80
+ white-space:normal !important;
81
+ width:auto !important;
82
+ word-spacing:normal !important;
83
+ z-index:auto !important;
84
+
85
+ /* Proprietary and draft rules */
86
+ /* This section needs extending */
87
+ -moz-border-radius:0 !important;
88
+ -webkit-border-radius:0 !important;
89
+ -moz-box-sizing: content-box !important;
90
+ -webkit-box-sizing: content-box !important;
91
+ box-sizing: content-box !important;
92
+ text-shadow: none !important;
93
+ }
94
+
95
+ /* == BLOCK-LEVEL == */
96
+ /* Actually, some of these should be inline-block and other values, but block works fine (TODO: rigorously verify this) */
97
+ /* HTML 4.01 */
98
+ .cleanslate, .cleanslate h3, .cleanslate h5, .cleanslate p, .cleanslate h1, .cleanslate dl, .cleanslate dt, .cleanslate h6, .cleanslate ol, .cleanslate form, .cleanslate select, .cleanslate option, .cleanslate pre, .cleanslate div, .cleanslate h2, .cleanslate caption, .cleanslate h4, .cleanslate ul, .cleanslate address, .cleanslate blockquote, .cleanslate dd, .cleanslate fieldset, .cleanslate textarea, .cleanslate hr,
99
+ /* HTML5 new elements */
100
+ .cleanslate article, .cleanslate aside, .cleanslate dialog, .cleanslate figure, .cleanslate footer, .cleanslate header, .cleanslate hgroup, .cleanslate menu, .cleanslate nav, .cleanslate section {
101
+ display:block !important;
102
+ }
103
+ .cleanslate table {
104
+ display: table !important;
105
+ }
106
+ .cleanslate thead {
107
+ display: table-header-group !important;
108
+ }
109
+ .cleanslate tbody {
110
+ display: table-row-group !important;
111
+ }
112
+ .cleanslate tfoot {
113
+ display: table-footer-group !important;
114
+ }
115
+ .cleanslate tr {
116
+ display: table-row !important;
117
+ }
118
+ .cleanslate th, .cleanslate td {
119
+ display: table-cell !important;
120
+ }
121
+ /* == SPECIFIC ELEMENTS == */
122
+ /* Some of these are browser defaults; some are just useful resets */
123
+
124
+ .cleanslate nav ul, .cleanslate nav ol {
125
+ list-style-type:none !important;
126
+ }
127
+ .cleanslate ul, .cleanslate menu {
128
+ list-style-type:disc !important;
129
+ }
130
+ .cleanslate ol {
131
+ list-style-type:decimal !important;
132
+ }
133
+ .cleanslate ol ul, .cleanslate ul ul, .cleanslate menu ul, .cleanslate ol menu, .cleanslate ul menu, .cleanslate menu menu {
134
+ list-style-type:circle !important;
135
+ }
136
+ .cleanslate ol ol ul, .cleanslate ol ul ul, .cleanslate ol menu ul, .cleanslate ol ol menu, .cleanslate ol ul menu, .cleanslate ol menu menu, .cleanslate ul ol ul, .cleanslate ul ul ul, .cleanslate ul menu ul, .cleanslate ul ol menu, .cleanslate ul ul menu, .cleanslate ul menu menu, .cleanslate menu ol ul, .cleanslate menu ul ul, .cleanslate menu menu ul, .cleanslate menu ol menu, .cleanslate menu ul menu, .cleanslate menu menu menu {
137
+ list-style-type:square !important;
138
+ }
139
+ .cleanslate li {
140
+ display:list-item !important;
141
+ /* Fixes IE7 issue with positioning of nested bullets */
142
+ min-height:auto !important;
143
+ min-width:auto !important;
144
+ }
145
+ .cleanslate strong {
146
+ font-weight:bold !important;
147
+ }
148
+ .cleanslate em {
149
+ font-style:italic !important;
150
+ }
151
+ .cleanslate kbd, .cleanslate samp, .cleanslate code {
152
+ font-family:monospace !important;
153
+ }
154
+ .cleanslate a, .cleanslate a *, .cleanslate input[type=submit], .cleanslate input[type=radio], .cleanslate input[type=checkbox], .cleanslate select {
155
+ cursor:pointer !important;
156
+ }
157
+ .cleanslate a:hover {
158
+ text-decoration:underline !important;
159
+ }
160
+ .cleanslate button, .cleanslate input[type=submit] {
161
+ text-align: center !important;
162
+ }
163
+ .cleanslate input[type=hidden] {
164
+ display:none !important;
165
+ }
166
+ .cleanslate abbr[title], .cleanslate acronym[title], .cleanslate dfn[title] {
167
+ cursor:help !important;
168
+ border-bottom-width:1px !important;
169
+ border-bottom-style:dotted !important;
170
+ }
171
+ .cleanslate ins {
172
+ background-color:#ff9 !important;
173
+ color:black !important;
174
+ }
175
+ .cleanslate del {
176
+ text-decoration: line-through !important;
177
+ }
178
+ .cleanslate blockquote, .cleanslate q {
179
+ quotes:none !important; /* HTML5 */
180
+ }
181
+ .cleanslate blockquote:before, .cleanslate blockquote:after, .cleanslate q:before, .cleanslate q:after, .cleanslate li:before, .cleanslate li:after {
182
+ content:"" !important;
183
+ }
184
+ .cleanslate input, .cleanslate select {
185
+ vertical-align:middle !important;
186
+ }
187
+ .cleanslate select, .cleanslate textarea, .cleanslate input {
188
+ border:1px solid #ccc !important;
189
+ }
190
+ .cleanslate table {
191
+ border-collapse:collapse !important;
192
+ border-spacing:0 !important;
193
+ }
194
+ .cleanslate hr {
195
+ display:block !important;
196
+ height:1px !important;
197
+ border:0 !important;
198
+ border-top:1px solid #ccc !important;
199
+ margin:1em 0 !important;
200
+ }
201
+ .cleanslate *[dir=rtl] {
202
+ direction: rtl !important;
203
+ }
204
+ .cleanslate mark {
205
+ background-color:#ff9 !important;
206
+ color:black !important;
207
+ font-style:italic !important;
208
+ font-weight:bold !important;
209
+ }
210
+
211
+
212
+
213
+ /* == ROOT CONTAINER ELEMENT == */
214
+ /* This contains default values for child elements to inherit */
215
+ .cleanslate {
216
+ font-size: medium !important;
217
+ line-height: 1 !important;
218
+ direction:ltr !important;
219
+ text-align:left !important;
220
+ font-family: "Times New Roman", Times, serif !important; /* Override this with whatever font-family is required */
221
+ color: black !important;
222
+ font-style:normal !important;
223
+ font-weight:normal !important;
224
+ text-decoration:none !important;
225
+ list-style-type:disc !important;
226
+ border-collapse:separate !important;
227
+ }
@@ -0,0 +1,57 @@
1
+ body
2
+ {
3
+ background-color: black;
4
+ }
5
+
6
+ /* weekLine dark css*/
7
+
8
+ .weekDays a
9
+ {
10
+ padding: 2px 3px !important;
11
+ color: Gray !important;
12
+ background: linear-gradient(to bottom, #3B3B3B 0%, #202020 100%) repeat scroll 0 0 rgba(0, 0, 0, 0) !important;
13
+ text-decoration: none !important;
14
+ font-family: "courier new" !important;
15
+ }
16
+
17
+ .weekDays a:first-child:not(.selectedDay):not(:hover)
18
+ {
19
+ border-radius: 20% 0 0 20% !important;
20
+ padding: 2px 3px 2px 6px !important;
21
+ }
22
+
23
+ .weekDays a:last-child:not(.selectedDay):not(:hover)
24
+ {
25
+ border-radius: 0 20% 20% 0 !important;
26
+ padding: 2px 6px 2px 3px !important;
27
+ }
28
+
29
+ .weekDays a:first-child:hover
30
+ {
31
+ padding: 2px 1px 2px 4px !important;
32
+ }
33
+
34
+ .weekDays a:first-child
35
+ {
36
+ padding: 2px 2px 2px 5px !important;
37
+ }
38
+
39
+ .weekDays a:hover
40
+ {
41
+ border-style: solid !important;
42
+ border-radius: 20% !important;
43
+ border-width: 2px !important;
44
+ border-color: #6E9A52 !important;
45
+ text-decoration: none !important;
46
+ padding: 2px 1px !important;
47
+ }
48
+
49
+ .weekDays .selectedDay
50
+ {
51
+ border-style: solid !important;
52
+ border-radius: 20% !important;
53
+ border-width: 1px !important;
54
+ border-color: gray !important;
55
+ color: #6E9A52 !important;
56
+ padding: 2px !important;
57
+ }
@@ -0,0 +1,25 @@
1
+ .weekDays a
2
+ {
3
+ padding: 0px 3px 0px 3px !important;
4
+ border-width: 1px !important;
5
+ border-style: dotted !important;
6
+ color: Gray !important;
7
+ text-decoration: none !important;
8
+ }
9
+
10
+ .weekDays a:hover
11
+ {
12
+ border-style: solid !important;
13
+ border-width: 1px 1px 2px 1px !important;
14
+ text-decoration: none !important;
15
+ color: Gray !important;
16
+ }
17
+
18
+ .weekDays .selectedDay
19
+ {
20
+ background-color: #F5F5F5 !important;
21
+ border-style: solid !important;
22
+ border-width: 1px 1px 2px 1px !important;
23
+ border-color: gray !important;
24
+ color: #505050 !important;
25
+ }
@@ -0,0 +1,111 @@
1
+ /* weekLine jquery-ui css*/
2
+
3
+ .ui-WeekDays a
4
+ {
5
+ padding: 2px 3px !important;
6
+ }
7
+
8
+ .ui-WeekDays a:first-child
9
+ {
10
+ border-radius: 20% 0 0 20% !important;
11
+ padding: 2px 3px 2px 6px !important;
12
+ }
13
+
14
+ .ui-WeekDays a:last-child
15
+ {
16
+ border-radius: 0 20% 20% 0 !important;
17
+ padding: 2px 6px 2px 3px !important;
18
+ }
19
+
20
+ .ui-WeekDays a:hover
21
+ {
22
+ border-style: solid !important;
23
+ border-width: 1px !important;
24
+ }
25
+
26
+ .ui-WeekDays .ui-state-active
27
+ {
28
+ border-style: solid !important;
29
+ border-width: 1px !important;
30
+ }
31
+
32
+ /* weekLine dark css*/
33
+
34
+ .weekDays-dark a
35
+ {
36
+ padding: 2px 3px !important;
37
+ color: Gray !important;
38
+ background: linear-gradient(to bottom, #3B3B3B 0%, #202020 100%) repeat scroll 0 0 rgba(0, 0, 0, 0) !important;
39
+ text-decoration: none !important;
40
+ font-family: "courier new" !important;
41
+ }
42
+
43
+ .weekDays-dark a:first-child:not(.selectedDay):not(:hover)
44
+ {
45
+ border-radius: 20% 0 0 20% !important;
46
+ padding: 2px 3px 2px 6px !important;
47
+ }
48
+
49
+ .weekDays-dark a:last-child:not(.selectedDay):not(:hover)
50
+ {
51
+ border-radius: 0 20% 20% 0 !important;
52
+ padding: 2px 6px 2px 3px !important;
53
+ }
54
+
55
+ .weekDays-dark a:first-child:hover
56
+ {
57
+ padding: 2px 1px 2px 4px !important;
58
+ }
59
+
60
+ .weekDays-dark a:first-child
61
+ {
62
+ padding: 2px 2px 2px 5px !important;
63
+ }
64
+
65
+ .weekDays-dark a:hover
66
+ {
67
+ border-style: solid !important;
68
+ border-radius: 20% !important;
69
+ border-width: 2px !important;
70
+ border-color: #6E9A52 !important;
71
+ text-decoration: none !important;
72
+ padding: 2px 1px !important;
73
+ }
74
+
75
+ .weekDays-dark .selectedDay
76
+ {
77
+ border-style: solid !important;
78
+ border-radius: 20% !important;
79
+ border-width: 1px !important;
80
+ border-color: gray !important;
81
+ color: #6E9A52 !important;
82
+ padding: 2px !important;
83
+ }
84
+
85
+ /* weekLine white css*/
86
+
87
+ .weekDays-white a
88
+ {
89
+ padding: 0px 3px 0px 3px !important;
90
+ border-width: 1px !important;
91
+ border-style: dotted !important;
92
+ color: Gray !important;
93
+ text-decoration: none !important;
94
+ }
95
+
96
+ .weekDays-white a:hover
97
+ {
98
+ border-style: solid !important;
99
+ border-width: 1px 1px 2px 1px !important;
100
+ text-decoration: none !important;
101
+ color: Gray !important;
102
+ }
103
+
104
+ .weekDays-white .selectedDay
105
+ {
106
+ background-color: #F5F5F5 !important;
107
+ border-style: solid !important;
108
+ border-width: 1px 1px 2px 1px !important;
109
+ border-color: gray !important;
110
+ color: #505050 !important;
111
+ }
metadata ADDED
@@ -0,0 +1,81 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jquery-weekline-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - r3bo0t
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-05-16 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.11'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.11'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ description: ruby gem for jquery weekline plugin for rails application
42
+ email:
43
+ - skr.ymca@gmail.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - README.md
49
+ - lib/jquery/weekline/rails.rb
50
+ - lib/jquery/weekline/rails/version.rb
51
+ - vendor/assets/javascripts/jquery.weekLine.js
52
+ - vendor/assets/javascripts/jquery.weekLine.min.js
53
+ - vendor/assets/stylesheets/cleanslate.css
54
+ - vendor/assets/stylesheets/jquery.weekLine-dark.css
55
+ - vendor/assets/stylesheets/jquery.weekLine-white.css
56
+ - vendor/assets/stylesheets/jquery.weekLine.css
57
+ homepage: ''
58
+ licenses: []
59
+ metadata:
60
+ allowed_push_host: https://rubygems.org
61
+ post_install_message:
62
+ rdoc_options: []
63
+ require_paths:
64
+ - lib
65
+ required_ruby_version: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ required_rubygems_version: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
+ requirements: []
76
+ rubyforge_project:
77
+ rubygems_version: 2.5.1
78
+ signing_key:
79
+ specification_version: 4
80
+ summary: ruby gem for jquery weekline plugin for rails application
81
+ test_files: []