Skip to content

Instantly share code, notes, and snippets.

View spiderneo's full-sized avatar

Baptiste Doré spiderneo

  • France
View GitHub Profile
@spiderneo
spiderneo / le-renew-webroot
Last active July 6, 2016 06:27 — forked from thisismitch/le-renew-webroot
Let's Encrypt Auto-Renewal using the Webroot Plugin (Nginx)
#!/bin/bash
web_service='nginx'
FILES=/usr/local/etc/letsencrypt/*.ini
for f in $FILES
do
echo "Renewing for $f file..."
config_file="$f"
--- a/js/single-page-site-scroll.js
+++ b/js/single-page-site-scroll.js
@@ -9,10 +9,11 @@
// On page load, smooth scroll.
/* global destination */
var hash = window.location.hash;
- var heightDifference = $(document).height() - $(window).height();
+
if (hash) {
- Drupal.behaviors.scrollToAnchor.scrollToDestination($(hash).offset().top, heightDifference);