jQuery(function($){
  $('#slideshow').cycle({
    fx: 'fade'
  });
  
  // Destroys the localStorage copy of CSS that less.js creates
  less.env = "development";
  
  function destroyLessCache(pathToCss) { // e.g. '/css/' or '/stylesheets/'
  
    if (!window.localStorage || !less || less.env !== 'development') {
      return;
    }
    var host = window.location.host;
    var protocol = window.location.protocol;
    var keyPrefix = protocol + '//' + host + pathToCss;
    console.log(window.localStorage);
    
    for (var key in window.localStorage) {
      if (key.indexOf(keyPrefix) === 0) {
        delete window.localStorage[key];
      }
    }
  }
  
  destroyLessCache('/wp-content/themes/memphisroar/css/');
});
