Browse Source

@cleaning code..

halphass 7 years ago
parent
commit
bdfe70d5c2
1 changed files with 0 additions and 20 deletions
  1. 0 20
      www/js/main.js

+ 0 - 20
www/js/main.js

@@ -831,12 +831,6 @@ function checkAndReset() {
 
 
 
-var my_media = {};
-function spengimi() {
-    my_media.stop();
-    $("#spegni-musica").hide();
-    
-}
 function onDeviceReadyPush() {
     var push = PushNotification.init({
         android: {
@@ -875,20 +869,6 @@ function onDeviceReadyPush() {
         $("#alert-title").html(data.title);
         $("#alert-message").html(data.message);
 
-        // /*
-        //  * suona l'allarme
-        //  */
-        // my_media = new Media("/android_asset/www/media/alarm.wav",
-        //     // success callback
-        //     function () {
-        //         console.log("play(): Success");
-        //     },
-        //     // error callback
-        //     function (err) {
-        //         console.log("play(): Error: " + JSON.stringify(err));
-        //     }
-        // );
-        // my_media.play();
     });
 
     push.on('error', function(e) {