Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* Contains functions responsible for functionality at front-end of website
*
* @since 1.0.0
*
*/
/**
@jlafitte
jlafitte / onion-skin.js
Last active December 6, 2018 01:59 — forked from dtex/gist:4337176
Onion skinning plugin for jQuery
(function( $ ){
var methods = {
init : function( options ) {
return this.each(function(){
oSkin = $('<div class="onionSkin" style="width:100%;text-align:center;position:absolute;opacity:.5;display:none;" />');
oImg = $('<img src="'+options.src+'" />');
oImg.css(options.imgStyles);
@jlafitte
jlafitte / url-encode.xsl
Created December 9, 2018 15:53
XSLT URL Encoding
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" indent="yes" encoding="iso-8859-1"/>
<!-- ISO-8859-1 based URL-encoding demo
Written by Mike J. Brown, [email protected].
Updated 2015-10-24 (to update the license).
License: CC0 <https://creativecommons.org/publicdomain/zero/1.0/deed.en>