This file contains 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
/* | |
By Osvaldas Valutis, www.osvaldas.info | |
Available for use under the MIT License | |
*/ | |
;( function( $, window, document, undefined ) | |
{ | |
var s = document.body || document.documentElement, s = s.style, prefixAnimation = '', prefixTransition = ''; | |
if( s.WebkitAnimation == '' ) prefixAnimation = '-webkit-'; |
This file contains 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 scrollWidth = (function() { | |
var scrollDiv = document.createElement("div"); | |
scrollDiv.className = "scrollbar-measure"; | |
document.body.appendChild(scrollDiv); | |
var scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth; | |
document.body.removeChild(scrollDiv); | |
return scrollbarWidth; |
This file contains 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
/** | |
* The width of the viewport. | |
* Does not include the scroll bar. | |
*/ | |
function viewportWidth () { | |
return document.documentElement.clientWidth; | |
} | |
/** |
This file contains 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
module = function(){ | |
var current = null; | |
var labels = { | |
'home':'home', | |
'articles':'articles', | |
'contact':'contact' | |
}; | |
var init = function(){ | |
}; | |
var show = function(){ |
This file contains 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
.center-container { | |
position: relative; | |
} | |
.absolute-center { | |
margin: auto; | |
position: absolute; | |
top: 0; left: 0; bottom: 0; right: 0; | |
} |
This file contains 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
/** | |
* jQuery Plugin Boilerplate | |
* Author: Sergey Khilko | |
* | |
* Usage Examples: | |
* $('#id').pluginName({ option: 'value' }); | |
* $('#id').pluginName('function', arg1, arg2); | |
* $('#id').data("pluginName").function(arg1, arg2); | |
* | |
* Based on: |