Skip to content

Commit

Permalink
quietly, quietly
Browse files Browse the repository at this point in the history
  • Loading branch information
chee committed Aug 17, 2013
1 parent e381c8f commit 814cb8f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/index.html
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Recently</title>
<meta name="description" content="">
<meta name="description" content="Instant crowd-sourced slideshows ( music &&& pictures !!! )">
<meta name="viewport" content="width=device-width">
<!-- build:css(.tmp) styles/css.css -->
<link rel="stylesheet" href="styles/normalize.css">
Expand Down
8 changes: 5 additions & 3 deletions app/scripts/ui/pictures.js
Expand Up @@ -7,7 +7,7 @@ define([

function slide () {
var body = $( "body" );
var sfw, delay, playing, first;
var sfw, delay, playing, first, timeout;

this.after( "initialize", function () {
this.on( document, "dataPicture", this.picture );
Expand All @@ -18,7 +18,8 @@ define([

this.getStarted = function ( event, data ) {
// filth mode
sfw = !event.shiftKey;
//sfw = data.swf;
sfw = true;
}

this.picture = function ( event, data ) {
Expand All @@ -37,7 +38,7 @@ define([
}

if ( playing ) {
setTimeout(function () {
timeout = setTimeout(function () {
fly.trigger( document, "uiNeedsPicture", { sfw: sfw } );
}, delay);
}
Expand All @@ -58,6 +59,7 @@ define([

this.soundOver = function () {
playing = false;
window.clearTimeout( timeout );
}
}
})

0 comments on commit 814cb8f

Please sign in to comment.