From 61e18269591750b2ddf900e216c3149fe06daa0e Mon Sep 17 00:00:00 2001 From: b Date: Thu, 15 Nov 2018 20:01:53 +0100 Subject: [PATCH] removed looping gather music, turned it down --- app/views/gathers/show.html.erb | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/app/views/gathers/show.html.erb b/app/views/gathers/show.html.erb index 4e5e9c4..904d405 100644 --- a/app/views/gathers/show.html.erb +++ b/app/views/gathers/show.html.erb @@ -34,22 +34,23 @@ success: function(response, text, request) { if (request.getResponseHeader('Gather') == 'voting') { if (!played) { + var startTime = 110; $("#jplayer").jPlayer({ ready: function() { $(this).jPlayer("setMedia", { mp3: "https://www.ensl.org/sounds/gather-1.mp3" - }).jPlayer("play"); + }).jPlayer("play", startTime); var click = document.ontouchstart === undefined ? 'click' : 'touchstart'; var kickoff = function () { - $("#jplayer").jPlayer("play"); + $("#jplayer").jPlayer("play", startTime); document.documentElement.removeEventListener(click, kickoff, true); }; document.documentElement.addEventListener(click, kickoff, true); }, - loop: true, - volume: 0.5, + loop: false, + volume: 0.45, swfPath: "/flash" }); @@ -180,8 +181,8 @@
Voice Communication