ratchet_design 0.1.16 → 0.1.17

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2d45c37c75eb790fa86dc44e2d8b71fc019128c4
4
- data.tar.gz: 057f0d38e1659f967bfa9762a8593239207a0590
3
+ metadata.gz: aa2cc12ed79853e64afc9ecee2a1ad894bd46ded
4
+ data.tar.gz: 0fd055dfd76329487557080e2f17a9892b0d1a02
5
5
  SHA512:
6
- metadata.gz: 2d9ebd24e866a00478e59b560e5f682e1f5b82239a03fbe48e2c90df58fc092d25808bc032aae17de9c67acaca76135e93bdb33d483d3065f10d65e3847ad804
7
- data.tar.gz: 5d869dfbed1bdf15d173eab95b90e349a35468c6eca70482f834e664f88b54bbef76873a4c137e26de095de99bd72c5cb6c34ee76fa2c9d1173912d972e32d71
6
+ metadata.gz: 82ce272bda62087a1cc46a45635ab5a6c180a2eff90a73668d64fd2584ee2f9067a223bd34db312547cf154cba232e6d4195ccc4cf492a8c96c75d74728c47c1
7
+ data.tar.gz: 7fc0540eca557bcbfd9221a0749c693ae84f5d27e871621ea4d030368cd9936e6008b4dc2a5d269a7a43fc2c300f2cf3b904d22c58d8d6ee7c6d6fcf24d977c0
@@ -23,7 +23,6 @@ var esvg = require( './_svg' )
23
23
  var toolbox = require( 'compose-toolbox' )
24
24
  var event = toolbox.event
25
25
  var ajax = require( 'superagent' )
26
- var rangeTouch = require( 'rangetouch' )
27
26
  var highlighter = require( 'compose-code-highlighter' )
28
27
  var loader = require( 'compose-loader' )
29
28
 
@@ -42,8 +41,6 @@ require( 'codemirror/mode/clike/clike' )
42
41
  require( 'codemirror/addon/runmode/runmode' )
43
42
  require( 'codemirror/addon/edit/matchbrackets' )
44
43
 
45
- // Initialize component features
46
- rangeTouch.set("thumbWidth", 20); // Annoying hack to make input ranges work smoothly on touch devices
47
44
 
48
45
  event.scroll.disablePointer() // disable pointer events on scroll for performance (to avoid extra repaints)
49
46
 
@@ -61,6 +58,12 @@ event.change( function() {
61
58
  highlighter.highlight()
62
59
  });
63
60
 
61
+ event.ready( function() {
62
+ var rangeTouch = require('rangetouch') // mobile accessiblity on sliders
63
+ // Initialize component features
64
+ rangeTouch.set("thumbWidth", 20); // Annoying hack to make input ranges work smoothly on touch devices
65
+ });
66
+
64
67
  // Public API object
65
68
  var ratchet = toolbox.merge( {
66
69
  loadFont : loadFont,
@@ -1,3 +1,3 @@
1
1
  module RatchetDesign
2
- VERSION = "0.1.16"
2
+ VERSION = "0.1.17"
3
3
  end
@@ -7,7 +7,7 @@
7
7
  },{"compose-toolbox":50}],4:[function(require,module,exports){
8
8
  "use strict";function syncValue(e){e=e.target||e,e.classList.toggle("empty",!e.value.trim().length)}var toolbox=require("compose-toolbox"),Event=toolbox.event,textSelectors="textarea, input:not([type=radio]):not([type=checkbox]):not([type=range]):not([type=hidden]):not([type=submit]):not([type=image]):not([type=reset])";Event.change(function(){toolbox.each(document.querySelectorAll(textSelectors),syncValue)}),Event.on(document,"keyup",textSelectors,Event.debounce(syncValue,100));
9
9
  },{"compose-toolbox":50}],5:[function(require,module,exports){
10
- "use strict";var loadFont=require("./utility/load_font"),loadScript=require("./utility/load_script"),toggler=require("compose-toggler"),mobileMenu=require("./base/mobilemenu"),form=require("./base/form"),formUp=require("compose-form-up");require("./base/sync-input-value"),Object.assign(form,formUp);var waypoints=require("./enhancement/waypoints"),notice=require("./enhancement/notice"),sticky=require("./enhancement/sticky"),lightbox=require("./enhancement/lightbox"),esvg=require("./_svg"),toolbox=require("compose-toolbox"),event=toolbox.event,ajax=require("superagent"),rangeTouch=require("rangetouch"),highlighter=require("compose-code-highlighter"),loader=require("compose-loader");require("codemirror/mode/htmlmixed/htmlmixed"),require("codemirror/mode/slim/slim"),require("codemirror/mode/javascript/javascript"),require("codemirror/mode/css/css"),require("codemirror/mode/sql/sql"),require("codemirror/mode/php/php"),require("codemirror/mode/ruby/ruby"),require("codemirror/mode/shell/shell"),require("codemirror/mode/go/go"),require("codemirror/mode/python/python"),require("codemirror/mode/yaml/yaml"),require("codemirror/mode/clike/clike"),require("codemirror/addon/runmode/runmode"),require("codemirror/addon/edit/matchbrackets"),rangeTouch.set("thumbWidth",20),event.scroll.disablePointer(),event.change(function(){form(),highlighter.highlight()});var ratchet=toolbox.merge({loadFont:loadFont,loadScript:loadScript,ajax:ajax,loader:loader,mobileMenu:mobileMenu,form:form,toggler:toggler,waypoints:waypoints,notice:notice,sticky:sticky,lightbox:lightbox,esvg:esvg},toolbox);window.ratchet=module.exports=ratchet;
10
+ "use strict";var loadFont=require("./utility/load_font"),loadScript=require("./utility/load_script"),toggler=require("compose-toggler"),mobileMenu=require("./base/mobilemenu"),form=require("./base/form"),formUp=require("compose-form-up");require("./base/sync-input-value"),Object.assign(form,formUp);var waypoints=require("./enhancement/waypoints"),notice=require("./enhancement/notice"),sticky=require("./enhancement/sticky"),lightbox=require("./enhancement/lightbox"),esvg=require("./_svg"),toolbox=require("compose-toolbox"),event=toolbox.event,ajax=require("superagent"),highlighter=require("compose-code-highlighter"),loader=require("compose-loader");require("codemirror/mode/htmlmixed/htmlmixed"),require("codemirror/mode/slim/slim"),require("codemirror/mode/javascript/javascript"),require("codemirror/mode/css/css"),require("codemirror/mode/sql/sql"),require("codemirror/mode/php/php"),require("codemirror/mode/ruby/ruby"),require("codemirror/mode/shell/shell"),require("codemirror/mode/go/go"),require("codemirror/mode/python/python"),require("codemirror/mode/yaml/yaml"),require("codemirror/mode/clike/clike"),require("codemirror/addon/runmode/runmode"),require("codemirror/addon/edit/matchbrackets"),event.scroll.disablePointer(),event.change(function(){form(),highlighter.highlight()}),event.ready(function(){require("rangetouch").set("thumbWidth",20)});var ratchet=toolbox.merge({loadFont:loadFont,loadScript:loadScript,ajax:ajax,loader:loader,mobileMenu:mobileMenu,form:form,toggler:toggler,waypoints:waypoints,notice:notice,sticky:sticky,lightbox:lightbox,esvg:esvg},toolbox);window.ratchet=module.exports=ratchet;
11
11
  },{"./_svg":1,"./base/form":2,"./base/mobilemenu":3,"./base/sync-input-value":4,"./enhancement/lightbox":6,"./enhancement/notice":7,"./enhancement/sticky":8,"./enhancement/waypoints":9,"./utility/load_font":10,"./utility/load_script":11,"codemirror/addon/edit/matchbrackets":13,"codemirror/addon/runmode/runmode":14,"codemirror/mode/clike/clike":16,"codemirror/mode/css/css":17,"codemirror/mode/go/go":18,"codemirror/mode/htmlmixed/htmlmixed":19,"codemirror/mode/javascript/javascript":20,"codemirror/mode/php/php":21,"codemirror/mode/python/python":22,"codemirror/mode/ruby/ruby":23,"codemirror/mode/shell/shell":24,"codemirror/mode/slim/slim":25,"codemirror/mode/sql/sql":26,"codemirror/mode/yaml/yaml":28,"compose-code-highlighter":29,"compose-form-up":45,"compose-loader":48,"compose-toggler":49,"compose-toolbox":50,"rangetouch":57,"superagent":58}],6:[function(require,module,exports){
12
12
  "use strict";var toolbox=require("compose-toolbox"),Event=toolbox.event,delay=toolbox.delay,loader=require("compose-loader"),lightbox=function(e,o){function t(){s.insertAdjacentHTML("afterbegin",'<aside class="lightbox"><figure><img src="" alt=""><button></button></figure></aside>'),c=document.querySelector(".lightbox img")}function n(e){if(e&&"IMG"===e.target.tagName)return!1;m.remove(),s.classList.remove("lightbox-active"),c.classList.remove("loaded"),c.src=""}function i(e){m.loading(),c.src=e.parentNode.href,s.classList.add("lightbox-active")}function r(){m.remove(),c.classList.add("loaded")}function a(e){delay(function(){m.failure()},1e3),delay(function(){n()},2500),Event.off(c,"load",r),Event.off(c,"error",a)}function l(e){if(e.preventDefault(),g.matches)return!1;document.querySelector(".lightbox")||t(),Event.keyOne("esc",n),i(e.target),c.complete?r():(Event.on(c,"load",r),Event.on(c,"error",a))}e=e||"a[href$=jpg] ,a[href$=png], a[href$=gif], a[href$=svg]";var c,d={initWidth:"700px"},f=toolbox.merge(d,o),u=document.querySelector(e),g=window.matchMedia("(max-width: "+f.initWidth+")"),s=document.body,m=loader.new({loading:"Loading image",failure:"No image found"});if(!u)return!1;Event.on(document,"click","a[href$=jpg], a[href$=png], a[href$=gif], a[href$=svg]",l),Event.on(document,"click",".lightbox",n)};module.exports=lightbox;
13
13
  },{"compose-loader":48,"compose-toolbox":50}],7:[function(require,module,exports){
@@ -131,4 +131,4 @@ function Emitter(t){if(t)return mixin(t)}function mixin(t){for(var e in Emitter.
131
131
  });
132
132
 
133
133
 
134
- //# sourceMappingURL=/assets/ratchet/core-0.1.16.map.json
134
+ //# sourceMappingURL=/assets/ratchet/core-0.1.17.map.json
Binary file