Built with blockbuilder.org
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
$.scrollIt({ | |
upKey: 38, // key code to navigate to the next section | |
downKey: 40, // key code to navigate to the previous section | |
easing: 'linear', // the easing function for animation | |
scrollTime: 600, // how long (in ms) the animation takes | |
activeClass: 'active', // class given to the active nav element | |
onPageChange: null, // function(pageIndex) that is called when page is changed | |
topOffset: 0 // offste (in px) for fixed top navigation | |
}); |
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
<script src="jquery-1.10.2.min.js" type="text/javascript"></script> | |
<script src="scrollIt.js" type="text/javascript"></script> |
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
<div data-scroll-index="0">..content..</div> | |
<div data-scroll-index="1">...</div> | |
<div data-scroll-index="2">...</div> |
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
<a data-scroll-nav="0">About</a> | |
<a data-scroll-nav="1">Usage</a> | |
<a data-scroll-nav="2">Options</a> |
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
<a data-scroll-goto="0">Back to top</a> |
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
$(function(){ | |
$.scrollIt(); | |
}); |
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
$(document).on 'page:load', () -> | |
return unless $('#ca-vis').length | |
# | |
margin = { top: 0, right: 60, left: 50, bottom: 100 } | |
width = $('.container').width() - margin.right - margin.left | |
height = 540 - margin.top - margin.bottom | |
colors = ['#8dd3c7', '#E1C368', '#bebada', '#fb8072', '#80b1d3', '#fdb462', | |
'#b3de69', '#fccde5', '#d9d9d9', '#bc80bd', '#ccebc5', '#ffed6f'] |
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
<!DOCTYPE html> | |
<head> | |
<meta charset="utf-8"> | |
<style> | |
path { | |
fill: none; | |
} | |
#airports circle { | |
fill: #333333; | |
} |
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
syntax enable | |
set nu | |
set et | |
set tabstop=2 | |
set autoindent | |
set pastetoggle=<F2> | |
" Show trailing whitespace | |
highlight ExtraWhitespace ctermbg=red guibg=red | |
match ExtraWhitespace /\s\+$/ |
OlderNewer