mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-11-14 08:50:44 +00:00
commit
9a2ce76628
2 changed files with 9 additions and 8 deletions
|
@ -181,11 +181,11 @@ class Gather < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def can_create? cuser
|
||||
cuser and cuser.admin?
|
||||
return true if cuser.admin? or cuser.gather_moderator?
|
||||
end
|
||||
|
||||
def can_update? cuser
|
||||
cuser and cuser.admin?
|
||||
return true if cuser.admin? or cuser.gather_moderator?
|
||||
end
|
||||
|
||||
def self.last(name = "NS2")
|
||||
|
|
|
@ -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 @@
|
|||
<h6>Voice Communication</h6>
|
||||
<ul>
|
||||
<li><%= link_to "Teamspeak 3", "http://www.teamspeak.com/?page=downloads" %></li>
|
||||
<li><strong>Join server:</strong> <a href="ts3server://ensl.org?channel=NS1%20Gathers">ensl.org</a></li>
|
||||
<li><strong>All passwords:</strong> europe </li>
|
||||
<li><strong>Click to join:</strong> <a href="ts3server://ensl.org?channel=NS1%20Gathers">ensl.org</a></li>
|
||||
<li><strong>TS password:</strong> europe </li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in a new issue