File tree 9 files changed +16
-2
lines changed
9 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 5
5
.svn
6
6
* ~
7
7
manifest.appcache
8
+ .idea /
8
9
9
10
/apps /system /camera
10
11
/apps /settings /gaia-commit.txt
Original file line number Diff line number Diff line change @@ -292,7 +292,6 @@ var Applications = (function() {
292
292
if ( ! app ) {
293
293
return ;
294
294
}
295
-
296
295
app . launch ( params ) ;
297
296
}
298
297
Original file line number Diff line number Diff line change @@ -197,6 +197,8 @@ const GridManager = (function() {
197
197
198
198
function activateIconNavigation ( ) {
199
199
console . log ( "Activating icon navigation" ) ;
200
+ var s_hover = new Audio ( './resources/sounds/hover.ogg' ) ;
201
+ s_hover . play ( ) ;
200
202
isIconNavigation = true ;
201
203
pages [ currentPage ] . activateIconNavigation ( ) ;
202
204
}
@@ -282,6 +284,7 @@ const GridManager = (function() {
282
284
if ( callback ) {
283
285
callback ( ) ;
284
286
}
287
+
285
288
} ) ;
286
289
287
290
var len = pages . length ;
@@ -302,11 +305,15 @@ const GridManager = (function() {
302
305
function goToNextPage ( callback ) {
303
306
document . body . dataset . transitioning = 'true' ;
304
307
goToPage ( currentPage + 1 , callback ) ;
308
+ var s_pageChangeR = new Audio ( './resources/sounds/right.ogg' ) ;
309
+ s_pageChangeR . play ( ) ;
305
310
}
306
311
307
312
function goToPreviousPage ( callback ) {
308
313
document . body . dataset . transitioning = 'true' ;
309
314
goToPage ( currentPage - 1 , callback ) ;
315
+ var s_pageChangeL = new Audio ( './resources/sounds/left.ogg' ) ;
316
+ s_pageChangeL . play ( ) ;
310
317
}
311
318
312
319
function updatePaginationBar ( ) {
Original file line number Diff line number Diff line change @@ -583,7 +583,9 @@ Page.prototype = {
583
583
* Navigation event handler
584
584
*/
585
585
handleNavigationEvent : function pg_handleNavigationEvent ( evt , self ) {
586
- switch ( evt . type ) {
586
+ var s_hover = new Audio ( './resources/sounds/hover.ogg' ) ;
587
+
588
+ switch ( evt . type ) {
587
589
case 'keydown' :
588
590
// Return is 13
589
591
// Left arrow is 37
@@ -592,13 +594,17 @@ Page.prototype = {
592
594
// Down arrow is 40
593
595
switch ( evt . keyCode ) {
594
596
case 13 :
597
+ // Possibly need to move this sound
598
+ var s_launch = new Audio ( './resources/sounds/launch.ogg' ) ;
599
+ s_launch . play ( ) ;
595
600
Applications . getByOrigin ( self . currentIcon . descriptor . origin ) . launch ( ) ;
596
601
break ;
597
602
case 37 :
598
603
//console.log("Left");
599
604
if ( ! self . currentIcon . container . previousSibling ) {
600
605
return ;
601
606
}
607
+ s_hover . play ( ) ;
602
608
var newIcon = self . getIcon ( self . currentIcon . container . previousSibling . dataset . origin ) ;
603
609
self . currentIcon . container . dataset . active = false ;
604
610
newIcon . container . dataset . active = true ;
@@ -612,6 +618,7 @@ Page.prototype = {
612
618
if ( ! self . currentIcon . container . nextSibling ) {
613
619
return ;
614
620
}
621
+ s_hover . play ( ) ;
615
622
var newIcon = self . getIcon ( self . currentIcon . container . nextSibling . dataset . origin ) ;
616
623
self . currentIcon . container . dataset . active = false ;
617
624
newIcon . container . dataset . active = true ;
You can’t perform that action at this time.
0 commit comments