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 wakaTimer; | |
| function blurWindow(){ | |
| wakaTimer = setInterval(function(){ | |
| handleAction(true); | |
| }, 5e3); | |
| } | |
| function setupEventListeners() { | |
| MainViewManager.on('currentFileChange', 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
| // Vertical align inside DIV | |
| // <span class="valign">Some content</span> | |
| // <span class="vfix"></span> | |
| .valign {display: inline-block;vertical-align: middle; max-width: 98%} | |
| .vfix {display: inline-block;height: 100%;vertical-align: middle;width: 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
| //gallery scroll | |
| var gScroll = $('#gallery .row .gscroll'); | |
| function gLoop(){ | |
| var gHeight = gScroll.height() - $('#gallery').height(), | |
| gTop = parseInt(gScroll.position().top * -1, 10); | |
| if(gTop <= gHeight) { | |
| gScroll.stop().animate({top:'-=10'}, 25, 'linear', gLoop); | |
| } |
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
| $green: #008744; | |
| $blue: #0057e7; | |
| $red: #d62d20; | |
| $yellow: #ffa700; | |
| // scaling... any units | |
| $width: 30px; | |
| .showbox { | |
| -webkit-transition: all .5s ease; |
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
| function exGAP(){ | |
| 'use strict'; | |
| $('.is__gap').each(function(){ | |
| var t = $(this), | |
| off = t.offset().top, | |
| step = t.data('step'), | |
| reverse = t.hasClass('__reverse') ? -1 : 1; | |
| if( screen() >= off - screen('height')) { | |
| t.css('background-position','50% '+ reverse * parseInt( ( screen() - off ) / (step || 4) , 10) + 'px'); | |
| } |
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
| cd /System/Library/CoreServices/Finder.app/Contents/Resources/English.lproj/ (or whatever language you're running) | |
| sudo plutil -convert xml1 InfoPlist.strings | |
| sudo nano InfoPlist.strings (edit folder here) | |
| sudo plutil -convert binary1 InfoPlist.strings |
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
| function resizeIframe(iframe) { | |
| iframe.height = iframe.contentWindow.document.body.scrollHeight + "px"; | |
| } | |
| function iFrameLoaded( id, src ) { | |
| var deferred = $.Deferred(), | |
| iframe = $( "<iframe class='hiddenFrame' onload='resizeIframe(this)' width='100%' scrollin='no'></iframe>" ).attr({ | |
| "id": id, | |
| "src": src | |
| }); |
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 supportsTouch = window.hasOwnProperty('ontouchstart') || window.navigator.msPointerEnabled ? true : false, | |
| $.fn.mobileFix = function (options) { | |
| var $parent = $(this), | |
| $fixedElements = $(options.fixedElements); | |
| $(document) | |
| .on('focus', options.inputElements, function(e) { | |
| $parent.addClass(options.addClass); | |
| }) |
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
| .input-number-box { | |
| @include transform(translate3d(0,0,0)); | |
| @include border-radius(5px); | |
| position: relative; | |
| background: #000; | |
| overflow: hidden; | |
| text-align: left; | |
| width: 100px; | |
| * {@include transform(translate3d(0,0,0));} |
OlderNewer