All of The Fat Of The land, at once

Another experiment with The Prodigy body { padding: 30px; } a { display: inline-block; margin-bottom: 20px; color: #000; font-family: Arial, sans-serif; } Lets go $(document).ready(function() { $('#play-video').on('click', function(ev) { debugger; for (counter = 0; counter ...

May 3, 2020 · 1 min · Me

Aural Assault

Based on something I saw ears ago at The baltic that I’ve never managed to track down. Bring the noise $(document).ready(function() { $('#play-video').on('click', function(ev) { $("#video")[0].src += "&autoplay=1"; debugger; var counter=1; var myVar = setInterval(myTimer, 7000); function myTimer() { console.log("#video"+counter); $("#video"+counter)[0].src += "&autoplay=1"; counter++; console.log("#video"+counter); } if(counter==9){ clearInterval(myVar); } ev.preventDefault(); }); }); ...

May 3, 2020 · 1 min · Me

No more gfarce

A daft little thing based on an in joke in my old team. Tweak the URL to create your own. no, more now! $( document ).ready(function() { var words=["errors", "loop", "gin", "electricity", "chocolate", "oiled wrestlers", "trees", "synergy", "woodlice", "addenda", "aircraft", "alumni", "analysis", "antenna", "antithesis", "appendices", "axis", "bacilli", "bacteria", "bases", "bison", "bureaus", "cacti", "château", "children", "codices", "crisis", "data", "deer", "diagnosis", "dice", "dwarfs", "ellipses", "faux pas", "fezes", "fish", "focu", "feet", "formulas", "...

May 3, 2020 · 1 min · Me

Tabloid scale

function setResult(first, second, destination){ // get the value from item1 var selector = document.getElementById(first); var valueOne = selector[selector.selectedIndex].value; var nameOne = selector[selector.selectedIndex].text; // get the value from item2 selector = document.getElementById(second); var valueTwo = selector[selector.selectedIndex].value; var nameTwo = selector[selector.selectedIndex].text; // do maths var result = valueTwo/valueOne; // construct sentence var sentence = "There are " + result + " " + nameOne + "s in a " + nameTwo ; // set sentence console....

May 3, 2020 · 1 min · Me

A quick and dirty experiment with Rickshaw

I had some time to kill on the train to Devs Love Bacon, and limited internet access, so I was looking for an offline project to play with and learn something new in a couple of hours. Step in Rickshaw a graphing library built on D3 it’s a quick way to make beutiful interactive graphs. I used the data from the history of the Glastonbury Festival to built a graph showing the price and attendance over time....

May 25, 2014 · 4 min · Me

XKCD Inspired Factor Clock

TIME FACTORS // Factoring code all nabbed from http://www.javascripter.net/math/primes/factorization.htm function factor(n) { if (isNaN(n) || !isFinite(n) || n%1!=0 || n==0) return ''+n; if (nEdited 20-12-14: I ran across this brilliant What color is it and couldn’t resist bolting on the rather neat idea of colours based on the time. Yesterday I found my XKCD book that I was given for Christmas and whilst leafing through it ran across this gem about factoring the time....

March 17, 2014 · 1 min · Me