Skip to content

Instantly share code, notes, and snippets.

View MartinAmsinck's full-sized avatar

Martin Amsinck Andersen MartinAmsinck

View GitHub Profile
@jeromecoupe
jeromecoupe / webstoemp-gulpfile.js
Last active January 21, 2024 16:28
Gulp 4 sample gulpfile.js. For a full explanation, have a look at https://www.webstoemp.com/blog/switching-to-gulp4/
"use strict";
// Load plugins
const autoprefixer = require("autoprefixer");
const browsersync = require("browser-sync").create();
const cp = require("child_process");
const cssnano = require("cssnano");
const del = require("del");
const eslint = require("gulp-eslint");
const gulp = require("gulp");
@sniffdk
sniffdk / overlay-expander.js
Last active November 16, 2018 17:31
Fork of the Umbraco Dialog Expander code which uses mutation observers instead of mutation events
(function ($) {
var expander = function (node) {
var overlay = $(node);
// The toggle is already added, don't do anything
if (overlay.find(".overlay-expander--toggle").length > 0) {
return;
}
var toggle = $("<a href class='btn overlay-expander--toggle'><i class='icon icon-navigation-left'></i></a>");