Skip to content

Instantly share code, notes, and snippets.

@noisymask
noisymask / ImageHelperExtension.php
Last active March 23, 2017 10:11
Craft CMS image resizing helper (Twig)
<?php
/**
* Shortcut wrapper for image resizing on the fly
*
* Usage:
*
* {{ image|resize(width, height, mode, position, quality) }}
*
* e.g.
*
@noisymask
noisymask / jquery.form-wizard.js
Last active April 26, 2017 09:49
Turn a form into a step-by-step process
;(function ($, window, document, undefined) {
"use strict";
var pluginName = "formWizard",
defaults = {
sections: 'fieldset',
navNext: '#form-next',
navPrev: '#form-previous',
progressBar: '.progress-bar',
@noisymask
noisymask / _bootstrap-3-extra-large-grid.scss
Last active April 14, 2023 17:29
Bootstrap 3 extra large grid with SASS
// for background see http://stackoverflow.com/a/25644266/526258
@import "bootstrap";
// XLarge screen
$screen-xl: 1600px;
$screen-xl-min: $screen-xl;
$screen-xl-hugedesktop: $screen-xl-min;
// So media queries don't overlap when required, provide a maximum