Let's say you want to host domains first.com
and second.com
.
Create folders for their files:
html { | |
/* Adjust font size */ | |
font-size: 100%; | |
-webkit-text-size-adjust: 100%; | |
/* Font varient */ | |
font-variant-ligatures: none; | |
-webkit-font-variant-ligatures: none; | |
/* Smoothing */ | |
text-rendering: optimizeLegibility; | |
-moz-osx-font-smoothing: grayscale; |
# 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 |
<?php | |
/** | |
* General Configuration | |
* | |
* All of your system's general configuration settings go in here. | |
* You can see a list of the default settings in craft/app/etc/config/defaults/general.php | |
*/ | |
return array( |
#!/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 |
Barba.Dispatcher.on('newPageReady', function(currentStatus, oldStatus, container, newPageRawHTML) { | |
// html head parser borrowed from jquery pjax | |
var $newPageHead = $( '<head />' ).html( | |
$.parseHTML( | |
newPageRawHTML.match(/<head[^>]*>([\s\S.]*)<\/head>/i)[0] | |
, document | |
, true | |
) | |
); | |
var headTags = [ |
<?php | |
class Craft3ValetDriver extends ValetDriver | |
/* https://github.com/laravel/valet/blob/master/cli/drivers/CraftValetDriver.php */ | |
{ | |
/** | |
* Determine if the driver serves the request. | |
* | |
* @param string $sitePath | |
* @param string $siteName |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<!-- Responsive-ness --> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<!-- SE-Oh --> | |
{% include '_includes/seo_meta' %} | |
</head> |
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) => { |