.on('timer', function (time) {
if(timerStatus) {
console.log(time);
timerStatus = false;
$('.gameEndTimer').empty().removeClass('not-active').countdown({seconds: time});
}
var audio = [
new Audio('assets/sounds/timer-tick-quiet.mp3'),
new Audio('assets/sounds/timer-tick-last-5-seconds.mp3')
];
var start = Date.now();
setInterval(function() {
audio[Date.now() - start <= 5000 ? 0 : 1].play();
}, 1000);
})
location /phpmyadmin {
allow 0.0.0.0;
deny all;
root /usr/share/;
index index.htm index.html index.php;
location ~ ^/phpmyadmin/(.+.php)$ {
try_files $uri = 404;
root /usr/share/;
# fastcgi_pass 127.0.0.1:9000; # раскомментировать при использовании php5-cgi
fastcgi_pass unix:/var/run/php5-fpm.sock; # раскомментировать при использовании php5-fpm
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $request_filename;
include /etc/nginx/fastcgi_params;
}
location ~* ^/phpmyadmin/(.+.(html|ico|xml|css|jpg|png|js|txt|gif|jpeg))$ {
root /usr/share/;
}
}
location /phpMyAdmin {
rewrite ^/* /phpmyadmin last;
}
location /phpmyadmin {
root /usr/share/;
index index.htm index.html index.php;
location ~ ^/phpmyadmin/(.+.php)$ {
try_files $uri = 404;
root /usr/share/;
# fastcgi_pass 127.0.0.1:9000; # раскомментировать при использовании php5-cgi
fastcgi_pass unix:/var/run/php5-fpm.sock; # раскомментировать при использовании php5-fpm
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $request_filename;
include /etc/nginx/fastcgi_params;
}
location ~* ^/phpmyadmin/(.+.(html|ico|xml|css|jpg|png|js|txt|gif|jpeg))$ {
root /usr/share/;
}
}
location /phpMyAdmin {
rewrite ^/* /phpmyadmin last;
}
в данном случае куда?