Skip to content

Instantly share code, notes, and snippets.

View lukehedger's full-sized avatar
🍵
(ू˃̣̣̣̣̣̣︿˂̣̣̣̣̣̣ ू)

Luke Hedger lukehedger

🍵
(ू˃̣̣̣̣̣̣︿˂̣̣̣̣̣̣ ू)
View GitHub Profile
@lukehedger
lukehedger / Slidershow.js
Created July 25, 2012 09:42
JS - Use the jQuery Slider control to create an interactive slideshow
//master function to hold all actions on slider
//HTML - you'll need an empty div with id=slider to hold the initiated control
$(function() {
$( "#slider" ).slider({
value:1, //start pos
min: 1,
max: 7, //number of slides
step: 1,
animate: true,
change: function( event, ui ) { //run function each time the slider is used
@lukehedger
lukehedger / showFeed.xml
Created July 3, 2012 15:26
XML - Show full feed on page
<!-- Textarea can be resized as required. Its just used to contain the feed -->
<textarea cols='150' rows='30'><xsl:copy-of select='/'/></textarea>
@lukehedger
lukehedger / absoluteValues.xsl
Created July 3, 2012 15:18
XSL - Format numbers as absolute values
<!-- Formatting a number with '#.##;#.##' will return the absolute value -->
<xsl:variable name="absoluteValue" select="format-number($originalValue,'#.##;#.##')"/>