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
// https://gist.github.com/3069522 | |
;(function($, window, document, undefined) { | |
// Prepare our Variables | |
var History = window.History; | |
// Check to see if History.js is enabled for our Browser | |
if (!History.enabled) { | |
return false; | |
} |
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($) { | |
/** | |
* | |
* This plugin is released under the MIT Licene (http://opensource.org/licenses/MIT) | |
* | |
* RoyalSlider HTML5 HistoryApi Plugin by Conrad Barthelmes | |
* | |
* @requires RoyalSlider http://dimsemenov.com/plugins/royal-slider/ | |
* @requires History.js API https://github.com/balupton/History.js/ | |
* - bundled jquery.history.js for html4+html5 support |
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
<form method="post" action="" accept-charset="UTF-8"> | |
<input type="hidden" name="action" value="entries/saveEntry"> | |
<input type="hidden" name="redirect" value="account/jobs?added={id}"> | |
<input type="hidden" name="sectionId" value="9"> | |
<input type="hidden" name="enabled" value="0"> | |
<div class="form-group"> | |
<label for="title">Job Title</label> | |
<input id="title" type="text" class="form-control" name="title"> | |
</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
#!/bin/bash | |
# | |
# After this is run, edit /etc/goaccess.conf as needed | |
# | |
echo "deb http://deb.goaccess.io/ $(lsb_release -cs) main" | sudo tee -a /etc/apt/sources.list.d/goaccess.list | |
wget -O - https://deb.goaccess.io/gnugpg.key | sudo apt-key add - | |
sudo apt-get update | |
sudo apt-get install goaccess |
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
# Add goaccess repository | |
echo "deb http://deb.goaccess.io/ xenial main" > /etc/apt/sources.list.d/goaccess.list | |
# Add repository keys | |
gpg --keyserver keyserver.ubuntu.com --recv-key 742483B7B222C443 | |
gpg -a --export 742483B7B222C443 | apt-key add - | |
# Update apt | |
apt-get update |
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
WebFontConfig = { | |
google: { families: [ 'PT+Sans:400,400italic:latin', 'Ubuntu:300,400,500:latin' ] } | |
}; | |
var cb = function() { | |
var wf = document.createElement('script'); | |
wf.src = '//ajax.googleapis.com/ajax/libs/webfont/1/webfont.js'; | |
wf.type = 'text/javascript'; | |
wf.async = 'true'; | |
var s = document.getElementsByTagName('script')[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
{% macro getSrcSet(image, sizes, upscale) %} | |
{%- spaceless %} | |
{% set sizesOut = [] %} | |
{% set allowScaleLarger = upscale | default(false) %} | |
{# loop over sizes parameter and generate transforms #} | |
{% for size in sizes %} | |
{%- spaceless %} | |
{% set currentTransform = {} %} | |
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
const easeInQuad = (t, b, c, d) => { | |
return c * (t /= d) * t + b; | |
} | |
const requestAnimFrame = (() => { | |
return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function( callback ){ window.setTimeout(callback, 1000 / 60); }; | |
})(); | |
export const scrollElementLeftTo = (element, to, duration = 400, callback) => { | |
const move = (amount) => { |
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
{% if entry.homepageHeroDesktop|length > 0 and entry.homepageHeroMobile|length > 0 %} | |
<div class="homepage-hero homepage-hero--image"> | |
<figure> | |
<picture> | |
{% set homepageHeroDesktop = entry.homepageHeroDesktop.first().getUrl() %} | |
{% set homepageHeroMobile = entry.homepageHeroMobile.first().getUrl() %} | |
<!--[if IE 9]><video style="display: none;"><![endif]--> | |
<source srcset="{{ homepageHeroDesktop }}" media="(min-width: 540px)"> |
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
.random-color { | |
border-top-color: "LightCoral"; | |
border-right-color: #a44b58; | |
border-bottom-color: rgb(108, 188, 134); | |
border-left-color: rgb(24%, 88%, 5%); | |
outline-top-color: hsl(88, 69%, 69%); | |
outline-right-color: rgba(220, 71, 132, 0.69); | |
outline-bottom-color: rgba(79%, 47%, 14%, 0.37); | |
outline-left-color: hsla(111, 31%, 38%, 0.86); | |
} |
OlderNewer