Merge branch 'master' of https://git.vln-glr.fr/leo.viallon/Belote
This commit is contained in:
commit
21368da171
2
app.py
2
app.py
@ -7,5 +7,5 @@ sys.path.insert(0,here)
|
|||||||
|
|
||||||
import settings
|
import settings
|
||||||
from belote import app, socketio
|
from belote import app, socketio
|
||||||
socketio.run(app, debug=False, host=settings.PUBLIC_URL, port=8080)
|
socketio.run(app, debug=False, host=settings.LISTEN_URL, port=8080)
|
||||||
|
|
||||||
|
@ -418,5 +418,5 @@ def delete_game(user=None, game=None):
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
socketio.run(app, debug=True, host='0.0.0.0', port=8080 )
|
socketio.run(app, debug=True, host='127.0.0.1', port=8080 )
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
# The public url for preventing
|
# The public url for preventing
|
||||||
# Cross_origin bugs
|
# Cross_origin bugs
|
||||||
PUBLIC_URL='127.0.0.1'
|
PUBLIC_URL='127.0.0.1'
|
||||||
|
# Listen url
|
||||||
|
LISTEN_URL = '127.0.0.1'
|
||||||
|
@ -118,11 +118,12 @@ socket.on('leave', function(data){
|
|||||||
$('#gostart').hide();
|
$('#gostart').hide();
|
||||||
$('#add_player').show();
|
$('#add_player').show();
|
||||||
{% else %}
|
{% else %}
|
||||||
if (username == {{ user.login }}){
|
if (username == '{{ user.login }}'){
|
||||||
console.log("Vous avez été banni");
|
console.log("Vous avez été banni");
|
||||||
$('#listpart').prepend(`
|
$('#listpart').prepend(`
|
||||||
<div class="alert" id="alert0">
|
<div class="alert" id="alert0">
|
||||||
<button type="button" class="close" onclick="javascript:hidealert('alert0')">×</button>
|
<button type="button" class="close" onclick="javascript:hidealert('alert0')">×</button>
|
||||||
|
Vous avez été banni !
|
||||||
</div>
|
</div>
|
||||||
`);
|
`);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user