From: Scott Worley Date: Thu, 27 Feb 2014 01:56:18 +0000 (-0800) Subject: Use the ready shorthand X-Git-Url: http://git.scottworley.com/picsort/commitdiff_plain/5d9946cb30cde87c19d290b6f31c73646e6655dc?ds=sidebyside Use the ready shorthand --- diff --git a/picsorter.js b/picsorter.js index 8c4f167..9a1b1c1 100644 --- a/picsorter.js +++ b/picsorter.js @@ -4,6 +4,6 @@ function setpic(pic) { $("#pic")[0].src = exposure + "/" + pic; } -$( document ).ready(function() { +$(function() { setpic(files[0]); });