Fix legacy play page template

This commit is contained in:
Ben 2020-05-08 18:24:11 +01:00
parent 503d8f8ab9
commit 3a36c31c18
3 changed files with 6 additions and 6 deletions

View File

@ -53,7 +53,7 @@
</div>
</div>
</div>
<object type="application/x-shockwave-flash" id="game" name="game" data="http://media.localhost/boots.swf"
<object type="application/x-shockwave-flash" id="game" name="game" data="{{ .Env.WEB_LEGACY_MEDIA }}/boots.swf"
width="100%"
height="98%">
<param name="menu" value="false">
@ -90,7 +90,7 @@
<script src="https://www.google.com/recaptcha/api.js?render={{ .Env.WEB_RECAPTCHA_SITE }}"></script>
<script type="text/javascript">
function grecaptchaSubmit(){
grecaptcha.execute({{ .Env.WEB_RECAPTCHA_SITE }}, { action: 'login' }).then(function (token) {
grecaptcha.execute("{{ .Env.WEB_RECAPTCHA_SITE }}", { action: 'login' }).then(function (token) {
document.getElementById("game").finishedCaptcha(token);
});
}

View File

@ -54,7 +54,7 @@
</div>
</div>
</div>
<object type="application/x-shockwave-flash" id="game" name="game" data="http://media.localhost/boots.swf"
<object type="application/x-shockwave-flash" id="game" name="game" data="{{ .Env.WEB_LEGACY_MEDIA }}/boots.swf"
width="100%"
height="98%">
<param name="menu" value="false">
@ -91,7 +91,7 @@
<script src="https://www.google.com/recaptcha/api.js?render={{ .Env.WEB_RECAPTCHA_SITE }}"></script>
<script type="text/javascript">
function grecaptchaSubmit(){
grecaptcha.execute({{ .Env.WEB_RECAPTCHA_SITE }}, { action: 'login' }).then(function (token) {
grecaptcha.execute("{{ .Env.WEB_RECAPTCHA_SITE }}", { action: 'login' }).then(function (token) {
document.getElementById("game").finishedCaptcha(token);
});
}

View File

@ -53,7 +53,7 @@
</div>
</div>
</div>
<object type="application/x-shockwave-flash" id="game" name="game" data="http://media.localhost/boots.swf"
<object type="application/x-shockwave-flash" id="game" name="game" data="{{ .Env.WEB_LEGACY_MEDIA }}/boots.swf"
width="100%"
height="98%">
<param name="menu" value="false">
@ -90,7 +90,7 @@
<script src="https://www.google.com/recaptcha/api.js?render={{ .Env.WEB_RECAPTCHA_SITE }}"></script>
<script type="text/javascript">
function grecaptchaSubmit(){
grecaptcha.execute({{ .Env.WEB_RECAPTCHA_SITE }}, { action: 'login' }).then(function (token) {
grecaptcha.execute("{{ .Env.WEB_RECAPTCHA_SITE }}", { action: 'login' }).then(function (token) {
document.getElementById("game").finishedCaptcha(token);
});
}