2   var num = Math.floor(Math.random() * 6);
 
   5   if (window.location.hash) {
 
   6     var h = window.location.hash.match(/#(.*)/);
 
   7     if (!isNaN(parseInt(h[1], 10))) num = h[1];
 
  10   // $(document).ready(function () {
 
  11   //   $('#content').attr('class', 'photo-' + num);
 
  14   $(document).on('click', '#next-photo', function () {
 
  16     $('#content').attr('class', 'photo-' + num);
 
  17     window.location.hash = num;