"start": "node app.js"
},
"subdomain": "binb",
- "version": "0.3.5-11"
+ "version": "0.3.5-12"
}
setVariables();
DOM.modal.modal({keyboard:false, show:false, backdrop:'static'});
DOM.togglechat.click(hideChat);
- if ($.browser.mozilla) {
- // Block ESC button in firefox (breaks socket connections)
- $(document).keypress(function(event) {
- if(event.keyCode === 27) {
- return false;
- }
- });
- }
+ // Prevent Firefox from closing the websocket connection if the ESC key is pressed
+ $(document).keydown(function(e) {
+ if (e.keyCode === 27) {
+ e.preventDefault();
+ }
+ });
socket = io.connect(uri, {'reconnect':false});
socket.on('connect', function() {
jplayer = $('#player').jPlayer({
(function() {
- if ($.browser.mozilla) {
- // Block ESC button in firefox (breaks socket connections).
- $(document).keypress(function(event) {
- if(event.keyCode === 27) {
- return false;
- }
- });
- }
+ // Prevent Firefox from closing the websocket connection if the ESC key is pressed
+ $(document).keydown(function(e) {
+ if (e.keyCode === 27) {
+ e.preventDefault();
+ }
+ });
$.get('/artworks', function(data) {
$('.thumbnail').each(function(index) {
var i = index * 6;
span.footer-info Powered by
block media
block scripts
- script(src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js")
+ script(src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js")
script(src="/static/js/bootstrap.min.js")
script
var uvOptions = {};
.loading-block
block scripts
- script(src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js")
+ script(src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js")
script(src="/static/js/leaderboards.js")