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
jQuery(document).ready(function($){ | |
var content = $('.works'); | |
if( content.length > 0 ) { | |
// cache jQuery objects | |
var windowHeight = $(window).height(), | |
works = content.find('.work'), | |
navbar = $('.navbar'), | |
workSidebarLinks = navbar.find('li'); | |
// initialize variables |
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
// Make punctuation smarter | |
jQuery.fn.smarten = (function() { | |
function smartenNode(node) { | |
if (node.nodeType === 3) { | |
node.data = node.data | |
.replace(/(^|[-\u2014/(\[{"\s])'/g, "$1\u2018") // Opening singles | |
.replace(/'/g, "\u2019") // Closing singles & apostrophes | |
.replace(/(^|[-\u2014/(\[{\u2018\s])"/g, "$1\u201c") // Opening doubles | |
.replace(/"/g, "\u201d") // Closing doubles |
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
.container-fluid, | |
.container, | |
%container { | |
margin-right: auto; | |
margin-left: auto; | |
padding-right: #{$grid-gutter-width}; | |
padding-left: #{$grid-gutter-width}; | |
} | |
.row, |
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
@mixin grid-width($cols, $has-gutter:true) { | |
@if $has-gutter { | |
width: calc(((100% / #{$grid-columns}) * #{$cols}) - #{$grid-gutter-width}); | |
margin-left: $grid-gutter-width / 2; | |
margin-right: $grid-gutter-width / 2; | |
} @else { | |
width: calc((100% / #{$grid-columns}) * #{$cols}); | |
} | |
} |
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
App.info({ | |
name: 'App Name', | |
version: '1.0.0', | |
description: 'App Description', | |
author: 'YOU', | |
email: '[email protected]', | |
website: 'http://j0ey.co' | |
}); | |
// Set up resources such as icons and launch screens. |
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($) { | |
let $appContainer = $('#app'); | |
// window.scrollTo(0, 0); | |
window.onscroll = function() { | |
let thisScrollTop = Math.round($(this).scrollTop()), | |
thisInnerHeight = Math.round($(this).innerHeight()), | |
containeR = window, | |
containeD = document, | |
scrollPercent = 1 * $(containeR).scrollTop() / ($(containeD).height() - $(containeR).height()); |
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
/* | |
jslint node: true, browser: true, devel: true, strict:false, debug:true | |
Load Bootstrap Carousel | |
Dependencies: lazyloadsrcset | |
by: Joe Burdick | |
*/ | |
/*jshint -W087 */ |
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
$class-slug: col !default; | |
$gutter: 1rem; | |
.clearfix{ | |
&:before, | |
&:after { | |
content: " "; | |
display: table; | |
} | |
&:after { |
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
require([ | |
'react', | |
'lodash', | |
'jquery' | |
], function(React, _, jQuery) { | |
var getRandomColor = _.memoize(function(tok) { | |
var letters = '0123456789ABCDEF'.split(''); | |
var color = '#'; | |
for (var i = 0; i < 6; i++ ) { |