From bdfe70d5c291959a15ddd848de310f31801d60c4 Mon Sep 17 00:00:00 2001 From: halphass Date: Sat, 11 Mar 2017 08:15:15 +0100 Subject: [PATCH] @cleaning code.. --- www/js/main.js | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/www/js/main.js b/www/js/main.js index 7646dd7..cc19fcc 100644 --- a/www/js/main.js +++ b/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) {