jquery-benignware-rails 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.gitmodules +3 -0
- data/Rakefile +2 -2
- data/lib/jquery-benignware-rails/version.rb +1 -1
- data/vendor/assets/javascripts/benignware/bootstrap.dropdown-control.min.js +2 -0
- data/vendor/assets/javascripts/benignware/jquery.checkView.min.js +2 -0
- data/vendor/assets/javascripts/benignware/{jquery.checkView.js → jquery.checkview.js} +0 -0
- data/vendor/assets/javascripts/benignware/jquery.nativepicker.min.js +2 -0
- data/vendor/assets/javascripts/benignware/jquery.responsiveText.min.js +2 -0
- data/vendor/assets/javascripts/benignware/jquery.scroll-to.js +73 -0
- data/vendor/assets/javascripts/benignware/jquery.scroll-to.min.js +2 -0
- data/vendor/assets/javascripts/benignware/jquery.touchclick.js +8 -15
- data/vendor/assets/javascripts/benignware/jquery.touchclick.min.js +2 -0
- data/vendor/assets/stylesheets/benignware/{jquery-checkview.bootstrap.css → bootstrap.checkView.css} +0 -0
- data/vendor/assets/stylesheets/benignware/checkview.css +17 -0
- metadata +11 -4
- data/vendor/assets/javascripts/benignware/jquery.backToTop.js +0 -87
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NjMyNDZiMDViN2U0YzY5ZjA4NDEwMGU5N2FlNmI1NGIyNjFhNTg2NQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ODE2ZjljN2Y3ZGNjYjNlODY1ZjY2MzQzNjJmODg0OTdiZDIwODE2OA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
N2MwODk0YTc0ZjQ3N2ViZGI4NTVhZTlkYmQxMDdlZWQ5ZThjMzdiODQzNzIy
|
10
|
+
OWY0NGIxMzY3MDQ4ZjhiYmI4OGRhNmU5YjhlNDBkN2QxZWIyNzNiMTU1N2E2
|
11
|
+
NWRjOWNjMmQ1NWM3OTI4NDdjOWVjYzVlZjAxNDJiZmU1MzVkMzM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZWQxNzI2M2E5MTk1ODZkNzZkNmRkMTY0ODU1NWUxYjdjNTViMjkwOWVjNzMz
|
14
|
+
NGIxZWM4Zjg0NWE2ZWU0ZjQxMzM5NjA2MTJiZmRmYjBkYzQxZWRhZWEwZDcz
|
15
|
+
YmNmNzc0ODMzM2U2MGM5YzI4NDMzMDVmMzJmOTM1M2VmNTA1N2I=
|
data/.gitmodules
CHANGED
@@ -13,3 +13,6 @@
|
|
13
13
|
[submodule "submodules/bootstrap-dropdown-control"]
|
14
14
|
path = submodules/bootstrap-dropdown-control
|
15
15
|
url = https://github.com/benignware/bootstrap-dropdown-control.git
|
16
|
+
[submodule "submodules/jquery-scroll-to"]
|
17
|
+
path = submodules/jquery-scroll-to
|
18
|
+
url = https://github.com/benignware/jquery-scroll-to.git
|
data/Rakefile
CHANGED
@@ -17,7 +17,7 @@ task :assets do
|
|
17
17
|
js_dir = "vendor/assets/javascripts/benignware"
|
18
18
|
mkdir_p js_dir
|
19
19
|
|
20
|
-
Dir.glob("submodules/*/
|
20
|
+
Dir.glob("submodules/*/dist/js/*.js").each do |path|
|
21
21
|
basename = File.basename(path)
|
22
22
|
Rake.rake_output_message 'asset ' + basename
|
23
23
|
File.open("#{js_dir}/#{basename}", "w") do |out|
|
@@ -30,7 +30,7 @@ task :assets do
|
|
30
30
|
css_dir = "vendor/assets/stylesheets/benignware"
|
31
31
|
mkdir_p css_dir
|
32
32
|
|
33
|
-
Dir.glob("submodules/*/
|
33
|
+
Dir.glob("submodules/*/dist/css/*.css").each do |path|
|
34
34
|
basename = File.basename(path)
|
35
35
|
Rake.rake_output_message 'asset ' + basename
|
36
36
|
File.open("#{css_dir}/#{basename}", "w") do |out|
|
@@ -0,0 +1,2 @@
|
|
1
|
+
|
2
|
+
+function(e,j){var i="dropdownControl";var n=e.fn.dropdown;e.extend(n.Constructor.DEFAULTS,{showOnFocus:false,focusInput:false});var c=".dropdown-backdrop";var g="[data-toggle=actions]";var l="input[type!='hidden']";function d(r){var p=r.attr("data-target");if(!p){p=r.attr("href");p=p&&/#/.test(p)&&p.replace(/.*(?=#[^\s]*$)/,"")}var q=p&&e(p);return q&&q.length?q:r.parent()}function k(p){var q=d(p);return q.find(".dropdown-backdrop")}function h(p){e(c).remove();e(p).each(function(r){var q=d(e(this));if(!q.hasClass("open")){return}q.trigger(r=e.Event("hide.bs.dropdown"));if(r.isDefaultPrevented()){return}q.removeClass("open").trigger("hidden.bs.dropdown");q.find(".dropdown-menu "+l).blur()})}function b(p){return p.next(".dropdown-menu")}function a(p){return d(p).hasClass("open")}function f(p){p.find(l).first().focus()}function m(s,r){var q=e(s);var p=s;var t=d(q);var v=b(q);q.on("keydown.bs.dropdown.data-api",m.prototype.keydown);q.on("focus",function(w){if(!u&&r.showOnFocus&&!a(q)){w.preventDefault();m.prototype.toggle.apply(this,arguments);if(r.focusInput){f(v)}}});q.on("mousedown touchstart",function(w){if(!u){u=true}});t.on("mousedown touchstart",function(w){if(!u){u=true}});q.on("click",function(w){if(a(q)){if(!("ontouchstart" in j)){h(q)}}else{m.prototype.toggle.apply(this,arguments);if(r.focusInput){f(v)}}w.stopImmediatePropagation();w.preventDefault();u=false});t.on("click",function(w){u=false;w.stopImmediatePropagation()});var u=false;v.find(l).on("blur",function(w){if(!u){j.setTimeout(function(){if(a(q)){if(!v.has(document.activeElement).length){h(s)}}},0)}});e(document).on("mousedown touchstart",function(x){var w=d(q);if(a(q)&&(!w.is(x.target)&&!w.has(x.target).length)){h(q)}}).on("click.bs.dropdown.data-api",function(w){})}m.prototype=e.extend({},n.Constructor.prototype,{Constructor:m,toggle:function(q){if(!a(e(this))){n.Constructor.prototype.toggle.apply(this,q);var p=k(e(this));p.remove()}else{}},keyDown:function(p){n.Constructor.prototype.keyDown.apply(this,p)}});var o=m;e.fn[i]=e.extend(function(q){var p=e.makeArray(arguments),q=p.shift();return this.each(function(){var t=e(this);var s=t.data(i),r=e.extend({},n.defaults,t.data(),typeof q=="object"&&q);if(!s){t.data(i,(s=new o(this,r)))}if(typeof q=="string"){s[q].apply(s,p)}})},e.fn[i])}(jQuery,window);
|
@@ -0,0 +1,2 @@
|
|
1
|
+
|
2
|
+
(function(f,c){console.info("init checkview plugin");var e="checkView";var g={containerClass:"checkview",iconClass:"icon-ok",autoSubmit:true};function a(k,h){if(h==k){return false}var j=k;try{while(j){if(k.ownerDocument!=null&&j==k.ownerDocument.documentElement){return false}if(j.parentNode==h){return true}if(j.parentNode==null){return false}j=j.parentNode}}catch(i){}return false}var b=function d(m,u){var h="click";var n=this;var r=m.ownerDocument;var i=f(m);m.tabIndex="-1";m.style.position="absolute";m.style.width="0";m.style.height="0";var p=f(m).next();var k=f(m).prev();var s=p&&p.tagName=="input"&&p.type=="hidden"?p:k&&k.tagName=="input"&&k.type=="hidden"?k:null;var q=f(m).parents("."+u.containerClass)[0];if(!q){q=r.createElement("span");m.parentNode.insertBefore(q,m)}q.tabIndex="0";q.className=u.containerClass;q.style.display="inline-block";q.style.lineHeight="0";q.style.cursor="pointer";var j=r.createElement("i");j.style.margin="0";j.className=u.iconClass;q.appendChild(j);function l(){m.checked=!m.checked;n.invalidate()}function t(){if(!m.value){m.value="on"}m.style.visibility="hidden";q.appendChild(m);j.style.verticalAlign="top";var v;f(q).bind("keypress",function(y){if(y.which==32){m.checked=!m.checked;n.invalidate()}if(y.which==13&&u.autoSubmit){if(m.form){m.form.submit()}}});f(m).bind("change",function(y){n.invalidate();c.clearTimeout(x)});f(q).parents("label").bind("click",function(y){if(y.target!=m&&y.target!=q&&!a(y.target,q)){y.stopImmediatePropagation();f(q).trigger("click")}});var x=null;function w(){m.checked=!m.checked;f(m).trigger("change")}f(q).bind("click",function(y){if(y.target!=m){c.clearTimeout(x);x=c.setTimeout(function(){w()},100);y.preventDefault()}});f(c).bind("resize",function(){n.invalidate()});this.invalidate()}function o(){if(m.checked){f(q).addClass("checked")}else{f(q).removeClass("checked")}j.style.visibility=m.checked?"":"hidden";j.style.position="relative";j.style.left=((f(q).width()-f(j).width())/2)+"px";j.style.top=((f(q).height()-f(j).height())/2)+"px"}this.setChecked=function(v){m.checked=v;if(v){f(m).attr("checked","checked")}else{f(m).removeAttr("checked")}this.invalidate()};this.isChecked=function(){return f(m).is(":checked")};this.invalidate=function(){o.call(this)};t.call(this)};f.fn[e]=function(h){h=f.extend({},g,h);return this.each(function(){if(!f(this).data(e)){f(this).data(e,new b(this,h))}return f(this)})}})(jQuery,window);
|
File without changes
|
@@ -0,0 +1,2 @@
|
|
1
|
+
|
2
|
+
+function(e,h){h.console=h.console||{log:function(){},info:function(){}};var g="nativepicker";var d={type:"auto",toggleEvent:"touchstart mousedown",show:null,change:null};function f(l){var k=new Date(l.getTime());var m=l.getTimezoneOffset()/60;var j=l.getHours();k.setHours(j-m);return k}function c(m){m=f(m);var n=function n(p,q){return Array(Math.max(q-String(p).length+1,0)).join(0)+p};var l=m.getTimezoneOffset()+30*-1,k=n(Math.floor(l/60),2),j=n((l%60),2),o="";o=k>0?"+":"-";o=o+k+":"+j;return m.getFullYear()+"-"+n((m.getMonth()+1),2)+"-"+n(m.getDate(),2)+"T"+n(m.getHours(),2)+":"+n(m.getMinutes(),2)+":"+n(m.getSeconds(),2)+"."+n(m.getMilliseconds(),2)+o}function b(k){switch(k){case"select":case"text":case"textarea":result=true;break;default:var j=document.createElement("input");j.setAttribute("type",k);if(j.getAttribute("type")==k){switch(k){case"date":var l="not a timestring";j.setAttribute("value",l);if(!j.value){result=true;break}default:result=false}}delete j}return result}var i=function a(n,y){var q=this;var u=y.inputSelector;var v=e(n);var r,o;var u="select, input[type='text]', input[type='date'], textarea";function t(){if(y.type&&y.type!="auto"){return y.type}var z=m();if(z){var A=z.prop("tagName").toLowerCase();switch(A){case"select":case"textarea":return A;case"input":return z.prop("type")}}return null}function m(){if(!r){r=v.is(y.inputSelector)?v:(function(){var z=null;var A=t();switch(A){case"select":z=document.createElement(A);break;default:z=document.createElement("input");z.setAttribute("type",A);z.setAttribute("min",y.min)}e(z).on("change",function(B){x()});n.parentNode.insertBefore(z,n);return e(z)})()}return r}function j(){o=y.toggle?typeof(y.toggle)=="function"?y.toggle.call(n):e(y.toggle):v;return o}var o=j();function p(){var A=m();var z=j();if(A&&z){A.css({opacity:0,position:"absolute",zIndex:-1,width:z.outerWidth(false),height:z.outerHeight(false),display:""})}}function l(z){z.stopImmediatePropagation();z.preventDefault();s()}function s(){input=m();if(y.show){y.show.call(n)}input.focus()}this.getPickerValue=function(){value=m().prop("value");if(!value){if(y.min){value=y.min}else{value=""}}return value};this.setPickerValue=function(z){if(z instanceof Date){z=c(z).substring(0,10)}m().prop("value",z)};function x(){var z=q.getPickerValue();switch(o.prop("tagName").toLowerCase()){case"input":case"select":o.prop("value",z);break;default:o.html(z)}if(y.change){z=y.change.call(n,z)}}function k(){return(/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent))}function w(){if(!k()){return}var z=t();if(z&&!b(z)){return}j().bind(y.toggleEvent,l);p.call(this)}w.call(this)};e.fn[g]=function(j){j=e.extend({},d,j);return this.each(function(){if(!e(this).data(g)){e(this).data(g,new i(this,j))}return e(this)})}}(jQuery,window);
|
@@ -0,0 +1,2 @@
|
|
1
|
+
|
2
|
+
(function(d,b){var c="responsiveText";var f={fontSize:"",minFontSize:"12px",maxFontSize:"",bindResize:true};var a=function e(i,h){var j=this;function g(l){if(!l){return 0}var p=0;var o=l.match(/^(\d+(?:\.\d+)?)(.*)$/);var n=o?o[1]:"";var m=o?o[2]:"";switch(m){case"vw":p=d(b).innerWidth()/100*n;break;case"vh":p=d(b).innerHeight()/100*n;break;default:d(i).css("fontSize",n+m);p=parseFloat(d(i).css("fontSize"))}return !isNaN(p)?p:0}function k(){if(h.bindResize){d(b).bind("resize",function(){j.invalidate()})}this.invalidate()}this.invalidate=function(){var n=g(h.fontSize);var m=g(h.minFontSize);var l=g(h.maxFontSize);n=m?Math.max(n,m):n;n=l?Math.min(n,l):n;d(i).css("fontSize",n+"px")};k.call(this)};d.fn[c]=function(g){g=d.extend({},f,g);return this.each(function(){if(!d(this).data(c)){d(this).data(c,new a(this,g))}return d(this)})}})(jQuery,window);
|
@@ -0,0 +1,73 @@
|
|
1
|
+
|
2
|
+
(function ( $, window) {
|
3
|
+
|
4
|
+
var defaults = {
|
5
|
+
duration: 500,
|
6
|
+
queue: false,
|
7
|
+
offset: {
|
8
|
+
left: 0,
|
9
|
+
top: 0
|
10
|
+
}
|
11
|
+
};
|
12
|
+
|
13
|
+
function scrollInteractionHandler() {
|
14
|
+
var element = this == window ? $('html, body') : this;
|
15
|
+
$(element).stop();
|
16
|
+
}
|
17
|
+
|
18
|
+
function scrollTo(x, y, options) {
|
19
|
+
|
20
|
+
// console.log("SCROLL TO: ", x, y);
|
21
|
+
|
22
|
+
var element = this[0] == window ? $('html, body') : this;
|
23
|
+
var containerOffset = element.offset();
|
24
|
+
|
25
|
+
var a = arguments;
|
26
|
+
var object = a[0] instanceof jQuery ? a[0][0] : a[0];
|
27
|
+
|
28
|
+
if (typeof object == 'object' && object != null) {
|
29
|
+
options = a[1];
|
30
|
+
if (object.nodeType == 1) {
|
31
|
+
// get element's position
|
32
|
+
var elemOffset = $(object).offset();
|
33
|
+
x = Math.ceil(elemOffset.left) - containerOffset.left;
|
34
|
+
y = Math.ceil(elemOffset.top) - containerOffset.top;
|
35
|
+
} else {
|
36
|
+
x = object.x || object.left;
|
37
|
+
y = object.y || object.top;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
options = $.extend(true, {}, defaults, options);
|
42
|
+
if (typeof object == 'undefined' || object == null) {
|
43
|
+
return null;
|
44
|
+
}
|
45
|
+
|
46
|
+
var offset = options.offset;
|
47
|
+
x-= offset.left;
|
48
|
+
y-= offset.top;
|
49
|
+
delete options.offset;
|
50
|
+
|
51
|
+
$(this).unbind('onmousewheel DOMMouseScroll touchmove', scrollInteractionHandler);
|
52
|
+
$(this).bind('onmousewheel DOMMouseScroll touchmove', scrollInteractionHandler);
|
53
|
+
|
54
|
+
var complete = options.complete;
|
55
|
+
options.complete = function() {
|
56
|
+
$(element).unbind('onmousewheel DOMMouseScroll touchmove', scrollInteractionHandler);
|
57
|
+
if (typeof complete == 'function') complete.apply(this, arguments);
|
58
|
+
};
|
59
|
+
|
60
|
+
$(element).animate({
|
61
|
+
scrollTop: y,
|
62
|
+
scrollLeft: x
|
63
|
+
}, options);
|
64
|
+
|
65
|
+
};
|
66
|
+
|
67
|
+
|
68
|
+
$.fn['scrollTo'] = scrollTo;
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
})( jQuery, window );
|
@@ -0,0 +1,2 @@
|
|
1
|
+
|
2
|
+
(function(c,b){var e={duration:500,queue:false,offset:{left:0,top:0}};function d(){var f=this==b?c("html, body"):this;c(f).stop()}function a(n,l,o){var i=this[0]==b?c("html, body"):this;var j=i.offset();var m=arguments;var g=m[0] instanceof jQuery?m[0][0]:m[0];if(typeof g=="object"&&g!=null){o=m[1];if(g.nodeType==1){var k=c(g).offset();n=Math.ceil(k.left)-j.left;l=Math.ceil(k.top)-j.top}else{n=g.x||g.left;l=g.y||g.top}}o=c.extend(true,{},e,o);if(typeof g=="undefined"||g==null){return null}var h=o.offset;n-=h.left;l-=h.top;delete o.offset;c(this).unbind("onmousewheel DOMMouseScroll touchmove",d);c(this).bind("onmousewheel DOMMouseScroll touchmove",d);var f=o.complete;o.complete=function(){c(i).unbind("onmousewheel DOMMouseScroll touchmove",d);if(typeof f=="function"){f.apply(this,arguments)}};c(i).animate({scrollTop:l,scrollLeft:n},o)}c.fn.scrollTo=a})(jQuery,window);
|
@@ -48,7 +48,6 @@
|
|
48
48
|
var scrollingTimeoutId = null;
|
49
49
|
|
50
50
|
$element.bind('touchstart', function(event) {
|
51
|
-
|
52
51
|
touchStartScrollPos = null;
|
53
52
|
overflowContainer = getOverflowContainer(event.target);
|
54
53
|
if (overflowContainer) {
|
@@ -64,13 +63,10 @@
|
|
64
63
|
scrolling = false;
|
65
64
|
touchStartElement = event.target;
|
66
65
|
|
67
|
-
$(event.target).unbind('scroll', scrollHandler);
|
68
66
|
if (overflowContainer && (overflowContainer.scrollHeight > 0 || overflowContainer.scrollWidth > 0)) {
|
69
67
|
$(overflowContainer).bind('scroll', scrollHandler);
|
70
68
|
}
|
71
69
|
|
72
|
-
$(event.target).unbind('click', preventClickHandler);
|
73
|
-
|
74
70
|
});
|
75
71
|
|
76
72
|
$element.bind('touchmove', function(event) {
|
@@ -90,19 +86,17 @@
|
|
90
86
|
|
91
87
|
function preventClickHandler(event, custom) {
|
92
88
|
|
93
|
-
|
94
|
-
|
95
89
|
if (!custom) {
|
96
90
|
// prevent original event
|
97
|
-
|
98
|
-
// prevent propagation
|
91
|
+
event.preventDefault();
|
99
92
|
event.stopImmediatePropagation();
|
93
|
+
// remove listener
|
100
94
|
$(this).unbind('click', preventClickHandler);
|
101
|
-
|
102
95
|
} else {
|
103
96
|
// custom click actions
|
104
97
|
|
105
|
-
|
98
|
+
// focus the element
|
99
|
+
$(event.target).focus();
|
106
100
|
|
107
101
|
// open links
|
108
102
|
window.setTimeout(function() {
|
@@ -118,10 +112,9 @@
|
|
118
112
|
|
119
113
|
$element.bind('touchend', function(event) {
|
120
114
|
|
121
|
-
$(event.target).unbind('click', preventClickHandler);
|
122
|
-
|
123
115
|
if (!scrolling && !dragging && event.target == touchStartElement) {
|
124
116
|
|
117
|
+
$(event.target).unbind('click', preventClickHandler);
|
125
118
|
$(event.target).bind('click', preventClickHandler);
|
126
119
|
|
127
120
|
var events = jQuery._data(event.target).events;
|
@@ -130,13 +123,13 @@
|
|
130
123
|
onClickHandlers.splice(0, 0, onClickHandlers.pop());
|
131
124
|
}
|
132
125
|
|
126
|
+
// $(event.target).focus();
|
127
|
+
|
133
128
|
$(event.target).trigger({
|
134
129
|
type: 'click',
|
135
130
|
bubbles: true
|
136
131
|
}, [true]);
|
137
|
-
|
138
|
-
$(event.target).focus();
|
139
|
-
|
132
|
+
|
140
133
|
event.preventDefault();
|
141
134
|
event.stopImmediatePropagation();
|
142
135
|
}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
|
2
|
+
+function(f,c){c.console=c.console||{log:function(){},info:function(){}};var e="touchclick";var g={draggingTimeout:100,scrollingTimeout:750,preventClickTimeout:500};function b(h){while(h&&h.nodeType==1){if(h.nodeName.toLowerCase()=="body"||h.nodeName.toLowerCase()=="html"){break}var i=f(h).css("overflow");if(i=="auto"||i=="scroll"){return h}h=h.parentNode}return c}var a=function d(m,v){var h=this;var u=f(m);var j=f(c);var t=false;var s=null;var q=false;var k=null;var r=null;var n=false;var p=null;var o=null;u.bind("touchstart",function(w){p=null;r=b(w.target);if(r){var x={x:r.scrollLeft,y:r.scrollTop};p=x}c.clearTimeout(s);c.clearTimeout(o);t=false;n=false;k=w.target;if(r&&(r.scrollHeight>0||r.scrollWidth>0)){f(r).bind("scroll",i)}});u.bind("touchmove",function(w){t=true;if(r){var x={x:r.scrollLeft,y:r.scrollTop};if(p){if(p.x!=x.x||p.y!=x.y){n=true}}}});function l(w,x){if(!x){w.preventDefault();w.stopImmediatePropagation();f(this).unbind("click",l)}else{f(w.target).focus();c.setTimeout(function(){if(x&&!w.isDefaultPrevented()){var y=f(w.target).is("a[href]")?w.target:f(w.target).parents("a[href]")[0];if(y&&y.href){c.location.href=y.href}}},1)}}u.bind("touchend",function(y){if(!n&&!t&&y.target==k){f(y.target).unbind("click",l);f(y.target).bind("click",l);var x=jQuery._data(y.target).events;if(x&&x.click&&x.click.length>1){var w=x.click;w.splice(0,0,w.pop())}f(y.target).trigger({type:"click",bubbles:true},[true]);y.preventDefault();y.stopImmediatePropagation()}c.clearTimeout(s);s=c.setTimeout(function(){t=false},v.draggingTimeout)});function i(w){n=true;c.clearTimeout(s);s=c.setTimeout(function(){n=false;f(this).unbind("scroll",i)},v.scrollingTimeout)}};f.fn[e]=function(h){h=f.extend({},g,h);return this.each(function(){if(!f(this).data(e)){f(this).data(e,new a(this,h))}return f(this)})}}(jQuery,window);
|
data/vendor/assets/stylesheets/benignware/{jquery-checkview.bootstrap.css → bootstrap.checkView.css}
RENAMED
File without changes
|
@@ -0,0 +1,17 @@
|
|
1
|
+
|
2
|
+
.btn-checkview {
|
3
|
+
background-color: #FFFFFF;
|
4
|
+
border: 1px solid #333333;
|
5
|
+
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
6
|
+
}
|
7
|
+
|
8
|
+
.btn-checkview:focus {
|
9
|
+
/* add custom focus styles here */
|
10
|
+
}
|
11
|
+
|
12
|
+
.btn-checkview .icon-ok {
|
13
|
+
width: 1em;
|
14
|
+
height: 1em;
|
15
|
+
display: inline-block;
|
16
|
+
background: url('http://cdn.dustball.com/tick.png') no-repeat center
|
17
|
+
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jquery-benignware-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- rexblack
|
@@ -47,12 +47,19 @@ files:
|
|
47
47
|
- lib/jquery-benignware-rails.rb
|
48
48
|
- lib/jquery-benignware-rails/version.rb
|
49
49
|
- vendor/assets/javascripts/benignware/bootstrap.dropdown-control.js
|
50
|
-
- vendor/assets/javascripts/benignware/
|
51
|
-
- vendor/assets/javascripts/benignware/jquery.checkView.js
|
50
|
+
- vendor/assets/javascripts/benignware/bootstrap.dropdown-control.min.js
|
51
|
+
- vendor/assets/javascripts/benignware/jquery.checkView.min.js
|
52
|
+
- vendor/assets/javascripts/benignware/jquery.checkview.js
|
52
53
|
- vendor/assets/javascripts/benignware/jquery.nativepicker.js
|
54
|
+
- vendor/assets/javascripts/benignware/jquery.nativepicker.min.js
|
53
55
|
- vendor/assets/javascripts/benignware/jquery.responsiveText.js
|
56
|
+
- vendor/assets/javascripts/benignware/jquery.responsiveText.min.js
|
57
|
+
- vendor/assets/javascripts/benignware/jquery.scroll-to.js
|
58
|
+
- vendor/assets/javascripts/benignware/jquery.scroll-to.min.js
|
54
59
|
- vendor/assets/javascripts/benignware/jquery.touchclick.js
|
55
|
-
- vendor/assets/
|
60
|
+
- vendor/assets/javascripts/benignware/jquery.touchclick.min.js
|
61
|
+
- vendor/assets/stylesheets/benignware/bootstrap.checkView.css
|
62
|
+
- vendor/assets/stylesheets/benignware/checkview.css
|
56
63
|
homepage: ''
|
57
64
|
licenses: []
|
58
65
|
metadata: {}
|
@@ -1,87 +0,0 @@
|
|
1
|
-
|
2
|
-
// Ensure private scope + aliases
|
3
|
-
(function ( $, window) {
|
4
|
-
|
5
|
-
function getDocHeight(){
|
6
|
-
var doc = document;
|
7
|
-
return Math.max(Math.max(doc.body.scrollHeight, doc.documentElement.scrollHeight), Math.max(doc.body.offsetHeight, doc.documentElement.offsetHeight), Math.max(doc.body.clientHeight, doc.documentElement.clientHeight));
|
8
|
-
};
|
9
|
-
|
10
|
-
|
11
|
-
/**
|
12
|
-
* jQuery-Plugin: BackToTop
|
13
|
-
*
|
14
|
-
* simple "scroll to top"-link
|
15
|
-
*
|
16
|
-
*/
|
17
|
-
|
18
|
-
var pluginName = 'backToTop';
|
19
|
-
|
20
|
-
var defaults = {
|
21
|
-
duration: 500,
|
22
|
-
easing: 'swing',
|
23
|
-
autoHide: true
|
24
|
-
};
|
25
|
-
|
26
|
-
var pluginClass = function BackToTop(element, options) {
|
27
|
-
|
28
|
-
var scrollToTop = this;
|
29
|
-
|
30
|
-
var $element = $(element);
|
31
|
-
var $window = $(window);
|
32
|
-
|
33
|
-
function resize() {
|
34
|
-
|
35
|
-
if (options.autoHide) {
|
36
|
-
$element.css('display', '');
|
37
|
-
var dh = getDocHeight();
|
38
|
-
var vh = $window.height();
|
39
|
-
if (vh >= dh) {
|
40
|
-
$element.css('display', 'none');
|
41
|
-
}
|
42
|
-
|
43
|
-
}
|
44
|
-
}
|
45
|
-
|
46
|
-
function init() {
|
47
|
-
$element.css('cursor', 'pointer');
|
48
|
-
$element.bind('click', function() {
|
49
|
-
$('html,body').animate({
|
50
|
-
scrollTop: 0
|
51
|
-
}, {
|
52
|
-
duration: options.duration,
|
53
|
-
easing: options.easing
|
54
|
-
});
|
55
|
-
});
|
56
|
-
|
57
|
-
$window.bind('resize', resize);
|
58
|
-
}
|
59
|
-
|
60
|
-
resize();
|
61
|
-
|
62
|
-
init.call(this);
|
63
|
-
|
64
|
-
};
|
65
|
-
|
66
|
-
|
67
|
-
// bootstrap plugin
|
68
|
-
|
69
|
-
$.fn[pluginName] = function(options) {
|
70
|
-
|
71
|
-
options = $.extend({}, defaults, options);
|
72
|
-
|
73
|
-
return this.each(function() {
|
74
|
-
|
75
|
-
if (!$(this).data(pluginName)) {
|
76
|
-
|
77
|
-
$(this).data(pluginName, new pluginClass(this, options));
|
78
|
-
|
79
|
-
}
|
80
|
-
|
81
|
-
return $(this);
|
82
|
-
|
83
|
-
});
|
84
|
-
|
85
|
-
};
|
86
|
-
|
87
|
-
})( jQuery, window );
|