This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var JSONP = function(apiurl, params, options) { | |
| if (params) { | |
| this.apiurl = this.constructURL_(apiurl, params); | |
| } | |
| this.conf = { | |
| callbackKey: 'callback', | |
| callbackName: 'uni', | |
| paramDelimiter: '&' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Extract textNodes from the tree of given root element. And apply given | |
| * function to each textNodes. | |
| * @param {HTMLElement} rootEl Target DOM sub tree root. | |
| * @param {Function} processor Processor function | |
| * @param {Object} option Config to override | |
| */ | |
| var processTextNodes = function(rootEl, processor, option) { | |
| var conf = { | |
| dummyElementName: 'dummy', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var watchInview = function(el) { | |
| // Get most closest element which has scrollbar. | |
| var scrollContainer = getAncestors(el).find(function(el) { | |
| return el.scrollHeight > el.offsetHeight || el.scrollWidth > el.offsetWidth; | |
| }); | |
| el.scrollContainer = | |
| (scrollContainer instanceof HTMLBodyElement)? window: scrollContainer; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var $ = function(q, f){ | |
| return [][(f? 'forEach': 'slice')].call(document.querySelectorAll(q), f || 0); | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var watchSwipe = function(el) { | |
| var d = {}; | |
| var SWIPWE = 'swipe', | |
| FLICK = 'flick', | |
| DIRECTIONS = ['Up', 'Left', 'Right', 'Down'], | |
| SWIPE_MIN_MOVE = 50, | |
| FLICK_MIN_MOVE = 30, | |
| FLICK_MIN_VELO = 1; | |
| el.touchstartListener_ = function(e) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Parallax class provides parallax effect for multiple elements. | |
| * @constructor | |
| */ | |
| var Parallax = function(expr) { | |
| this.targets = []; | |
| if (typeof expr === 'string') { | |
| this.init(expr); | |
| } | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| packages: [ | |
| "atom-beautify" | |
| "autocomplete-paths" | |
| "color-picker" | |
| "comment" | |
| "docblockr" | |
| "emmet" | |
| "file-icons" | |
| "flatland-dark" | |
| "flatland-dark-ui" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0"?> | |
| <root> | |
| <list> | |
| <item> | |
| <name>Kotarok custom setting</name> | |
| <item> | |
| <name>Kana with IJKL to cursor (and more)</name> | |
| <!-- <appendix>EISUU/KANA to toggle them each other.</appendix> --> | |
| <identifier>remap.kanaijklcursor</identifier> | |
| <autogen>__KeyOverlaidModifier__ KeyCode::JIS_EISUU, KeyCode::OPTION_L, KeyCode::VK_JIS_TOGGLE_EISUU_KANA</autogen> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var ListShuffler = function(targetExpr, itemExpr) { | |
| this.targetExpr = targetExpr || ''; | |
| this.itemExpr = itemExpr || 'li'; | |
| this.targetEl = {}; | |
| this.items = []; | |
| this.init(); | |
| this.do(); | |
| } | |
| ListShuffler.prototype.init = function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Define custom color name. | |
| $my-red: #ee3333; | |
| $my-blue: #3333ee; | |
| // Then assign thme to role or context based name variables. | |
| $header-bg: $my-red; | |
| $header-active-fg: $my-blue; | |
| // Bind them to elements finally. | |
| .header { |