-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
129 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
<script type="text/javascript"> | ||
$(function () { | ||
$('.leaving-forever').click(function () { | ||
return confirm('{{ _('Are you sure you want to leave?') }}\n' + | ||
'{{ _('You cannot come back to a virtual participation. You will have to start a new one.') }}'); | ||
return confirm({{ _('Are you sure you want to leave?')|htmltojs }} + '\n' + | ||
{{ _('You cannot come back to a virtual participation. You will have to start a new one.')|htmltojs }}); | ||
}); | ||
|
||
{% if not request.official_contest_mode %} | ||
$('.first-join').click(function () { | ||
return confirm('{{ _('Are you sure you want to join?') }}\n' + | ||
'{{ _('Joining a contest starts your timer, after which it becomes unstoppable.') }}'); | ||
return confirm({{ _('Are you sure you want to join?')|htmltojs }} + '\n' + | ||
{{ _('Joining a contest starts your timer, after which it becomes unstoppable.')|htmltojs }}); | ||
}); | ||
{% endif %} | ||
|
||
{% if request.in_contest %} | ||
$('.contest-join').click(function () { | ||
return confirm('{{ _('Are you sure you want to join?') }}\n' + | ||
'{{ _('Joining this contest will leave %(contest)s.', contest=request.participation.contest.name) }}'); | ||
return confirm({{ _('Are you sure you want to join?')|htmltojs }} + '\n' + | ||
{{ _('Joining this contest will leave %(contest)s.', contest=request.participation.contest.name)|htmltojs }}); | ||
}); | ||
{% endif %} | ||
|
||
$('.register-warning').click(function () { | ||
return confirm('{{ _('Are you sure you want to register?') }}'); | ||
return confirm({{ _('Are you sure you want to register?')|htmltojs }}); | ||
}); | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.