//alert("gameEntity "+JSON.stringify(gameEntity)) ; //JSON.stringify(nextModuleEntity) function gameSubscribe (gameEntity) { $.ajax ( { url: "/app/game/subscribe", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"gameEntityId":gameEntity["gameEntityId"],"userEntityId":session["userEntityId"]}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { $("#gameSubscribe").css("display","none") ; $("#gameUnsubscribe").css("display","block") ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function gameUnsubscribe (gameEntity) { $.ajax ( { url: "/app/game/unsubscribe", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"gameEntityId":gameEntity["gameEntityId"],"userEntityId":session["userEntityId"]}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { $("#gameSubscribe").css("display","block") ; $("#gameUnsubscribe").css("display","none") ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function gameRate (gameEntity, rating) { $.ajax ( { url: "/app/game/rate", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"gameEntityId":gameEntity["gameEntityId"],"userEntityId":session["userEntityId"],"rating":rating/5}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { for (i=1 ; i<=5 ; ++i) $("#gameUserRating"+i).css('color',i<=rating?"black":"gray") ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function gameDelete (gameEntity) { if (confirm("Are you sure you want to delete the game "+gameEntity["label"]+"?")) $.ajax ( { url: "/app/game/delete", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"gameEntityId":gameEntity["gameEntityId"]}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { window.location = "/game/list" ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function gameUserDelete (gameUserEntity) { if (confirm("Are you sure you want to delete the game user "+gameUserEntity["label"]+"?")) $.ajax ( { url: "/app/gameuser/delete", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"gameUserEntityId":gameUserEntity["gameUserEntityId"]}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { window.location = "/game/user/list?gameEntityId="+data["gameEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function documentDelete (documentEntity) { if (confirm("Are you sure you want to delete the document "+documentEntity["label"]+"?")) $.ajax ( { url: "/app/document/delete", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"documentEntityId":documentEntity["documentEntityId"]}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { window.location = "/game/view?gameEntityId="+data["gameEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function documentApprove (documentEntity) { $.ajax ( { url: "/app/document/approve", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"documentEntityId":documentEntity["documentEntityId"]}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { window.location = "/game/view?gameEntityId="+data["gameEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function documentUnapprove (documentEntity) { $.ajax ( { url: "/app/document/unapprove", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"documentEntityId":documentEntity["documentEntityId"]}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { window.location = "/game/view?gameEntityId="+data["gameEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function moduleSubscribe (moduleEntity) { $.ajax ( { url: "/app/module/subscribe", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"moduleEntityId":moduleEntity["moduleEntityId"],"userEntityId":session["userEntityId"]}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { $("#moduleSubscribe").css("display","none") ; $("#moduleUnsubscribe").css("display","block") ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function moduleUnsubscribe (moduleEntity) { $.ajax ( { url: "/app/module/unsubscribe", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"moduleEntityId":moduleEntity["moduleEntityId"],"userEntityId":session["userEntityId"]}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { $("#moduleSubscribe").css("display","block") ; $("#moduleUnsubscribe").css("display","none") ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function moduleRate (moduleEntity, rating) { $.ajax ( { url: "/app/module/rate", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"moduleEntityId":moduleEntity["moduleEntityId"],"userEntityId":session["userEntityId"],"rating":rating/5}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { for (i=1 ; i<=5 ; ++i) $("#moduleUserRating"+i).css('color',i<=rating?"black":"gray") ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function moduleDelete (moduleEntity) { if (confirm("Are you sure you want to delete the module "+moduleEntity["label"]+"?")) $.ajax ( { url: "/app/module/delete", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"moduleEntityId":moduleEntity["moduleEntityId"]}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { window.location = "/game/view?gameEntityId="+data["gameEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function moduleUserDelete (moduleUserEntity) { if (confirm("Are you sure you want to delete the module user "+moduleUserEntity["label"]+"?")) $.ajax ( { url: "/app/module/user/delete", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"moduleUserEntityId":moduleUserEntity["moduleUserEntityId"]}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { window.location = "/module/user/list?moduleEntityId="+data["moduleEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function mapSetSubscribe (mapSetEntity) { $.ajax ( { url: "/app/mapset/subscribe", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"mapSetEntityId":mapSetEntity["mapSetEntityId"],"userEntityId":session["userEntityId"]}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { $("#mapSetSubscribe").css("display","none") ; $("#mapSetUnsubscribe").css("display","block") ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function mapSetUnsubscribe (mapSetEntity) { $.ajax ( { url: "/app/mapset/unsubscribe", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"mapSetEntityId":mapSetEntity["mapSetEntityId"],"userEntityId":session["userEntityId"]}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { $("#mapSetSubscribe").css("display","block") ; $("#mapSetUnsubscribe").css("display","none") ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function mapSetRate (mapSetEntity, rating) { $.ajax ( { url: "/app/mapset/rate", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"mapSetEntityId":mapSetEntity["mapSetEntityId"],"userEntityId":session["userEntityId"],"rating":rating/5}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { for (i=1 ; i<=5 ; ++i) $("#mapSetUserRating"+i).css('color',i<=rating?"black":"gray") ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function mapSetDelete (mapSetEntity) { if (confirm("Are you sure you want to delete the mapset "+mapSetEntity["label"]+"?")) $.ajax ( { url: "/app/mapset/delete", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"mapSetEntityId":mapSetEntity["mapSetEntityId"]}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { window.location = "/game/view?gameEntityId="+data["gameEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function mapSetUserDelete (mapSetUserEntity) { if (confirm("Are you sure you want to delete the mapset user "+mapSetUserEntity["label"]+"?")) $.ajax ( { url: "/app/mapset/user/delete", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"mapSetUserEntityId":mapSetUserEntity["mapSetUserEntityId"]}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { window.location = "/mapset/user/list?mapSetEntityId="+data["mapSetEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function formationSetSubscribe (formationSetEntity) { $.ajax ( { url: "/app/formationset/subscribe", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"formationSetEntityId":formationSetEntity["formationSetEntityId"],"userEntityId":session["userEntityId"]}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { $("#formationSetSubscribe").css("display","none") ; $("#formationSetUnsubscribe").css("display","block") ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function formationSetUnsubscribe (formationSetEntity) { $.ajax ( { url: "/app/formationset/unsubscribe", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"formationSetEntityId":formationSetEntity["formationSetEntityId"],"userEntityId":session["userEntityId"]}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { $("#formationSetSubscribe").css("display","block") ; $("#formationSetUnsubscribe").css("display","none") ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function formationSetRate (formationSetEntity, rating) { $.ajax ( { url: "/app/formationset/rate", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"formationSetEntityId":formationSetEntity["formationSetEntityId"],"userEntityId":session["userEntityId"],"rating":rating/5}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { for (i=1 ; i<=5 ; ++i) $("#formationSetUserRating"+i).css('color',i<=rating?"black":"gray") ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function formationSetDelete (formationSetEntity) { if (confirm("Are you sure you want to delete the formationset "+formationSetEntity["label"]+"?")) $.ajax ( { url: "/app/formationset/delete", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"formationSetEntityId":formationSetEntity["formationSetEntityId"]}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { window.location = "/game/view?gameEntityId="+data["gameEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function formationSetUserDelete (formationSetUserEntity) { if (confirm("Are you sure you want to delete the formationset user "+formationSetUserEntity["label"]+"?")) $.ajax ( { url: "/app/formationset/user/delete", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"formationSetUserEntityId":formationSetUserEntity["formationSetUserEntityId"]}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { window.location = "/formationset/user/list?formationSetEntityId="+data["formationSetEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function scenarioSubscribe (scenarioEntity) { $.ajax ( { url: "/app/scenario/subscribe", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"scenarioEntityId":scenarioEntity["scenarioEntityId"],"userEntityId":session["userEntityId"]}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { $("#scenarioSubscribe").css("display","none") ; $("#scenarioUnsubscribe").css("display","block") ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function scenarioUnsubscribe (scenarioEntity) { $.ajax ( { url: "/app/scenario/unsubscribe", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"scenarioEntityId":scenarioEntity["scenarioEntityId"],"userEntityId":session["userEntityId"]}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { $("#scenarioSubscribe").css("display","block") ; $("#scenarioUnsubscribe").css("display","none") ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function scenarioRate (scenarioEntity, rating) { $.ajax ( { url: "/app/scenario/rate", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"scenarioEntityId":scenarioEntity["scenarioEntityId"],"userEntityId":session["userEntityId"],"rating":rating/5}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { for (i=1 ; i<=5 ; ++i) $("#scenarioUserRating"+i).css('color',i<=rating?"black":"gray") ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function scenarioDelete (scenarioEntity) { if (confirm("Are you sure you want to delete the scenario "+scenarioEntity["label"]+"?")) $.ajax ( { url: "/app/scenario/delete", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"scenarioEntityId":scenarioEntity["scenarioEntityId"]}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { window.location = "/game/view?gameEntityId="+data["gameEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function scenarioUserDelete (scenarioUserEntity) { if (confirm("Are you sure you want to delete the scenario user "+scenarioUserEntity["label"]+"?")) $.ajax ( { url: "/app/scenariouser/delete", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"scenarioUserEntityId":scenarioUserEntity["scenarioUserEntityId"]}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { window.location = "/scenario/user/list?scenarioEntityId="+data["scenarioEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function scenarioReplaySubscribe (scenarioReplayEntity) { $.ajax ( { url: "/app/scenarioreplay/subscribe", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"scenarioReplayEntityId":scenarioReplayEntity["scenarioReplayEntityId"],"userEntityId":session["userEntityId"]}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { $("#scenarioReplaySubscribe").css("display","none") ; $("#scenarioReplayUnsubscribe").css("display","block") ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function scenarioReplayUnsubscribe (scenarioReplayEntity) { $.ajax ( { url: "/app/scenarioreplay/unsubscribe", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"scenarioReplayEntityId":scenarioReplayEntity["scenarioReplayEntityId"],"userEntityId":session["userEntityId"]}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { $("#scenarioReplaySubscribe").css("display","block") ; $("#scenarioReplayUnsubscribe").css("display","none") ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function scenarioReplayRate (scenarioReplayEntity, rating) { $.ajax ( { url: "/app/scenarioreplay/rate", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"scenarioReplayEntityId":scenarioReplayEntity["scenarioReplayEntityId"],"userEntityId":session["userEntityId"],"rating":rating/5}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { for (i=1 ; i<=5 ; ++i) $("#scenarioReplayUserRating"+i).css('color',i<=rating?"black":"gray") ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function scenarioReplayDelete (scenarioReplayEntity) { if (confirm("Are you sure you want to delete the scenarioreplay "+scenarioReplayEntity["label"]+"?")) $.ajax ( { url: "/app/scenarioreplay/delete", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"scenarioReplayEntityId":scenarioReplayEntity["scenarioReplayEntityId"]}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { window.location = "/game/view?gameEntityId="+data["gameEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function scenarioReplayUserDelete (scenarioReplayUserEntity) { if (confirm("Are you sure you want to delete the scenarioreplay user "+scenarioReplayUserEntity["label"]+"?")) $.ajax ( { url: "/app/scenarioreplay/user/delete", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"scenarioReplayUserEntityId":scenarioReplayUserEntity["scenarioReplayUserEntityId"]}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { window.location = "/scenarioreplay/user/list?scenarioReplayEntityId="+data["scenarioReplayEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function gameMenu (gameEntity, list) { if (validGame(gameEntity)||((validSessionEditor(session)||validSessionEditor(session))&&!list)) { document.write(getHttp("/body?name=game&sct=0&v=1709561669143")) ; if (validSessionEditor(session)&&!list) { document.write(getHttp("/body?name=game&sct=1&v=1709561669143")) ; } if (validGame(gameEntity)) { document.write(getHttp("/body?name=game&sct=2&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=3&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=4&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=5&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=6&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=7&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=8&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=9&v=1709561669143")) ; if (validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { if (!gameEntity["published"]) { document.write(getHttp("/body?name=game&sct=10&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=11&v=1709561669143")) ; } else { document.write(getHttp("/body?name=game&sct=12&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=13&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=14&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=15&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=16&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=17&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=18&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=19&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=20&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=21&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=22&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=23&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=24&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=25&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=26&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=27&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=28&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=29&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=30&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=31&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=32&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=33&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=34&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=35&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=36&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=37&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=38&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=39&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=40&v=1709561669143")) ; if (validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=41&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=42&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=43&v=1709561669143")) ; } } } document.write(getHttp("/body?name=game&sct=44&v=1709561669143")) ; } } function gameUserMenu (gameEntity, gameUserEntity, list) { document.write(getHttp("/body?name=game&sct=45&v=1709561669143")) ; if (validGame(gameEntity)&&!list) { document.write(getHttp("/body?name=game&sct=46&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=47&v=1709561669143")) ; if (validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=48&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=49&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=50&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=51&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=52&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=53&v=1709561669143")) ; } } if (validGameUser(gameUserEntity)) { document.write(getHttp("/body?name=game&sct=54&v=1709561669143")) ;document.write(gameUserEntity["gameUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=55&v=1709561669143")) ; if (validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { if (gameUserEntity["userEntityId"]) { document.write(getHttp("/body?name=game&sct=56&v=1709561669143")) ;document.write(gameUserEntity["userEntityId"]) ;document.write(getHttp("/body?name=game&sct=57&v=1709561669143")) ; } if (!gameUserEntity["accepted"]) { document.write(getHttp("/body?name=game&sct=58&v=1709561669143")) ;document.write(gameUserEntity["gameUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=59&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=60&v=1709561669143")) ;document.write(gameUserEntity["gameUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=61&v=1709561669143")) ;document.write(gameUserEntity["gameUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=62&v=1709561669143")) ; if (!gameUserEntity["approved"]) { document.write(getHttp("/body?name=game&sct=63&v=1709561669143")) ;document.write(gameUserEntity["gameUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=64&v=1709561669143")) ;document.write(gameUserEntity["gameUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=65&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=66&v=1709561669143")) ; } } document.write(getHttp("/body?name=game&sct=67&v=1709561669143")) ; } function moduleMenu (moduleEntity, list) { if (validModule(moduleEntity)) { document.write(getHttp("/body?name=game&sct=68&v=1709561669143")) ;document.write(moduleEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=69&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=70&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=71&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=72&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=73&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=74&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=75&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=76&v=1709561669143")) ; if (validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { if (!moduleEntity["published"]) { document.write(getHttp("/body?name=game&sct=77&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=78&v=1709561669143")) ; } else { document.write(getHttp("/body?name=game&sct=79&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=80&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=81&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=82&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=83&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=84&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=85&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=86&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=87&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=88&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=89&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=90&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=91&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=92&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=93&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=94&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=95&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=96&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=97&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=98&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=99&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=100&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=101&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=102&v=1709561669143")) ; if (validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=103&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=104&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=105&v=1709561669143")) ; } } document.write(getHttp("/body?name=game&sct=106&v=1709561669143")) ; } } function moduleUserMenu (moduleEntity, moduleUserEntity, list) { document.write(getHttp("/body?name=game&sct=107&v=1709561669143")) ; if (validModule(moduleEntity)&&!list) { document.write(getHttp("/body?name=game&sct=108&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=109&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=110&v=1709561669143")) ; if (validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=111&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=112&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=113&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=114&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=115&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=116&v=1709561669143")) ; } } if (validModuleUser(moduleUserEntity)) { document.write(getHttp("/body?name=game&sct=117&v=1709561669143")) ;document.write(moduleUserEntity["moduleUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=118&v=1709561669143")) ; if (moduleUserEntity["userEntityId"]) { document.write(getHttp("/body?name=game&sct=119&v=1709561669143")) ;document.write(moduleUserEntity["userEntityId"]) ;document.write(getHttp("/body?name=game&sct=120&v=1709561669143")) ; } if (validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { if (!moduleUserEntity["accepted"]) { document.write(getHttp("/body?name=game&sct=121&v=1709561669143")) ;document.write(moduleUserEntity["moduleUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=122&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=123&v=1709561669143")) ;document.write(moduleUserEntity["moduleUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=124&v=1709561669143")) ;document.write(moduleUserEntity["moduleUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=125&v=1709561669143")) ; if (!moduleUserEntity["approved"]) { document.write(getHttp("/body?name=game&sct=126&v=1709561669143")) ;document.write(moduleUserEntity["moduleUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=127&v=1709561669143")) ;document.write(moduleUserEntity["moduleUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=128&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=129&v=1709561669143")) ; } } document.write(getHttp("/body?name=game&sct=130&v=1709561669143")) ; } function mapSetMenu (mapSetEntity, list) { if (validMapSet(mapSetEntity)) { document.write(getHttp("/body?name=game&sct=131&v=1709561669143")) ;document.write(mapSetEntity["mapSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=132&v=1709561669143")) ;document.write(mapSetEntity["mapSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=133&v=1709561669143")) ;document.write(mapSetEntity["mapSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=134&v=1709561669143")) ; if (validMapSetUserEditor(sessionMapSetUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { if (!mapSetEntity["published"]) { document.write(getHttp("/body?name=game&sct=135&v=1709561669143")) ;document.write(mapSetEntity["mapSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=136&v=1709561669143")) ; } else { document.write(getHttp("/body?name=game&sct=137&v=1709561669143")) ;document.write(mapSetEntity["mapSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=138&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=139&v=1709561669143")) ;document.write(mapSetEntity["mapSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=140&v=1709561669143")) ;document.write(mapSetEntity["mapSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=141&v=1709561669143")) ;document.write(mapSetEntity["mapSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=142&v=1709561669143")) ;document.write(mapSetEntity["mapSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=143&v=1709561669143")) ;document.write(mapSetEntity["mapSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=144&v=1709561669143")) ;document.write(mapSetEntity["mapSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=145&v=1709561669143")) ;document.write(mapSetEntity["mapSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=146&v=1709561669143")) ;document.write(mapSetEntity["mapSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=147&v=1709561669143")) ;document.write(mapSetEntity["mapSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=148&v=1709561669143")) ; if (validMapSetUserAdministrator(sessionMapSetUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=149&v=1709561669143")) ;document.write(mapSetEntity["mapSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=150&v=1709561669143")) ;document.write(mapSetEntity["mapSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=151&v=1709561669143")) ; } } document.write(getHttp("/body?name=game&sct=152&v=1709561669143")) ; } } function mapSetUserMenu (mapSetEntity, mapSetUserEntity, list) { document.write(getHttp("/body?name=game&sct=153&v=1709561669143")) ; if (validMapSet(mapSetEntity)&&!list) { document.write(getHttp("/body?name=game&sct=154&v=1709561669143")) ;document.write(mapSetEntity["mapSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=155&v=1709561669143")) ; if (validMapSetUserAdministrator(sessionMapSetUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=156&v=1709561669143")) ;document.write(mapSetEntity["mapSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=157&v=1709561669143")) ;document.write(mapSetEntity["mapSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=158&v=1709561669143")) ;document.write(mapSetEntity["mapSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=159&v=1709561669143")) ;document.write(mapSetEntity["mapSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=160&v=1709561669143")) ;document.write(mapSetEntity["mapSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=161&v=1709561669143")) ; } } if (validMapSetUser(mapSetUserEntity)) { document.write(getHttp("/body?name=game&sct=162&v=1709561669143")) ;document.write(mapSetUserEntity["mapSetUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=163&v=1709561669143")) ; if (mapSetUserEntity["userEntityId"]) { document.write(getHttp("/body?name=game&sct=164&v=1709561669143")) ;document.write(mapSetUserEntity["userEntityId"]) ;document.write(getHttp("/body?name=game&sct=165&v=1709561669143")) ; } if (validMapSetUserAdministrator(sessionMapSetUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { if (!mapSetUserEntity["accepted"]) { document.write(getHttp("/body?name=game&sct=166&v=1709561669143")) ;document.write(mapSetUserEntity["mapSetUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=167&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=168&v=1709561669143")) ;document.write(mapSetUserEntity["mapSetUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=169&v=1709561669143")) ;document.write(mapSetUserEntity["mapSetUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=170&v=1709561669143")) ; if (!mapSetUserEntity["approved"]) { document.write(getHttp("/body?name=game&sct=171&v=1709561669143")) ;document.write(mapSetUserEntity["mapSetUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=172&v=1709561669143")) ;document.write(mapSetUserEntity["mapSetUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=173&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=174&v=1709561669143")) ; } } document.write(getHttp("/body?name=game&sct=175&v=1709561669143")) ; } function mapPageMenu (mapPageEntity, list) { if (validMapPage(mapPageEntity)) { document.write(getHttp("/body?name=game&sct=176&v=1709561669143")) ;document.write(mapPageEntity["mapPageEntityId"]) ;document.write(getHttp("/body?name=game&sct=177&v=1709561669143")) ;document.write(mapPageEntity["mapPageEntityId"]) ;document.write(getHttp("/body?name=game&sct=178&v=1709561669143")) ; if (validMapSetUserEditor(sessionMapSetUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=179&v=1709561669143")) ;document.write(mapPageEntity["mapPageEntityId"]) ;document.write(getHttp("/body?name=game&sct=180&v=1709561669143")) ;document.write(mapPageEntity["mapPageEntityId"]) ;document.write(getHttp("/body?name=game&sct=181&v=1709561669143")) ;document.write(mapPageEntity["mapPageEntityId"]) ;document.write(getHttp("/body?name=game&sct=182&v=1709561669143")) ;document.write(mapPageEntity["mapPageEntityId"]) ;document.write(getHttp("/body?name=game&sct=183&v=1709561669143")) ;document.write(mapPageEntity["mapPageEntityId"]) ;document.write(getHttp("/body?name=game&sct=184&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=185&v=1709561669143")) ; } } function formationSetMenu (formationSetEntity, list) { if (validFormationSet(formationSetEntity)) { document.write(getHttp("/body?name=game&sct=186&v=1709561669143")) ;document.write(formationSetEntity["formationSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=187&v=1709561669143")) ;document.write(formationSetEntity["formationSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=188&v=1709561669143")) ; if (validMapSetUserEditor(sessionMapSetUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { if (!formationSetEntity["published"]) { document.write(getHttp("/body?name=game&sct=189&v=1709561669143")) ;document.write(formationSetEntity["formationSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=190&v=1709561669143")) ; } else { document.write(getHttp("/body?name=game&sct=191&v=1709561669143")) ;document.write(formationSetEntity["formationSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=192&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=193&v=1709561669143")) ;document.write(formationSetEntity["formationSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=194&v=1709561669143")) ;document.write(formationSetEntity["formationSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=195&v=1709561669143")) ;document.write(formationSetEntity["formationSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=196&v=1709561669143")) ;document.write(formationSetEntity["formationSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=197&v=1709561669143")) ;document.write(formationSetEntity["formationSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=198&v=1709561669143")) ;document.write(formationSetEntity["formationSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=199&v=1709561669143")) ;document.write(formationSetEntity["formationSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=200&v=1709561669143")) ;document.write(formationSetEntity["formationSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=201&v=1709561669143")) ;document.write(formationSetEntity["formationSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=202&v=1709561669143")) ; if (validMapSetUserAdministrator(sessionMapSetUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=203&v=1709561669143")) ;document.write(formationSetEntity["formationSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=204&v=1709561669143")) ;document.write(formationSetEntity["formationSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=205&v=1709561669143")) ; } } document.write(getHttp("/body?name=game&sct=206&v=1709561669143")) ; } } function formationMenu (formationEntity, list) { if (validFormation(formationEntity)) { document.write(getHttp("/body?name=game&sct=207&v=1709561669143")) ;document.write(formationEntity["formationEntityId"]) ;document.write(getHttp("/body?name=game&sct=208&v=1709561669143")) ;document.write(formationEntity["formationEntityId"]) ;document.write(getHttp("/body?name=game&sct=209&v=1709561669143")) ; if (validMapSetUserEditor(sessionMapSetUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { if (!formationEntity["published"]) { document.write(getHttp("/body?name=game&sct=210&v=1709561669143")) ;document.write(formationEntity["formationEntityId"]) ;document.write(getHttp("/body?name=game&sct=211&v=1709561669143")) ; } else { document.write(getHttp("/body?name=game&sct=212&v=1709561669143")) ;document.write(formationEntity["formationEntityId"]) ;document.write(getHttp("/body?name=game&sct=213&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=214&v=1709561669143")) ;document.write(formationEntity["formationEntityId"]) ;document.write(getHttp("/body?name=game&sct=215&v=1709561669143")) ;document.write(formationEntity["formationEntityId"]) ;document.write(getHttp("/body?name=game&sct=216&v=1709561669143")) ;document.write(formationEntity["formationEntityId"]) ;document.write(getHttp("/body?name=game&sct=217&v=1709561669143")) ;document.write(formationEntity["formationEntityId"]) ;document.write(getHttp("/body?name=game&sct=218&v=1709561669143")) ;document.write(formationEntity["formationEntityId"]) ;document.write(getHttp("/body?name=game&sct=219&v=1709561669143")) ;document.write(formationEntity["formationEntityId"]) ;document.write(getHttp("/body?name=game&sct=220&v=1709561669143")) ;document.write(formationEntity["formationEntityId"]) ;document.write(getHttp("/body?name=game&sct=221&v=1709561669143")) ;document.write(formationEntity["formationEntityId"]) ;document.write(getHttp("/body?name=game&sct=222&v=1709561669143")) ;document.write(formationEntity["formationEntityId"]) ;document.write(getHttp("/body?name=game&sct=223&v=1709561669143")) ; if (validMapSetUserAdministrator(sessionMapSetUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=224&v=1709561669143")) ;document.write(formationEntity["formationEntityId"]) ;document.write(getHttp("/body?name=game&sct=225&v=1709561669143")) ;document.write(formationEntity["formationEntityId"]) ;document.write(getHttp("/body?name=game&sct=226&v=1709561669143")) ; } } document.write(getHttp("/body?name=game&sct=227&v=1709561669143")) ; } } function formationSetUserMenu (formationSetEntity, formationSetUserEntity, list) { document.write(getHttp("/body?name=game&sct=228&v=1709561669143")) ; if (validFormationSet(formationSetEntity)&&!list) { document.write(getHttp("/body?name=game&sct=229&v=1709561669143")) ;document.write(formationSetEntity["formationSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=230&v=1709561669143")) ;document.write(formationSetEntity["formationSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=231&v=1709561669143")) ; if ((sessionFormationSetUserEntity&&sessionFormationSetUserEntity["administrator"])||(sessionModuleUserEntity&&sessionModuleUserEntity["administrator"])||(sessionGameUserEntity&&sessionGameUserEntity["administrator"])) { document.write(getHttp("/body?name=game&sct=232&v=1709561669143")) ;document.write(formationSetEntity["formationSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=233&v=1709561669143")) ;document.write(formationSetEntity["formationSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=234&v=1709561669143")) ;document.write(formationSetEntity["formationSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=235&v=1709561669143")) ;document.write(formationSetEntity["formationSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=236&v=1709561669143")) ;document.write(formationSetEntity["formationSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=237&v=1709561669143")) ; } } if (validFormationSetUser(formationSetUserEntity)) { document.write(getHttp("/body?name=game&sct=238&v=1709561669143")) ;document.write(formationSetUserEntity["formationSetUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=239&v=1709561669143")) ; if (formationSetUserEntity["userEntityId"]) { document.write(getHttp("/body?name=game&sct=240&v=1709561669143")) ;document.write(formationSetUserEntity["userEntityId"]) ;document.write(getHttp("/body?name=game&sct=241&v=1709561669143")) ; } if (validMapSetUserEditor(sessionMapSetUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { if (!formationSetUserEntity["accepted"]) { document.write(getHttp("/body?name=game&sct=242&v=1709561669143")) ;document.write(formationSetUserEntity["formationSetUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=243&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=244&v=1709561669143")) ;document.write(formationSetUserEntity["formationSetUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=245&v=1709561669143")) ;document.write(formationSetUserEntity["formationSetUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=246&v=1709561669143")) ; if (!formationSetUserEntity["approved"]) { document.write(getHttp("/body?name=game&sct=247&v=1709561669143")) ;document.write(formationSetUserEntity["formationSetUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=248&v=1709561669143")) ;document.write(formationSetUserEntity["formationSetUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=249&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=250&v=1709561669143")) ; } } document.write(getHttp("/body?name=game&sct=251&v=1709561669143")) ; } function scenarioMenu (scenarioEntity, list) { if (validScenario(scenarioEntity)) { document.write(getHttp("/body?name=game&sct=252&v=1709561669143")) ;document.write(scenarioEntity["scenarioEntityId"]) ;document.write(getHttp("/body?name=game&sct=253&v=1709561669143")) ;document.write(scenarioEntity["scenarioEntityId"]) ;document.write(getHttp("/body?name=game&sct=254&v=1709561669143")) ;document.write(scenarioEntity["scenarioEntityId"]) ;document.write(getHttp("/body?name=game&sct=255&v=1709561669143")) ; if (validSession(session)) { document.write(getHttp("/body?name=game&sct=256&v=1709561669143")) ;document.write(scenarioEntity["scenarioEntityId"]) ;document.write(getHttp("/body?name=game&sct=257&v=1709561669143")) ; } if (validScenarioUserEditor(sessionScenarioUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { if (!scenarioEntity["published"]) { document.write(getHttp("/body?name=game&sct=258&v=1709561669143")) ;document.write(scenarioEntity["scenarioEntityId"]) ;document.write(getHttp("/body?name=game&sct=259&v=1709561669143")) ; } else { document.write(getHttp("/body?name=game&sct=260&v=1709561669143")) ;document.write(scenarioEntity["scenarioEntityId"]) ;document.write(getHttp("/body?name=game&sct=261&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=262&v=1709561669143")) ;document.write(scenarioEntity["scenarioEntityId"]) ;document.write(getHttp("/body?name=game&sct=263&v=1709561669143")) ;document.write(scenarioEntity["scenarioEntityId"]) ;document.write(getHttp("/body?name=game&sct=264&v=1709561669143")) ;document.write(scenarioEntity["scenarioEntityId"]) ;document.write(getHttp("/body?name=game&sct=265&v=1709561669143")) ;document.write(scenarioEntity["scenarioEntityId"]) ;document.write(getHttp("/body?name=game&sct=266&v=1709561669143")) ;document.write(scenarioEntity["scenarioEntityId"]) ;document.write(getHttp("/body?name=game&sct=267&v=1709561669143")) ;document.write(scenarioEntity["scenarioEntityId"]) ;document.write(getHttp("/body?name=game&sct=268&v=1709561669143")) ;document.write(scenarioEntity["scenarioEntityId"]) ;document.write(getHttp("/body?name=game&sct=269&v=1709561669143")) ;document.write(scenarioEntity["scenarioEntityId"]) ;document.write(getHttp("/body?name=game&sct=270&v=1709561669143")) ; if (validScenarioUserAdministrator(sessionScenarioUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=271&v=1709561669143")) ;document.write(scenarioEntity["scenarioEntityId"]) ;document.write(getHttp("/body?name=game&sct=272&v=1709561669143")) ;document.write(scenarioEntity["scenarioEntityId"]) ;document.write(getHttp("/body?name=game&sct=273&v=1709561669143")) ; } } document.write(getHttp("/body?name=game&sct=274&v=1709561669143")) ; } } function scenarioUserMenu (scenarioEntity, scenarioUserEntity, list) { document.write(getHttp("/body?name=game&sct=275&v=1709561669143")) ; if (validScenario(scenarioEntity)&&!list) { document.write(getHttp("/body?name=game&sct=276&v=1709561669143")) ;document.write(scenarioEntity["scenarioEntityId"]) ;document.write(getHttp("/body?name=game&sct=277&v=1709561669143")) ;document.write(scenarioEntity["scenarioEntityId"]) ;document.write(getHttp("/body?name=game&sct=278&v=1709561669143")) ; if (validScenarioUserAdministrator(sessionScenarioUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=279&v=1709561669143")) ;document.write(scenarioEntity["scenarioEntityId"]) ;document.write(getHttp("/body?name=game&sct=280&v=1709561669143")) ;document.write(scenarioEntity["scenarioEntityId"]) ;document.write(getHttp("/body?name=game&sct=281&v=1709561669143")) ;document.write(scenarioEntity["scenarioEntityId"]) ;document.write(getHttp("/body?name=game&sct=282&v=1709561669143")) ;document.write(scenarioEntity["scenarioEntityId"]) ;document.write(getHttp("/body?name=game&sct=283&v=1709561669143")) ;document.write(scenarioEntity["scenarioEntityId"]) ;document.write(getHttp("/body?name=game&sct=284&v=1709561669143")) ; } } if (validScenarioUser(scenarioUserEntity)) { document.write(getHttp("/body?name=game&sct=285&v=1709561669143")) ;document.write(scenarioUserEntity["scenarioUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=286&v=1709561669143")) ; if (scenarioUserEntity["userEntityId"]) { document.write(getHttp("/body?name=game&sct=287&v=1709561669143")) ;document.write(scenarioUserEntity["userEntityId"]) ;document.write(getHttp("/body?name=game&sct=288&v=1709561669143")) ; } if (validScenarioUserAdministrator(sessionScenarioUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { if (!scenarioUserEntity["accepted"]) { document.write(getHttp("/body?name=game&sct=289&v=1709561669143")) ;document.write(scenarioUserEntity["scenarioUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=290&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=291&v=1709561669143")) ;document.write(scenarioUserEntity["scenarioUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=292&v=1709561669143")) ;document.write(scenarioUserEntity["scenarioUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=293&v=1709561669143")) ; if (!scenarioUserEntity["approved"]) { document.write(getHttp("/body?name=game&sct=294&v=1709561669143")) ;document.write(scenarioUserEntity["scenarioUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=295&v=1709561669143")) ;document.write(scenarioUserEntity["scenarioUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=296&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=297&v=1709561669143")) ; } } document.write(getHttp("/body?name=game&sct=298&v=1709561669143")) ; } function scenarioReplayMenu (scenarioReplayEntity, list) { if (validScenarioReplay(scenarioReplayEntity)) { document.write(getHttp("/body?name=game&sct=299&v=1709561669143")) ;document.write(scenarioReplayEntity["scenarioReplayEntityId"]) ;document.write(getHttp("/body?name=game&sct=300&v=1709561669143")) ;document.write(scenarioReplayEntity["scenarioReplayEntityId"]) ;document.write(getHttp("/body?name=game&sct=301&v=1709561669143")) ;document.write(scenarioReplayEntity["scenarioReplayEntityId"]) ;document.write(getHttp("/body?name=game&sct=302&v=1709561669143")) ; if (!validScenarioReplayUserPlayer(sessionScenarioReplayUserEntity)) { document.write(getHttp("/body?name=game&sct=303&v=1709561669143")) ;document.write(scenarioReplayEntity["scenarioReplayEntityId"]) ;document.write(getHttp("/body?name=game&sct=304&v=1709561669143")) ; } if (validScenarioReplayUserPlayer(sessionScenarioReplayUserEntity)||validScenarioUserEditor(sessionScenarioUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=305&v=1709561669143")) ;document.write(scenarioReplayEntity["scenarioReplayEntityId"]) ;document.write(getHttp("/body?name=game&sct=306&v=1709561669143")) ; } if (validScenarioUserEditor(sessionScenarioUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { if (!scenarioReplayEntity["published"]) { document.write(getHttp("/body?name=game&sct=307&v=1709561669143")) ;document.write(scenarioReplayEntity["scenarioReplayEntityId"]) ;document.write(getHttp("/body?name=game&sct=308&v=1709561669143")) ; } else { document.write(getHttp("/body?name=game&sct=309&v=1709561669143")) ;document.write(scenarioReplayEntity["scenarioReplayEntityId"]) ;document.write(getHttp("/body?name=game&sct=310&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=311&v=1709561669143")) ;document.write(scenarioReplayEntity["scenarioReplayEntityId"]) ;document.write(getHttp("/body?name=game&sct=312&v=1709561669143")) ;document.write(scenarioReplayEntity["scenarioReplayEntityId"]) ;document.write(getHttp("/body?name=game&sct=313&v=1709561669143")) ;document.write(scenarioReplayEntity["scenarioReplayEntityId"]) ;document.write(getHttp("/body?name=game&sct=314&v=1709561669143")) ;document.write(scenarioReplayEntity["scenarioReplayEntityId"]) ;document.write(getHttp("/body?name=game&sct=315&v=1709561669143")) ; if (validScenarioUserAdministrator(sessionScenarioUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=316&v=1709561669143")) ;document.write(scenarioReplayEntity["scenarioReplayEntityId"]) ;document.write(getHttp("/body?name=game&sct=317&v=1709561669143")) ;document.write(scenarioReplayEntity["scenarioReplayEntityId"]) ;document.write(getHttp("/body?name=game&sct=318&v=1709561669143")) ; } } document.write(getHttp("/body?name=game&sct=319&v=1709561669143")) ; } } function scenarioReplayUserMenu (scenarioReplayEntity, scenarioReplayUserEntity, list) { document.write(getHttp("/body?name=game&sct=320&v=1709561669143")) ; if (validScenarioReplay(scenarioReplayEntity)&&!list) { document.write(getHttp("/body?name=game&sct=321&v=1709561669143")) ;document.write(scenarioReplayEntity["scenarioReplayEntityId"]) ;document.write(getHttp("/body?name=game&sct=322&v=1709561669143")) ; if (validScenarioUserAdministrator(sessionScenarioUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=323&v=1709561669143")) ;document.write(scenarioReplayEntity["scenarioReplayEntityId"]) ;document.write(getHttp("/body?name=game&sct=324&v=1709561669143")) ;document.write(scenarioReplayEntity["scenarioReplayEntityId"]) ;document.write(getHttp("/body?name=game&sct=325&v=1709561669143")) ;document.write(scenarioReplayEntity["scenarioReplayEntityId"]) ;document.write(getHttp("/body?name=game&sct=326&v=1709561669143")) ;document.write(scenarioReplayEntity["scenarioReplayEntityId"]) ;document.write(getHttp("/body?name=game&sct=327&v=1709561669143")) ;document.write(scenarioReplayEntity["scenarioReplayEntityId"]) ;document.write(getHttp("/body?name=game&sct=328&v=1709561669143")) ; } } if (scenarioReplayUserEntity) { document.write(getHttp("/body?name=game&sct=329&v=1709561669143")) ;document.write(scenarioReplayUserEntity["scenarioReplayUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=330&v=1709561669143")) ; if (validScenarioReplayUser(scenarioReplayUserEntity)) { document.write(getHttp("/body?name=game&sct=331&v=1709561669143")) ;document.write(scenarioReplayUserEntity["userEntityId"]) ;document.write(getHttp("/body?name=game&sct=332&v=1709561669143")) ; } if (validScenarioUserAdministrator(sessionScenarioUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { if (!scenarioReplayUserEntity["accepted"]) { document.write(getHttp("/body?name=game&sct=333&v=1709561669143")) ;document.write(scenarioReplayUserEntity["scenarioReplayUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=334&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=335&v=1709561669143")) ;document.write(scenarioReplayUserEntity["scenarioReplayUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=336&v=1709561669143")) ;document.write(scenarioReplayUserEntity["scenarioReplayUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=337&v=1709561669143")) ; if (!scenarioReplayUserEntity["approved"]) { document.write(getHttp("/body?name=game&sct=338&v=1709561669143")) ;document.write(scenarioReplayUserEntity["scenarioReplayUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=339&v=1709561669143")) ;document.write(scenarioReplayUserEntity["scenarioReplayUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=340&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=341&v=1709561669143")) ; } } document.write(getHttp("/body?name=game&sct=342&v=1709561669143")) ; } function scenarioReplayTurnMenu (scenarioReplayTurnEntity, list) { if (validScenarioReplayTurn(scenarioReplayTurnEntity)) { document.write(getHttp("/body?name=game&sct=343&v=1709561669143")) ;document.write(scenarioReplayTurnEntity["scenarioReplayTurnEntityId"]) ;document.write(getHttp("/body?name=game&sct=344&v=1709561669143")) ; if (validScenarioUserEditor(sessionScenarioUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=345&v=1709561669143")) ;document.write(scenarioReplayTurnEntity["scenarioReplayTurnEntityId"]) ;document.write(getHttp("/body?name=game&sct=346&v=1709561669143")) ;document.write(scenarioReplayTurnEntity["scenarioReplayTurnEntityId"]) ;document.write(getHttp("/body?name=game&sct=347&v=1709561669143")) ;document.write(scenarioReplayTurnEntity["scenarioReplayTurnEntityId"]) ;document.write(getHttp("/body?name=game&sct=348&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=349&v=1709561669143")) ; } } function documentMenu (documentEntity, list) { if (validDocument(documentEntity)) { document.write(getHttp("/body?name=game&sct=350&v=1709561669143")) ;document.write(documentEntity["documentEntityId"]) ;document.write(getHttp("/body?name=game&sct=351&v=1709561669143")) ;document.write(documentEntity["documentEntityId"]) ;document.write(getHttp("/body?name=game&sct=352&v=1709561669143")) ; if (validScenarioUserEditor(sessionScenarioUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=353&v=1709561669143")) ;document.write(documentEntity["documentEntityId"]) ;document.write(getHttp("/body?name=game&sct=354&v=1709561669143")) ;document.write(documentEntity["documentEntityId"]) ;document.write(getHttp("/body?name=game&sct=355&v=1709561669143")) ;document.write(documentEntity["documentEntityId"]) ;document.write(getHttp("/body?name=game&sct=356&v=1709561669143")) ;document.write(documentEntity["documentEntityId"]) ;document.write(getHttp("/body?name=game&sct=357&v=1709561669143")) ;document.write(documentEntity["documentEntityId"]) ;document.write(getHttp("/body?name=game&sct=358&v=1709561669143")) ;document.write(documentEntity["documentEntityId"]) ;document.write(getHttp("/body?name=game&sct=359&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=360&v=1709561669143")) ; } } function breadcrumbs (gameEntity, moduleEntity) { document.write(getHttp("/body?name=game&sct=361&v=1709561669143")) ; if (validGame(gameEntity)) { document.write(getHttp("/body?name=game&sct=362&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=363&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=364&v=1709561669143")) ; if (validModule(moduleEntity)) { document.write(getHttp("/body?name=game&sct=365&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=366&v=1709561669143")) ;document.write(moduleEntity["label"]) ;document.write(getHttp("/body?name=game&sct=367&v=1709561669143")) ; } } document.write(getHttp("/body?name=game&sct=368&v=1709561669143")) ; } function breadcrumbsDocument (gameEntity, moduleEntity, scenarioEntity, documentEntity) { document.write(getHttp("/body?name=game&sct=369&v=1709561669143")) ; if (validGame(gameEntity)) { document.write(getHttp("/body?name=game&sct=370&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=371&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=372&v=1709561669143")) ; if (validModule(moduleEntity)) { document.write(getHttp("/body?name=game&sct=373&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=374&v=1709561669143")) ;document.write(moduleEntity["label"]) ;document.write(getHttp("/body?name=game&sct=375&v=1709561669143")) ; } if (validFormationSet(formationSetEntity)) { document.write(getHttp("/body?name=game&sct=376&v=1709561669143")) ;document.write(formationSetEntity["formationSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=377&v=1709561669143")) ;document.write(formationSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=378&v=1709561669143")) ; } if (validMapSet(mapSetEntity)) { document.write(getHttp("/body?name=game&sct=379&v=1709561669143")) ;document.write(mapSetEntity["mapSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=380&v=1709561669143")) ;document.write(mapSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=381&v=1709561669143")) ; } if (validScenario(scenarioEntity)) { document.write(getHttp("/body?name=game&sct=382&v=1709561669143")) ;document.write(scenarioEntity["scenarioEntityId"]) ;document.write(getHttp("/body?name=game&sct=383&v=1709561669143")) ;document.write(scenarioEntity["label"]) ;document.write(getHttp("/body?name=game&sct=384&v=1709561669143")) ; } if (validDocument(documentEntity)) { document.write(getHttp("/body?name=game&sct=385&v=1709561669143")) ;document.write(documentEntity["documentEntityId"]) ;document.write(getHttp("/body?name=game&sct=386&v=1709561669143")) ;document.write(documentEntity["label"]) ;document.write(getHttp("/body?name=game&sct=387&v=1709561669143")) ; } } document.write(getHttp("/body?name=game&sct=388&v=1709561669143")) ; } function breadcrumbsMapSet (gameEntity, moduleEntity, mapSetEntity) { document.write(getHttp("/body?name=game&sct=389&v=1709561669143")) ; if (validGame(gameEntity)) { document.write(getHttp("/body?name=game&sct=390&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=391&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=392&v=1709561669143")) ; if (validModule(moduleEntity)) { document.write(getHttp("/body?name=game&sct=393&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=394&v=1709561669143")) ;document.write(moduleEntity["label"]) ;document.write(getHttp("/body?name=game&sct=395&v=1709561669143")) ; } if (validMapSet(mapSetEntity)) { document.write(getHttp("/body?name=game&sct=396&v=1709561669143")) ;document.write(mapSetEntity["mapSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=397&v=1709561669143")) ;document.write(mapSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=398&v=1709561669143")) ; } } document.write(getHttp("/body?name=game&sct=399&v=1709561669143")) ; } function breadcrumbsMapPage (gameEntity, moduleEntity, mapSetEntity, mapPageEntity) { document.write(getHttp("/body?name=game&sct=400&v=1709561669143")) ; if (validGame(gameEntity)) { document.write(getHttp("/body?name=game&sct=401&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=402&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=403&v=1709561669143")) ; if (validModule(moduleEntity)) { document.write(getHttp("/body?name=game&sct=404&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=405&v=1709561669143")) ;document.write(moduleEntity["label"]) ;document.write(getHttp("/body?name=game&sct=406&v=1709561669143")) ; } if (validMapSet(mapSetEntity)) { document.write(getHttp("/body?name=game&sct=407&v=1709561669143")) ;document.write(mapSetEntity["mapSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=408&v=1709561669143")) ;document.write(mapSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=409&v=1709561669143")) ; } if (validMapPage(mapPageEntity)) { document.write(getHttp("/body?name=game&sct=410&v=1709561669143")) ;document.write(mapPageEntity["mapPageEntityId"]) ;document.write(getHttp("/body?name=game&sct=411&v=1709561669143")) ;document.write(mapPageEntity["label"]) ;document.write(getHttp("/body?name=game&sct=412&v=1709561669143")) ; } } document.write(getHttp("/body?name=game&sct=413&v=1709561669143")) ; } function breadcrumbsFormationSet (gameEntity, moduleEntity, formationSetEntity) { document.write(getHttp("/body?name=game&sct=414&v=1709561669143")) ; if (validGame(gameEntity)) { document.write(getHttp("/body?name=game&sct=415&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=416&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=417&v=1709561669143")) ; if (validModule(moduleEntity)) { document.write(getHttp("/body?name=game&sct=418&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=419&v=1709561669143")) ;document.write(moduleEntity["label"]) ;document.write(getHttp("/body?name=game&sct=420&v=1709561669143")) ; } if (validFormationSet(formationSetEntity)) { document.write(getHttp("/body?name=game&sct=421&v=1709561669143")) ;document.write(formationSetEntity["formationSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=422&v=1709561669143")) ;document.write(formationSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=423&v=1709561669143")) ; } } document.write(getHttp("/body?name=game&sct=424&v=1709561669143")) ; } function breadcrumbsFormation (gameEntity, moduleEntity, formationEntity) { document.write(getHttp("/body?name=game&sct=425&v=1709561669143")) ; if (validGame(gameEntity)) { document.write(getHttp("/body?name=game&sct=426&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=427&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=428&v=1709561669143")) ; if (validModule(moduleEntity)) { document.write(getHttp("/body?name=game&sct=429&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=430&v=1709561669143")) ;document.write(moduleEntity["label"]) ;document.write(getHttp("/body?name=game&sct=431&v=1709561669143")) ; } if (validFormation(formationEntity)) { document.write(getHttp("/body?name=game&sct=432&v=1709561669143")) ;document.write(formationEntity["formationEntityId"]) ;document.write(getHttp("/body?name=game&sct=433&v=1709561669143")) ;document.write(formationEntity["label"]) ;document.write(getHttp("/body?name=game&sct=434&v=1709561669143")) ; } } document.write(getHttp("/body?name=game&sct=435&v=1709561669143")) ; } function breadcrumbsScenario (gameEntity, moduleEntity, scenarioEntity) { document.write(getHttp("/body?name=game&sct=436&v=1709561669143")) ; if (validGame(gameEntity)) { document.write(getHttp("/body?name=game&sct=437&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=438&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=439&v=1709561669143")) ; if (validModule(moduleEntity)) { document.write(getHttp("/body?name=game&sct=440&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=441&v=1709561669143")) ;document.write(moduleEntity["label"]) ;document.write(getHttp("/body?name=game&sct=442&v=1709561669143")) ; } if (validScenario(scenarioEntity)) { document.write(getHttp("/body?name=game&sct=443&v=1709561669143")) ;document.write(scenarioEntity["scenarioEntityId"]) ;document.write(getHttp("/body?name=game&sct=444&v=1709561669143")) ;document.write(scenarioEntity["label"]) ;document.write(getHttp("/body?name=game&sct=445&v=1709561669143")) ; } } document.write(getHttp("/body?name=game&sct=446&v=1709561669143")) ; } function breadcrumbsScenarioReplay (gameEntity, moduleEntity, scenarioEntity, scenarioReplayEntity) { document.write(getHttp("/body?name=game&sct=447&v=1709561669143")) ; if (validGame(gameEntity)) { document.write(getHttp("/body?name=game&sct=448&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=449&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=450&v=1709561669143")) ; if (validModule(moduleEntity)) { document.write(getHttp("/body?name=game&sct=451&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=452&v=1709561669143")) ;document.write(moduleEntity["label"]) ;document.write(getHttp("/body?name=game&sct=453&v=1709561669143")) ; } if (validScenario(scenarioEntity)) { document.write(getHttp("/body?name=game&sct=454&v=1709561669143")) ;document.write(scenarioEntity["scenarioEntityId"]) ;document.write(getHttp("/body?name=game&sct=455&v=1709561669143")) ;document.write(scenarioEntity["label"]) ;document.write(getHttp("/body?name=game&sct=456&v=1709561669143")) ; } if (validScenarioReplay(scenarioReplayEntity)) { document.write(getHttp("/body?name=game&sct=457&v=1709561669143")) ;document.write(scenarioReplayEntity["scenarioReplayEntityId"]) ;document.write(getHttp("/body?name=game&sct=458&v=1709561669143")) ;document.write(scenarioReplayEntity["playDate"]) ;document.write(getHttp("/body?name=game&sct=459&v=1709561669143")) ; } } document.write(getHttp("/body?name=game&sct=460&v=1709561669143")) ; } function breadcrumbsScenarioReplayTurn (gameEntity, moduleEntity, scenarioEntity, scenarioReplayEntity, scenarioReplayTurnEntity) { document.write(getHttp("/body?name=game&sct=461&v=1709561669143")) ; if (validGame(gameEntity)) { document.write(getHttp("/body?name=game&sct=462&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=463&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=464&v=1709561669143")) ; if (validModule(moduleEntity)) { document.write(getHttp("/body?name=game&sct=465&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=466&v=1709561669143")) ;document.write(moduleEntity["label"]) ;document.write(getHttp("/body?name=game&sct=467&v=1709561669143")) ; } if (validScenario(scenarioEntity)) { document.write(getHttp("/body?name=game&sct=468&v=1709561669143")) ;document.write(scenarioEntity["scenarioEntityId"]) ;document.write(getHttp("/body?name=game&sct=469&v=1709561669143")) ;document.write(scenarioEntity["label"]) ;document.write(getHttp("/body?name=game&sct=470&v=1709561669143")) ; } if (validScenarioReplay(scenarioReplayEntity)) { document.write(getHttp("/body?name=game&sct=471&v=1709561669143")) ;document.write(scenarioReplayEntity["scenarioReplayEntityId"]) ;document.write(getHttp("/body?name=game&sct=472&v=1709561669143")) ;document.write(scenarioReplayEntity["playDate"]) ;document.write(getHttp("/body?name=game&sct=473&v=1709561669143")) ; } if (validScenarioReplayTurn(scenarioReplayTurnEntity)) { document.write(getHttp("/body?name=game&sct=474&v=1709561669143")) ;document.write(scenarioReplayTurnEntity["scenarioReplayEntityId"]) ;document.write(getHttp("/body?name=game&sct=475&v=1709561669143")) ;document.write(scenarioReplayTurnEntity["turn"]) ;document.write(getHttp("/body?name=game&sct=476&v=1709561669143")) ; } } document.write(getHttp("/body?name=game&sct=477&v=1709561669143")) ; } if (pathname==null||pathname=="/game"||pathname=="/game/list") { var page = parseInt(getQueryParameter("page")) ; if (isNaN(page)) page = 0 ; var criteria = getQueryParameter("criteria") ; var gameEntityList = getHttpJson("/app/game/list?"+(criteria?("criteria="+criteria):"")+"&page="+page+"&sessionToken="+session["sessionToken"]) ; document.write(getHttp("/body?name=game&sct=478&v=1709561669143")) ; breadcrumbs() ; gameMenu() ; for (i=0 ; i<10&&i0) { document.write(getHttp("/body?name=game&sct=489&v=1709561669143")) ;document.write(criteria?("criteria="+criteria):"") ;document.write(getHttp("/body?name=game&sct=490&v=1709561669143")) ;document.write(page-1) ;document.write(getHttp("/body?name=game&sct=491&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=492&v=1709561669143")) ; if (gameEntityList.length>10) { document.write(getHttp("/body?name=game&sct=493&v=1709561669143")) ;document.write(criteria?("criteria="+criteria):"") ;document.write(getHttp("/body?name=game&sct=494&v=1709561669143")) ;document.write(page+1) ;document.write(getHttp("/body?name=game&sct=495&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=496&v=1709561669143")) ; } else if (pathname=="/game/view"&&validGame(gameEntity)) { document.write(getHttp("/body?name=game&sct=497&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=498&v=1709561669143")) ; breadcrumbs(gameEntity) ; gameMenu(gameEntity) ; document.write(getHttp("/body?name=game&sct=499&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=500&v=1709561669143")) ;document.write(gameEntity["version"]) ;document.write(getHttp("/body?name=game&sct=501&v=1709561669143")) ; if (validSession(session)) { document.write(getHttp("/body?name=game&sct=502&v=1709561669143")) ; var rating = sessionGameUserEntity["rating"]*5 ; for (i=1 ; i<=5 ; ++i) { document.write(getHttp("/body?name=game&sct=503&v=1709561669143")) ;document.write(i) ;document.write(getHttp("/body?name=game&sct=504&v=1709561669143")) ;document.write(i) ;document.write(getHttp("/body?name=game&sct=505&v=1709561669143")) ;document.write(validGameUser(sessionGameUserEntity)&&rating>=i?"color:black;":"color:gray;") ;document.write(getHttp("/body?name=game&sct=506&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=507&v=1709561669143")) ;document.write(validGameUserSubscriber(sessionGameUserEntity)?"display:none;":"display:block;") ;document.write(getHttp("/body?name=game&sct=508&v=1709561669143")) ;document.write(!validGameUserSubscriber(sessionGameUserEntity)?"display:none;":"display:block;") ;document.write(getHttp("/body?name=game&sct=509&v=1709561669143")) ; } else { document.write(getHttp("/body?name=game&sct=510&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=511&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=512&v=1709561669143")) ;document.write(getHttp("/app/game/textlongdescription?gameEntityId="+gameEntity["gameEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=513&v=1709561669143")) ;document.write(getHttp("/app/game/textdesigndescription?gameEntityId="+gameEntity["gameEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=514&v=1709561669143")) ; if (gameEntity["wikipedia"]||gameEntity["boardGameGeek"]) { document.write(getHttp("/body?name=game&sct=515&v=1709561669143")) ; if (gameEntity["wikipedia"]) { document.write(getHttp("/body?name=game&sct=516&v=1709561669143")) ;document.write(gameEntity["wikipedia"]) ;document.write(getHttp("/body?name=game&sct=517&v=1709561669143")) ; } if (gameEntity["boardGameGeek"]) { document.write(getHttp("/body?name=game&sct=518&v=1709561669143")) ;document.write(gameEntity["boardGameGeek"]) ;document.write(getHttp("/body?name=game&sct=519&v=1709561669143")) ; } } document.write(getHttp("/body?name=game&sct=520&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=521&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=522&v=1709561669143")) ; var documentEntityList = getHttpJson("/app/document/listbygameorder?page=-1&gameEntityId="+gameEntity["gameEntityId"]+"&sessionToken="+session["sessionToken"]) ; if (documentEntityList.length>0) { document.write(getHttp("/body?name=game&sct=523&v=1709561669143")) ; for (i=0 ; i0) { document.write(getHttp("/body?name=game&sct=529&v=1709561669143")) ; for (i=0 ; i0) { document.write(getHttp("/body?name=game&sct=537&v=1709561669143")) ; for (i=0 ; i0) { document.write(getHttp("/body?name=game&sct=543&v=1709561669143")) ; for (i=0 ; i0) { document.write(getHttp("/body?name=game&sct=549&v=1709561669143")) ; for (i=0 ; i0) { document.write(getHttp("/body?name=game&sct=555&v=1709561669143")) ; for (i=0 ; i"+data["error"]) ; else { window.location = "/game/view?gameEntityId="+data["gameEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#createGameFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/update"&&validGame(gameEntity)) { if (!validSession(session)) signinPage() ; else if (validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=575&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=576&v=1709561669143")) ; breadcrumbs(gameEntity) ; gameMenu(gameEntity) ; document.write(getHttp("/body?name=game&sct=577&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=578&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=579&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=580&v=1709561669143")) ;document.write(gameEntity["name"]) ;document.write(getHttp("/body?name=game&sct=581&v=1709561669143")) ;document.write(gameEntity["showOrder"]) ;document.write(getHttp("/body?name=game&sct=582&v=1709561669143")) ;document.write(gameEntity["showScenarios"]?"checked":"") ;document.write(getHttp("/body?name=game&sct=583&v=1709561669143")) ;document.write(gameEntity["showElevation"]?"checked":"") ;document.write(getHttp("/body?name=game&sct=584&v=1709561669143")) ;document.write(gameEntity["wikipedia"]?gameEntity["wikipedia"]:"") ;document.write(getHttp("/body?name=game&sct=585&v=1709561669143")) ;document.write(gameEntity["boardgamegeek"]?gameEntity["boardgamegeek"]:"") ;document.write(getHttp("/body?name=game&sct=586&v=1709561669143")) ; $("#updateGameForm").on ( "submit", function (module) { event.preventDefault() ; $.ajax ( { url: "/app/game/update", method: "POST", async: false, data: $("#updateGameForm").serializeArray(), success: function (data) { if (data["error"]) $("#updateGameFormMessage").html("

"+data["error"]) ; else { window.location = "/game/view?gameEntityId="+data["gameEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateGameFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/generate"&&validGame(gameEntity)) { if (!validSession(session)) signinPage() ; else if (validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=587&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=588&v=1709561669143")) ; breadcrumbs(gameEntity) ; gameMenu(gameEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=589&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=590&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=591&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=592&v=1709561669143")) ; } else { $.ajax ( { url: "/app/game/generateall", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"gameEntityId":gameEntity["gameEntityId"]}, success: function (data) { if (data["error"]) $("#gameGenerateMessage").html("

"+data["error"]) ; else { window.location = "/game/view?gameEntityId="+data["gameEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#gameGenerateMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=593&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/updateshort"&&validGame(gameEntity)) { if (!validSession(session)) signinPage() ; else if (validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=594&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=595&v=1709561669143")) ; breadcrumbs(gameEntity) ; gameMenu(gameEntity) ; document.write(getHttp("/body?name=game&sct=596&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=597&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=598&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=599&v=1709561669143")) ;document.write(getHttp("/app/game/textshortdescription?gameEntityId="+gameEntity["gameEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=600&v=1709561669143")) ; $("#updateGameShortForm").on ( "submit", function (module) { event.preventDefault() ; $.ajax ( { url: "/app/game/updateshortdescription", method: "POST", async: false, data: $("#updateGameShortForm").serializeArray(), success: function (data) { if (data["error"]) $("#updateGameShortFormMessage").html("

"+data["error"]) ; else { window.location = "/game/view?gameEntityId="+data["gameEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateGameShortFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/updatelong"&&validGame(gameEntity)) { if (!validSession(session)) signinPage() ; else if (validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=601&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=602&v=1709561669143")) ; breadcrumbs(gameEntity) ; gameMenu(gameEntity) ; document.write(getHttp("/body?name=game&sct=603&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=604&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=605&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=606&v=1709561669143")) ;document.write(getHttp("/app/game/textlongdescription?gameEntityId="+gameEntity["gameEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=607&v=1709561669143")) ; $("#updateGameLongForm").on ( "submit", function (module) { event.preventDefault() ; $.ajax ( { url: "/app/game/updatelongdescription", method: "POST", async: false, data: $("#updateGameLongForm").serializeArray(), success: function (data) { if (data["error"]) $("#updateGameLongFormMessage").html("

"+data["error"]) ; else { window.location = "/game/view?gameEntityId="+data["gameEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateGameLongFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/updatedesign"&&validGame(gameEntity)) { if (!validSession(session)) signinPage() ; else if (validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=608&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=609&v=1709561669143")) ; breadcrumbs(gameEntity) ; gameMenu(gameEntity) ; document.write(getHttp("/body?name=game&sct=610&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=611&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=612&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=613&v=1709561669143")) ;document.write(getHttp("/app/game/textdesigndescription?gameEntityId="+gameEntity["gameEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=614&v=1709561669143")) ; $("#updateGameDesignForm").on ( "submit", function (module) { event.preventDefault() ; $.ajax ( { url: "/app/game/updatedesigndescription", method: "POST", async: false, data: $("#updateGameDesignForm").serializeArray(), success: function (data) { if (data["error"]) $("#updateGameDesignFormMessage").html("

"+data["error"]) ; else { window.location = "/game/view?gameEntityId="+data["gameEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateGameDesignFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/uploadimage"&&validGame(gameEntity)) { if (!validSession(session)) signinPage() ; else if (validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=615&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=616&v=1709561669143")) ; breadcrumbs(gameEntity) ; gameMenu(gameEntity) ; document.write(getHttp("/body?name=game&sct=617&v=1709561669143")) ;document.write(categoryEntity["imageUrl"]) ;document.write(getHttp("/body?name=game&sct=618&v=1709561669143")) ;document.write(categoryEntity["imageCredit"]) ;document.write(getHttp("/body?name=game&sct=619&v=1709561669143")) ; $("#gameUploadImageForm").on ( "submit", function (event) { event.preventDefault() ; $("#gameUploadImageForm").innerHTML = 'Uploading...' ; var formData = new FormData() ; formData.append("sessionToken",session["sessionToken"]) ; formData.append("gameEntityId",gameEntity["gameEntityId"]) ; formData.append("image",$('#gameUploadImageFormImage')[0].files[0]) ; formData.append("imageUrl",$('#gameUploadImageFormUrl').val()) ; formData.append("imageCredit",$('#gameUploadImageFormUrl').val()) ; $.ajax ( { url: "/app/game/uploadimage", method: "POST", async: false, data: formData, processData: false, contentType: false, success: function (data) { if (data["error"]) $("#gameUploadImageFormMessage").html("

"+data["error"]) ; else { window.location = "/game/view?gameEntityId="+data["gameEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#gameUploadImageFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/uploadspecification"&&validGame(gameEntity)) { if (!validSession(session)) signinPage() ; else if (validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=620&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=621&v=1709561669143")) ; breadcrumbs(gameEntity) ; gameMenu(gameEntity) ; document.write(getHttp("/body?name=game&sct=622&v=1709561669143")) ; $("#gameUploadSpecificationForm").on ( "submit", function (event) { event.preventDefault() ; $("#gameUploadSpecificationForm").innerHTML = 'Uploading...' ; var formData = new FormData() ; formData.append("sessionToken",session["sessionToken"]) ; formData.append("gameEntityId",gameEntity["gameEntityId"]) ; formData.append("specification",$('#gameUploadSpecificationFormSpecification')[0].files[0]) ; $.ajax ( { url: "/app/game/uploadspecification", method: "POST", async: false, data: formData, processData: false, contentType: false, success: function (data) { if (data["error"]) $("#gameUploadSpecificationFormMessage").html("

"+data["error"]) ; else { window.location = "/game/view?gameEntityId="+data["gameEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#gameUploadSpecificationFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/delete"&&validGame(gameEntity)) { if (!validSession(session)) signinPage() ; else if (validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=623&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=624&v=1709561669143")) ; breadcrumbs(gameEntity) ; gameMenu(gameEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=625&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=626&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=627&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=628&v=1709561669143")) ; } else { $.ajax ( { url: "/app/game/delete", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"gameEntityId":gameEntity["gameEntityId"]}, success: function (data) { if (data["error"]) $("#gameDeleteMessage").html("

"+data["error"]) ; else { window.location = "/game/list" ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#gameDeleteMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=629&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/subscribe"&&validGame(gameEntity)) { if (!validSession(session)) signinPage() ; else { document.write(getHttp("/body?name=game&sct=630&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=631&v=1709561669143")) ; breadcrumbsGame(gameEntity) ; gameMenu(gameEntity) ; $.ajax ( { url: "/app/game/subscribe", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"gameEntityId":gameEntity["gameEntityId"],"userEntityId":session["userEntityId"]}, success: function (data) { if (data["error"]) $("#gameSubscribeMessage").html("

"+data["error"]) ; else { window.location = "/game/view?gameEntityId="+data["gameEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#gameSubscribeMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; document.write(getHttp("/body?name=game&sct=632&v=1709561669143")) ; } } else if (pathname=="/game/join"&&validGame(gameEntity)) { if (!validSession(session)) signinPage() ; else { document.write(getHttp("/body?name=game&sct=633&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=634&v=1709561669143")) ; breadcrumbsGame(gameEntity,gameEntity) ; gameMenu(gameEntity,gameEntity) ; document.write(getHttp("/body?name=game&sct=635&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=636&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=637&v=1709561669143")) ;document.write(session["userEntityId"]) ;document.write(getHttp("/body?name=game&sct=638&v=1709561669143")) ; $("#joinGameForm").on ( "submit", function (game) { game.prgameDefault() ; $.ajax ( { url: "/app/game/join", method: "POST", async: false, data: $("#joinGameForm").serializeArray(), success: function (data) { if (data["error"]) $("#joinGameFormMessage").html("

"+data["error"]) ; else { window.location = "/game/view?gameEntityId="+data["gameEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#joinGameFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; document.write(getHttp("/body?name=game&sct=639&v=1709561669143")) ; } } else if (pathname=="/game/comment"&&validGame(gameEntity)) { if (!validSession(session)) signinPage() ; else { document.write(getHttp("/body?name=game&sct=640&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=641&v=1709561669143")) ; breadcrumbs(gameEntity) ; gameMenu(gameEntity,gameUserEntity) ; document.write(getHttp("/body?name=game&sct=642&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=643&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=644&v=1709561669143")) ;document.write(session["userEntityId"]) ;document.write(getHttp("/body?name=game&sct=645&v=1709561669143")) ;document.write(getHttp("/app/game/user/textlongdescription?gameEntityId="+gameEntity["gameEntityId"]+"&userEntityId="+session["userEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=646&v=1709561669143")) ; $("#commentGameForm").on ( "submit", function (module) { event.preventDefault() ; $.ajax ( { url: "/app/game/comment", method: "POST", async: false, data: $("#commentGameForm").serializeArray(), success: function (data) { if (data["error"]) $("#commentGameFormMessage").html("

"+data["error"]) ; else { window.location = "/game/view?gameEntityId="+data["gameEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#commentGameFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } } else if ((pathname=="/game/user"||pathname=="/game/user/list")&&validGame(gameEntity)) { if (!validSession(session)) signinPage() ; else if (validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { var page = parseInt(getQueryParameter("page")) ; if (isNaN(page)) page = 0 ; var criteria = getQueryParameter("criteria") ; document.write(getHttp("/body?name=game&sct=647&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=648&v=1709561669143")) ; breadcrumbs(gameEntity) ; gameUserMenu(gameEntity) ; var gameUserEntityList = getHttpJson("/app/game/user/list?gameEntityId="+gameEntity["gameEntityId"]+(criteria?("&criteria="+criteria):"")+"&page="+page+"&sessionToken="+session["sessionToken"]) ; document.write(getHttp("/body?name=game&sct=649&v=1709561669143")) ; for (i=0 ; i<10&&i0) { document.write(getHttp("/body?name=game&sct=659&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(criteria?("&criteria="+criteria):"") ;document.write(getHttp("/body?name=game&sct=660&v=1709561669143")) ;document.write(page-1) ;document.write(getHttp("/body?name=game&sct=661&v=1709561669143")) ; } if (gameUserEntityList.length>10) { document.write(getHttp("/body?name=game&sct=662&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(criteria?("&criteria="+criteria):"") ;document.write(getHttp("/body?name=game&sct=663&v=1709561669143")) ;document.write(page+1) ;document.write(getHttp("/body?name=game&sct=664&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=665&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/user/view"&&validGame(gameEntity)&&validGameUser(gameUserEntity)) { if (!validSession(session)) signinPage() ; else if (validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=666&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=667&v=1709561669143")) ;document.write(gameUserEntity["label"]) ;document.write(getHttp("/body?name=game&sct=668&v=1709561669143")) ; breadcrumbs(gameEntity) ; gameUserMenu(gameEntity,gameUserEntity) ; if (gameUserEntity["userEntityId"]>0) { document.write(getHttp("/body?name=game&sct=669&v=1709561669143")) ;document.write(gameUserEntity["userEntityId"]) ;document.write(getHttp("/body?name=game&sct=670&v=1709561669143")) ;document.write(gameUserEntity["version"]) ;document.write(getHttp("/body?name=game&sct=671&v=1709561669143")) ;document.write(gameUserEntity["label"]) ;document.write(getHttp("/body?name=game&sct=672&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=673&v=1709561669143")) ; if (gameUserEntity["firstName"]) { document.write(getHttp("/body?name=game&sct=674&v=1709561669143")) ;document.write(gameUserEntity["firstName"]) ;document.write(getHttp("/body?name=game&sct=675&v=1709561669143")) ; } if (gameUserEntity["lastName"]) { document.write(getHttp("/body?name=game&sct=676&v=1709561669143")) ;document.write(gameUserEntity["lastName"]) ;document.write(getHttp("/body?name=game&sct=677&v=1709561669143")) ; } if (gameUserEntity["email"]) { document.write(getHttp("/body?name=game&sct=678&v=1709561669143")) ;document.write(gameUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=679&v=1709561669143")) ;document.write(gameUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=680&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=681&v=1709561669143")) ;document.write(gameUserEntity["administrator"]) ;document.write(getHttp("/body?name=game&sct=682&v=1709561669143")) ;document.write(gameUserEntity["editor"]) ;document.write(getHttp("/body?name=game&sct=683&v=1709561669143")) ;document.write(gameUserEntity["designer"]) ;document.write(getHttp("/body?name=game&sct=684&v=1709561669143")) ;document.write(gameUserEntity["subscriber"]) ;document.write(getHttp("/body?name=game&sct=685&v=1709561669143")) ;document.write(gameUserEntity["createDate"]) ;document.write(getHttp("/body?name=game&sct=686&v=1709561669143")) ;document.write(gameUserEntity["modifyDate"]) ;document.write(getHttp("/body?name=game&sct=687&v=1709561669143")) ;document.write(getHttp("/app/user/view/textlongdescription?userEntityId="+gameUserEntity["userEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=688&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/user/create"&&validGame(gameEntity)) { if (!validSession(session)) signinPage() ; else if (validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=689&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=690&v=1709561669143")) ; breadcrumbs(gameEntity) ; gameUserMenu(gameEntity,gameUserEntity) ; document.write(getHttp("/body?name=game&sct=691&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=692&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=693&v=1709561669143")) ; $("#createGameUserForm").on ( "submit", function (module) { event.preventDefault() ; $.ajax ( { url: "/app/game/user/create", method: "POST", async: false, data: $("#createGameUserForm").serializeArray(), success: function (data) { if (data["error"]) $("#createGameUserFormMessage").html("

"+data["error"]) ; else { window.location = "/game/user/view?gameUserEntityId="+data["gameUserEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#createGameUserFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/user/update"&&validGame(gameEntity)&&validGameUser(gameUserEntity)) { if (!validSession(session)) signinPage() ; else if (validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=694&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=695&v=1709561669143")) ;document.write(gameUserEntity["label"]) ;document.write(getHttp("/body?name=game&sct=696&v=1709561669143")) ; breadcrumbs(gameEntity) ; gameUserMenu(gameEntity,gameUserEntity) ; document.write(getHttp("/body?name=game&sct=697&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=698&v=1709561669143")) ;document.write(gameUserEntity["gameUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=699&v=1709561669143")) ; if (gameUserEntity["firstName"]) { document.write(getHttp("/body?name=game&sct=700&v=1709561669143")) ;document.write(gameUserEntity["firstName"]) ;document.write(getHttp("/body?name=game&sct=701&v=1709561669143")) ; } if (gameUserEntity["lastName"]) { document.write(getHttp("/body?name=game&sct=702&v=1709561669143")) ;document.write(gameUserEntity["lastName"]) ;document.write(getHttp("/body?name=game&sct=703&v=1709561669143")) ; } if (gameUserEntity["email"]) { document.write(getHttp("/body?name=game&sct=704&v=1709561669143")) ;document.write(gameUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=705&v=1709561669143")) ;document.write(gameUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=706&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=707&v=1709561669143")) ;document.write(gameUserEntity["administrator"]?"checked":"") ;document.write(getHttp("/body?name=game&sct=708&v=1709561669143")) ;document.write(gameUserEntity["editor"]?"checked":"") ;document.write(getHttp("/body?name=game&sct=709&v=1709561669143")) ;document.write(gameUserEntity["designer"]?"checked":"") ;document.write(getHttp("/body?name=game&sct=710&v=1709561669143")) ;document.write(gameUserEntity["subscriber"]?"checked":"") ;document.write(getHttp("/body?name=game&sct=711&v=1709561669143")) ; $("#updateGameUserForm").on ( "submit", function (module) { event.preventDefault() ; $.ajax ( { url: "/app/game/user/update", method: "POST", async: false, data: $("#updateGameUserForm").serializeArray(), success: function (data) { if (data["error"]) $("#updateGameUserFormMessage").html("

"+data["error"]) ; else { window.location = "/game/user/view?gameUserEntityId="+data["gameUserEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateGameUserFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/user/delete"&&validGame(gameEntity)&&validGameUser(gameUserEntity)) { if (!validSession(session)) signinPage() ; else if (validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=712&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=713&v=1709561669143")) ;document.write(gameUserEntity["label"]) ;document.write(getHttp("/body?name=game&sct=714&v=1709561669143")) ; breadcrumbs(gameEntity) ; gameUserMenu(gameEntity,gameUserEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=715&v=1709561669143")) ;document.write(gameUserEntity["gameUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=716&v=1709561669143")) ; if (gameUserEntity["firstName"]) { document.write(getHttp("/body?name=game&sct=717&v=1709561669143")) ;document.write(gameUserEntity["firstName"]) ;document.write(getHttp("/body?name=game&sct=718&v=1709561669143")) ; } if (gameUserEntity["lastName"]) { document.write(getHttp("/body?name=game&sct=719&v=1709561669143")) ;document.write(gameUserEntity["lastName"]) ;document.write(getHttp("/body?name=game&sct=720&v=1709561669143")) ; } if (gameUserEntity["email"]) { document.write(getHttp("/body?name=game&sct=721&v=1709561669143")) ;document.write(gameUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=722&v=1709561669143")) ;document.write(gameUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=723&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=724&v=1709561669143")) ; } else { $.ajax ( { url: "/app/game/user/delete", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"gameUserEntityId":gameUserEntity["gameUserEntityId"]}, success: function (data) { if (data["error"]) $("#gameUserDeleteMessage").html("

"+data["error"]) ; else { window.location = "/game/user/list?gameEntityId="+data["gameEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#gameUserDeleteMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=725&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/user/quit"&&validGame(gameEntity)&&validGameUser(gameUserEntity)) { if (!validSession(session)) signinPage() ; else if (gameUserEntity["userEntityId"]==session["userEntityId"]||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=726&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=727&v=1709561669143")) ; breadcrumbsGame(gameEntity,gameUserEntity) ; gameUserMenu(gameEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=728&v=1709561669143")) ;document.write(gameUserEntity["gameUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=729&v=1709561669143")) ; } else { $.ajax ( { url: "/app/game/user/quit", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"gameUserEntityId":gameUserEntity["gameUserEntityId"]}, success: function (data) { if (data["error"]) $("#gameUserQuitMessage").html("

"+data["error"]) ; else { window.location = "/game/view?gameEntityId="+data["gameEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#gameUserQuitMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=730&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/user/resend"&&validGame(gameEntity)&&validGameUser(gameUserEntity)) { if (!validSession(session)) signinPage() ; else if (validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=731&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=732&v=1709561669143")) ;document.write(gameUserEntity["label"]) ;document.write(getHttp("/body?name=game&sct=733&v=1709561669143")) ; breadcrumbsGame(gameEntity,gameUserEntity) ; gameUserMenu(gameEntity,gameUserEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=734&v=1709561669143")) ;document.write(gameUserEntity["gameUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=735&v=1709561669143")) ; } else { $.ajax ( { url: "/app/game/user/resend", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"gameUserEntityId":gameUserEntity["gameUserEntityId"]}, success: function (data) { if (data["error"]) $("#gameUserResendMessage").html("

"+data["error"]) ; else { window.location = "/game/user/view?gameUserEntityId="+data["gameUserEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#gameUserResendMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; document.write(getHttp("/body?name=game&sct=736&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=737&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/user/accept"&&validGame(gameEntity)&&validGameUser(gameUserEntity)) { if (!validSession(session)) signinPage() ; else if (gameUserEntity["userEntityId"]==session["userEntityId"]||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=738&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=739&v=1709561669143")) ; breadcrumbsGame(gameEntity,gameUserEntity) ; gameUserMenu(gameEntity) ; { $.ajax ( { url: "/app/game/user/accept", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"gameUserEntityId":gameUserEntityId}, success: function (data) { if (data["error"]) $("#gameUserAcceptMessage").html("

"+data["error"]) ; else { window.location = "/game/view?gameEntityId="+data["gameEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#gameUserAcceptMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=740&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/user/decline"&&validGame(gameEntity)&&validGameUser(gameUserEntity)) { if (!validSession(session)) signinPage() ; else if (gameUserEntity["userEntityId"]==session["userEntityId"]||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=741&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=742&v=1709561669143")) ; breadcrumbsGame(gameEntity,gameUserEntity) ; gameUserMenu(gameEntity) ; { $.ajax ( { url: "/app/game/user/decline", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"gameUserEntityId":gameUserEntityId}, success: function (data) { if (data["error"]) $("#gameUserDeclineMessage").html("

"+data["error"]) ; else { window.location = "/game/view?gameEntityId="+data["gameEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#gameUserDeclineMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=743&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/user/approve"&&validGame(gameEntity)) { if (!validSession(session)) signinPage() ; else if (validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=744&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=745&v=1709561669143")) ;document.write(gameUserEntity["label"]) ;document.write(getHttp("/body?name=game&sct=746&v=1709561669143")) ; breadcrumbsGame(gameEntity,gameUserEntity) ; gameUserMenu(gameEntity,gameUserEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=747&v=1709561669143")) ;document.write(gameUserEntity["gameUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=748&v=1709561669143")) ; if (gameUserEntity["firstName"]) { document.write(getHttp("/body?name=game&sct=749&v=1709561669143")) ;document.write(gameUserEntity["firstName"]) ;document.write(getHttp("/body?name=game&sct=750&v=1709561669143")) ; } if (gameUserEntity["lastName"]) { document.write(getHttp("/body?name=game&sct=751&v=1709561669143")) ;document.write(gameUserEntity["lastName"]) ;document.write(getHttp("/body?name=game&sct=752&v=1709561669143")) ; } if (gameUserEntity["email"]) { document.write(getHttp("/body?name=game&sct=753&v=1709561669143")) ;document.write(gameUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=754&v=1709561669143")) ;document.write(gameUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=755&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=756&v=1709561669143")) ; } else { $.ajax ( { url: "/app/game/user/approve", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"gameUserEntityId":gameUserEntity["gameUserEntityId"]}, success: function (data) { if (data["error"]) $("#gameUserApproveMessage").html("

"+data["error"]) ; else { window.location = "/game/user/view?gameUserEntityId="+data["gameUserEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#gameUserApproveMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=757&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/user/reject"&&validGame(gameEntity)&&validGameUser(gameUserEntity)) { if (!validSession(session)) signinPage() ; else if (validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=758&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=759&v=1709561669143")) ;document.write(gameUserEntity["label"]) ;document.write(getHttp("/body?name=game&sct=760&v=1709561669143")) ; breadcrumbsGame(gameEntity,gameUserEntity) ; gameUserMenu(gameEntity,gameUserEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=761&v=1709561669143")) ;document.write(gameUserEntity["gameUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=762&v=1709561669143")) ; if (gameUserEntity["firstName"]) { document.write(getHttp("/body?name=game&sct=763&v=1709561669143")) ;document.write(gameUserEntity["firstName"]) ;document.write(getHttp("/body?name=game&sct=764&v=1709561669143")) ; } if (gameUserEntity["lastName"]) { document.write(getHttp("/body?name=game&sct=765&v=1709561669143")) ;document.write(gameUserEntity["lastName"]) ;document.write(getHttp("/body?name=game&sct=766&v=1709561669143")) ; } if (gameUserEntity["email"]) { document.write(getHttp("/body?name=game&sct=767&v=1709561669143")) ;document.write(gameUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=768&v=1709561669143")) ;document.write(gameUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=769&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=770&v=1709561669143")) ; } else { $.ajax ( { url: "/app/game/user/reject", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"gameUserEntityId":gameUserEntity["gameUserEntityId"]}, success: function (data) { if (data["error"]) $("#gameUserRejectMessage").html("

"+data["error"]) ; else { window.location = "/game/user/view?gameUserEntityId="+data["gameUserEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#gameUserRejectMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=771&v=1709561669143")) ; } else errorPage() ; } else if ((pathname=="/game/image"||pathname=="/game/image/list")&&validGame(gameEntity)) { if (!validSession(session)) signinPage() ; else if (validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { var page = parseInt(getQueryParameter("page")) ; if (isNaN(page)) page = 0 ; var criteria = getQueryParameter("criteria") ; document.write(getHttp("/body?name=game&sct=772&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=773&v=1709561669143")) ; breadcrumbs(gameEntity) ; gameMenu(gameEntity) ; var imageEntityList = getHttpJson("/app/game/image/list?gameEntityId="+gameEntity["gameEntityId"]+(criteria?("&criteria="+criteria):"")+"&page="+page+"&sessionToken="+session["sessionToken"]) ; document.write(getHttp("/body?name=game&sct=774&v=1709561669143")) ; for (i=0 ; i<2&&i*50) { document.write(getHttp("/body?name=game&sct=795&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(criteria?("&criteria="+criteria):"") ;document.write(getHttp("/body?name=game&sct=796&v=1709561669143")) ;document.write(page-1) ;document.write(getHttp("/body?name=game&sct=797&v=1709561669143")) ; } if (i*5+j==15) { document.write(getHttp("/body?name=game&sct=798&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(criteria?("&criteria="+criteria):"") ;document.write(getHttp("/body?name=game&sct=799&v=1709561669143")) ;document.write(page+1) ;document.write(getHttp("/body?name=game&sct=800&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=801&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/image/create"&&validGame(gameEntity)) { if (!validSession(session)) signinPage() ; else if (validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=802&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=803&v=1709561669143")) ; breadcrumbs(gameEntity) ; gameMenu(gameEntity) ; document.write(getHttp("/body?name=game&sct=804&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=805&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=806&v=1709561669143")) ; $("#createGameImageForm").on ( "submit", function (event) { event.preventDefault() ; $("#createGameImageForm").innerHTML = 'Uploading...' ; var formData = new FormData() ; formData.append("sessionToken",session["sessionToken"]) ; formData.append("gameEntityId",gameEntity["gameEntityId"]) ; formData.append("image",$('#createGameImageFormImage')[0].files[0]) ; $.ajax ( { url: "/app/game/image/create", method: "POST", async: false, data: formData, processData: false, contentType: false, success: function (data) { if (data["error"]) $("#createGameImageFormMessage").html("

"+data["error"]) ; else { window.location = "/game/image/list?gameEntityId="+data["gameEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#createGameImageFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/image/delete"&&validGame(gameEntity)) { if (!validSession(session)) signinPage() ; else if (validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=807&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=808&v=1709561669143")) ; breadcrumbs(gameEntity) ; gameMenu(gameEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=809&v=1709561669143")) ;document.write(getQueryParameter("imageEntityId")) ;document.write(getHttp("/body?name=game&sct=810&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=811&v=1709561669143")) ;document.write(getQueryParameter("imageEntityId")) ;document.write(getHttp("/body?name=game&sct=812&v=1709561669143")) ; } else { $.ajax ( { url: "/app/game/image/delete", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"imageEntityId":getQueryParameter("imageEntityId")}, success: function (data) { if (data["error"]) $("#gameImageDeleteMessage").html("

"+data["error"]) ; else { window.location = "/game/image/list?gameEntityId="+data["gameEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#gameImageDeleteMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=813&v=1709561669143")) ; } else errorPage() ; } else if ((pathname=="/game/module"||pathname=="/game/module/list")&&validGame(gameEntity)) { var page = parseInt(getQueryParameter("page")) ; if (isNaN(page)) page = 0 ; var criteria = getQueryParameter("criteria") ; document.write(getHttp("/body?name=game&sct=814&v=1709561669143")) ; breadcrumbs(gameEntity,moduleEntity) ; moduleMenu(moduleEntity) ; var moduleEntityList = getHttpJson("/app/module/list?"+((validModule(moduleEntity))?("moduleEntityId="+moduleEntity["moduleEntityId"]):("gameEntityId="+gameEntity["gameEntityId"]))+(criteria?("&criteria="+criteria):"")+"&page="+page+"&sessionToken="+session["sessionToken"]) ; document.write(getHttp("/body?name=game&sct=815&v=1709561669143")) ; for (i=0 ; i<10&&i0) { document.write(getHttp("/body?name=game&sct=821&v=1709561669143")) ;document.write(page-1) ;document.write(moduleEntity!=null?("&moduleEntityId="+moduleEntity["moduleEntityId"]):("&gameEntityId="+gameEntity["gameEntityId"])) ;document.write(criteria?("&criteria="+criteria):"") ;document.write(getHttp("/body?name=game&sct=822&v=1709561669143")) ; } if (moduleEntityList.length>10) { document.write(getHttp("/body?name=game&sct=823&v=1709561669143")) ;document.write(page+1) ;document.write(moduleEntity!=null?("&moduleEntityId="+moduleEntity["moduleEntityId"]):("&gameEntityId="+gameEntity["gameEntityId"])) ;document.write(criteria?("&criteria="+criteria):"") ;document.write(getHttp("/body?name=game&sct=824&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=825&v=1709561669143")) ; } else if (pathname=="/game/module/view"&&validGame(gameEntity)&&validModule(moduleEntity)) { document.write(getHttp("/body?name=game&sct=826&v=1709561669143")) ;document.write(moduleEntity["label"]) ;document.write(getHttp("/body?name=game&sct=827&v=1709561669143")) ; breadcrumbs(gameEntity,moduleEntity) ; moduleMenu(moduleEntity) ; if (validSession(session)) { document.write(getHttp("/body?name=game&sct=828&v=1709561669143")) ; var rating = sessionModuleUserEntity["rating"]*5 ; for (i=1 ; i<=5 ; ++i) { document.write(getHttp("/body?name=game&sct=829&v=1709561669143")) ;document.write(i) ;document.write(getHttp("/body?name=game&sct=830&v=1709561669143")) ;document.write(i) ;document.write(getHttp("/body?name=game&sct=831&v=1709561669143")) ;document.write(validModuleUser(sessionModuleUserEntity)&&rating>=i?"color:black;":"color:gray;") ;document.write(getHttp("/body?name=game&sct=832&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=833&v=1709561669143")) ;document.write(validModuleUserSubscriber(sessionModuleUserEntity)?"display:none;":"display:block;") ;document.write(getHttp("/body?name=game&sct=834&v=1709561669143")) ;document.write(!validModuleUserSubscriber(sessionModuleUserEntity)?"display:none;":"display:block;") ;document.write(getHttp("/body?name=game&sct=835&v=1709561669143")) ; } else { document.write(getHttp("/body?name=game&sct=836&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=837&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=838&v=1709561669143")) ;document.write(getHttp("/app/module/textlongdescription?moduleEntityId="+moduleEntity["moduleEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=839&v=1709561669143")) ;document.write(getHttp("/app/module/textdesigndescription?moduleEntityId="+moduleEntity["moduleEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=840&v=1709561669143")) ; if (moduleEntity["wikipedia"]||moduleEntity["boardGameGeek"]) { document.write(getHttp("/body?name=game&sct=841&v=1709561669143")) ; if (moduleEntity["wikipedia"]) { document.write(getHttp("/body?name=game&sct=842&v=1709561669143")) ;document.write(moduleEntity["wikipedia"]) ;document.write(getHttp("/body?name=game&sct=843&v=1709561669143")) ; } if (moduleEntity["boardGameGeek"]) { document.write(getHttp("/body?name=game&sct=844&v=1709561669143")) ;document.write(moduleEntity["boardGameGeek"]) ;document.write(getHttp("/body?name=game&sct=845&v=1709561669143")) ; } } document.write(getHttp("/body?name=game&sct=846&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=847&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=848&v=1709561669143")) ; var documentEntityList = getHttpJson("/app/document/listbymoduleorder?moduleEntityId="+moduleEntity["moduleEntityId"]+"&sessionToken="+session["sessionToken"]) ; if (documentEntityList.length>0) { document.write(getHttp("/body?name=game&sct=849&v=1709561669143")) ; for (i=0 ; i<10&&i10) { document.write(getHttp("/body?name=game&sct=855&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=856&v=1709561669143")) ; } } var scenarioEntityList = getHttpJson("/app/scenario/listbymoduleorder?moduleEntityId="+moduleEntity["moduleEntityId"]+"&sessionToken="+session["sessionToken"]) ; if (scenarioEntityList.length>0) { document.write(getHttp("/body?name=game&sct=857&v=1709561669143")) ; for (i=0 ; i<10&&i10) { document.write(getHttp("/body?name=game&sct=863&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=864&v=1709561669143")) ; } } var moduleEntityList = getHttpJson("/app/module/listbymoduleorder?parentModuleEntityId="+moduleEntity["moduleEntityId"]+"&sessionToken="+session["sessionToken"]) ; if (moduleEntityList.length>0) { document.write(getHttp("/body?name=game&sct=865&v=1709561669143")) ; for (i=0 ; i<10&&i10) { document.write(getHttp("/body?name=game&sct=871&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=872&v=1709561669143")) ; } } var mapSetEntityList = getHttpJson("/app/mapset/listbymoduleorder?moduleEntityId="+moduleEntity["moduleEntityId"]+"&sessionToken="+session["sessionToken"]) ; if (mapSetEntityList.length>0) { document.write(getHttp("/body?name=game&sct=873&v=1709561669143")) ; for (i=0 ; i<10&&i10) { document.write(getHttp("/body?name=game&sct=879&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=880&v=1709561669143")) ; } } var formationEntityList = getHttpJson("/app/formation/listbymoduleorder?moduleEntityId="+moduleEntity["moduleEntityId"]+"&sessionToken="+session["sessionToken"]) ; if (formationEntityList.length>0) { document.write(getHttp("/body?name=game&sct=881&v=1709561669143")) ; for (i=0 ; i<10&&i10) { document.write(getHttp("/body?name=game&sct=886&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=887&v=1709561669143")) ; } } var formationSetEntityList = getHttpJson("/app/formationset/listbymoduleorder?moduleEntityId="+moduleEntity["moduleEntityId"]+"&sessionToken="+session["sessionToken"]) ; if (formationSetEntityList.length>0) { document.write(getHttp("/body?name=game&sct=888&v=1709561669143")) ; for (i=0 ; i<10&&i10) { document.write(getHttp("/body?name=game&sct=894&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=895&v=1709561669143")) ; } } if (validModuleUserEditor(sessionModuleUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { var moduleUserEntity = getHttpJson("/app/module/user/view?moduleEntityId="+moduleEntity["moduleEntityId"]+"&userEntityId="+moduleEntity["userEntityId"]+"&sessionToken="+session["sessionToken"]) ; document.write(getHttp("/body?name=game&sct=896&v=1709561669143")) ;document.write(moduleEntity["label"]) ;document.write(getHttp("/body?name=game&sct=897&v=1709561669143")) ;document.write(moduleEntity["name"]) ;document.write(getHttp("/body?name=game&sct=898&v=1709561669143")) ;document.write(moduleUserEntity["moduleUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=899&v=1709561669143")) ;document.write(moduleUserEntity["label"]) ;document.write(getHttp("/body?name=game&sct=900&v=1709561669143")) ;document.write(moduleEntity["rating"]) ;document.write(getHttp("/body?name=game&sct=901&v=1709561669143")) ;document.write(moduleEntity["createDate"]) ;document.write(getHttp("/body?name=game&sct=902&v=1709561669143")) ;document.write(moduleEntity["modifyDate"]) ;document.write(getHttp("/body?name=game&sct=903&v=1709561669143")) ;document.write(getHttp("/app/module/viewerrorlog?moduleEntityId="+moduleEntity["moduleEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=904&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=905&v=1709561669143")) ; } else if (pathname=="/game/module/create"&&validGame(gameEntity)) { if (!validSession(session)) signinPage() ; else if (validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=906&v=1709561669143")) ; breadcrumbs(gameEntity,moduleEntity) ; moduleMenu(gameEntity) ; document.write(getHttp("/body?name=game&sct=907&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=908&v=1709561669143")) ; $("#createModuleForm").on ( "submit", function (module) { event.preventDefault() ; $.ajax ( { url: "/app/module/create", method: "POST", async: false, data: $("#createModuleForm").serializeArray(), success: function (data) { if (data["error"]) $("#createModuleFormMessage").html("

"+data["error"]) ; else { window.location = "/game/module/view?moduleEntityId="+data["moduleEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#createModuleFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/module/update"&&validGame(gameEntity)&&validModule(moduleEntity)) { if (!validSession(session)) signinPage() ; else if (validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=909&v=1709561669143")) ;document.write(moduleEntity["label"]) ;document.write(getHttp("/body?name=game&sct=910&v=1709561669143")) ; breadcrumbs(gameEntity,moduleEntity) ; moduleMenu(moduleEntity) ; document.write(getHttp("/body?name=game&sct=911&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=912&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=913&v=1709561669143")) ;document.write(moduleEntity["label"]) ;document.write(getHttp("/body?name=game&sct=914&v=1709561669143")) ;document.write(moduleEntity["name"]) ;document.write(getHttp("/body?name=game&sct=915&v=1709561669143")) ;document.write(moduleEntity["wikipedia"]?moduleEntity["wikipedia"]:"") ;document.write(getHttp("/body?name=game&sct=916&v=1709561669143")) ;document.write(moduleEntity["boardgamegeek"]?moduleEntity["boardgamegeek"]:"") ;document.write(getHttp("/body?name=game&sct=917&v=1709561669143")) ; var moduleEntityList = getHttpJson("/app/module/list?gameEntityId="+gameEntity["gameEntityId"]+"&criteria=all&page=-1&sessionToken="+session["sessionToken"]) ; document.write(getHttp("/body?name=game&sct=918&v=1709561669143")) ; for (var i=0 ; i"+data["error"]) ; else { window.location = "/game/module/view?moduleEntityId="+data["moduleEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateModuleFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/module/move"&&validModule(moduleEntity)&&(validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session))) { if (!validSession(session)) signinPage() ; else if (validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=924&v=1709561669143")) ;document.write(moduleEntity["label"]) ;document.write(getHttp("/body?name=game&sct=925&v=1709561669143")) ; breadcrumbs(gameEntity,moduleEntity) ; moduleMenu(moduleEntity) ; document.write(getHttp("/body?name=game&sct=926&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=927&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=928&v=1709561669143")) ; var moduleEntityList = getHttpJson("/app/module/list?gameEntityId="+gameEntity["gameEntityId"]+"&criteria=all&page=-1&sessionToken="+session["sessionToken"]) ; document.write(getHttp("/body?name=game&sct=929&v=1709561669143")) ; for (var i=0 ; i"+data["error"]) ; else { window.location = "/game/module/view?moduleEntityId="+data["moduleEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateModuleFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/module/generate"&&validGame(gameEntity)&&validModule(moduleEntity)) { if (!validSession(session)) signinPage() ; else if (validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=935&v=1709561669143")) ;document.write(moduleEntity["name"]) ;document.write(getHttp("/body?name=game&sct=936&v=1709561669143")) ; breadcrumbs(gameEntity,moduleEntity) ; moduleMenu(moduleEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=937&v=1709561669143")) ;document.write(moduleEntity["name"]) ;document.write(getHttp("/body?name=game&sct=938&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=939&v=1709561669143")) ;document.write(moduleEntity["name"]) ;document.write(getHttp("/body?name=game&sct=940&v=1709561669143")) ; } else { $.ajax ( { url: "/app/module/generate", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"moduleEntityId":moduleEntity["moduleEntityId"]}, success: function (data) { if (data["error"]) $("#moduleGenerateMessage").html("

"+data["error"]) ; else { window.location = "/game/module/view?moduleEntityId="+data["moduleEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#moduleGenerateMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=941&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/module/updateshort"&&validGame(gameEntity)&&validModule(moduleEntity)) { if (!validSession(session)) signinPage() ; else if (validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=942&v=1709561669143")) ;document.write(moduleEntity["label"]) ;document.write(getHttp("/body?name=game&sct=943&v=1709561669143")) ; breadcrumbs(gameEntity,moduleEntity) ; moduleMenu(moduleEntity) ; document.write(getHttp("/body?name=game&sct=944&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=945&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=946&v=1709561669143")) ;document.write(moduleEntity["label"]) ;document.write(getHttp("/body?name=game&sct=947&v=1709561669143")) ;document.write(getHttp("/app/module/textshortdescription?moduleEntityId="+moduleEntity["moduleEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=948&v=1709561669143")) ; $("#updateModuleShortForm").on ( "submit", function (module) { event.preventDefault() ; $.ajax ( { url: "/app/module/updateshortdescription", method: "POST", async: false, data: $("#updateModuleShortForm").serializeArray(), success: function (data) { if (data["error"]) $("#updateModuleShortFormMessage").html("

"+data["error"]) ; else { window.location = "/game/module/view?moduleEntityId="+data["moduleEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateModuleShortFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/module/updatelong"&&validGame(gameEntity)&&validModule(moduleEntity)) { if (!validSession(session)) signinPage() ; else if (validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=949&v=1709561669143")) ;document.write(moduleEntity["label"]) ;document.write(getHttp("/body?name=game&sct=950&v=1709561669143")) ; breadcrumbs(gameEntity,moduleEntity) ; moduleMenu(moduleEntity) ; document.write(getHttp("/body?name=game&sct=951&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=952&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=953&v=1709561669143")) ;document.write(moduleEntity["label"]) ;document.write(getHttp("/body?name=game&sct=954&v=1709561669143")) ;document.write(getHttp("/app/module/textlongdescription?moduleEntityId="+moduleEntity["moduleEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=955&v=1709561669143")) ; $("#updateModuleLongForm").on ( "submit", function (module) { event.preventDefault() ; $.ajax ( { url: "/app/module/updatelongdescription", method: "POST", async: false, data: $("#updateModuleLongForm").serializeArray(), success: function (data) { if (data["error"]) $("#updateModuleLongFormMessage").html("

"+data["error"]) ; else { window.location = "/game/module/view?moduleEntityId="+data["moduleEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateModuleLongFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/module/updatedesign"&&validGame(gameEntity)&&validModule(moduleEntity)) { if (!validSession(session)) signinPage() ; else if (validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=956&v=1709561669143")) ;document.write(moduleEntity["label"]) ;document.write(getHttp("/body?name=game&sct=957&v=1709561669143")) ; breadcrumbs(gameEntity,moduleEntity) ; moduleMenu(moduleEntity) ; document.write(getHttp("/body?name=game&sct=958&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=959&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=960&v=1709561669143")) ;document.write(moduleEntity["label"]) ;document.write(getHttp("/body?name=game&sct=961&v=1709561669143")) ;document.write(getHttp("/app/module/textdesigndescription?moduleEntityId="+moduleEntity["moduleEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=962&v=1709561669143")) ; $("#updateModuleDesignForm").on ( "submit", function (module) { event.preventDefault() ; $.ajax ( { url: "/app/module/updatedesigndescription", method: "POST", async: false, data: $("#updateModuleDesignForm").serializeArray(), success: function (data) { if (data["error"]) $("#updateModuleDesignFormMessage").html("

"+data["error"]) ; else { window.location = "/game/module/view?moduleEntityId="+data["moduleEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateModuleDesignFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/module/uploadimage"&&validGame(gameEntity)&&validModule(moduleEntity)) { if (!validSession(session)) signinPage() ; else if (validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=963&v=1709561669143")) ;document.write(moduleEntity["label"]) ;document.write(getHttp("/body?name=game&sct=964&v=1709561669143")) ; breadcrumbs(gameEntity,moduleEntity) ; moduleMenu(moduleEntity) ; document.write(getHttp("/body?name=game&sct=965&v=1709561669143")) ;document.write(categoryEntity["imageUrl"]) ;document.write(getHttp("/body?name=game&sct=966&v=1709561669143")) ;document.write(categoryEntity["imageCredit"]) ;document.write(getHttp("/body?name=game&sct=967&v=1709561669143")) ; $("#moduleUploadImageForm").on ( "submit", function (event) { event.preventDefault() ; $("#moduleUploadImageForm").innerHTML = 'Uploading...' ; var formData = new FormData() ; formData.append("sessionToken",session["sessionToken"]) ; formData.append("moduleEntityId",moduleEntity["moduleEntityId"]) ; formData.append("image",$('#moduleUploadImageFormImage')[0].files[0]) ; formData.append("imageUrl",$('#moduleUploadImageFormUrl').val()) ; formData.append("imageCredit",$('#moduleUploadImageFormUrl').val()) ; $.ajax ( { url: "/app/module/uploadimage", method: "POST", async: false, data: formData, processData: false, contentType: false, success: function (data) { if (data["error"]) $("#moduleUploadImageFormMessage").html("

"+data["error"]) ; else { window.location = "/game/module/view?moduleEntityId="+data["moduleEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#moduleUploadImageFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/module/uploadspecification"&&validGame(gameEntity)&&validModule(moduleEntity)) { if (!validSession(session)) signinPage() ; else if (validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=968&v=1709561669143")) ;document.write(moduleEntity["label"]) ;document.write(getHttp("/body?name=game&sct=969&v=1709561669143")) ; breadcrumbs(gameEntity,moduleEntity) ; moduleMenu(moduleEntity) ; document.write(getHttp("/body?name=game&sct=970&v=1709561669143")) ; $("#moduleUploadSpecificationForm").on ( "submit", function (event) { event.preventDefault() ; $("#moduleUploadSpecificationForm").innerHTML = 'Uploading...' ; var formData = new FormData() ; formData.append("sessionToken",session["sessionToken"]) ; formData.append("moduleEntityId",moduleEntity["moduleEntityId"]) ; formData.append("specification",$('#moduleUploadSpecificationFormSpecification')[0].files[0]) ; $.ajax ( { url: "/app/module/uploadspecification", method: "POST", async: false, data: formData, processData: false, contentType: false, success: function (data) { if (data["error"]) $("#moduleUploadSpecificationFormMessage").html("

"+data["error"]) ; else { window.location = "/game/module/view?moduleEntityId="+data["moduleEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#moduleUploadSpecificationFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/module/delete"&&validGame(gameEntity)&&validModule(moduleEntity)) { if (!validSession(session)) signinPage() ; else if (validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=971&v=1709561669143")) ;document.write(moduleEntity["name"]) ;document.write(getHttp("/body?name=game&sct=972&v=1709561669143")) ; breadcrumbs(gameEntity,moduleEntity) ; moduleMenu(moduleEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=973&v=1709561669143")) ;document.write(moduleEntity["name"]) ;document.write(getHttp("/body?name=game&sct=974&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=975&v=1709561669143")) ;document.write(moduleEntity["name"]) ;document.write(getHttp("/body?name=game&sct=976&v=1709561669143")) ; } else { $.ajax ( { url: "/app/module/delete", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"moduleEntityId":moduleEntity["moduleEntityId"]}, success: function (data) { if (data["error"]) $("#moduleDeleteMessage").html("

"+data["error"]) ; else { window.location = data["parentModuleEntityId"]?"/game/module/view?moduleEntityId="+data["parentModuleEntityId"]:"/game/view?gameEntityId="+data["gameEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#moduleDeleteMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=977&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/module/subscribe"&&validGame(gameEntity)&&validModule(moduleEntity)) { if (!validSession(session)) signinPage() ; else { document.write(getHttp("/body?name=game&sct=978&v=1709561669143")) ;document.write(moduleEntity["label"]) ;document.write(getHttp("/body?name=game&sct=979&v=1709561669143")) ; breadcrumbsModule(moduleEntity) ; moduleMenu(moduleEntity) ; $.ajax ( { url: "/app/module/subscribe", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"moduleEntityId":moduleEntity["moduleEntityId"],"userEntityId":session["userEntityId"]}, success: function (data) { if (data["error"]) $("#moduleSubscribeMessage").html("

"+data["error"]) ; else { window.location = "/game/module/view?moduleEntityId="+data["moduleEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#moduleSubscribeMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; document.write(getHttp("/body?name=game&sct=980&v=1709561669143")) ; } } else if (pathname=="/game/module/join"&&validModule(moduleEntity)) { if (!validSession(session)) signinPage() ; else { document.write(getHttp("/body?name=game&sct=981&v=1709561669143")) ;document.write(moduleEntity["label"]) ;document.write(getHttp("/body?name=game&sct=982&v=1709561669143")) ; breadcrumbsModule(moduleEntity,moduleEntity) ; moduleMenu(moduleEntity,moduleEntity) ; document.write(getHttp("/body?name=game&sct=983&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=984&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=985&v=1709561669143")) ;document.write(session["userEntityId"]) ;document.write(getHttp("/body?name=game&sct=986&v=1709561669143")) ; $("#joinModuleForm").on ( "submit", function (module) { module.prmoduleDefault() ; $.ajax ( { url: "/app/module/join", method: "POST", async: false, data: $("#joinModuleForm").serializeArray(), success: function (data) { if (data["error"]) $("#joinModuleFormMessage").html("

"+data["error"]) ; else { window.location = "/game/module/view?moduleEntityId="+data["moduleEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#joinModuleFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; document.write(getHttp("/body?name=game&sct=987&v=1709561669143")) ; } } else if (pathname=="/game/module/comment"&&validGame(gameEntity)&&validModule(moduleEntity)) { if (!validSession(session)) signinPage() ; else { document.write(getHttp("/body?name=game&sct=988&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=989&v=1709561669143")) ; breadcrumbs(gameEntity,moduleEntity) ; moduleMenu(moduleEntity) ; document.write(getHttp("/body?name=game&sct=990&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=991&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=992&v=1709561669143")) ;document.write(session["userEntityId"]) ;document.write(getHttp("/body?name=game&sct=993&v=1709561669143")) ;document.write(getHttp("/app/module/user/textlongdescription?gameEntityId="+gameEntity["gameEntityId"]+"&userEntityId="+session["userEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=994&v=1709561669143")) ; $("#commentModuleForm").on ( "submit", function (module) { event.preventDefault() ; $.ajax ( { url: "/app/module/comment", method: "POST", async: false, data: $("#commentModuleForm").serializeArray(), success: function (data) { if (data["error"]) $("#commentModuleFormMessage").html("

"+data["error"]) ; else { window.location = "/game/module/view?moduleEntityId="+data["moduleEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#commentModuleFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } } else if ((pathname=="/game/module/user"||pathname=="/game/module/user/list")&&validGame(gameEntity)&&validModule(moduleEntity)) { if (!validSession(session)) signinPage() ; else if (validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { var page = parseInt(getQueryParameter("page")) ; if (isNaN(page)) page = 0 ; var criteria = getQueryParameter("criteria") ; document.write(getHttp("/body?name=game&sct=995&v=1709561669143")) ;document.write(moduleEntity["label"]) ;document.write(getHttp("/body?name=game&sct=996&v=1709561669143")) ; breadcrumbs(gameEntity,moduleEntity) ; moduleUserMenu(moduleEntity) ; var moduleUserEntityList = getHttpJson("/app/module/user/list?moduleEntityId="+moduleEntity["moduleEntityId"]+(criteria?("&criteria="+criteria):"")+"&page="+page+"&sessionToken="+session["sessionToken"]) ; document.write(getHttp("/body?name=game&sct=997&v=1709561669143")) ; for (i=0 ; i<10&&i0) { document.write(getHttp("/body?name=game&sct=1007&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(criteria?("&criteria="+criteria):"") ;document.write(getHttp("/body?name=game&sct=1008&v=1709561669143")) ;document.write(page-1) ;document.write(getHttp("/body?name=game&sct=1009&v=1709561669143")) ; } if (moduleUserEntityList.length>10) { document.write(getHttp("/body?name=game&sct=1010&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(criteria?("&criteria="+criteria):"") ;document.write(getHttp("/body?name=game&sct=1011&v=1709561669143")) ;document.write(page+1) ;document.write(getHttp("/body?name=game&sct=1012&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=1013&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/module/user/view"&&validGame(gameEntity)&&validModule(moduleEntity)&&validModuleUser(moduleUserEntity)) { if (!validSession(session)) signinPage() ; else if (validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=1014&v=1709561669143")) ;document.write(moduleEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1015&v=1709561669143")) ;document.write(moduleUserEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1016&v=1709561669143")) ; breadcrumbs(gameEntity,moduleEntity) ; moduleUserMenu(moduleEntity,moduleUserEntity) ; if (moduleUserEntity["userEntityId"]>0) { document.write(getHttp("/body?name=game&sct=1017&v=1709561669143")) ;document.write(moduleUserEntity["userEntityId"]) ;document.write(getHttp("/body?name=game&sct=1018&v=1709561669143")) ;document.write(moduleUserEntity["version"]) ;document.write(getHttp("/body?name=game&sct=1019&v=1709561669143")) ;document.write(moduleUserEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1020&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=1021&v=1709561669143")) ; if (moduleUserEntity["firstName"]) { document.write(getHttp("/body?name=game&sct=1022&v=1709561669143")) ;document.write(moduleUserEntity["firstName"]) ;document.write(getHttp("/body?name=game&sct=1023&v=1709561669143")) ; } if (moduleUserEntity["lastName"]) { document.write(getHttp("/body?name=game&sct=1024&v=1709561669143")) ;document.write(moduleUserEntity["lastName"]) ;document.write(getHttp("/body?name=game&sct=1025&v=1709561669143")) ; } if (moduleUserEntity["email"]) { document.write(getHttp("/body?name=game&sct=1026&v=1709561669143")) ;document.write(moduleUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=1027&v=1709561669143")) ;document.write(moduleUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=1028&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=1029&v=1709561669143")) ;document.write(moduleUserEntity["administrator"]) ;document.write(getHttp("/body?name=game&sct=1030&v=1709561669143")) ;document.write(moduleUserEntity["editor"]) ;document.write(getHttp("/body?name=game&sct=1031&v=1709561669143")) ;document.write(moduleUserEntity["designer"]) ;document.write(getHttp("/body?name=game&sct=1032&v=1709561669143")) ;document.write(moduleUserEntity["subscriber"]) ;document.write(getHttp("/body?name=game&sct=1033&v=1709561669143")) ;document.write(moduleUserEntity["createDate"]) ;document.write(getHttp("/body?name=game&sct=1034&v=1709561669143")) ;document.write(moduleUserEntity["modifyDate"]) ;document.write(getHttp("/body?name=game&sct=1035&v=1709561669143")) ;document.write(getHttp("/app/user/view/textlongdescription?userEntityId="+moduleUserEntity["userEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=1036&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/module/user/create"&&validGame(gameEntity)&&validModule(moduleEntity)) { if (!validSession(session)) signinPage() ; else if (validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=1037&v=1709561669143")) ;document.write(moduleEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1038&v=1709561669143")) ; breadcrumbs(gameEntity,moduleEntity) ; moduleUserMenu(moduleEntity) ; document.write(getHttp("/body?name=game&sct=1039&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=1040&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=1041&v=1709561669143")) ;document.write(moduleUserEntity["subscriber"]?"checked":"") ;document.write(getHttp("/body?name=game&sct=1042&v=1709561669143")) ; $("#createModuleUserForm").on ( "submit", function (module) { event.preventDefault() ; $.ajax ( { url: "/app/module/user/create", method: "POST", async: false, data: $("#createModuleUserForm").serializeArray(), success: function (data) { if (data["error"]) $("#createModuleUserFormMessage").html("

"+data["error"]) ; else { window.location = "/game/module/user/view?moduleUserEntityId="+data["moduleUserEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#createModuleUserFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/module/user/update"&&validGame(gameEntity)&&validModule(moduleEntity)&&validModuleUser(moduleUserEntity)) { if (!validSession(session)) signinPage() ; else if (validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=1043&v=1709561669143")) ;document.write(moduleEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1044&v=1709561669143")) ;document.write(moduleUserEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1045&v=1709561669143")) ; breadcrumbs(gameEntity,moduleEntity) ; moduleUserMenu(moduleEntity,moduleUserEntity) ; document.write(getHttp("/body?name=game&sct=1046&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=1047&v=1709561669143")) ;document.write(moduleUserEntity["moduleUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=1048&v=1709561669143")) ; if (moduleUserEntity["firstName"]) { document.write(getHttp("/body?name=game&sct=1049&v=1709561669143")) ;document.write(moduleUserEntity["firstName"]) ;document.write(getHttp("/body?name=game&sct=1050&v=1709561669143")) ; } if (moduleUserEntity["lastName"]) { document.write(getHttp("/body?name=game&sct=1051&v=1709561669143")) ;document.write(moduleUserEntity["lastName"]) ;document.write(getHttp("/body?name=game&sct=1052&v=1709561669143")) ; } if (moduleUserEntity["email"]) { document.write(getHttp("/body?name=game&sct=1053&v=1709561669143")) ;document.write(moduleUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=1054&v=1709561669143")) ;document.write(moduleUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=1055&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=1056&v=1709561669143")) ;document.write(moduleUserEntity["administrator"]?"checked":"") ;document.write(getHttp("/body?name=game&sct=1057&v=1709561669143")) ;document.write(moduleUserEntity["editor"]?"checked":"") ;document.write(getHttp("/body?name=game&sct=1058&v=1709561669143")) ;document.write(moduleUserEntity["subscriber"]?"checked":"") ;document.write(getHttp("/body?name=game&sct=1059&v=1709561669143")) ; $("#updateModuleUserForm").on ( "submit", function (module) { event.preventDefault() ; $.ajax ( { url: "/app/module/user/update", method: "POST", async: false, data: $("#updateModuleUserForm").serializeArray(), success: function (data) { if (data["error"]) $("#updateModuleUserFormMessage").html("

"+data["error"]) ; else { window.location = "/game/module/user/view?moduleUserEntityId="+data["moduleUserEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateModuleUserFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/module/user/delete"&&validGame(gameEntity)&&validModule(moduleEntity)&&validModuleUser(moduleUserEntity)) { if (!validSession(session)) signinPage() ; else if (validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=1060&v=1709561669143")) ;document.write(moduleEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1061&v=1709561669143")) ;document.write(moduleUserEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1062&v=1709561669143")) ; breadcrumbs(gameEntity,moduleEntity) ; moduleUserMenu(moduleEntity,moduleUserEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=1063&v=1709561669143")) ;document.write(moduleUserEntity["moduleUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=1064&v=1709561669143")) ; if (moduleUserEntity["firstName"]) { document.write(getHttp("/body?name=game&sct=1065&v=1709561669143")) ;document.write(moduleUserEntity["firstName"]) ;document.write(getHttp("/body?name=game&sct=1066&v=1709561669143")) ; } if (moduleUserEntity["lastName"]) { document.write(getHttp("/body?name=game&sct=1067&v=1709561669143")) ;document.write(moduleUserEntity["lastName"]) ;document.write(getHttp("/body?name=game&sct=1068&v=1709561669143")) ; } if (moduleUserEntity["email"]) { document.write(getHttp("/body?name=game&sct=1069&v=1709561669143")) ;document.write(moduleUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=1070&v=1709561669143")) ;document.write(moduleUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=1071&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=1072&v=1709561669143")) ; } else { $.ajax ( { url: "/app/module/user/delete", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"moduleUserEntityId":moduleUserEntity["moduleUserEntityId"]}, success: function (data) { if (data["error"]) $("#moduleUserDeleteMessage").html("

"+data["error"]) ; else { window.location = "/game/module/user/list?moduleEntityId="+data["moduleEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#moduleUserDeleteMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=1073&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/module/user/quit"&&validGame(gameEntity)&&validModule(moduleEntity)&&validModuleUser(moduleUserEntity)) { if (!validSession(session)) signinPage() ; else if (moduleUserEntity["userEntityId"]==session["userEntityId"]&&validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=1074&v=1709561669143")) ;document.write(moduleEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1075&v=1709561669143")) ; breadcrumbsModule(moduleEntity,moduleUserEntity) ; moduleUserMenu(moduleEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=1076&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=1077&v=1709561669143")) ; } else { $.ajax ( { url: "/app/module/user/quit", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"moduleUserEntityId":sessionModuleUserEntity["moduleUserEntityId"]}, success: function (data) { if (data["error"]) $("#moduleUserQuitMessage").html("

"+data["error"]) ; else { window.location = "/game/module/view?moduleEntityId="+data["moduleEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#moduleUserQuitMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=1078&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/module/user/resend"&&validGame(gameEntity)&&validModule(moduleEntity)&&validModuleUser(moduleUserEntity)) { if (!validSession(session)) signinPage() ; else if (validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=1079&v=1709561669143")) ;document.write(moduleEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1080&v=1709561669143")) ;document.write(moduleUserEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1081&v=1709561669143")) ; breadcrumbsModule(moduleEntity,moduleUserEntity) ; moduleUserMenu(moduleEntity,moduleUserEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=1082&v=1709561669143")) ;document.write(moduleUserEntity["moduleUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=1083&v=1709561669143")) ; } else { $.ajax ( { url: "/app/module/user/resend", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"moduleUserEntityId":moduleUserEntity["moduleUserEntityId"]}, success: function (data) { if (data["error"]) $("#moduleUserResendMessage").html("

"+data["error"]) ; else { window.location = "/game/module/user/view?moduleUserEntityId="+data["moduleUserEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#moduleUserResendMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; document.write(getHttp("/body?name=game&sct=1084&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=1085&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/module/user/accept"&&validGame(gameEntity)&&validModule(moduleEntity)&&validModuleUser(moduleUserEntity)) { if (!validSession(session)) signinPage() ; else if (moduleUserEntity["userEntityId"]==session["userEntityId"]&&validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=1086&v=1709561669143")) ;document.write(moduleEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1087&v=1709561669143")) ; breadcrumbsModule(moduleEntity,moduleUserEntity) ; moduleUserMenu(moduleEntity) ; { $.ajax ( { url: "/app/module/user/accept", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"moduleUserEntityId":moduleUserEntityId}, success: function (data) { if (data["error"]) $("#moduleUserAcceptMessage").html("

"+data["error"]) ; else { window.location = "/game/module/view?moduleEntityId="+data["moduleEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#moduleUserAcceptMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=1088&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/module/user/decline"&&validGame(gameEntity)&&validModule(moduleEntity)&&validModuleUser(moduleUserEntity)) { if (!validSession(session)) signinPage() ; else if (moduleUserEntity["userEntityId"]==session["userEntityId"]&&validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=1089&v=1709561669143")) ;document.write(moduleEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1090&v=1709561669143")) ; breadcrumbsModule(moduleEntity,moduleUserEntity) ; moduleUserMenu(moduleEntity) ; { $.ajax ( { url: "/app/module/user/decline", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"moduleUserEntityId":moduleUserEntity["moduleUserEntityId"]}, success: function (data) { if (data["error"]) $("#moduleUserDeclineMessage").html("

"+data["error"]) ; else { window.location = "/game/module/view?moduleEntityId="+data["moduleEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#moduleUserDeclineMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=1091&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/module/user/approve"&&validGame(gameEntity)&&validModule(moduleEntity)) { if (!validSession(session)) signinPage() ; else if (validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=1092&v=1709561669143")) ;document.write(moduleEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1093&v=1709561669143")) ;document.write(moduleUserEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1094&v=1709561669143")) ; breadcrumbsModule(moduleEntity,moduleUserEntity) ; moduleUserMenu(moduleEntity,moduleUserEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=1095&v=1709561669143")) ;document.write(moduleUserEntity["moduleUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=1096&v=1709561669143")) ; if (moduleUserEntity["firstName"]) { document.write(getHttp("/body?name=game&sct=1097&v=1709561669143")) ;document.write(moduleUserEntity["firstName"]) ;document.write(getHttp("/body?name=game&sct=1098&v=1709561669143")) ; } if (moduleUserEntity["lastName"]) { document.write(getHttp("/body?name=game&sct=1099&v=1709561669143")) ;document.write(moduleUserEntity["lastName"]) ;document.write(getHttp("/body?name=game&sct=1100&v=1709561669143")) ; } if (moduleUserEntity["email"]) { document.write(getHttp("/body?name=game&sct=1101&v=1709561669143")) ;document.write(moduleUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=1102&v=1709561669143")) ;document.write(moduleUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=1103&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=1104&v=1709561669143")) ; } else { $.ajax ( { url: "/app/module/user/approve", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"moduleUserEntityId":moduleUserEntity["moduleUserEntityId"]}, success: function (data) { if (data["error"]) $("#moduleUserApproveMessage").html("

"+data["error"]) ; else { window.location = "/game/module/user/view?moduleUserEntityId="+data["moduleUserEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#moduleUserApproveMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=1105&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/module/user/reject"&&validGame(gameEntity)&&validModule(moduleEntity)&&validModuleUser(moduleUserEntity)) { if (!validSession(session)) signinPage() ; else if (validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=1106&v=1709561669143")) ;document.write(moduleEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1107&v=1709561669143")) ;document.write(moduleUserEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1108&v=1709561669143")) ; breadcrumbsModule(moduleEntity,moduleUserEntity) ; moduleUserMenu(moduleEntity,moduleUserEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=1109&v=1709561669143")) ;document.write(moduleUserEntity["moduleUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=1110&v=1709561669143")) ; if (moduleUserEntity["firstName"]) { document.write(getHttp("/body?name=game&sct=1111&v=1709561669143")) ;document.write(moduleUserEntity["firstName"]) ;document.write(getHttp("/body?name=game&sct=1112&v=1709561669143")) ; } if (moduleUserEntity["lastName"]) { document.write(getHttp("/body?name=game&sct=1113&v=1709561669143")) ;document.write(moduleUserEntity["lastName"]) ;document.write(getHttp("/body?name=game&sct=1114&v=1709561669143")) ; } if (moduleUserEntity["email"]) { document.write(getHttp("/body?name=game&sct=1115&v=1709561669143")) ;document.write(moduleUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=1116&v=1709561669143")) ;document.write(moduleUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=1117&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=1118&v=1709561669143")) ; } else { $.ajax ( { url: "/app/module/user/reject", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"moduleUserEntityId":moduleUserEntity["moduleUserEntityId"]}, success: function (data) { if (data["error"]) $("#moduleUserRejectMessage").html("

"+data["error"]) ; else { window.location = "/game/module/user/view?moduleUserEntityId="+data["moduleUserEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#moduleUserRejectMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=1119&v=1709561669143")) ; } else errorPage() ; } else if ((pathname=="/game/module/image"||pathname=="/game/module/image/list")&&validGame(gameEntity)&&validModule(moduleEntity)) { if (!validSession(session)) signinPage() ; else if (validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { var page = parseInt(getQueryParameter("page")) ; if (isNaN(page)) page = 0 ; var criteria = getQueryParameter("criteria") ; document.write(getHttp("/body?name=game&sct=1120&v=1709561669143")) ;document.write(moduleEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1121&v=1709561669143")) ; breadcrumbsModule(gameEntity,moduleEntity) ; moduleMenu(moduleEntity) ; var imageEntityList = getHttpJson("/app/module/image/list?moduleEntityId="+moduleEntity["moduleEntityId"]+(criteria?("&criteria="+criteria):"")+"&page="+page+"&sessionToken="+session["sessionToken"]) ; document.write(getHttp("/body?name=game&sct=1122&v=1709561669143")) ; for (i=0 ; i<2&&i*50) { document.write(getHttp("/body?name=game&sct=1140&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(criteria?("&criteria="+criteria):"") ;document.write(getHttp("/body?name=game&sct=1141&v=1709561669143")) ;document.write(page-1) ;document.write(getHttp("/body?name=game&sct=1142&v=1709561669143")) ; } if (i*5+j==15) { document.write(getHttp("/body?name=game&sct=1143&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(criteria?("&criteria="+criteria):"") ;document.write(getHttp("/body?name=game&sct=1144&v=1709561669143")) ;document.write(page+1) ;document.write(getHttp("/body?name=game&sct=1145&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=1146&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/module/image/create"&&validGame(gameEntity)&&validModule(moduleEntity)) { if (!validSession(session)) signinPage() ; else if (validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=1147&v=1709561669143")) ;document.write(moduleEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1148&v=1709561669143")) ; breadcrumbsModule(gameEntity,moduleEntity) ; moduleMenu(moduleEntity) ; document.write(getHttp("/body?name=game&sct=1149&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=1150&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=1151&v=1709561669143")) ; $("#createModuleImageForm").on ( "submit", function (event) { event.preventDefault() ; $("#createModuleImageForm").innerHTML = 'Uploading...' ; var formData = new FormData() ; formData.append("sessionToken",session["sessionToken"]) ; formData.append("moduleEntityId",moduleEntity["moduleEntityId"]) ; formData.append("image",$('#createModuleImageFormImage')[0].files[0]) ; $.ajax ( { url: "/app/module/image/create", method: "POST", async: false, data: formData, processData: false, contentType: false, success: function (data) { if (data["error"]) $("#createModuleImageFormMessage").html("

"+data["error"]) ; else { window.location = "/game/module/image/list?moduleEntityId="+data["moduleEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#createModuleImageFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/module/image/delete"&&validGame(gameEntity)&&validModule(moduleEntity)) { if (!validSession(session)) signinPage() ; else if (validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=1152&v=1709561669143")) ;document.write(moduleEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1153&v=1709561669143")) ; breadcrumbsModule(gameEntity,moduleEntity) ; moduleMenu(moduleEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=1154&v=1709561669143")) ;document.write(getQueryParameter("imageEntityId")) ;document.write(getHttp("/body?name=game&sct=1155&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=1156&v=1709561669143")) ;document.write(getQueryParameter("imageEntityId")) ;document.write(getHttp("/body?name=game&sct=1157&v=1709561669143")) ; } else { $.ajax ( { url: "/app/module/image/delete", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"imageEntityId":getQueryParameter("imageEntityId")}, success: function (data) { if (data["error"]) $("#moduleImageDeleteMessage").html("

"+data["error"]) ; else { window.location = "/game/module/image/list?moduleEntityId="+data["moduleEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#moduleImageDeleteMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=1158&v=1709561669143")) ; } else errorPage() ; } else if ((pathname=="/game/mapset"||pathname=="/game/mapset/list")&&validGame(gameEntity)) { var page = parseInt(getQueryParameter("page")) ; if (isNaN(page)) page = 0 ; var criteria = getQueryParameter("criteria") ; document.write(getHttp("/body?name=game&sct=1159&v=1709561669143")) ; breadcrumbsMapSet(gameEntity,moduleEntity) ; mapSetMenu() ; var mapSetEntityList = getHttpJson("/app/mapset/list?"+((validModule(moduleEntity))?("moduleEntityId="+moduleEntity["moduleEntityId"]):("gameEntityId="+gameEntity["gameEntityId"]))+(criteria?("&criteria="+criteria):"")+"&page="+page+"&sessionToken="+session["sessionToken"]) ; document.write(getHttp("/body?name=game&sct=1160&v=1709561669143")) ; for (i=0 ; i<10&&i0) { document.write(getHttp("/body?name=game&sct=1166&v=1709561669143")) ;document.write(page-1) ;document.write(moduleEntity!=null?("&moduleEntityId="+moduleEntity["moduleEntityId"]):("&gameEntityId="+gameEntity["gameEntityId"])) ;document.write(criteria?("&criteria="+criteria):"") ;document.write(getHttp("/body?name=game&sct=1167&v=1709561669143")) ; } if (mapSetEntityList.length>10) { document.write(getHttp("/body?name=game&sct=1168&v=1709561669143")) ;document.write(page+1) ;document.write(moduleEntity!=null?("&moduleEntityId="+moduleEntity["moduleEntityId"]):("&gameEntityId="+gameEntity["gameEntityId"])) ;document.write(criteria?("&criteria="+criteria):"") ;document.write(getHttp("/body?name=game&sct=1169&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=1170&v=1709561669143")) ; } else if (pathname=="/game/mapset/view"&&validGame(gameEntity)&&validMapSet(mapSetEntity)) { document.write(getHttp("/body?name=game&sct=1171&v=1709561669143")) ;document.write(mapSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1172&v=1709561669143")) ; breadcrumbsMapSet(gameEntity,moduleEntity,mapSetEntity) ; mapSetMenu(mapSetEntity) ; if (gameEntity["showElevation"]) { document.write(getHttp("/body?name=game&sct=1173&v=1709561669143")) ;document.write(mapSetEntity["minElevation"]) ;document.write(getHttp("/body?name=game&sct=1174&v=1709561669143")) ;document.write(mapSetEntity["maxElevation"]) ;document.write(getHttp("/body?name=game&sct=1175&v=1709561669143")) ; } var mapPageEntityMatrix = getHttpJson("/app/mappage/listbymapsetmatrix?page=-1&mapSetEntityId="+mapSetEntity["mapSetEntityId"]+"&sessionToken="+session["sessionToken"]) ; if (mapPageEntityMatrix&&mapSetEntity["col"]>0&&mapSetEntity["row"]>0) { document.write(getHttp("/body?name=game&sct=1176&v=1709561669143")) ; for (i=0 ; i"+data["error"]) ; else { window.location = "/game/mapset/view?mapSetEntityId="+data["mapSetEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#createMapSetFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/mapset/update"&&validGame(gameEntity)&&validMapSet(mapSetEntity)) { if (!validSession(session)) signinPage() ; else if (validMapSetUserEditor(sessionMapSetUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=1224&v=1709561669143")) ;document.write(mapSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1225&v=1709561669143")) ; breadcrumbsMapSet(gameEntity,moduleEntity,mapSetEntity) ; mapSetMenu(mapSetEntity) ; document.write(getHttp("/body?name=game&sct=1226&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=1227&v=1709561669143")) ;document.write(mapSetEntity["mapSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=1228&v=1709561669143")) ;document.write(mapSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1229&v=1709561669143")) ;document.write(mapSetEntity["name"]) ;document.write(getHttp("/body?name=game&sct=1230&v=1709561669143")) ;document.write(mapSetEntity["columns"]) ;document.write(getHttp("/body?name=game&sct=1231&v=1709561669143")) ;document.write(mapSetEntity["rows"]) ;document.write(getHttp("/body?name=game&sct=1232&v=1709561669143")) ; var moduleEntityList = getHttpJson("/app/module/list?gameEntityId="+gameEntity["gameEntityId"]+"&criteria=all&page=-1&sessionToken="+session["sessionToken"]) ; document.write(getHttp("/body?name=game&sct=1233&v=1709561669143")) ; for (var i=0 ; i"+data["error"]) ; else { window.location = "/game/mapset/view?mapSetEntityId="+data["mapSetEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateMapSetFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/mapset/generate"&&validGame(gameEntity)&&validMapSet(mapSetEntity)) { if (!validSession(session)) signinPage() ; else if (validMapSetUserEditor(sessionMapSetUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=1239&v=1709561669143")) ;document.write(mapSetEntity["name"]) ;document.write(getHttp("/body?name=game&sct=1240&v=1709561669143")) ; breadcrumbsMapSet(gameEntity,moduleEntity,mapSetEntity) ; mapSetMenu(mapSetEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=1241&v=1709561669143")) ;document.write(mapSetEntity["name"]) ;document.write(getHttp("/body?name=game&sct=1242&v=1709561669143")) ;document.write(mapSetEntity["mapSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=1243&v=1709561669143")) ;document.write(mapSetEntity["name"]) ;document.write(getHttp("/body?name=game&sct=1244&v=1709561669143")) ; } else { $.ajax ( { url: "/app/mapset/generate", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"mapSetEntityId":mapSetEntity["mapSetEntityId"]}, success: function (data) { if (data["error"]) $("#mapsetGenerateMessage").html("

"+data["error"]) ; else { window.location = "/game/mapset/view?mapSetEntityId="+data["mapSetEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#mapsetGenerateMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=1245&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/mapset/updateshort"&&validGame(gameEntity)&&validMapSet(mapSetEntity)) { if (!validSession(session)) signinPage() ; else if (validMapSetUserEditor(sessionMapSetUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=1246&v=1709561669143")) ;document.write(mapSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1247&v=1709561669143")) ; breadcrumbsMapSet(gameEntity,moduleEntity,mapSetEntity) ; mapSetMenu(mapSetEntity) ; document.write(getHttp("/body?name=game&sct=1248&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=1249&v=1709561669143")) ;document.write(mapSetEntity["mapSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=1250&v=1709561669143")) ;document.write(mapSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1251&v=1709561669143")) ;document.write(getHttp("/app/mapset/textshortdescription?mapSetEntityId="+mapSetEntity["mapSetEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=1252&v=1709561669143")) ; $("#updateMapSetShortForm").on ( "submit", function (mapSet) { event.preventDefault() ; $.ajax ( { url: "/app/mapset/updateshortdescription", method: "POST", async: false, data: $("#updateMapSetShortForm").serializeArray(), success: function (data) { if (data["error"]) $("#updateMapSetShortFormMessage").html("

"+data["error"]) ; else { window.location = "/game/mapset/view?mapSetEntityId="+data["mapSetEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateMapSetShortFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/mapset/updatelong"&&validGame(gameEntity)&&validMapSet(mapSetEntity)) { if (!validSession(session)) signinPage() ; else if (validMapSetUserEditor(sessionMapSetUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=1253&v=1709561669143")) ;document.write(mapSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1254&v=1709561669143")) ; breadcrumbsMapSet(gameEntity,moduleEntity,mapSetEntity) ; mapSetMenu(mapSetEntity) ; document.write(getHttp("/body?name=game&sct=1255&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=1256&v=1709561669143")) ;document.write(mapSetEntity["mapSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=1257&v=1709561669143")) ;document.write(mapSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1258&v=1709561669143")) ;document.write(getHttp("/app/mapset/textlongdescription?mapSetEntityId="+mapSetEntity["mapSetEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=1259&v=1709561669143")) ; $("#updateMapSetLongForm").on ( "submit", function (mapSet) { event.preventDefault() ; $.ajax ( { url: "/app/mapset/updatelongdescription", method: "POST", async: false, data: $("#updateMapSetLongForm").serializeArray(), success: function (data) { if (data["error"]) $("#updateMapSetLongFormMessage").html("

"+data["error"]) ; else { window.location = "/game/mapset/view?mapSetEntityId="+data["mapSetEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateMapSetLongFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/mapset/updatedesign"&&validGame(gameEntity)&&validMapSet(mapSetEntity)) { if (!validSession(session)) signinPage() ; else if (validMapSetUserEditor(sessionMapSetUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=1260&v=1709561669143")) ;document.write(mapSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1261&v=1709561669143")) ; breadcrumbsMapSet(gameEntity,moduleEntity,mapSetEntity) ; mapSetMenu(mapSetEntity) ; document.write(getHttp("/body?name=game&sct=1262&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=1263&v=1709561669143")) ;document.write(mapSetEntity["mapSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=1264&v=1709561669143")) ;document.write(mapSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1265&v=1709561669143")) ;document.write(getHttp("/app/mapset/textdesigndescription?mapSetEntityId="+mapSetEntity["mapSetEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=1266&v=1709561669143")) ; $("#updateMapSetDesignForm").on ( "submit", function (mapSet) { event.preventDefault() ; $.ajax ( { url: "/app/mapset/updatedesigndescription", method: "POST", async: false, data: $("#updateMapSetDesignForm").serializeArray(), success: function (data) { if (data["error"]) $("#updateMapSetDesignFormMessage").html("

"+data["error"]) ; else { window.location = "/game/mapset/view?mapSetEntityId="+data["mapSetEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateMapSetDesignFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/mapset/uploadspecification"&&validGame(gameEntity)&&validMapSet(mapSetEntity)) { if (!validSession(session)) signinPage() ; else if (validMapSetUserEditor(sessionMapSetUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=1267&v=1709561669143")) ;document.write(mapSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1268&v=1709561669143")) ; breadcrumbsMapSet(gameEntity,moduleEntity,mapSetEntity) ; mapSetMenu(mapSetEntity) ; document.write(getHttp("/body?name=game&sct=1269&v=1709561669143")) ; $("#mapsetUploadForm").on ( "submit", function (event) { event.preventDefault() ; $("#mapsetUploadForm").innerHTML = 'Uploading...' ; var formData = new FormData() ; formData.append("sessionToken",session["sessionToken"]) ; formData.append("mapSetEntityId",mapSetEntity["mapSetEntityId"]) ; formData.append("specification",$('#mapsetUploadFormSpecification')[0].files[0]) ; $.ajax ( { url: "/app/mapset/uploadspecification", method: "POST", async: false, data: formData, processData: false, contentType: false, success: function (data) { if (data["error"]) $("#mapsetUploadFormMessage").html("

"+data["error"]) ; else { window.location = "/game/mapset/view?mapSetEntityId="+data["mapSetEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#mapsetUploadFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/mapset/delete"&&validGame(gameEntity)&&validMapSet(mapSetEntity)) { if (!validSession(session)) signinPage() ; else if (validMapSetUserAdministrator(sessionMapSetUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=1270&v=1709561669143")) ;document.write(mapSetEntity["name"]) ;document.write(getHttp("/body?name=game&sct=1271&v=1709561669143")) ; breadcrumbsMapSet(gameEntity,moduleEntity,mapSetEntity) ; mapSetMenu(mapSetEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=1272&v=1709561669143")) ;document.write(mapSetEntity["name"]) ;document.write(getHttp("/body?name=game&sct=1273&v=1709561669143")) ;document.write(mapSetEntity["mapSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=1274&v=1709561669143")) ;document.write(mapSetEntity["name"]) ;document.write(getHttp("/body?name=game&sct=1275&v=1709561669143")) ; } else { $.ajax ( { url: "/app/mapset/delete", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"mapSetEntityId":mapSetEntity["mapSetEntityId"]}, success: function (data) { if (data["error"]) $("#mapsetDeleteMessage").html("

"+data["error"]) ; else { window.location = data["moduleEntityId"]?"/game/module/view?moduleEntityId="+data["moduleEntityId"]:"/game/view?gameEntityId="+data["gameEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#mapsetDeleteMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=1276&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/mapset/subscribe"&&validMapSet(mapSetEntity)) { if (!validSession(session)) signinPage() ; else { document.write(getHttp("/body?name=game&sct=1277&v=1709561669143")) ;document.write(mapSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1278&v=1709561669143")) ; breadcrumbsMapSet(mapSetEntity) ; mapSetMenu(mapSetEntity) ; $.ajax ( { url: "/app/mapset/subscribe", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"mapSetEntityId":mapSetEntity["mapSetEntityId"],"userEntityId":session["userEntityId"]}, success: function (data) { if (data["error"]) $("#mapSetSubscribeMessage").html("

"+data["error"]) ; else { window.location = "/game/mapset/view?mapSetEntityId="+data["mapSetEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#mapSetSubscribeMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; document.write(getHttp("/body?name=game&sct=1279&v=1709561669143")) ; } } else if (pathname=="/game/mapset/join"&&validMapSet(mapSetEntity)) { if (!validSession(session)) signinPage() ; else { document.write(getHttp("/body?name=game&sct=1280&v=1709561669143")) ;document.write(mapSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1281&v=1709561669143")) ; breadcrumbsMapSet(mapSetEntity,mapSetEntity) ; mapSetMenu(mapSetEntity,mapSetEntity) ; document.write(getHttp("/body?name=game&sct=1282&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=1283&v=1709561669143")) ;document.write(mapSetEntity["mapSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=1284&v=1709561669143")) ;document.write(session["userEntityId"]) ;document.write(getHttp("/body?name=game&sct=1285&v=1709561669143")) ; $("#joinMapSetForm").on ( "submit", function (mapSet) { mapSet.prmapSetDefault() ; $.ajax ( { url: "/app/mapset/join", method: "POST", async: false, data: $("#joinMapSetForm").serializeArray(), success: function (data) { if (data["error"]) $("#joinMapSetFormMessage").html("

"+data["error"]) ; else { window.location = "/game/mapset/view?mapSetEntityId="+data["mapSetEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#joinMapSetFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; document.write(getHttp("/body?name=game&sct=1286&v=1709561669143")) ; } } else if (pathname=="/game/mapset/comment"&&validGame(gameEntity)&&validMapSet(mapSetEntity)) { if (!validSession(session)) signinPage() ; else { document.write(getHttp("/body?name=game&sct=1287&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1288&v=1709561669143")) ; breadcrumbsMapSet(gameEntity,moduleEntity,mapSetEntity) ; mapSetMenu(mapSetEntity) ; document.write(getHttp("/body?name=game&sct=1289&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=1290&v=1709561669143")) ;document.write(mapSetEntity["mapSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=1291&v=1709561669143")) ;document.write(session["userEntityId"]) ;document.write(getHttp("/body?name=game&sct=1292&v=1709561669143")) ;document.write(getHttp("/app/mapset/user/textlongdescription?gameEntityId="+gameEntity["gameEntityId"]+"&userEntityId="+session["userEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=1293&v=1709561669143")) ; $("#commentMapSetForm").on ( "submit", function (mapSet) { event.preventDefault() ; $.ajax ( { url: "/app/mapset/comment", method: "POST", async: false, data: $("#commentMapSetForm").serializeArray(), success: function (data) { if (data["error"]) $("#commentMapSetFormMessage").html("

"+data["error"]) ; else { window.location = "/game/mapset/view?mapSetEntityId="+data["mapSetEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#commentMapSetFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } } else if ((pathname=="/game/mapset/user"||pathname=="/game/mapset/user/list")&&validGame(gameEntity)&&validMapSet(mapSetEntity)) { if (!validSession(session)) signinPage() ; else if (validMapSetUserAdministrator(sessionMapSetUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { var page = parseInt(getQueryParameter("page")) ; if (isNaN(page)) page = 0 ; var criteria = getQueryParameter("criteria") ; document.write(getHttp("/body?name=game&sct=1294&v=1709561669143")) ;document.write(mapSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1295&v=1709561669143")) ; breadcrumbsMapSet(gameEntity,moduleEntity,mapSetEntity) ; mapSetUserMenu(mapSetEntity) ; var mapSetUserEntityList = getHttpJson("/app/mapset/user/list?mapSetEntityId="+mapSetEntity["mapSetEntityId"]+(criteria?("&criteria="+criteria):"")+"&page="+page+"&sessionToken="+session["sessionToken"]) ; document.write(getHttp("/body?name=game&sct=1296&v=1709561669143")) ; for (i=0 ; i<10&&i0) { document.write(getHttp("/body?name=game&sct=1306&v=1709561669143")) ;document.write(mapSetEntity["mapSetEntityId"]) ;document.write(criteria?("&criteria="+criteria):"") ;document.write(getHttp("/body?name=game&sct=1307&v=1709561669143")) ;document.write(page-1) ;document.write(getHttp("/body?name=game&sct=1308&v=1709561669143")) ; } if (mapSetUserEntityList.length>10) { document.write(getHttp("/body?name=game&sct=1309&v=1709561669143")) ;document.write(mapSetEntity["mapSetEntityId"]) ;document.write(criteria?("&criteria="+criteria):"") ;document.write(getHttp("/body?name=game&sct=1310&v=1709561669143")) ;document.write(page+1) ;document.write(getHttp("/body?name=game&sct=1311&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=1312&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/mapset/user/view"&&validGame(gameEntity)&&validMapSet(mapSetEntity)&&validMapSetUser(mapSetUserEntity)) { if (!validSession(session)) signinPage() ; else if (validMapSetUserAdministrator(sessionMapSetUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=1313&v=1709561669143")) ;document.write(mapSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1314&v=1709561669143")) ;document.write(mapSetUserEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1315&v=1709561669143")) ; breadcrumbsMapSet(gameEntity,moduleEntity,mapSetEntity) ; mapSetUserMenu(mapSetEntity,mapSetUserEntity) ; if (mapSetUserEntity["userEntityId"]>0) { document.write(getHttp("/body?name=game&sct=1316&v=1709561669143")) ;document.write(mapSetUserEntity["userEntityId"]) ;document.write(getHttp("/body?name=game&sct=1317&v=1709561669143")) ;document.write(mapSetUserEntity["version"]) ;document.write(getHttp("/body?name=game&sct=1318&v=1709561669143")) ;document.write(mapSetUserEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1319&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=1320&v=1709561669143")) ; if (mapSetUserEntity["firstName"]) { document.write(getHttp("/body?name=game&sct=1321&v=1709561669143")) ;document.write(mapSetUserEntity["firstName"]) ;document.write(getHttp("/body?name=game&sct=1322&v=1709561669143")) ; } if (mapSetUserEntity["lastName"]) { document.write(getHttp("/body?name=game&sct=1323&v=1709561669143")) ;document.write(mapSetUserEntity["lastName"]) ;document.write(getHttp("/body?name=game&sct=1324&v=1709561669143")) ; } if (mapSetUserEntity["email"]) { document.write(getHttp("/body?name=game&sct=1325&v=1709561669143")) ;document.write(mapSetUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=1326&v=1709561669143")) ;document.write(mapSetUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=1327&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=1328&v=1709561669143")) ;document.write(mapSetUserEntity["administrator"]) ;document.write(getHttp("/body?name=game&sct=1329&v=1709561669143")) ;document.write(mapSetUserEntity["editor"]) ;document.write(getHttp("/body?name=game&sct=1330&v=1709561669143")) ;document.write(mapSetUserEntity["designer"]) ;document.write(getHttp("/body?name=game&sct=1331&v=1709561669143")) ;document.write(mapSetUserEntity["subscriber"]) ;document.write(getHttp("/body?name=game&sct=1332&v=1709561669143")) ;document.write(mapSetUserEntity["createDate"]) ;document.write(getHttp("/body?name=game&sct=1333&v=1709561669143")) ;document.write(mapSetUserEntity["modifyDate"]) ;document.write(getHttp("/body?name=game&sct=1334&v=1709561669143")) ;document.write(getHttp("/app/user/view/textlongdescription?userEntityId="+mapSetUserEntity["userEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=1335&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/mapset/user/create"&&validGame(gameEntity)&&validMapSet(mapSetEntity)) { if (!validSession(session)) signinPage() ; else if (validMapSetUserAdministrator(sessionMapSetUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=1336&v=1709561669143")) ;document.write(mapSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1337&v=1709561669143")) ; breadcrumbsMapSet(gameEntity,moduleEntity,mapSetEntity) ; mapSetUserMenu(mapSetEntity) ; document.write(getHttp("/body?name=game&sct=1338&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=1339&v=1709561669143")) ;document.write(mapSetEntity["mapSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=1340&v=1709561669143")) ;document.write(mapSetUserEntity["subscriber"]?"checked":"") ;document.write(getHttp("/body?name=game&sct=1341&v=1709561669143")) ; $("#createMapSetUserForm").on ( "submit", function (mapSet) { event.preventDefault() ; $.ajax ( { url: "/app/mapset/user/create", method: "POST", async: false, data: $("#createMapSetUserForm").serializeArray(), success: function (data) { if (data["error"]) $("#createMapSetUserFormMessage").html("

"+data["error"]) ; else { window.location = "/game/mapset/user/view?mapSetUserEntityId="+data["mapSetUserEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#createMapSetUserFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/mapset/user/update"&&validGame(gameEntity)&&validMapSet(mapSetEntity)&&validMapSetUser(mapSetUserEntity)) { if (!validSession(session)) signinPage() ; else if (validMapSetUserAdministrator(sessionMapSetUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=1342&v=1709561669143")) ;document.write(mapSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1343&v=1709561669143")) ;document.write(mapSetUserEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1344&v=1709561669143")) ; breadcrumbsMapSet(gameEntity,moduleEntity,mapSetEntity) ; mapSetUserMenu(mapSetEntity,mapSetUserEntity) ; document.write(getHttp("/body?name=game&sct=1345&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=1346&v=1709561669143")) ;document.write(mapSetUserEntity["mapSetUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=1347&v=1709561669143")) ; if (mapSetUserEntity["firstName"]) { document.write(getHttp("/body?name=game&sct=1348&v=1709561669143")) ;document.write(mapSetUserEntity["firstName"]) ;document.write(getHttp("/body?name=game&sct=1349&v=1709561669143")) ; } if (mapSetUserEntity["lastName"]) { document.write(getHttp("/body?name=game&sct=1350&v=1709561669143")) ;document.write(mapSetUserEntity["lastName"]) ;document.write(getHttp("/body?name=game&sct=1351&v=1709561669143")) ; } if (mapSetUserEntity["email"]) { document.write(getHttp("/body?name=game&sct=1352&v=1709561669143")) ;document.write(mapSetUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=1353&v=1709561669143")) ;document.write(mapSetUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=1354&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=1355&v=1709561669143")) ;document.write(mapSetUserEntity["administrator"]?"checked":"") ;document.write(getHttp("/body?name=game&sct=1356&v=1709561669143")) ;document.write(mapSetUserEntity["editor"]?"checked":"") ;document.write(getHttp("/body?name=game&sct=1357&v=1709561669143")) ;document.write(mapSetUserEntity["subscriber"]?"checked":"") ;document.write(getHttp("/body?name=game&sct=1358&v=1709561669143")) ; $("#updateMapSetUserForm").on ( "submit", function (mapSet) { event.preventDefault() ; $.ajax ( { url: "/app/mapset/user/update", method: "POST", async: false, data: $("#updateMapSetUserForm").serializeArray(), success: function (data) { if (data["error"]) $("#updateMapSetUserFormMessage").html("

"+data["error"]) ; else { window.location = "/game/mapset/user/view?mapSetUserEntityId="+data["mapSetUserEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateMapSetUserFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/mapset/user/delete"&&validGame(gameEntity)&&validMapSet(mapSetEntity)&&validMapSetUser(mapSetUserEntity)) { if (!validSession(session)) signinPage() ; else if (validMapSetUserAdministrator(sessionMapSetUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=1359&v=1709561669143")) ;document.write(mapSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1360&v=1709561669143")) ;document.write(mapSetUserEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1361&v=1709561669143")) ; breadcrumbsMapSet(gameEntity,moduleEntity,mapSetEntity) ; mapSetUserMenu(mapSetEntity,mapSetUserEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=1362&v=1709561669143")) ;document.write(mapSetUserEntity["mapSetUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=1363&v=1709561669143")) ; if (mapSetUserEntity["firstName"]) { document.write(getHttp("/body?name=game&sct=1364&v=1709561669143")) ;document.write(mapSetUserEntity["firstName"]) ;document.write(getHttp("/body?name=game&sct=1365&v=1709561669143")) ; } if (mapSetUserEntity["lastName"]) { document.write(getHttp("/body?name=game&sct=1366&v=1709561669143")) ;document.write(mapSetUserEntity["lastName"]) ;document.write(getHttp("/body?name=game&sct=1367&v=1709561669143")) ; } if (mapSetUserEntity["email"]) { document.write(getHttp("/body?name=game&sct=1368&v=1709561669143")) ;document.write(mapSetUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=1369&v=1709561669143")) ;document.write(mapSetUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=1370&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=1371&v=1709561669143")) ; } else { $.ajax ( { url: "/app/mapset/user/delete", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"mapSetUserEntityId":mapSetUserEntity["mapSetUserEntityId"]}, success: function (data) { if (data["error"]) $("#mapsetUserDeleteMessage").html("

"+data["error"]) ; else { window.location = "/game/mapset/user/list?mapSetEntityId="+data["mapSetEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#mapsetUserDeleteMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=1372&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/mapset/user/quit"&&validGame(gameEntity)&&validMapSet(mapSetEntity)&&validMapSetUser(mapSetUserEntity)) { if (!validSession(session)) signinPage() ; else if (sessionMapSetUserEntity["userEntityId"]==session["userEntityId"]||validMapSetUserAdministrator(sessionMapSetUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=1373&v=1709561669143")) ;document.write(mapSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1374&v=1709561669143")) ; breadcrumbsMapSet(mapSetEntity,mapSetUserEntity) ; mapSetUserMenu(mapSetEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=1375&v=1709561669143")) ;document.write(mapSetEntity["mapSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=1376&v=1709561669143")) ; } else { $.ajax ( { url: "/app/mapset/user/quit", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"mapSetUserEntityId":sessionMapSetUserEntity["mapSetUserEntityId"]}, success: function (data) { if (data["error"]) $("#mapSetUserQuitMessage").html("

"+data["error"]) ; else { window.location = "/game/mapset/view?mapSetEntityId="+data["mapSetEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#mapSetUserQuitMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=1377&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/mapset/user/resend"&&validGame(gameEntity)&&validMapSet(mapSetEntity)&&validMapSetUser(mapSetUserEntity)) { if (!validSession(session)) signinPage() ; else if (validMapSetUserAdministrator(sessionMapSetUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=1378&v=1709561669143")) ;document.write(mapSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1379&v=1709561669143")) ;document.write(mapSetUserEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1380&v=1709561669143")) ; breadcrumbsMapSet(mapSetEntity,mapSetUserEntity) ; mapSetUserMenu(mapSetEntity,mapSetUserEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=1381&v=1709561669143")) ;document.write(mapSetUserEntity["mapSetUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=1382&v=1709561669143")) ; } else { $.ajax ( { url: "/app/mapset/user/resend", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"mapSetUserEntityId":mapSetUserEntity["mapSetUserEntityId"]}, success: function (data) { if (data["error"]) $("#mapSetUserResendMessage").html("

"+data["error"]) ; else { window.location = "/game/mapset/user/view?mapSetUserEntityId="+data["mapSetUserEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#mapSetUserResendMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; document.write(getHttp("/body?name=game&sct=1383&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=1384&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/mapset/user/accept"&&validGame(gameEntity)&&validMapSet(mapSetEntity)&&validMapSetUser(mapSetUserEntity)) { if (!validSession(session)) signinPage() ; else if (sessionMapSetUserEntity["userEntityId"]==session["userEntityId"]||validMapSetUserAdministrator(sessionMapSetUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=1385&v=1709561669143")) ;document.write(mapSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1386&v=1709561669143")) ; breadcrumbsMapSet(mapSetEntity,mapSetUserEntity) ; mapSetUserMenu(mapSetEntity) ; { $.ajax ( { url: "/app/mapset/user/accept", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"mapSetUserEntityId":mapSetUserEntityId}, success: function (data) { if (data["error"]) $("#mapSetUserAcceptMessage").html("

"+data["error"]) ; else { window.location = "/game/mapset/view?mapSetEntityId="+data["mapSetEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#mapSetUserAcceptMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=1387&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/mapset/user/decline"&&validGame(gameEntity)&&validMapSet(mapSetEntity)&&validMapSetUser(mapSetUserEntity)) { if (!validSession(session)) signinPage() ; else if (sessionMapSetUserEntity["userEntityId"]==session["userEntityId"]||validMapSetUserAdministrator(sessionMapSetUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=1388&v=1709561669143")) ;document.write(mapSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1389&v=1709561669143")) ; breadcrumbsMapSet(mapSetEntity,mapSetUserEntity) ; mapSetUserMenu(mapSetEntity) ; { $.ajax ( { url: "/app/mapset/user/decline", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"mapSetUserEntityId":mapSetUserEntity["mapSetUserEntityId"]}, success: function (data) { if (data["error"]) $("#mapSetUserDeclineMessage").html("

"+data["error"]) ; else { window.location = "/game/mapset/view?mapSetEntityId="+data["mapSetEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#mapSetUserDeclineMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=1390&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/mapset/user/approve"&&validGame(gameEntity)&&validMapSet(mapSetEntity)) { if (!validSession(session)) signinPage() ; else if (validMapSetUserAdministrator(sessionMapSetUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=1391&v=1709561669143")) ;document.write(mapSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1392&v=1709561669143")) ;document.write(mapSetUserEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1393&v=1709561669143")) ; breadcrumbsMapSet(mapSetEntity,mapSetUserEntity) ; mapSetUserMenu(mapSetEntity,mapSetUserEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=1394&v=1709561669143")) ;document.write(mapSetUserEntity["mapSetUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=1395&v=1709561669143")) ; if (mapSetUserEntity["firstName"]) { document.write(getHttp("/body?name=game&sct=1396&v=1709561669143")) ;document.write(mapSetUserEntity["firstName"]) ;document.write(getHttp("/body?name=game&sct=1397&v=1709561669143")) ; } if (mapSetUserEntity["lastName"]) { document.write(getHttp("/body?name=game&sct=1398&v=1709561669143")) ;document.write(mapSetUserEntity["lastName"]) ;document.write(getHttp("/body?name=game&sct=1399&v=1709561669143")) ; } if (mapSetUserEntity["email"]) { document.write(getHttp("/body?name=game&sct=1400&v=1709561669143")) ;document.write(mapSetUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=1401&v=1709561669143")) ;document.write(mapSetUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=1402&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=1403&v=1709561669143")) ; } else { $.ajax ( { url: "/app/mapset/user/approve", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"mapSetUserEntityId":mapSetUserEntity["mapSetUserEntityId"]}, success: function (data) { if (data["error"]) $("#mapSetUserApproveMessage").html("

"+data["error"]) ; else { window.location = "/game/mapset/user/view?mapSetUserEntityId="+data["mapSetUserEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#mapSetUserApproveMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=1404&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/mapset/user/reject"&&validGame(gameEntity)&&validMapSet(mapSetEntity)&&validMapSetUser(mapSetUserEntity)) { if (!validSession(session)) signinPage() ; else if (validMapSetUserAdministrator(sessionMapSetUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=1405&v=1709561669143")) ;document.write(mapSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1406&v=1709561669143")) ;document.write(mapSetUserEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1407&v=1709561669143")) ; breadcrumbsMapSet(mapSetEntity,mapSetUserEntity) ; mapSetUserMenu(mapSetEntity,mapSetUserEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=1408&v=1709561669143")) ;document.write(mapSetUserEntity["mapSetUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=1409&v=1709561669143")) ; if (mapSetUserEntity["firstName"]) { document.write(getHttp("/body?name=game&sct=1410&v=1709561669143")) ;document.write(mapSetUserEntity["firstName"]) ;document.write(getHttp("/body?name=game&sct=1411&v=1709561669143")) ; } if (mapSetUserEntity["lastName"]) { document.write(getHttp("/body?name=game&sct=1412&v=1709561669143")) ;document.write(mapSetUserEntity["lastName"]) ;document.write(getHttp("/body?name=game&sct=1413&v=1709561669143")) ; } if (mapSetUserEntity["email"]) { document.write(getHttp("/body?name=game&sct=1414&v=1709561669143")) ;document.write(mapSetUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=1415&v=1709561669143")) ;document.write(mapSetUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=1416&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=1417&v=1709561669143")) ; } else { $.ajax ( { url: "/app/mapset/user/reject", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"mapSetUserEntityId":mapSetUserEntity["mapSetUserEntityId"]}, success: function (data) { if (data["error"]) $("#mapSetUserRejectMessage").html("

"+data["error"]) ; else { window.location = "/game/mapset/user/view?mapSetUserEntityId="+data["mapSetUserEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#mapSetUserRejectMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=1418&v=1709561669143")) ; } else errorPage() ; } else if ((pathname=="/game/mapset/image"||pathname=="/game/mapset/image/list")&&validGame(gameEntity)&&validMapSet(mapSetEntity)) { if (!validSession(session)) signinPage() ; else if (validMapSetUserEditor(sessionMapSetUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { var page = parseInt(getQueryParameter("page")) ; if (isNaN(page)) page = 0 ; var criteria = getQueryParameter("criteria") ; document.write(getHttp("/body?name=game&sct=1419&v=1709561669143")) ;document.write(mapSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1420&v=1709561669143")) ; breadcrumbsMapSet(gameEntity,moduleEntity,mapSetEntity) ; mapSetMenu(mapSetEntity) ; var imageEntityList = getHttpJson("/app/mapset/image/list?mapSetEntityId="+mapSetEntity["mapSetEntityId"]+(criteria?("&criteria="+criteria):"")+"&page="+page+"&sessionToken="+session["sessionToken"]) ; document.write(getHttp("/body?name=game&sct=1421&v=1709561669143")) ; for (i=0 ; i<2&&i*50) { document.write(getHttp("/body?name=game&sct=1432&v=1709561669143")) ;document.write(mapSetEntity["mapSetEntityId"]) ;document.write(criteria?("&criteria="+criteria):"") ;document.write(getHttp("/body?name=game&sct=1433&v=1709561669143")) ;document.write(page-1) ;document.write(getHttp("/body?name=game&sct=1434&v=1709561669143")) ; } if (i*5+j==15) { document.write(getHttp("/body?name=game&sct=1435&v=1709561669143")) ;document.write(mapSetEntity["mapSetEntityId"]) ;document.write(criteria?("&criteria="+criteria):"") ;document.write(getHttp("/body?name=game&sct=1436&v=1709561669143")) ;document.write(page+1) ;document.write(getHttp("/body?name=game&sct=1437&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=1438&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/mapset/image/create"&&validGame(gameEntity)&&validMapSet(mapSetEntity)) { if (!validSession(session)) signinPage() ; else if (validMapSetUserEditor(sessionMapSetUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=1439&v=1709561669143")) ;document.write(mapSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1440&v=1709561669143")) ; breadcrumbsMapSet(gameEntity,moduleEntity,mapSetEntity) ; mapSetMenu(mapSetEntity) ; document.write(getHttp("/body?name=game&sct=1441&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=1442&v=1709561669143")) ;document.write(mapSetEntity["mapSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=1443&v=1709561669143")) ; $("#createMapSetImageForm").on ( "submit", function (event) { event.preventDefault() ; $("#createMapSetImageForm").innerHTML = 'Uploading...' ; var formData = new FormData() ; formData.append("sessionToken",session["sessionToken"]) ; formData.append("mapSetEntityId",mapSetEntity["mapSetEntityId"]) ; formData.append("image",$('#createMapSetImageFormImage')[0].files[0]) ; $.ajax ( { url: "/app/mapset/image/create", method: "POST", async: false, data: formData, processData: false, contentType: false, success: function (data) { if (data["error"]) $("#createMapSetImageFormMessage").html("

"+data["error"]) ; else { window.location = "/game/mapset/image/list?mapSetEntityId="+data["mapSetEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#createMapSetImageFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/mapset/image/delete"&&validGame(gameEntity)&&validMapSet(mapSetEntity)) { if (!validSession(session)) signinPage() ; else if (validMapSetUserEditor(sessionMapSetUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=1444&v=1709561669143")) ;document.write(mapSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1445&v=1709561669143")) ; breadcrumbsMapSet(gameEntity,moduleEntity,mapSetEntity) ; mapSetMenu(mapSetEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=1446&v=1709561669143")) ;document.write(getQueryParameter("imageEntityId")) ;document.write(getHttp("/body?name=game&sct=1447&v=1709561669143")) ;document.write(mapSetEntity["mapSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=1448&v=1709561669143")) ;document.write(getQueryParameter("imageEntityId")) ;document.write(getHttp("/body?name=game&sct=1449&v=1709561669143")) ; } else { $.ajax ( { url: "/app/mapset/image/delete", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"imageEntityId":getQueryParameter("imageEntityId")}, success: function (data) { if (data["error"]) $("#mapsetImageDeleteMessage").html("

"+data["error"]) ; else { window.location = "/game/mapset/image/list?mapSetEntityId="+data["mapSetEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#mapsetImageDeleteMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=1450&v=1709561669143")) ; } else errorPage() ; } else if ((pathname=="/game/mappage"||pathname=="/game/mappage/list")&&validGame(gameEntity)&&validMapSet(mapSetEntity)) { var page = parseInt(getQueryParameter("page")) ; document.write(getHttp("/body?name=game&sct=1451&v=1709561669143")) ;document.write(mapSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1452&v=1709561669143")) ; breadcrumbsMapPage(gameEntity,moduleEntity,mapSetEntity) ; mapPageMenu(mapSetEntity) ; var mapPageEntityList = getHttpJson("/app/mappage/list?mapSetEntityId="+mapSetEntity["mapSetEntityId"]+"&sessionToken="+session["sessionToken"]) ; document.write(getHttp("/body?name=game&sct=1453&v=1709561669143")) ; for (i=0 ; i"+data["error"]) ; else { window.location = "/game/mappage/view?mapPageEntityId="+data["mapPageEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#createMapPageFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/mappage/update"&&validGame(gameEntity)&&validMapSet(mapSetEntity)&&validMapPage(mapPageEntity)) { if (!validSession(session)) signinPage() ; else if (validMapSetUserEditor(sessionMapSetUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=1498&v=1709561669143")) ;document.write(mapSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1499&v=1709561669143")) ;document.write(mapPageEntity["column"]) ;document.write(getHttp("/body?name=game&sct=1500&v=1709561669143")) ;document.write(mapPageEntity["row"]) ;document.write(getHttp("/body?name=game&sct=1501&v=1709561669143")) ;document.write(mapPageEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1502&v=1709561669143")) ; breadcrumbsMapPage(gameEntity,moduleEntity,mapSetEntity,mapPageEntity) ; mapPageMenu(mapPageEntity) ; document.write(getHttp("/body?name=game&sct=1503&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=1504&v=1709561669143")) ;document.write(mapPageEntity["mapPageEntityId"]) ;document.write(getHttp("/body?name=game&sct=1505&v=1709561669143")) ;document.write(mapPageEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1506&v=1709561669143")) ;document.write(mapPageEntity["column"]) ;document.write(getHttp("/body?name=game&sct=1507&v=1709561669143")) ;document.write(mapPageEntity["row"]) ;document.write(getHttp("/body?name=game&sct=1508&v=1709561669143")) ; $("#updateMapPageForm").on ( "submit", function (mapPage) { event.preventDefault() ; $.ajax ( { url: "/app/mappage/update", method: "POST", async: false, data: $("#updateMapPageForm").serializeArray(), success: function (data) { if (data["error"]) $("#updateMapPageFormMessage").html("

"+data["error"]) ; else { window.location = "/game/mappage/view?mapPageEntityId="+data["mapPageEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateMapPageFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/mappage/generate"&&validGame(gameEntity)&&validMapSet(mapSetEntity)&&validMapPage(mapPageEntity)) { if (!validSession(session)) signinPage() ; else if (validMapSetUserEditor(sessionMapSetUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=1509&v=1709561669143")) ;document.write(mapSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1510&v=1709561669143")) ;document.write(mapPageEntity["column"]) ;document.write(getHttp("/body?name=game&sct=1511&v=1709561669143")) ;document.write(mapPageEntity["row"]) ;document.write(getHttp("/body?name=game&sct=1512&v=1709561669143")) ;document.write(mapPageEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1513&v=1709561669143")) ; breadcrumbsMapPage(gameEntity,moduleEntity,mapSetEntity,mapPageEntity) ; mapPageMenu(mapPageEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=1514&v=1709561669143")) ;document.write(mapPageEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1515&v=1709561669143")) ;document.write(mapPageEntity["mapPageEntityId"]) ;document.write(getHttp("/body?name=game&sct=1516&v=1709561669143")) ; } else { $.ajax ( { url: "/app/mappage/generate", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"mapPageEntityId":mapPageEntity["mapPageEntityId"]}, success: function (data) { if (data["error"]) $("#mappageGenerateMessage").html("

"+data["error"]) ; else { window.location = "/game/mappage/view?mapPageEntityId="+data["mapPageEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#mappageGenerateMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=1517&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/mappage/updatelong"&&validGame(gameEntity)&&validMapSet(mapSetEntity)&&validMapPage(mapPageEntity)) { if (!validSession(session)) signinPage() ; else if (validMapSetUserEditor(sessionMapSetUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=1518&v=1709561669143")) ;document.write(mapSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1519&v=1709561669143")) ;document.write(mapPageEntity["column"]) ;document.write(getHttp("/body?name=game&sct=1520&v=1709561669143")) ;document.write(mapPageEntity["row"]) ;document.write(getHttp("/body?name=game&sct=1521&v=1709561669143")) ;document.write(mapPageEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1522&v=1709561669143")) ; breadcrumbsMapPage(gameEntity,moduleEntity,mapSetEntity,mapPageEntity) ; mapPageMenu(mapPageEntity) ; document.write(getHttp("/body?name=game&sct=1523&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=1524&v=1709561669143")) ;document.write(mapPageEntity["mapPageEntityId"]) ;document.write(getHttp("/body?name=game&sct=1525&v=1709561669143")) ;document.write(mapPageEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1526&v=1709561669143")) ;document.write(getHttp("/app/mappage/textlongdescription?mapPageEntityId="+mapPageEntity["mapPageEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=1527&v=1709561669143")) ; $("#updateMapPageLongForm").on ( "submit", function (mapPage) { event.preventDefault() ; $.ajax ( { url: "/app/mappage/updatelongdescription", method: "POST", async: false, data: $("#updateMapPageLongForm").serializeArray(), success: function (data) { if (data["error"]) $("#updateMapPageLongFormMessage").html("

"+data["error"]) ; else { window.location = "/game/mappage/view?mapPageEntityId="+data["mapPageEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateMapPageLongFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/mappage/uploadspecification"&&validGame(gameEntity)&&validMapSet(mapSetEntity)&&validMapPage(mapPageEntity)) { if (!validSession(session)) signinPage() ; else if (validMapSetUserEditor(sessionMapSetUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=1528&v=1709561669143")) ;document.write(mapSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1529&v=1709561669143")) ;document.write(mapPageEntity["column"]) ;document.write(getHttp("/body?name=game&sct=1530&v=1709561669143")) ;document.write(mapPageEntity["row"]) ;document.write(getHttp("/body?name=game&sct=1531&v=1709561669143")) ;document.write(mapPageEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1532&v=1709561669143")) ; breadcrumbsMapPage(gameEntity,moduleEntity,mapSetEntity,mapPageEntity) ; mapPageMenu(mapPageEntity) ; document.write(getHttp("/body?name=game&sct=1533&v=1709561669143")) ; $("#mappageUploadForm").on ( "submit", function (event) { event.preventDefault() ; $("#mappageUploadForm").innerHTML = 'Uploading...' ; var formData = new FormData() ; formData.append("sessionToken",session["sessionToken"]) ; formData.append("mapPageEntityId",mapPageEntity["mapPageEntityId"]) ; formData.append("specification",$('#mappageUploadFormSpecification')[0].files[0]) ; $.ajax ( { url: "/app/mappage/uploadspecification", method: "POST", async: false, data: formData, processData: false, contentType: false, success: function (data) { if (data["error"]) $("#mappageUploadFormMessage").html("

"+data["error"]) ; else { window.location = "/game/mappage/view?mapPageEntityId="+data["mapPageEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#mappageUploadFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/mappage/delete"&&validGame(gameEntity)&&validMapSet(mapSetEntity)&&validMapPage(mapPageEntity)) { if (!validSession(session)) signinPage() ; else if (validMapSetUserEditor(sessionMapSetUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=1534&v=1709561669143")) ;document.write(mapSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1535&v=1709561669143")) ;document.write(mapPageEntity["column"]) ;document.write(getHttp("/body?name=game&sct=1536&v=1709561669143")) ;document.write(mapPageEntity["row"]) ;document.write(getHttp("/body?name=game&sct=1537&v=1709561669143")) ;document.write(mapPageEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1538&v=1709561669143")) ; breadcrumbsMapPage(gameEntity,moduleEntity,mapSetEntity,mapPageEntity) ; mapPageMenu(mapPageEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=1539&v=1709561669143")) ;document.write(mapPageEntity["name"]) ;document.write(getHttp("/body?name=game&sct=1540&v=1709561669143")) ;document.write(mapPageEntity["mapPageEntityId"]) ;document.write(getHttp("/body?name=game&sct=1541&v=1709561669143")) ;document.write(mapPageEntity["name"]) ;document.write(getHttp("/body?name=game&sct=1542&v=1709561669143")) ; } else { $.ajax ( { url: "/app/mappage/delete", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"mapPageEntityId":mapPageEntity["mapPageEntityId"]}, success: function (data) { if (data["error"]) $("#mappageDeleteMessage").html("

"+data["error"]) ; else { window.location = "/game/mapset/view?mapSetEntityId="+data["mapSetEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#mappageDeleteMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=1543&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/nation/view"&&validGame(gameEntity)&&validNation(nationEntity)) { document.write(getHttp("/body?name=game&sct=1544&v=1709561669143")) ;document.write(nationEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1545&v=1709561669143")) ; document.write(getHttp("/body?name=game&sct=1546&v=1709561669143")) ;document.write(getHttp("/app/nation/textlongdescription?nationEntityId="+nationEntity["nationEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=1547&v=1709561669143")) ;document.write(nationEntity["nationEntityId"]) ;document.write(getHttp("/body?name=game&sct=1548&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=1549&v=1709561669143")) ; if (validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=1550&v=1709561669143")) ;document.write(nationEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1551&v=1709561669143")) ;document.write(nationEntity["name"]) ;document.write(getHttp("/body?name=game&sct=1552&v=1709561669143")) ;document.write(nationEntity["createDate"]) ;document.write(getHttp("/body?name=game&sct=1553&v=1709561669143")) ;document.write(nationEntity["modifyDate"]) ;document.write(getHttp("/body?name=game&sct=1554&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=1555&v=1709561669143")) ; } else if ((pathname=="/game/formation"||pathname=="/game/formation/list")&&validGame(gameEntity)&&validModule(moduleEntity)) { var page = parseInt(getQueryParameter("page")) ; if (isNaN(page)) page = 0 ; var criteria = getQueryParameter("criteria") ; document.write(getHttp("/body?name=game&sct=1556&v=1709561669143")) ; breadcrumbsFormation(gameEntity,moduleEntity) ; formationMenu() ; var formationEntityList = getHttpJson("/app/formation/listbymoduleorder?page="+page+"&moduleEntityId="+moduleEntity["moduleEntityId"]+"&sessionToken="+session["sessionToken"]) ; document.write(getHttp("/body?name=game&sct=1557&v=1709561669143")) ; for (i=0 ; i<10&&i0) { document.write(getHttp("/body?name=game&sct=1562&v=1709561669143")) ;document.write(page-1) ;document.write(getHttp("/body?name=game&sct=1563&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=1564&v=1709561669143")) ; } if (formationEntityList.length>10) { document.write(getHttp("/body?name=game&sct=1565&v=1709561669143")) ;document.write(page+1) ;document.write(getHttp("/body?name=game&sct=1566&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=1567&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=1568&v=1709561669143")) ; } else if (pathname=="/game/formation/view"&&validGame(gameEntity)&&validFormation(formationEntity)) { document.write(getHttp("/body?name=game&sct=1569&v=1709561669143")) ;document.write(formationEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1570&v=1709561669143")) ; breadcrumbsFormation(gameEntity,moduleEntity,formationEntity) ; formationMenu(formationEntity) ; document.write(getHttp("/body?name=game&sct=1571&v=1709561669143")) ;document.write(formationEntity["nation"]) ;document.write(getHttp("/body?name=game&sct=1572&v=1709561669143")) ;document.write(getHttp("/app/formation/textlongdescription?formationEntityId="+formationEntity["formationEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=1573&v=1709561669143")) ;document.write(formationEntity["formationEntityId"]) ;document.write(getHttp("/body?name=game&sct=1574&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=1575&v=1709561669143")) ;document.write(formationEntity["formationEntityId"]) ;document.write(getHttp("/body?name=game&sct=1576&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=1577&v=1709561669143")) ; if (validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { var formationUserEntity = getHttpJson("/app/formation/user/view?formationEntityId="+formationEntity["formationEntityId"]+"&userEntityId="+formationEntity["userEntityId"]+"&sessionToken="+session["sessionToken"]) ; document.write(getHttp("/body?name=game&sct=1578&v=1709561669143")) ;document.write(formationEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1579&v=1709561669143")) ;document.write(formationEntity["name"]) ;document.write(getHttp("/body?name=game&sct=1580&v=1709561669143")) ;document.write(formationEntity["nation"]) ;document.write(getHttp("/body?name=game&sct=1581&v=1709561669143")) ;document.write(formationEntity["formationType"]) ;document.write(getHttp("/body?name=game&sct=1582&v=1709561669143")) ;document.write(formationEntity["id"]) ;document.write(getHttp("/body?name=game&sct=1583&v=1709561669143")) ;document.write(formationEntity["createDate"]) ;document.write(getHttp("/body?name=game&sct=1584&v=1709561669143")) ;document.write(formationEntity["modifyDate"]) ;document.write(getHttp("/body?name=game&sct=1585&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=1586&v=1709561669143")) ; } else if (pathname=="/game/formation/create"&&validGame(gameEntity)) { if (!validSession(session)) signinPage() ; else if (validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=1587&v=1709561669143")) ; breadcrumbsFormation(gameEntity,moduleEntity) ; formationMenu() ; document.write(getHttp("/body?name=game&sct=1588&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=1589&v=1709561669143")) ; $("#createFormationForm").on ( "submit", function (formation) { event.preventDefault() ; $.ajax ( { url: "/app/formation/create", method: "POST", async: false, data: $("#createFormationForm").serializeArray(), success: function (data) { if (data["error"]) $("#createFormationFormMessage").html("

"+data["error"]) ; else { window.location = "/game/formation/view?formationEntityId="+data["formationEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#createFormationFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/formation/update"&&validGame(gameEntity)&&validFormation(formationEntity)) { if (!validSession(session)) signinPage() ; else if (validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=1590&v=1709561669143")) ;document.write(formationEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1591&v=1709561669143")) ; breadcrumbsFormation(gameEntity,moduleEntity,formationEntity) ; formationMenu(formationEntity) ; document.write(getHttp("/body?name=game&sct=1592&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=1593&v=1709561669143")) ;document.write(formationEntity["formationEntityId"]) ;document.write(getHttp("/body?name=game&sct=1594&v=1709561669143")) ;document.write(formationEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1595&v=1709561669143")) ;document.write(formationEntity["name"]) ;document.write(getHttp("/body?name=game&sct=1596&v=1709561669143")) ;document.write(formationEntity["nation"]) ;document.write(getHttp("/body?name=game&sct=1597&v=1709561669143")) ;document.write(formationEntity["year"]) ;document.write(getHttp("/body?name=game&sct=1598&v=1709561669143")) ;document.write(formationEntity["majorVersion"]) ;document.write(getHttp("/body?name=game&sct=1599&v=1709561669143")) ;document.write(formationEntity["minorVersion"]) ;document.write(getHttp("/body?name=game&sct=1600&v=1709561669143")) ; var moduleEntityList = getHttpJson("/app/module/list?gameEntityId="+gameEntity["gameEntityId"]+"&criteria=all&page=-1&sessionToken="+session["sessionToken"]) ; document.write(getHttp("/body?name=game&sct=1601&v=1709561669143")) ; for (var i=0 ; i"+data["error"]) ; else { window.location = "/game/formation/view?formationEntityId="+data["formationEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateFormationFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/formation/generate"&&validGame(gameEntity)&&validFormation(formationEntity)) { if (!validSession(session)) signinPage() ; else if (validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=1607&v=1709561669143")) ;document.write(formationEntity["name"]) ;document.write(getHttp("/body?name=game&sct=1608&v=1709561669143")) ; breadcrumbsFormation(gameEntity,moduleEntity,formationEntity) ; formationMenu(formationEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=1609&v=1709561669143")) ;document.write(formationEntity["name"]) ;document.write(getHttp("/body?name=game&sct=1610&v=1709561669143")) ;document.write(formationEntity["formationEntityId"]) ;document.write(getHttp("/body?name=game&sct=1611&v=1709561669143")) ;document.write(formationEntity["name"]) ;document.write(getHttp("/body?name=game&sct=1612&v=1709561669143")) ; } else { $.ajax ( { url: "/app/formation/generate", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"formationEntityId":formationEntity["formationEntityId"]}, success: function (data) { if (data["error"]) $("#formationGenerateMessage").html("

"+data["error"]) ; else { window.location = "/game/formation/view?formationEntityId="+data["formationEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#formationGenerateMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=1613&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/formation/updateshort"&&validGame(gameEntity)&&validFormation(formationEntity)) { if (!validSession(session)) signinPage() ; else if (validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=1614&v=1709561669143")) ;document.write(formationEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1615&v=1709561669143")) ; breadcrumbsFormation(gameEntity,moduleEntity,formationEntity) ; formationMenu(formationEntity) ; document.write(getHttp("/body?name=game&sct=1616&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=1617&v=1709561669143")) ;document.write(formationEntity["formationEntityId"]) ;document.write(getHttp("/body?name=game&sct=1618&v=1709561669143")) ;document.write(formationEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1619&v=1709561669143")) ;document.write(getHttp("/app/formation/textshortdescription?formationEntityId="+formationEntity["formationEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=1620&v=1709561669143")) ; $("#updateFormationShortForm").on ( "submit", function (formation) { event.preventDefault() ; $.ajax ( { url: "/app/formation/updateshortdescription", method: "POST", async: false, data: $("#updateFormationShortForm").serializeArray(), success: function (data) { if (data["error"]) $("#updateFormationShortFormMessage").html("

"+data["error"]) ; else { window.location = "/game/formation/view?formationEntityId="+data["formationEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateFormationShortFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/formation/updatelong"&&validGame(gameEntity)&&validFormation(formationEntity)) { if (!validSession(session)) signinPage() ; else if (validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=1621&v=1709561669143")) ;document.write(formationEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1622&v=1709561669143")) ; breadcrumbsFormation(gameEntity,moduleEntity,formationEntity) ; formationMenu(formationEntity) ; document.write(getHttp("/body?name=game&sct=1623&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=1624&v=1709561669143")) ;document.write(formationEntity["formationEntityId"]) ;document.write(getHttp("/body?name=game&sct=1625&v=1709561669143")) ;document.write(formationEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1626&v=1709561669143")) ;document.write(getHttp("/app/formation/textlongdescription?formationEntityId="+formationEntity["formationEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=1627&v=1709561669143")) ; $("#updateFormationLongForm").on ( "submit", function (formation) { event.preventDefault() ; $.ajax ( { url: "/app/formation/updatelongdescription", method: "POST", async: false, data: $("#updateFormationLongForm").serializeArray(), success: function (data) { if (data["error"]) $("#updateFormationLongFormMessage").html("

"+data["error"]) ; else { window.location = "/game/formation/view?formationEntityId="+data["formationEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateFormationLongFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/formation/updatedesign"&&validGame(gameEntity)&&validFormation(formationEntity)) { if (!validSession(session)) signinPage() ; else if (validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=1628&v=1709561669143")) ;document.write(formationEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1629&v=1709561669143")) ; breadcrumbsFormation(gameEntity,moduleEntity,formationEntity) ; formationMenu(formationEntity) ; document.write(getHttp("/body?name=game&sct=1630&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=1631&v=1709561669143")) ;document.write(formationEntity["formationEntityId"]) ;document.write(getHttp("/body?name=game&sct=1632&v=1709561669143")) ;document.write(formationEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1633&v=1709561669143")) ;document.write(getHttp("/app/formation/textdesigndescription?formationEntityId="+formationEntity["formationEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=1634&v=1709561669143")) ; $("#updateFormationDesignForm").on ( "submit", function (formation) { event.preventDefault() ; $.ajax ( { url: "/app/formation/updatedesigndescription", method: "POST", async: false, data: $("#updateFormationDesignForm").serializeArray(), success: function (data) { if (data["error"]) $("#updateFormationDesignFormMessage").html("

"+data["error"]) ; else { window.location = "/game/formation/view?formationEntityId="+data["formationEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateFormationDesignFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/formation/uploadspecification"&&validGame(gameEntity)&&validFormation(formationEntity)) { if (!validSession(session)) signinPage() ; else if (validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=1635&v=1709561669143")) ;document.write(formationEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1636&v=1709561669143")) ; breadcrumbsFormation(gameEntity,moduleEntity,mapSetEntity,formationEntity) ; formationMenu(formationEntity) ; document.write(getHttp("/body?name=game&sct=1637&v=1709561669143")) ; $("#formationUploadForm").on ( "submit", function (event) { event.preventDefault() ; $("#formationUploadForm").innerHTML = 'Uploading...' ; var formData = new FormData() ; formData.append("sessionToken",session["sessionToken"]) ; formData.append("formationEntityId",formationEntity["formationEntityId"]) ; formData.append("specification",$('#formationUploadFormSpecification')[0].files[0]) ; $.ajax ( { url: "/app/formation/uploadspecification", method: "POST", async: false, data: formData, processData: false, contentType: false, success: function (data) { if (data["error"]) $("#formationUploadFormMessage").html("

"+data["error"]) ; else { window.location = "/game/formation/view?formationEntityId="+data["formationEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#formationUploadFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/formation/delete"&&validGame(gameEntity)&&validFormation(formationEntity)) { if (!validSession(session)) signinPage() ; else if (validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=1638&v=1709561669143")) ;document.write(formationEntity["name"]) ;document.write(getHttp("/body?name=game&sct=1639&v=1709561669143")) ; breadcrumbsFormation(gameEntity,moduleEntity,formationEntity) ; formationMenu(formationEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=1640&v=1709561669143")) ;document.write(formationEntity["name"]) ;document.write(getHttp("/body?name=game&sct=1641&v=1709561669143")) ;document.write(formationEntity["formationEntityId"]) ;document.write(getHttp("/body?name=game&sct=1642&v=1709561669143")) ;document.write(formationEntity["name"]) ;document.write(getHttp("/body?name=game&sct=1643&v=1709561669143")) ; } else { $.ajax ( { url: "/app/formation/delete", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"formationEntityId":formationEntity["formationEntityId"]}, success: function (data) { if (data["error"]) $("#formationDeleteMessage").html("

"+data["error"]) ; else { window.location = data["moduleEntityId"]?"/game/module/view?moduleEntityId="+data["moduleEntityId"]:"/game/view?gameEntityId="+data["gameEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#formationDeleteMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=1644&v=1709561669143")) ; } else errorPage() ; } else if ((pathname=="/game/formationset"||pathname=="/game/formationset/list")&&validGame(gameEntity)) { var page = parseInt(getQueryParameter("page")) ; if (isNaN(page)) page = 0 ; var criteria = getQueryParameter("criteria") ; document.write(getHttp("/body?name=game&sct=1645&v=1709561669143")) ; breadcrumbsFormationSet(gameEntity,moduleEntity) ; formationSetMenu() ; var formationSetEntityList = getHttpJson("/app/formationset/list?"+((validModule(moduleEntity))?("moduleEntityId="+moduleEntity["moduleEntityId"]):("gameEntityId="+gameEntity["gameEntityId"]))+(criteria?("&criteria="+criteria):"")+"&page="+page+"&sessionToken="+session["sessionToken"]) ; document.write(getHttp("/body?name=game&sct=1646&v=1709561669143")) ; for (i=0 ; i<10&&i0) { document.write(getHttp("/body?name=game&sct=1652&v=1709561669143")) ;document.write(page-1) ;document.write(formationSetEntity!=null?("&formationSetEntityId="+formationSetEntity["formationSetEntityId"]):("&gameEntityId="+gameEntity["gameEntityId"])) ;document.write(criteria?("&criteria="+criteria):"") ;document.write(getHttp("/body?name=game&sct=1653&v=1709561669143")) ; } if (formationSetEntityList.length>10) { document.write(getHttp("/body?name=game&sct=1654&v=1709561669143")) ;document.write(page+1) ;document.write(formationSetEntity!=null?("&formationSetEntityId="+formationSetEntity["formationSetEntityId"]):("&gameEntityId="+gameEntity["gameEntityId"])) ;document.write(criteria?("&criteria="+criteria):"") ;document.write(getHttp("/body?name=game&sct=1655&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=1656&v=1709561669143")) ; } else if (pathname=="/game/formationset/view"&&validGame(gameEntity)&&validFormationSet(formationSetEntity)) { document.write(getHttp("/body?name=game&sct=1657&v=1709561669143")) ;document.write(formationSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1658&v=1709561669143")) ; breadcrumbsFormationSet(gameEntity,moduleEntity,formationSetEntity) ; formationSetMenu(formationSetEntity) ; document.write(getHttp("/body?name=game&sct=1659&v=1709561669143")) ;document.write(formationSetEntity["nation"]) ;document.write(getHttp("/body?name=game&sct=1660&v=1709561669143")) ;document.write(formationSetEntity["year"]) ;document.write(getHttp("/body?name=game&sct=1661&v=1709561669143")) ;document.write(getHttp("/app/formationset/textlongdescription?formationSetEntityId="+formationSetEntity["formationSetEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=1662&v=1709561669143")) ;document.write(getHttp("/app/formationset/textdesigndescription?formationSetEntityId="+formationSetEntity["formationSetEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=1663&v=1709561669143")) ;document.write(formationSetEntity["majorVersion"]) ;document.write(getHttp("/body?name=game&sct=1664&v=1709561669143")) ;document.write(formationSetEntity["minorVersion"]) ;document.write(getHttp("/body?name=game&sct=1665&v=1709561669143")) ;document.write(formationSetEntity["formationSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=1666&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=1667&v=1709561669143")) ; if (validFormationSetUserEditor(sessionFormationSetUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { var formationSetUserEntity = getHttpJson("/app/formationset/user/view?formationSetEntityId="+formationSetEntity["formationSetEntityId"]+"&userEntityId="+formationSetEntity["userEntityId"]+"&sessionToken="+session["sessionToken"]) ; document.write(getHttp("/body?name=game&sct=1668&v=1709561669143")) ;document.write(formationSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1669&v=1709561669143")) ;document.write(formationSetEntity["name"]) ;document.write(getHttp("/body?name=game&sct=1670&v=1709561669143")) ;document.write(formationSetUserEntity["formationSetUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=1671&v=1709561669143")) ;document.write(formationSetUserEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1672&v=1709561669143")) ;document.write(formationSetEntity["rating"]) ;document.write(getHttp("/body?name=game&sct=1673&v=1709561669143")) ;document.write(formationSetEntity["createDate"]) ;document.write(getHttp("/body?name=game&sct=1674&v=1709561669143")) ;document.write(formationSetEntity["modifyDate"]) ;document.write(getHttp("/body?name=game&sct=1675&v=1709561669143")) ;document.write(getHttp("/app/formationset/viewerrorlog?formationSetEntityId="+formationSetEntity["formationSetEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=1676&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=1677&v=1709561669143")) ; } else if (pathname=="/game/formationset/create"&&validGame(gameEntity)) { if (!validSession(session)) signinPage() ; else if (validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=1678&v=1709561669143")) ; breadcrumbsFormationSet(gameEntity,moduleEntity) ; formationSetMenu() ; document.write(getHttp("/body?name=game&sct=1679&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=1680&v=1709561669143")) ; $("#createFormationSetForm").on ( "submit", function (formationSet) { event.preventDefault() ; $.ajax ( { url: "/app/formationset/create", method: "POST", async: false, data: $("#createFormationSetForm").serializeArray(), success: function (data) { if (data["error"]) $("#createFormationSetFormMessage").html("

"+data["error"]) ; else { window.location = "/game/formationset/view?formationSetEntityId="+data["formationSetEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#createFormationSetFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/formationset/update"&&validGame(gameEntity)&&validFormationSet(formationSetEntity)) { if (!validSession(session)) signinPage() ; else if (validFormationSetUserEditor(sessionFormationSetUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=1681&v=1709561669143")) ;document.write(formationSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1682&v=1709561669143")) ; breadcrumbsFormationSet(gameEntity,moduleEntity,formationSetEntity) ; formationSetMenu(formationSetEntity) ; document.write(getHttp("/body?name=game&sct=1683&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=1684&v=1709561669143")) ;document.write(formationSetEntity["formationSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=1685&v=1709561669143")) ;document.write(formationSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1686&v=1709561669143")) ;document.write(formationSetEntity["name"]) ;document.write(getHttp("/body?name=game&sct=1687&v=1709561669143")) ;document.write(formationSetEntity["nation"]) ;document.write(getHttp("/body?name=game&sct=1688&v=1709561669143")) ;document.write(formationSetEntity["year"]) ;document.write(getHttp("/body?name=game&sct=1689&v=1709561669143")) ;document.write(formationSetEntity["majorVersion"]) ;document.write(getHttp("/body?name=game&sct=1690&v=1709561669143")) ;document.write(formationSetEntity["minorVersion"]) ;document.write(getHttp("/body?name=game&sct=1691&v=1709561669143")) ; var moduleEntityList = getHttpJson("/app/module/list?gameEntityId="+gameEntity["gameEntityId"]+"&criteria=all&page=-1&sessionToken="+session["sessionToken"]) ; document.write(getHttp("/body?name=game&sct=1692&v=1709561669143")) ; for (var i=0 ; i"+data["error"]) ; else { window.location = "/game/formationset/view?formationSetEntityId="+data["formationSetEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateFormationSetFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/formationset/generate"&&validGame(gameEntity)&&validFormationSet(formationSetEntity)) { if (!validSession(session)) signinPage() ; else if (validFormationSetUserEditor(sessionFormationSetUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=1698&v=1709561669143")) ;document.write(formationSetEntity["name"]) ;document.write(getHttp("/body?name=game&sct=1699&v=1709561669143")) ; breadcrumbsFormationSet(gameEntity,moduleEntity,formationSetEntity) ; formationSetMenu(formationSetEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=1700&v=1709561669143")) ;document.write(formationSetEntity["name"]) ;document.write(getHttp("/body?name=game&sct=1701&v=1709561669143")) ;document.write(formationSetEntity["formationSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=1702&v=1709561669143")) ;document.write(formationSetEntity["name"]) ;document.write(getHttp("/body?name=game&sct=1703&v=1709561669143")) ; } else { $.ajax ( { url: "/app/formationset/generate", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"formationSetEntityId":formationSetEntity["formationSetEntityId"]}, success: function (data) { if (data["error"]) $("#formationsetGenerateMessage").html("

"+data["error"]) ; else { window.location = "/game/formationset/view?formationSetEntityId="+data["formationSetEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#formationsetGenerateMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=1704&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/formationset/updateshort"&&validGame(gameEntity)&&validFormationSet(formationSetEntity)) { if (!validSession(session)) signinPage() ; else if (validFormationSetUserEditor(sessionFormationSetUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=1705&v=1709561669143")) ;document.write(formationSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1706&v=1709561669143")) ; breadcrumbsFormationSet(gameEntity,moduleEntity,formationSetEntity) ; formationSetMenu(formationSetEntity) ; document.write(getHttp("/body?name=game&sct=1707&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=1708&v=1709561669143")) ;document.write(formationSetEntity["formationSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=1709&v=1709561669143")) ;document.write(formationSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1710&v=1709561669143")) ;document.write(getHttp("/app/formationset/textshortdescription?formationSetEntityId="+formationSetEntity["formationSetEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=1711&v=1709561669143")) ; $("#updateFormationSetShortForm").on ( "submit", function (formationSet) { event.preventDefault() ; $.ajax ( { url: "/app/formationset/updateshortdescription", method: "POST", async: false, data: $("#updateFormationSetShortForm").serializeArray(), success: function (data) { if (data["error"]) $("#updateFormationSetShortFormMessage").html("

"+data["error"]) ; else { window.location = "/game/formationset/view?formationSetEntityId="+data["formationSetEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateFormationSetShortFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/formationset/updatelong"&&validGame(gameEntity)&&validFormationSet(formationSetEntity)) { if (!validSession(session)) signinPage() ; else if (validFormationSetUserEditor(sessionFormationSetUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=1712&v=1709561669143")) ;document.write(formationSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1713&v=1709561669143")) ; breadcrumbsFormationSet(gameEntity,moduleEntity,formationSetEntity) ; formationSetMenu(formationSetEntity) ; document.write(getHttp("/body?name=game&sct=1714&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=1715&v=1709561669143")) ;document.write(formationSetEntity["formationSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=1716&v=1709561669143")) ;document.write(formationSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1717&v=1709561669143")) ;document.write(getHttp("/app/formationset/textlongdescription?formationSetEntityId="+formationSetEntity["formationSetEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=1718&v=1709561669143")) ; $("#updateFormationSetLongForm").on ( "submit", function (formationSet) { event.preventDefault() ; $.ajax ( { url: "/app/formationset/updatelongdescription", method: "POST", async: false, data: $("#updateFormationSetLongForm").serializeArray(), success: function (data) { if (data["error"]) $("#updateFormationSetLongFormMessage").html("

"+data["error"]) ; else { window.location = "/game/formationset/view?formationSetEntityId="+data["formationSetEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateFormationSetLongFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/formationset/updatedesign"&&validGame(gameEntity)&&validFormationSet(formationSetEntity)) { if (!validSession(session)) signinPage() ; else if (validFormationSetUserEditor(sessionFormationSetUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=1719&v=1709561669143")) ;document.write(formationSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1720&v=1709561669143")) ; breadcrumbsFormationSet(gameEntity,moduleEntity,formationSetEntity) ; formationSetMenu(formationSetEntity) ; document.write(getHttp("/body?name=game&sct=1721&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=1722&v=1709561669143")) ;document.write(formationSetEntity["formationSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=1723&v=1709561669143")) ;document.write(formationSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1724&v=1709561669143")) ;document.write(getHttp("/app/formationset/textdesigndescription?formationSetEntityId="+formationSetEntity["formationSetEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=1725&v=1709561669143")) ; $("#updateFormationSetDesignForm").on ( "submit", function (formationSet) { event.preventDefault() ; $.ajax ( { url: "/app/formationset/updatedesigndescription", method: "POST", async: false, data: $("#updateFormationSetDesignForm").serializeArray(), success: function (data) { if (data["error"]) $("#updateFormationSetDesignFormMessage").html("

"+data["error"]) ; else { window.location = "/game/formationset/view?formationSetEntityId="+data["formationSetEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateFormationSetDesignFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/formationset/uploadspecification"&&validGame(gameEntity)&&validFormationSet(formationSetEntity)) { if (!validSession(session)) signinPage() ; else if (validFormationSetUserEditor(sessionFormationSetUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=1726&v=1709561669143")) ;document.write(formationSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1727&v=1709561669143")) ; breadcrumbsFormationSet(gameEntity,moduleEntity,mapSetEntity,formationSetEntity) ; formationSetMenu(formationSetEntity) ; document.write(getHttp("/body?name=game&sct=1728&v=1709561669143")) ; $("#formationsetUploadForm").on ( "submit", function (event) { event.preventDefault() ; $("#formationsetUploadForm").innerHTML = 'Uploading...' ; var formData = new FormData() ; formData.append("sessionToken",session["sessionToken"]) ; formData.append("formationSetEntityId",formationSetEntity["formationSetEntityId"]) ; formData.append("specification",$('#formationsetUploadFormSpecification')[0].files[0]) ; $.ajax ( { url: "/app/formationset/uploadspecification", method: "POST", async: false, data: formData, processData: false, contentType: false, success: function (data) { if (data["error"]) $("#formationsetUploadFormMessage").html("

"+data["error"]) ; else { window.location = "/game/formationset/view?formationSetEntityId="+data["formationSetEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#formationsetUploadFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/formationset/delete"&&validGame(gameEntity)&&validFormationSet(formationSetEntity)) { if (!validSession(session)) signinPage() ; else if (validFormationSetUserAdministrator(sessionFormationSetUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=1729&v=1709561669143")) ;document.write(formationSetEntity["name"]) ;document.write(getHttp("/body?name=game&sct=1730&v=1709561669143")) ; breadcrumbsFormationSet(gameEntity,moduleEntity,formationSetEntity) ; formationSetMenu(formationSetEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=1731&v=1709561669143")) ;document.write(formationSetEntity["name"]) ;document.write(getHttp("/body?name=game&sct=1732&v=1709561669143")) ;document.write(formationSetEntity["formationSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=1733&v=1709561669143")) ;document.write(formationSetEntity["name"]) ;document.write(getHttp("/body?name=game&sct=1734&v=1709561669143")) ; } else { $.ajax ( { url: "/app/formationset/delete", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"formationSetEntityId":formationSetEntity["formationSetEntityId"]}, success: function (data) { if (data["error"]) $("#formationsetDeleteMessage").html("

"+data["error"]) ; else { window.location = data["moduleEntityId"]?"/game/module/view?moduleEntityId="+data["moduleEntityId"]:"/game/view?gameEntityId="+data["gameEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#formationsetDeleteMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=1735&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/formationset/subscribe"&&validFormationSet(formationSetEntity)) { if (!validSession(session)) signinPage() ; else { document.write(getHttp("/body?name=game&sct=1736&v=1709561669143")) ;document.write(formationSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1737&v=1709561669143")) ; breadcrumbsFormationSet(formationSetEntity) ; formationSetMenu(formationSetEntity) ; $.ajax ( { url: "/app/formationset/subscribe", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"formationSetEntityId":formationSetEntity["formationSetEntityId"],"userEntityId":session["userEntityId"]}, success: function (data) { if (data["error"]) $("#formationSetSubscribeMessage").html("

"+data["error"]) ; else { window.location = "/game/formationset/view?formationSetEntityId="+data["formationSetEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#formationSetSubscribeMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; document.write(getHttp("/body?name=game&sct=1738&v=1709561669143")) ; } } else if (pathname=="/game/formationset/join"&&validFormationSet(formationSetEntity)) { if (!validSession(session)) signinPage() ; else { document.write(getHttp("/body?name=game&sct=1739&v=1709561669143")) ;document.write(formationSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1740&v=1709561669143")) ; breadcrumbsFormationSet(formationSetEntity,formationSetEntity) ; formationSetMenu(formationSetEntity,formationSetEntity) ; document.write(getHttp("/body?name=game&sct=1741&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=1742&v=1709561669143")) ;document.write(formationSetEntity["formationSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=1743&v=1709561669143")) ;document.write(session["userEntityId"]) ;document.write(getHttp("/body?name=game&sct=1744&v=1709561669143")) ; $("#joinFormationSetForm").on ( "submit", function (formationSet) { formationSet.prformationSetDefault() ; $.ajax ( { url: "/app/formationset/join", method: "POST", async: false, data: $("#joinFormationSetForm").serializeArray(), success: function (data) { if (data["error"]) $("#joinFormationSetFormMessage").html("

"+data["error"]) ; else { window.location = "/game/formationset/view?formationSetEntityId="+data["formationSetEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#joinFormationSetFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; document.write(getHttp("/body?name=game&sct=1745&v=1709561669143")) ; } } else if (pathname=="/game/formationset/comment"&&validGame(gameEntity)&&validFormationSet(formationSetEntity)) { if (!validSession(session)) signinPage() ; else { document.write(getHttp("/body?name=game&sct=1746&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1747&v=1709561669143")) ; breadcrumbsFormationSet(gameEntity,moduleEntity,formationSetEntity) ; formationSetMenu(formationSetEntity) ; document.write(getHttp("/body?name=game&sct=1748&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=1749&v=1709561669143")) ;document.write(formationSetEntity["formationSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=1750&v=1709561669143")) ;document.write(session["userEntityId"]) ;document.write(getHttp("/body?name=game&sct=1751&v=1709561669143")) ;document.write(getHttp("/app/formationset/user/textlongdescription?gameEntityId="+gameEntity["gameEntityId"]+"&userEntityId="+session["userEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=1752&v=1709561669143")) ; $("#commentFormationSetForm").on ( "submit", function (formationSet) { event.preventDefault() ; $.ajax ( { url: "/app/formationset/comment", method: "POST", async: false, data: $("#commentFormationSetForm").serializeArray(), success: function (data) { if (data["error"]) $("#commentFormationSetFormMessage").html("

"+data["error"]) ; else { window.location = "/game/formationset/view?formationSetEntityId="+data["formationSetEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#commentFormationSetFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } } else if ((pathname=="/game/formationset/user"||pathname=="/game/formationset/user/list")&&validGame(gameEntity)&&validFormationSet(formationSetEntity)) { if (!validSession(session)) signinPage() ; else if (validFormationSetUserAdministrator(sessionFormationSetUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { var page = parseInt(getQueryParameter("page")) ; if (isNaN(page)) page = 0 ; var criteria = getQueryParameter("criteria") ; document.write(getHttp("/body?name=game&sct=1753&v=1709561669143")) ;document.write(formationSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1754&v=1709561669143")) ; breadcrumbsFormationSet(gameEntity,moduleEntity,formationSetEntity) ; formationSetMenu(formationSetEntity) ; var formationSetUserEntityList = getHttpJson("/app/formationset/user/list?formationSetEntityId="+formationSetEntity["formationSetEntityId"]+(criteria?("&criteria="+criteria):"")+"&page="+page+"&sessionToken="+session["sessionToken"]) ; document.write(getHttp("/body?name=game&sct=1755&v=1709561669143")) ; for (i=0 ; i<10&&i0) { document.write(getHttp("/body?name=game&sct=1765&v=1709561669143")) ;document.write(formationSetEntity["formationSetEntityId"]) ;document.write(criteria?("&criteria="+criteria):"") ;document.write(getHttp("/body?name=game&sct=1766&v=1709561669143")) ;document.write(page-1) ;document.write(getHttp("/body?name=game&sct=1767&v=1709561669143")) ; } if (formationSetUserEntityList.length>10) { document.write(getHttp("/body?name=game&sct=1768&v=1709561669143")) ;document.write(formationSetEntity["formationSetEntityId"]) ;document.write(criteria?("&criteria="+criteria):"") ;document.write(getHttp("/body?name=game&sct=1769&v=1709561669143")) ;document.write(page+1) ;document.write(getHttp("/body?name=game&sct=1770&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=1771&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/formationset/user/view"&&validGame(gameEntity)&&validFormationSet(formationSetEntity)&&validFormationSetUser(formationSetUserEntity)) { if (!validSession(session)) signinPage() ; else if (validFormationSetUserAdministrator(sessionFormationSetUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=1772&v=1709561669143")) ;document.write(formationSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1773&v=1709561669143")) ;document.write(formationSetUserEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1774&v=1709561669143")) ; breadcrumbsFormationSet(gameEntity,moduleEntity,formationSetEntity) ; formationSetUserMenu(formationSetEntity,formationSetUserEntity) ; if (formationSetUserEntity["userEntityId"]>0) { document.write(getHttp("/body?name=game&sct=1775&v=1709561669143")) ;document.write(formationSetUserEntity["userEntityId"]) ;document.write(getHttp("/body?name=game&sct=1776&v=1709561669143")) ;document.write(formationSetUserEntity["version"]) ;document.write(getHttp("/body?name=game&sct=1777&v=1709561669143")) ;document.write(formationSetUserEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1778&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=1779&v=1709561669143")) ; if (formationSetUserEntity["firstName"]) { document.write(getHttp("/body?name=game&sct=1780&v=1709561669143")) ;document.write(formationSetUserEntity["firstName"]) ;document.write(getHttp("/body?name=game&sct=1781&v=1709561669143")) ; } if (formationSetUserEntity["lastName"]) { document.write(getHttp("/body?name=game&sct=1782&v=1709561669143")) ;document.write(formationSetUserEntity["lastName"]) ;document.write(getHttp("/body?name=game&sct=1783&v=1709561669143")) ; } if (formationSetUserEntity["email"]) { document.write(getHttp("/body?name=game&sct=1784&v=1709561669143")) ;document.write(formationSetUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=1785&v=1709561669143")) ;document.write(formationSetUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=1786&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=1787&v=1709561669143")) ;document.write(formationSetUserEntity["administrator"]) ;document.write(getHttp("/body?name=game&sct=1788&v=1709561669143")) ;document.write(formationSetUserEntity["editor"]) ;document.write(getHttp("/body?name=game&sct=1789&v=1709561669143")) ;document.write(formationSetUserEntity["designer"]) ;document.write(getHttp("/body?name=game&sct=1790&v=1709561669143")) ;document.write(formationSetUserEntity["subscriber"]) ;document.write(getHttp("/body?name=game&sct=1791&v=1709561669143")) ;document.write(formationSetUserEntity["createDate"]) ;document.write(getHttp("/body?name=game&sct=1792&v=1709561669143")) ;document.write(formationSetUserEntity["modifyDate"]) ;document.write(getHttp("/body?name=game&sct=1793&v=1709561669143")) ;document.write(getHttp("/app/user/view/textlongdescription?userEntityId="+formationSetUserEntity["userEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=1794&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/formationset/user/create"&&validGame(gameEntity)&&validFormationSet(formationSetEntity)) { if (!validSession(session)) signinPage() ; else if (validFormationSetUserAdministrator(sessionFormationSetUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=1795&v=1709561669143")) ;document.write(formationSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1796&v=1709561669143")) ; breadcrumbsFormationSet(gameEntity,moduleEntity,formationSetEntity) ; formationSetUserMenu(formationSetEntity) ; document.write(getHttp("/body?name=game&sct=1797&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=1798&v=1709561669143")) ;document.write(formationSetEntity["formationSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=1799&v=1709561669143")) ;document.write(formationSetUserEntity["subscriber"]?"checked":"") ;document.write(getHttp("/body?name=game&sct=1800&v=1709561669143")) ; $("#createFormationSetUserForm").on ( "submit", function (formationSet) { event.preventDefault() ; $.ajax ( { url: "/app/formationset/user/create", method: "POST", async: false, data: $("#createFormationSetUserForm").serializeArray(), success: function (data) { if (data["error"]) $("#createFormationSetUserFormMessage").html("

"+data["error"]) ; else { window.location = "/game/formationset/user/view?formationSetUserEntityId="+data["formationSetUserEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#createFormationSetUserFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/formationset/user/update"&&validGame(gameEntity)&&validFormationSet(formationSetEntity)&&validFormationSetUser(formationSetUserEntity)) { if (!validSession(session)) signinPage() ; else if (validFormationSetUserAdministrator(sessionFormationSetUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=1801&v=1709561669143")) ;document.write(formationSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1802&v=1709561669143")) ;document.write(formationSetUserEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1803&v=1709561669143")) ; breadcrumbsFormationSet(gameEntity,moduleEntity,formationSetEntity) ; formationSetUserMenu(formationSetEntity,formationSetUserEntity) ; document.write(getHttp("/body?name=game&sct=1804&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=1805&v=1709561669143")) ;document.write(formationSetUserEntity["formationSetUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=1806&v=1709561669143")) ; if (formationSetUserEntity["firstName"]) { document.write(getHttp("/body?name=game&sct=1807&v=1709561669143")) ;document.write(formationSetUserEntity["firstName"]) ;document.write(getHttp("/body?name=game&sct=1808&v=1709561669143")) ; } if (formationSetUserEntity["lastName"]) { document.write(getHttp("/body?name=game&sct=1809&v=1709561669143")) ;document.write(formationSetUserEntity["lastName"]) ;document.write(getHttp("/body?name=game&sct=1810&v=1709561669143")) ; } if (formationSetUserEntity["email"]) { document.write(getHttp("/body?name=game&sct=1811&v=1709561669143")) ;document.write(formationSetUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=1812&v=1709561669143")) ;document.write(formationSetUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=1813&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=1814&v=1709561669143")) ;document.write(formationSetUserEntity["administrator"]?"checked":"") ;document.write(getHttp("/body?name=game&sct=1815&v=1709561669143")) ;document.write(formationSetUserEntity["editor"]?"checked":"") ;document.write(getHttp("/body?name=game&sct=1816&v=1709561669143")) ;document.write(formationSetUserEntity["subscriber"]?"checked":"") ;document.write(getHttp("/body?name=game&sct=1817&v=1709561669143")) ; $("#updateFormationSetUserForm").on ( "submit", function (formationSet) { event.preventDefault() ; $.ajax ( { url: "/app/formationset/user/update", method: "POST", async: false, data: $("#updateFormationSetUserForm").serializeArray(), success: function (data) { if (data["error"]) $("#updateFormationSetUserFormMessage").html("

"+data["error"]) ; else { window.location = "/game/formationset/user/view?formationSetUserEntityId="+data["formationSetUserEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateFormationSetUserFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/formationset/user/delete"&&validGame(gameEntity)&&validFormationSet(formationSetEntity)&&validFormationSetUser(formationSetUserEntity)) { if (!validSession(session)) signinPage() ; else if (validFormationSetUserAdministrator(sessionFormationSetUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=1818&v=1709561669143")) ;document.write(formationSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1819&v=1709561669143")) ;document.write(formationSetUserEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1820&v=1709561669143")) ; breadcrumbsFormationSet(gameEntity,moduleEntity,formationSetEntity) ; formationSetUserMenu(gameEntity,gameUserEntity,formationSetEntity,formationSetUserEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=1821&v=1709561669143")) ;document.write(formationSetUserEntity["formationSetUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=1822&v=1709561669143")) ; if (formationSetUserEntity["firstName"]) { document.write(getHttp("/body?name=game&sct=1823&v=1709561669143")) ;document.write(formationSetUserEntity["firstName"]) ;document.write(getHttp("/body?name=game&sct=1824&v=1709561669143")) ; } if (formationSetUserEntity["lastName"]) { document.write(getHttp("/body?name=game&sct=1825&v=1709561669143")) ;document.write(formationSetUserEntity["lastName"]) ;document.write(getHttp("/body?name=game&sct=1826&v=1709561669143")) ; } if (formationSetUserEntity["email"]) { document.write(getHttp("/body?name=game&sct=1827&v=1709561669143")) ;document.write(formationSetUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=1828&v=1709561669143")) ;document.write(formationSetUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=1829&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=1830&v=1709561669143")) ; } else { $.ajax ( { url: "/app/formationset/user/delete", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"formationSetUserEntityId":formationSetUserEntity["formationSetUserEntityId"]}, success: function (data) { if (data["error"]) $("#formationsetUserDeleteMessage").html("

"+data["error"]) ; else { window.location = "/game/formationset/user/list?formationSetEntityId="+data["formationSetEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#formationsetUserDeleteMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=1831&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/formationset/user/quit"&&validGame(gameEntity)&&validFormationSet(formationSetEntity)&&validFormationSetUser(formationSetUserEntity)) { if (!validSession(session)) signinPage() ; else if (sessionFormationSetUserEntity["userEntityId"]==session["userEntityId"]||validFormationSetUserAdministrator(sessionFormationSetUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=1832&v=1709561669143")) ;document.write(formationSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1833&v=1709561669143")) ; breadcrumbsFormationSet(formationSetEntity,formationSetUserEntity) ; formationSetUserMenu(formationSetEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=1834&v=1709561669143")) ;document.write(formationSetEntity["formationSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=1835&v=1709561669143")) ; } else { $.ajax ( { url: "/app/formationset/user/quit", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"formationSetUserEntityId":sessionFormationSetUserEntity["formationSetUserEntityId"]}, success: function (data) { if (data["error"]) $("#formationSetUserQuitMessage").html("

"+data["error"]) ; else { window.location = "/game/formationset/view?formationSetEntityId="+data["formationSetEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#formationSetUserQuitMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=1836&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/formationset/user/resend"&&validGame(gameEntity)&&validFormationSet(formationSetEntity)&&validFormationSetUser(formationSetUserEntity)) { if (!validSession(session)) signinPage() ; else if (sessionFormationSetUserEntity["userEntityId"]==session["userEntityId"]||validFormationSetUserAdministrator(sessionFormationSetUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=1837&v=1709561669143")) ;document.write(formationSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1838&v=1709561669143")) ;document.write(formationSetUserEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1839&v=1709561669143")) ; breadcrumbsFormationSet(formationSetEntity,formationSetUserEntity) ; formationSetUserMenu(formationSetEntity,formationSetUserEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=1840&v=1709561669143")) ;document.write(formationSetUserEntity["formationSetUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=1841&v=1709561669143")) ; } else { $.ajax ( { url: "/app/formationset/user/resend", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"formationSetUserEntityId":formationSetUserEntity["formationSetUserEntityId"]}, success: function (data) { if (data["error"]) $("#formationSetUserResendMessage").html("

"+data["error"]) ; else { window.location = "/game/formationset/user/view?formationSetUserEntityId="+data["formationSetUserEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#formationSetUserResendMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; document.write(getHttp("/body?name=game&sct=1842&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=1843&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/formationset/user/accept"&&validGame(gameEntity)&&validFormationSet(formationSetEntity)&&validFormationSetUser(formationSetUserEntity)) { if (!validSession(session)) signinPage() ; else if (sessionFormationSetUserEntity["userEntityId"]==session["userEntityId"]||validFormationSetUserAdministrator(sessionFormationSetUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=1844&v=1709561669143")) ;document.write(formationSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1845&v=1709561669143")) ; breadcrumbsFormationSet(formationSetEntity,formationSetUserEntity) ; formationSetUserMenu(formationSetEntity) ; { $.ajax ( { url: "/app/formationset/user/accept", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"formationSetUserEntityId":formationSetUserEntityId}, success: function (data) { if (data["error"]) $("#formationSetUserAcceptMessage").html("

"+data["error"]) ; else { window.location = "/game/formationset/view?formationSetEntityId="+data["formationSetEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#formationSetUserAcceptMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=1846&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/formationset/user/decline"&&validGame(gameEntity)&&validFormationSet(formationSetEntity)&&validFormationSetUser(formationSetUserEntity)) { if (!validSession(session)) signinPage() ; else if (sessionFormationSetUserEntity["userEntityId"]==session["userEntityId"]||validFormationSetUserAdministrator(sessionFormationSetUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=1847&v=1709561669143")) ;document.write(formationSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1848&v=1709561669143")) ; breadcrumbsFormationSet(formationSetEntity,formationSetUserEntity) ; formationSetUserMenu(formationSetEntity) ; { $.ajax ( { url: "/app/formationset/user/decline", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"formationSetUserEntityId":formationSetUserEntityId}, success: function (data) { if (data["error"]) $("#formationSetUserDeclineMessage").html("

"+data["error"]) ; else { document.write(getHttp("/body?name=game&sct=1849&v=1709561669143")) ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#formationSetUserDeclineMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=1850&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/formationset/user/approve"&&validGame(gameEntity)&&validFormationSet(formationSetEntity)) { if (!validSession(session)) signinPage() ; else if (validFormationSetUserAdministrator(sessionFormationSetUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=1851&v=1709561669143")) ;document.write(formationSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1852&v=1709561669143")) ;document.write(formationSetUserEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1853&v=1709561669143")) ; breadcrumbsFormationSet(formationSetEntity,formationSetUserEntity) ; formationSetUserMenu(formationSetEntity,formationSetUserEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=1854&v=1709561669143")) ;document.write(formationSetUserEntity["formationSetUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=1855&v=1709561669143")) ; if (formationSetUserEntity["firstName"]) { document.write(getHttp("/body?name=game&sct=1856&v=1709561669143")) ;document.write(formationSetUserEntity["firstName"]) ;document.write(getHttp("/body?name=game&sct=1857&v=1709561669143")) ; } if (formationSetUserEntity["lastName"]) { document.write(getHttp("/body?name=game&sct=1858&v=1709561669143")) ;document.write(formationSetUserEntity["lastName"]) ;document.write(getHttp("/body?name=game&sct=1859&v=1709561669143")) ; } if (formationSetUserEntity["email"]) { document.write(getHttp("/body?name=game&sct=1860&v=1709561669143")) ;document.write(formationSetUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=1861&v=1709561669143")) ;document.write(formationSetUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=1862&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=1863&v=1709561669143")) ; } else { $.ajax ( { url: "/app/formationset/user/approve", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"formationSetUserEntityId":formationSetUserEntity["formationSetUserEntityId"]}, success: function (data) { if (data["error"]) $("#formationSetUserApproveMessage").html("

"+data["error"]) ; else { window.location = "/game/formationset/user/view?formationSetUserEntityId="+data["formationSetUserEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#formationSetUserApproveMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=1864&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/formationset/user/reject"&&validGame(gameEntity)&&validFormationSet(formationSetEntity)&&validFormationSetUser(formationSetUserEntity)) { if (!validSession(session)) signinPage() ; else if (validFormationSetUserAdministrator(sessionFormationSetUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=1865&v=1709561669143")) ;document.write(formationSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1866&v=1709561669143")) ;document.write(formationSetUserEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1867&v=1709561669143")) ; breadcrumbsFormationSet(formationSetEntity,formationSetUserEntity) ; formationSetUserMenu(formationSetEntity,formationSetUserEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=1868&v=1709561669143")) ;document.write(formationSetUserEntity["formationSetUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=1869&v=1709561669143")) ; if (formationSetUserEntity["firstName"]) { document.write(getHttp("/body?name=game&sct=1870&v=1709561669143")) ;document.write(formationSetUserEntity["firstName"]) ;document.write(getHttp("/body?name=game&sct=1871&v=1709561669143")) ; } if (formationSetUserEntity["lastName"]) { document.write(getHttp("/body?name=game&sct=1872&v=1709561669143")) ;document.write(formationSetUserEntity["lastName"]) ;document.write(getHttp("/body?name=game&sct=1873&v=1709561669143")) ; } if (formationSetUserEntity["email"]) { document.write(getHttp("/body?name=game&sct=1874&v=1709561669143")) ;document.write(formationSetUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=1875&v=1709561669143")) ;document.write(formationSetUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=1876&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=1877&v=1709561669143")) ; } else { $.ajax ( { url: "/app/formationset/user/reject", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"formationSetUserEntityId":formationSetUserEntity["formationSetUserEntityId"]}, success: function (data) { if (data["error"]) $("#formationSetUserRejectMessage").html("

"+data["error"]) ; else { window.location = "/game/formationset/user/view?formationSetUserEntityId="+data["formationSetUserEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#formationSetUserRejectMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=1878&v=1709561669143")) ; } else errorPage() ; } else if ((pathname=="/game/formationset/image"||pathname=="/game/formationset/image/list")&&validGame(gameEntity)&&validFormationSet(formationSetEntity)) { if (!validSession(session)) signinPage() ; else if (validFormationSetUserEditor(sessionFormationSetUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { var page = parseInt(getQueryParameter("page")) ; if (isNaN(page)) page = 0 ; var criteria = getQueryParameter("criteria") ; document.write(getHttp("/body?name=game&sct=1879&v=1709561669143")) ;document.write(formationSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1880&v=1709561669143")) ; breadcrumbsFormationSet(gameEntity,moduleEntity,formationSetEntity) ; formationSetMenu(formationSetEntity) ; var imageEntityList = getHttpJson("/app/formationset/image/list?formationSetEntityId="+formationSetEntity["formationSetEntityId"]+(criteria?("&criteria="+criteria):"")+"&page="+page+"&sessionToken="+session["sessionToken"]) ; document.write(getHttp("/body?name=game&sct=1881&v=1709561669143")) ; for (i=0 ; i<2&&i*50) { document.write(getHttp("/body?name=game&sct=1892&v=1709561669143")) ;document.write(formationSetEntity["formationSetEntityId"]) ;document.write(criteria?("&criteria="+criteria):"") ;document.write(getHttp("/body?name=game&sct=1893&v=1709561669143")) ;document.write(page-1) ;document.write(getHttp("/body?name=game&sct=1894&v=1709561669143")) ; } if (i*5+j==15) { document.write(getHttp("/body?name=game&sct=1895&v=1709561669143")) ;document.write(formationSetEntity["formationSetEntityId"]) ;document.write(criteria?("&criteria="+criteria):"") ;document.write(getHttp("/body?name=game&sct=1896&v=1709561669143")) ;document.write(page+1) ;document.write(getHttp("/body?name=game&sct=1897&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=1898&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/formationset/image/create"&&validGame(gameEntity)&&validFormationSet(formationSetEntity)) { if (!validSession(session)) signinPage() ; else if (validFormationSetUserEditor(sessionFormationSetUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=1899&v=1709561669143")) ;document.write(formationSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1900&v=1709561669143")) ; breadcrumbsFormationSet(gameEntity,moduleEntity,formationSetEntity) ; formationSetMenu(formationSetEntity) ; document.write(getHttp("/body?name=game&sct=1901&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=1902&v=1709561669143")) ;document.write(formationSetEntity["formationSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=1903&v=1709561669143")) ; $("#createFormationSetImageForm").on ( "submit", function (event) { event.preventDefault() ; $("#createFormationSetImageForm").innerHTML = 'Uploading...' ; var formData = new FormData() ; formData.append("sessionToken",session["sessionToken"]) ; formData.append("formationSetEntityId",formationSetEntity["formationSetEntityId"]) ; formData.append("image",$('#createFormationSetImageFormImage')[0].files[0]) ; $.ajax ( { url: "/app/formationset/image/create", method: "POST", async: false, data: formData, processData: false, contentType: false, success: function (data) { if (data["error"]) $("#createFormationSetImageFormMessage").html("

"+data["error"]) ; else { window.location = "/game/formationset/image/list?formationSetEntityId="+data["formationSetEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#createFormationSetImageFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/formationset/image/delete"&&validGame(gameEntity)&&validFormationSet(formationSetEntity)) { if (!validSession(session)) signinPage() ; else if (validFormationSetUserEditor(sessionFormationSetUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=1904&v=1709561669143")) ;document.write(formationSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1905&v=1709561669143")) ; breadcrumbsFormationSet(gameEntity,moduleEntity,formationSetEntity) ; formationSetMenu(formationSetEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=1906&v=1709561669143")) ;document.write(getQueryParameter("imageEntityId")) ;document.write(getHttp("/body?name=game&sct=1907&v=1709561669143")) ;document.write(formationSetEntity["formationSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=1908&v=1709561669143")) ;document.write(getQueryParameter("imageEntityId")) ;document.write(getHttp("/body?name=game&sct=1909&v=1709561669143")) ; } else { $.ajax ( { url: "/app/formationset/image/delete", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"imageEntityId":getQueryParameter("imageEntityId")}, success: function (data) { if (data["error"]) $("#formationsetImageDeleteMessage").html("

"+data["error"]) ; else { window.location = "/game/formationset/image/list?formationSetEntityId="+data["formationSetEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#formationsetImageDeleteMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=1910&v=1709561669143")) ; } else errorPage() ; } else if ((pathname=="/game/scenario"||pathname=="/game/scenario/list")&&validGame(gameEntity)) { var page = parseInt(getQueryParameter("page")) ; if (isNaN(page)) page = 0 ; var criteria = getQueryParameter("criteria") ; document.write(getHttp("/body?name=game&sct=1911&v=1709561669143")) ; breadcrumbsFormationSet(gameEntity,moduleEntity) ; scenarioMenu() ; var scenarioEntityList = getHttpJson("/app/scenario/list?"+((validModule(moduleEntity))?("moduleEntityId="+moduleEntity["moduleEntityId"]):("gameEntityId="+gameEntity["gameEntityId"]))+(criteria?("&criteria="+criteria):"")+"&page="+page+"&sessionToken="+session["sessionToken"]) ; document.write(getHttp("/body?name=game&sct=1912&v=1709561669143")) ; for (i=0 ; i<10&&i0) { document.write(getHttp("/body?name=game&sct=1920&v=1709561669143")) ;document.write(page-1) ;document.write(moduleEntity!=null?("&moduleEntityId="+moduleEntity["moduleEntityId"]):("&gameEntityId="+gameEntity["gameEntityId"])) ;document.write(criteria?("&criteria="+criteria):"") ;document.write(getHttp("/body?name=game&sct=1921&v=1709561669143")) ; } if (scenarioEntityList.length>10) { document.write(getHttp("/body?name=game&sct=1922&v=1709561669143")) ;document.write(page+1) ;document.write(moduleEntity!=null?("&moduleEntityId="+moduleEntity["moduleEntityId"]):("&gameEntityId="+gameEntity["gameEntityId"])) ;document.write(criteria?("&criteria="+criteria):"") ;document.write(getHttp("/body?name=game&sct=1923&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=1924&v=1709561669143")) ; } else if (pathname=="/game/scenario/view"&&validGame(gameEntity)&&validScenario(scenarioEntity)) { document.write(getHttp("/body?name=game&sct=1925&v=1709561669143")) ;document.write(scenarioEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1926&v=1709561669143")) ; breadcrumbsScenario(gameEntity,moduleEntity,scenarioEntity) ; scenarioMenu(scenarioEntity) ; if (validSession(session)) { document.write(getHttp("/body?name=game&sct=1927&v=1709561669143")) ; var rating = sessionScenarioUserEntity["rating"]*5 ; for (i=1 ; i<=5 ; ++i) { document.write(getHttp("/body?name=game&sct=1928&v=1709561669143")) ;document.write(i) ;document.write(getHttp("/body?name=game&sct=1929&v=1709561669143")) ;document.write(i) ;document.write(getHttp("/body?name=game&sct=1930&v=1709561669143")) ;document.write(validScenarioUser(sessionScenarioUserEntity)&&rating>=i?"color:black;":"color:gray;") ;document.write(getHttp("/body?name=game&sct=1931&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=1932&v=1709561669143")) ;document.write(validScenarioUserSubscriber(sessionScenarioUserEntity)?"display:none;":"display:block;") ;document.write(getHttp("/body?name=game&sct=1933&v=1709561669143")) ;document.write(!validScenarioUserSubscriber(sessionScenarioUserEntity)?"display:none;":"display:block;") ;document.write(getHttp("/body?name=game&sct=1934&v=1709561669143")) ; } else { document.write(getHttp("/body?name=game&sct=1935&v=1709561669143")) ;document.write(scenarioEntity["scenarioEntityId"]) ;document.write(getHttp("/body?name=game&sct=1936&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=1937&v=1709561669143")) ;document.write(scenarioEntity["nation0"]) ;document.write(getHttp("/body?name=game&sct=1938&v=1709561669143")) ;document.write(scenarioEntity["nation1"]) ;document.write(getHttp("/body?name=game&sct=1939&v=1709561669143")) ; if (scenarioEntity["startCalendar"]) { document.write(getHttp("/body?name=game&sct=1940&v=1709561669143")) ;document.write(scenarioEntity["startCalendar"]) ;document.write(getHttp("/body?name=game&sct=1941&v=1709561669143")) ;document.write(scenarioEntity["endCalendar"]) ;document.write(getHttp("/body?name=game&sct=1942&v=1709561669143")) ; } else if (scenarioEntity["year"]) { document.write(getHttp("/body?name=game&sct=1943&v=1709561669143")) ;document.write(scenarioEntity["year"]) ;document.write(getHttp("/body?name=game&sct=1944&v=1709561669143")) ;document.write(scenarioEntity["durationTime"]) ;document.write(getHttp("/body?name=game&sct=1945&v=1709561669143")) ; } if (scenarioEntity["mapSetEntityId"]) { var mapSetEntity = getHttpJson("/app/mapset/view?mapSetEntityId="+scenarioEntity["mapSetEntityId"]+"&sessionToken="+session["sessionToken"]) ; document.write(getHttp("/body?name=game&sct=1946&v=1709561669143")) ;document.write(mapSetEntity["mapSetEntityId"]) ;document.write(getHttp("/body?name=game&sct=1947&v=1709561669143")) ;document.write(mapSetEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1948&v=1709561669143")) ;document.write(scenarioEntity["column0"]) ;document.write(getHttp("/body?name=game&sct=1949&v=1709561669143")) ;document.write(scenarioEntity["row0"]) ;document.write(getHttp("/body?name=game&sct=1950&v=1709561669143")) ;document.write(scenarioEntity["column1"]) ;document.write(getHttp("/body?name=game&sct=1951&v=1709561669143")) ;document.write(scenarioEntity["row1"]) ;document.write(getHttp("/body?name=game&sct=1952&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=1953&v=1709561669143")) ;document.write(getHttp("/app/scenario/textlongdescription?scenarioEntityId="+scenarioEntity["scenarioEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=1954&v=1709561669143")) ;document.write(getHttp("/app/scenario/viewrulesdescription?scenarioEntityId="+scenarioEntity["scenarioEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=1955&v=1709561669143")) ;document.write(getHttp("/app/scenario/textdesigndescription?scenarioEntityId="+scenarioEntity["scenarioEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=1956&v=1709561669143")) ; if (scenarioEntity["wikipedia"]) { document.write(getHttp("/body?name=game&sct=1957&v=1709561669143")) ;document.write(scenarioEntity["wikipedia"]) ;document.write(getHttp("/body?name=game&sct=1958&v=1709561669143")) ; } var documentEntityList = getHttpJson("/app/document/list?scenarioEntityId="+scenarioEntity["scenarioEntityId"]+"&sessionToken="+session["sessionToken"]) ; if (documentEntityList.length>0) { document.write(getHttp("/body?name=game&sct=1959&v=1709561669143")) ; for (i=0 ; i<10&&i10) { document.write(getHttp("/body?name=game&sct=1965&v=1709561669143")) ;document.write(scenarioEntity["scenarioEntityId"]) ;document.write(getHttp("/body?name=game&sct=1966&v=1709561669143")) ; } } if (validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { var scenarioUserEntity = getHttpJson("/app/scenario/user/view?scenarioEntityId="+scenarioEntity["scenarioEntityId"]+"&userEntityId="+scenarioEntity["userEntityId"]+"&sessionToken="+session["sessionToken"]) ; document.write(getHttp("/body?name=game&sct=1967&v=1709561669143")) ;document.write(scenarioEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1968&v=1709561669143")) ;document.write(scenarioEntity["name"]) ;document.write(getHttp("/body?name=game&sct=1969&v=1709561669143")) ;document.write(scenarioUserEntity["scenarioUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=1970&v=1709561669143")) ;document.write(scenarioUserEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1971&v=1709561669143")) ;document.write(scenarioEntity["rating"]) ;document.write(getHttp("/body?name=game&sct=1972&v=1709561669143")) ;document.write(scenarioEntity["createDate"]) ;document.write(getHttp("/body?name=game&sct=1973&v=1709561669143")) ;document.write(scenarioEntity["modifyDate"]) ;document.write(getHttp("/body?name=game&sct=1974&v=1709561669143")) ;document.write(getHttp("/app/scenario/viewerrorlog?scenarioEntityId="+scenarioEntity["scenarioEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=1975&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=1976&v=1709561669143")) ; } else if (pathname=="/game/scenario/create"&&validGame(gameEntity)) { if (!validSession(session)) signinPage() ; else if (validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=1977&v=1709561669143")) ; breadcrumbsScenario(gameEntity,moduleEntity) ; scenarioMenu(gameEntity,moduleEntity) ; document.write(getHttp("/body?name=game&sct=1978&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=1979&v=1709561669143")) ;document.write(scenarioEntity["year"]) ;document.write(getHttp("/body?name=game&sct=1980&v=1709561669143")) ; $("#createScenarioForm").on ( "submit", function (scenario) { event.preventDefault() ; $.ajax ( { url: "/app/scenario/create", method: "POST", async: false, data: $("#createScenarioForm").serializeArray(), success: function (data) { if (data["error"]) $("#createScenarioFormMessage").html("

"+data["error"]) ; else { window.location = "/game/scenario/view?scenarioEntityId="+data["scenarioEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#createScenarioFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/scenario/update"&&validGame(gameEntity)&&validScenario(scenarioEntity)) { if (!validSession(session)) signinPage() ; else if (validScenarioUserEditor(sessionScenarioUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=1981&v=1709561669143")) ;document.write(scenarioEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1982&v=1709561669143")) ; breadcrumbsScenario(gameEntity,moduleEntity,scenarioEntity) ; scenarioMenu(scenarioEntity) ; document.write(getHttp("/body?name=game&sct=1983&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=1984&v=1709561669143")) ;document.write(scenarioEntity["scenarioEntityId"]) ;document.write(getHttp("/body?name=game&sct=1985&v=1709561669143")) ;document.write(scenarioEntity["label"]) ;document.write(getHttp("/body?name=game&sct=1986&v=1709561669143")) ;document.write(scenarioEntity["name"]) ;document.write(getHttp("/body?name=game&sct=1987&v=1709561669143")) ;document.write(scenarioEntity["nation0"]) ;document.write(getHttp("/body?name=game&sct=1988&v=1709561669143")) ;document.write(scenarioEntity["nation1"]) ;document.write(getHttp("/body?name=game&sct=1989&v=1709561669143")) ;document.write(scenarioEntity["startDate"]) ;document.write(getHttp("/body?name=game&sct=1990&v=1709561669143")) ;document.write(scenarioEntity["startTime"]) ;document.write(getHttp("/body?name=game&sct=1991&v=1709561669143")) ;document.write(scenarioEntity["year"]) ;document.write(getHttp("/body?name=game&sct=1992&v=1709561669143")) ;document.write(scenarioEntity["wikipedia"]) ;document.write(getHttp("/body?name=game&sct=1993&v=1709561669143")) ; var moduleEntityList = getHttpJson("/app/module/list?gameEntityId="+gameEntity["gameEntityId"]+"&criteria=all&page=-1&sessionToken="+session["sessionToken"]) ; document.write(getHttp("/body?name=game&sct=1994&v=1709561669143")) ; for (var i=0 ; i"+data["error"]) ; else { window.location = "/game/scenario/view?scenarioEntityId="+data["scenarioEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateScenarioFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/scenario/generate"&&validGame(gameEntity)&&validScenario(scenarioEntity)) { if (!validSession(session)) signinPage() ; else if (validScenarioUserEditor(sessionScenarioUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=2010&v=1709561669143")) ;document.write(scenarioEntity["name"]) ;document.write(getHttp("/body?name=game&sct=2011&v=1709561669143")) ; breadcrumbsScenario(gameEntity,moduleEntity,scenarioEntity) ; scenarioMenu(scenarioEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=2012&v=1709561669143")) ;document.write(scenarioEntity["name"]) ;document.write(getHttp("/body?name=game&sct=2013&v=1709561669143")) ;document.write(scenarioEntity["scenarioEntityId"]) ;document.write(getHttp("/body?name=game&sct=2014&v=1709561669143")) ;document.write(scenarioEntity["name"]) ;document.write(getHttp("/body?name=game&sct=2015&v=1709561669143")) ; } else { $.ajax ( { url: "/app/scenario/generate", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"scenarioEntityId":scenarioEntity["scenarioEntityId"]}, success: function (data) { if (data["error"]) $("#scenarioGenerateMessage").html("

"+data["error"]) ; else { window.location = "/game/scenario/view?scenarioEntityId="+data["scenarioEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#scenarioGenerateMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=2016&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/scenario/updateshort"&&validGame(gameEntity)&&validScenario(scenarioEntity)) { if (!validSession(session)) signinPage() ; else if (validScenarioUserEditor(sessionScenarioUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=2017&v=1709561669143")) ;document.write(scenarioEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2018&v=1709561669143")) ; breadcrumbsScenario(gameEntity,moduleEntity,scenarioEntity) ; scenarioMenu(scenarioEntity) ; document.write(getHttp("/body?name=game&sct=2019&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=2020&v=1709561669143")) ;document.write(scenarioEntity["scenarioEntityId"]) ;document.write(getHttp("/body?name=game&sct=2021&v=1709561669143")) ;document.write(scenarioEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2022&v=1709561669143")) ;document.write(getHttp("/app/scenario/textshortdescription?scenarioEntityId="+scenarioEntity["scenarioEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=2023&v=1709561669143")) ; $("#updateScenarioShortForm").on ( "submit", function (scenario) { event.preventDefault() ; $.ajax ( { url: "/app/scenario/updateshortdescription", method: "POST", async: false, data: $("#updateScenarioShortForm").serializeArray(), success: function (data) { if (data["error"]) $("#updateScenarioShortFormMessage").html("

"+data["error"]) ; else { window.location = "/game/scenario/view?scenarioEntityId="+data["scenarioEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateScenarioShortFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/scenario/updatelong"&&validGame(gameEntity)&&validScenario(scenarioEntity)) { if (!validSession(session)) signinPage() ; else if (validScenarioUserEditor(sessionScenarioUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=2024&v=1709561669143")) ;document.write(scenarioEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2025&v=1709561669143")) ; breadcrumbsScenario(gameEntity,moduleEntity,scenarioEntity) ; scenarioMenu(scenarioEntity) ; document.write(getHttp("/body?name=game&sct=2026&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=2027&v=1709561669143")) ;document.write(scenarioEntity["scenarioEntityId"]) ;document.write(getHttp("/body?name=game&sct=2028&v=1709561669143")) ;document.write(scenarioEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2029&v=1709561669143")) ;document.write(getHttp("/app/scenario/textlongdescription?scenarioEntityId="+scenarioEntity["scenarioEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=2030&v=1709561669143")) ; $("#updateScenarioLongForm").on ( "submit", function (scenario) { event.preventDefault() ; $.ajax ( { url: "/app/scenario/updatelongdescription", method: "POST", async: false, data: $("#updateScenarioLongForm").serializeArray(), success: function (data) { if (data["error"]) $("#updateScenarioLongFormMessage").html("

"+data["error"]) ; else { window.location = "/game/scenario/view?scenarioEntityId="+data["scenarioEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateScenarioLongFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/scenario/updaterules"&&validGame(gameEntity)&&validScenario(scenarioEntity)) { if (!validSession(session)) signinPage() ; else if (validScenarioUserEditor(sessionScenarioUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=2031&v=1709561669143")) ;document.write(scenarioEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2032&v=1709561669143")) ; breadcrumbsScenario(gameEntity,moduleEntity,scenarioEntity) ; scenarioMenu(scenarioEntity) ; document.write(getHttp("/body?name=game&sct=2033&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=2034&v=1709561669143")) ;document.write(scenarioEntity["scenarioEntityId"]) ;document.write(getHttp("/body?name=game&sct=2035&v=1709561669143")) ;document.write(scenarioEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2036&v=1709561669143")) ;document.write(getHttp("/app/scenario/viewrulesdescription?scenarioEntityId="+scenarioEntity["scenarioEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=2037&v=1709561669143")) ; $("#updateScenarioRulesForm").on ( "submit", function (scenario) { event.preventDefault() ; $.ajax ( { url: "/app/scenario/updaterulesdescription", method: "POST", async: false, data: $("#updateScenarioRulesForm").serializeArray(), success: function (data) { if (data["error"]) $("#updateScenarioRulesFormMessage").html("

"+data["error"]) ; else { window.location = "/game/scenario/view?scenarioEntityId="+data["scenarioEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateScenarioRulesFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/scenario/updatedesign"&&validGame(gameEntity)&&validScenario(scenarioEntity)) { if (!validSession(session)) signinPage() ; else if (validScenarioUserEditor(sessionScenarioUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=2038&v=1709561669143")) ;document.write(scenarioEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2039&v=1709561669143")) ; breadcrumbsScenario(gameEntity,moduleEntity,scenarioEntity) ; scenarioMenu(scenarioEntity) ; document.write(getHttp("/body?name=game&sct=2040&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=2041&v=1709561669143")) ;document.write(scenarioEntity["scenarioEntityId"]) ;document.write(getHttp("/body?name=game&sct=2042&v=1709561669143")) ;document.write(scenarioEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2043&v=1709561669143")) ;document.write(getHttp("/app/scenario/textdesigndescription?scenarioEntityId="+scenarioEntity["scenarioEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=2044&v=1709561669143")) ; $("#updateScenarioDesignForm").on ( "submit", function (scenario) { event.preventDefault() ; $.ajax ( { url: "/app/scenario/updatedesigndescription", method: "POST", async: false, data: $("#updateScenarioDesignForm").serializeArray(), success: function (data) { if (data["error"]) $("#updateScenarioDesignFormMessage").html("

"+data["error"]) ; else { window.location = "/game/scenario/view?scenarioEntityId="+data["scenarioEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateScenarioDesignFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/scenario/uploadimage"&&validGame(gameEntity)&&validScenario(scenarioEntity)) { if (!validSession(session)) signinPage() ; else if (validScenarioUserEditor(sessionScenarioUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=2045&v=1709561669143")) ;document.write(scenarioEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2046&v=1709561669143")) ; breadcrumbsScenario(gameEntity,moduleEntity,scenarioEntity) ; scenarioMenu(scenarioEntity) ; document.write(getHttp("/body?name=game&sct=2047&v=1709561669143")) ;document.write(categoryEntity["imageUrl"]) ;document.write(getHttp("/body?name=game&sct=2048&v=1709561669143")) ;document.write(categoryEntity["imageCredit"]) ;document.write(getHttp("/body?name=game&sct=2049&v=1709561669143")) ; $("#scenarioUploadImageForm").on ( "submit", function (event) { event.preventDefault() ; $("#scenarioUploadImageForm").innerHTML = 'Uploading...' ; var formData = new FormData() ; formData.append("sessionToken",session["sessionToken"]) ; formData.append("scenarioEntityId",scenarioEntity["scenarioEntityId"]) ; formData.append("image",$('#scenarioUploadImageFormImage')[0].files[0]) ; formData.append("imageUrl",$('#scenarioUploadImageFormUrl').val()) ; formData.append("imageCredit",$('#scenarioUploadImageFormUrl').val()) ; $.ajax ( { url: "/app/scenario/uploadimage", method: "POST", async: false, data: formData, processData: false, contentType: false, success: function (data) { if (data["error"]) $("#scenarioUploadImageFormMessage").html("

"+data["error"]) ; else { window.location = "/game/scenario/view?scenarioEntityId="+data["scenarioEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#scenarioUploadImageFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/scenario/uploadspecification"&&validGame(gameEntity)&&validScenario(scenarioEntity)) { if (!validSession(session)) signinPage() ; else if (validScenarioUserEditor(sessionScenarioUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=2050&v=1709561669143")) ;document.write(scenarioEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2051&v=1709561669143")) ; breadcrumbsScenario(gameEntity,moduleEntity,mapSetEntity,scenarioEntity) ; scenarioMenu(scenarioEntity) ; document.write(getHttp("/body?name=game&sct=2052&v=1709561669143")) ; $("#scenarioUploadForm").on ( "submit", function (event) { event.preventDefault() ; $("#scenarioUploadForm").innerHTML = 'Uploading...' ; var formData = new FormData() ; formData.append("sessionToken",session["sessionToken"]) ; formData.append("scenarioEntityId",scenarioEntity["scenarioEntityId"]) ; formData.append("specification",$('#scenarioUploadFormSpecification')[0].files[0]) ; $.ajax ( { url: "/app/scenario/uploadspecification", method: "POST", async: false, data: formData, processData: false, contentType: false, success: function (data) { if (data["error"]) $("#scenarioUploadFormMessage").html("

"+data["error"]) ; else { window.location = "/game/scenario/view?scenarioEntityId="+data["scenarioEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#scenarioUploadFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/scenario/delete"&&validGame(gameEntity)&&validScenario(scenarioEntity)) { if (!validSession(session)) signinPage() ; else if (validScenarioUserAdministrator(sessionScenarioUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=2053&v=1709561669143")) ;document.write(scenarioEntity["name"]) ;document.write(getHttp("/body?name=game&sct=2054&v=1709561669143")) ; breadcrumbsScenario(gameEntity,moduleEntity,scenarioEntity) ; scenarioMenu(scenarioEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=2055&v=1709561669143")) ;document.write(scenarioEntity["name"]) ;document.write(getHttp("/body?name=game&sct=2056&v=1709561669143")) ;document.write(scenarioEntity["scenarioEntityId"]) ;document.write(getHttp("/body?name=game&sct=2057&v=1709561669143")) ;document.write(scenarioEntity["name"]) ;document.write(getHttp("/body?name=game&sct=2058&v=1709561669143")) ; } else { $.ajax ( { url: "/app/scenario/delete", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"scenarioEntityId":scenarioEntity["scenarioEntityId"]}, success: function (data) { if (data["error"]) $("#scenarioDeleteMessage").html("

"+data["error"]) ; else { window.location = data["moduleEntityId"]?"/game/module/view?moduleEntityId="+data["moduleEntityId"]:"/game/view?gameEntityId="+data["gameEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#scenarioDeleteMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=2059&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/scenario/subscribe"&&validScenario(scenarioEntity)) { if (!validSession(session)) signinPage() ; else { document.write(getHttp("/body?name=game&sct=2060&v=1709561669143")) ;document.write(scenarioEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2061&v=1709561669143")) ; breadcrumbsScenario(scenarioEntity) ; scenarioMenu(scenarioEntity) ; $.ajax ( { url: "/app/scenario/subscribe", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"scenarioEntityId":scenarioEntity["scenarioEntityId"],"userEntityId":session["userEntityId"]}, success: function (data) { if (data["error"]) $("#scenarioSubscribeMessage").html("

"+data["error"]) ; else { window.location = "/game/scenario/view?scenarioEntityId="+data["scenarioEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#scenarioSubscribeMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; document.write(getHttp("/body?name=game&sct=2062&v=1709561669143")) ; } } else if (pathname=="/game/scenario/join"&&validScenario(scenarioEntity)) { if (!validSession(session)) signinPage() ; else { document.write(getHttp("/body?name=game&sct=2063&v=1709561669143")) ;document.write(scenarioEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2064&v=1709561669143")) ; breadcrumbsScenario(scenarioEntity,scenarioEntity) ; scenarioMenu(scenarioEntity,scenarioEntity) ; document.write(getHttp("/body?name=game&sct=2065&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=2066&v=1709561669143")) ;document.write(scenarioEntity["scenarioEntityId"]) ;document.write(getHttp("/body?name=game&sct=2067&v=1709561669143")) ;document.write(session["userEntityId"]) ;document.write(getHttp("/body?name=game&sct=2068&v=1709561669143")) ; $("#joinScenarioForm").on ( "submit", function (scenario) { scenario.prscenarioDefault() ; $.ajax ( { url: "/app/scenario/join", method: "POST", async: false, data: $("#joinScenarioForm").serializeArray(), success: function (data) { if (data["error"]) $("#joinScenarioFormMessage").html("

"+data["error"]) ; else { window.location = "/game/scenario/view?scenarioEntityId="+data["scenarioEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#joinScenarioFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; document.write(getHttp("/body?name=game&sct=2069&v=1709561669143")) ; } } else if (pathname=="/game/scenario/comment"&&validGame(gameEntity)&&validScenario(scenarioEntity)) { if (!validSession(session)) signinPage() ; else { document.write(getHttp("/body?name=game&sct=2070&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2071&v=1709561669143")) ; breadcrumbsScenario(gameEntity,moduleEntity,scenarioEntity) ; scenarioMenu(scenarioEntity) ; document.write(getHttp("/body?name=game&sct=2072&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=2073&v=1709561669143")) ;document.write(scenarioEntity["scenarioEntityId"]) ;document.write(getHttp("/body?name=game&sct=2074&v=1709561669143")) ;document.write(session["userEntityId"]) ;document.write(getHttp("/body?name=game&sct=2075&v=1709561669143")) ;document.write(getHttp("/app/scenario/user/textlongdescription?gameEntityId="+gameEntity["gameEntityId"]+"&userEntityId="+session["userEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=2076&v=1709561669143")) ; $("#commentScenarioForm").on ( "submit", function (scenario) { event.preventDefault() ; $.ajax ( { url: "/app/scenario/comment", method: "POST", async: false, data: $("#commentScenarioForm").serializeArray(), success: function (data) { if (data["error"]) $("#commentScenarioFormMessage").html("

"+data["error"]) ; else { window.location = "/game/scenario/view?scenarioEntityId="+data["scenarioEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#commentScenarioFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } } else if ((pathname=="/game/scenario/user"||pathname=="/game/scenario/user/list")&&validGame(gameEntity)&&validScenario(scenarioEntity)) { if (!validSession(session)) signinPage() ; else if (validScenarioUserAdministrator(sessionScenarioUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { var page = parseInt(getQueryParameter("page")) ; if (isNaN(page)) page = 0 ; var criteria = getQueryParameter("criteria") ; document.write(getHttp("/body?name=game&sct=2077&v=1709561669143")) ;document.write(scenarioEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2078&v=1709561669143")) ; breadcrumbsScenario(gameEntity,moduleEntity,scenarioEntity) ; scenarioUserMenu(scenarioEntity) ; var scenarioUserEntityList = getHttpJson("/app/scenario/user/list?scenarioEntityId="+scenarioEntity["scenarioEntityId"]+(criteria?("&criteria="+criteria):"")+"&page="+page+"&sessionToken="+session["sessionToken"]) ; document.write(getHttp("/body?name=game&sct=2079&v=1709561669143")) ; for (i=0 ; i<10&&i0) { document.write(getHttp("/body?name=game&sct=2089&v=1709561669143")) ;document.write(scenarioEntity["scenarioEntityId"]) ;document.write(criteria?("&criteria="+criteria):"") ;document.write(getHttp("/body?name=game&sct=2090&v=1709561669143")) ;document.write(page-1) ;document.write(getHttp("/body?name=game&sct=2091&v=1709561669143")) ; } if (scenarioUserEntityList.length>10) { document.write(getHttp("/body?name=game&sct=2092&v=1709561669143")) ;document.write(scenarioEntity["scenarioEntityId"]) ;document.write(criteria?("&criteria="+criteria):"") ;document.write(getHttp("/body?name=game&sct=2093&v=1709561669143")) ;document.write(page+1) ;document.write(getHttp("/body?name=game&sct=2094&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=2095&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/scenario/user/view"&&validGame(gameEntity)&&validScenario(scenarioEntity)&&validScenarioUser(scenarioUserEntity)) { if (!validSession(session)) signinPage() ; else if (validScenarioUserAdministrator(sessionScenarioUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=2096&v=1709561669143")) ;document.write(scenarioEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2097&v=1709561669143")) ;document.write(scenarioUserEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2098&v=1709561669143")) ; breadcrumbsScenario(gameEntity,moduleEntity,scenarioEntity) ; scenarioUserMenu(scenarioEntity,scenarioUserEntity) ; if (scenarioUserEntity["userEntityId"]>0) { document.write(getHttp("/body?name=game&sct=2099&v=1709561669143")) ;document.write(scenarioUserEntity["userEntityId"]) ;document.write(getHttp("/body?name=game&sct=2100&v=1709561669143")) ;document.write(scenarioUserEntity["version"]) ;document.write(getHttp("/body?name=game&sct=2101&v=1709561669143")) ;document.write(scenarioUserEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2102&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=2103&v=1709561669143")) ; if (scenarioUserEntity["firstName"]) { document.write(getHttp("/body?name=game&sct=2104&v=1709561669143")) ;document.write(scenarioUserEntity["firstName"]) ;document.write(getHttp("/body?name=game&sct=2105&v=1709561669143")) ; } if (scenarioUserEntity["lastName"]) { document.write(getHttp("/body?name=game&sct=2106&v=1709561669143")) ;document.write(scenarioUserEntity["lastName"]) ;document.write(getHttp("/body?name=game&sct=2107&v=1709561669143")) ; } if (scenarioUserEntity["email"]) { document.write(getHttp("/body?name=game&sct=2108&v=1709561669143")) ;document.write(scenarioUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=2109&v=1709561669143")) ;document.write(scenarioUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=2110&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=2111&v=1709561669143")) ;document.write(scenarioUserEntity["administrator"]) ;document.write(getHttp("/body?name=game&sct=2112&v=1709561669143")) ;document.write(scenarioUserEntity["editor"]) ;document.write(getHttp("/body?name=game&sct=2113&v=1709561669143")) ;document.write(scenarioUserEntity["designer"]) ;document.write(getHttp("/body?name=game&sct=2114&v=1709561669143")) ;document.write(scenarioUserEntity["subscriber"]) ;document.write(getHttp("/body?name=game&sct=2115&v=1709561669143")) ;document.write(scenarioUserEntity["createDate"]) ;document.write(getHttp("/body?name=game&sct=2116&v=1709561669143")) ;document.write(scenarioUserEntity["modifyDate"]) ;document.write(getHttp("/body?name=game&sct=2117&v=1709561669143")) ;document.write(getHttp("/app/user/view/textlongdescription?userEntityId="+scenarioUserEntity["userEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=2118&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/scenario/user/create"&&validGame(gameEntity)&&validScenario(scenarioEntity)) { if (!validSession(session)) signinPage() ; else if (validScenarioUserAdministrator(sessionScenarioUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=2119&v=1709561669143")) ;document.write(scenarioEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2120&v=1709561669143")) ; breadcrumbsScenario(gameEntity,scenarioEntity["ScenarioEntityList"],scenarioEntity) ; scenarioUserMenu(scenarioEntity) ; document.write(getHttp("/body?name=game&sct=2121&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=2122&v=1709561669143")) ;document.write(scenarioEntity["scenarioEntityId"]) ;document.write(getHttp("/body?name=game&sct=2123&v=1709561669143")) ; $("#createScenarioUserForm").on ( "submit", function (scenario) { event.preventDefault() ; $.ajax ( { url: "/app/scenario/user/create", method: "POST", async: false, data: $("#createScenarioUserForm").serializeArray(), success: function (data) { if (data["error"]) $("#createScenarioUserFormMessage").html("

"+data["error"]) ; else { window.location = "/game/scenario/user/view?scenarioUserEntityId="+data["scenarioUserEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#createScenarioUserFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/scenario/user/update"&&validGame(gameEntity)&&validScenario(scenarioEntity)&&validScenarioUser(scenarioUserEntity)) { if (!validSession(session)) signinPage() ; else if (validScenarioUserAdministrator(sessionScenarioUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=2124&v=1709561669143")) ;document.write(scenarioEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2125&v=1709561669143")) ;document.write(scenarioUserEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2126&v=1709561669143")) ; breadcrumbsScenario(gameEntity,moduleEntity,scenarioEntity) ; scenarioUserMenu(scenarioEntity,scenarioUserEntity) ; document.write(getHttp("/body?name=game&sct=2127&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=2128&v=1709561669143")) ;document.write(scenarioUserEntity["scenarioUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=2129&v=1709561669143")) ; if (scenarioUserEntity["firstName"]) { document.write(getHttp("/body?name=game&sct=2130&v=1709561669143")) ;document.write(scenarioUserEntity["firstName"]) ;document.write(getHttp("/body?name=game&sct=2131&v=1709561669143")) ; } if (scenarioUserEntity["lastName"]) { document.write(getHttp("/body?name=game&sct=2132&v=1709561669143")) ;document.write(scenarioUserEntity["lastName"]) ;document.write(getHttp("/body?name=game&sct=2133&v=1709561669143")) ; } if (scenarioUserEntity["email"]) { document.write(getHttp("/body?name=game&sct=2134&v=1709561669143")) ;document.write(scenarioUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=2135&v=1709561669143")) ;document.write(scenarioUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=2136&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=2137&v=1709561669143")) ;document.write(scenarioUserEntity["administrator"]?"checked":"") ;document.write(getHttp("/body?name=game&sct=2138&v=1709561669143")) ;document.write(scenarioUserEntity["editor"]?"checked":"") ;document.write(getHttp("/body?name=game&sct=2139&v=1709561669143")) ;document.write(scenarioUserEntity["subscriber"]?"checked":"") ;document.write(getHttp("/body?name=game&sct=2140&v=1709561669143")) ; $("#updateScenarioUserForm").on ( "submit", function (scenario) { event.preventDefault() ; $.ajax ( { url: "/app/scenario/user/update", method: "POST", async: false, data: $("#updateScenarioUserForm").serializeArray(), success: function (data) { if (data["error"]) $("#updateScenarioUserFormMessage").html("

"+data["error"]) ; else { window.location = "/game/scenario/user/view?scenarioUserEntityId="+data["scenarioUserEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateScenarioUserFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/scenario/user/delete"&&validGame(gameEntity)&&validScenario(scenarioEntity)&&validScenarioUser(scenarioUserEntity)) { if (!validSession(session)) signinPage() ; else if (validScenarioUserAdministrator(sessionScenarioUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=2141&v=1709561669143")) ;document.write(scenarioEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2142&v=1709561669143")) ;document.write(scenarioUserEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2143&v=1709561669143")) ; breadcrumbsScenario(gameEntity,moduleEntity,scenarioEntity) ; scenarioUserMenu(scenarioEntity,scenarioUserEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=2144&v=1709561669143")) ;document.write(scenarioUserEntity["scenarioUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=2145&v=1709561669143")) ; if (scenarioUserEntity["firstName"]) { document.write(getHttp("/body?name=game&sct=2146&v=1709561669143")) ;document.write(scenarioUserEntity["firstName"]) ;document.write(getHttp("/body?name=game&sct=2147&v=1709561669143")) ; } if (scenarioUserEntity["lastName"]) { document.write(getHttp("/body?name=game&sct=2148&v=1709561669143")) ;document.write(scenarioUserEntity["lastName"]) ;document.write(getHttp("/body?name=game&sct=2149&v=1709561669143")) ; } if (scenarioUserEntity["email"]) { document.write(getHttp("/body?name=game&sct=2150&v=1709561669143")) ;document.write(scenarioUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=2151&v=1709561669143")) ;document.write(scenarioUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=2152&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=2153&v=1709561669143")) ; } else { $.ajax ( { url: "/app/scenario/user/delete", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"scenarioUserEntityId":scenarioUserEntity["scenarioUserEntityId"]}, success: function (data) { if (data["error"]) $("#scenarioUserDeleteMessage").html("

"+data["error"]) ; else { window.location = "/game/scenario/user/list?scenarioEntityId="+data["scenarioEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#scenarioUserDeleteMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=2154&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/scenario/user/quit"&&validGame(gameEntity)&&validScenario(scenarioEntity)&&validScenarioUser(scenarioUserEntity)) { if (!validSession(session)) signinPage() ; else if (sessionScenarioUserEntity["userEntityId"]==session["userEntityId"]||validScenarioUserAdministrator(sessionScenarioUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=2155&v=1709561669143")) ;document.write(scenarioEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2156&v=1709561669143")) ; breadcrumbsScenario(scenarioEntity,scenarioUserEntity) ; scenarioUserMenu(scenarioEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=2157&v=1709561669143")) ;document.write(scenarioEntity["scenarioEntityId"]) ;document.write(getHttp("/body?name=game&sct=2158&v=1709561669143")) ; } else { $.ajax ( { url: "/app/scenario/user/quit", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"scenarioUserEntityId":sessionScenarioUserEntity["scenarioUserEntityId"]}, success: function (data) { if (data["error"]) $("#scenarioUserQuitMessage").html("

"+data["error"]) ; else { window.location = "/game/scenario/view?scenarioEntityId="+data["scenarioEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#scenarioUserQuitMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=2159&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/scenario/user/resend"&&validGame(gameEntity)&&validScenario(scenarioEntity)&&validScenarioUser(scenarioUserEntity)) { if (!validSession(session)) signinPage() ; else if (validScenarioUserAdministrator(sessionScenarioUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=2160&v=1709561669143")) ;document.write(scenarioEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2161&v=1709561669143")) ;document.write(scenarioUserEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2162&v=1709561669143")) ; breadcrumbsScenario(scenarioEntity,scenarioUserEntity) ; scenarioUserMenu(scenarioEntity,scenarioUserEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=2163&v=1709561669143")) ;document.write(scenarioUserEntity["scenarioUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=2164&v=1709561669143")) ; } else { $.ajax ( { url: "/app/scenario/user/resend", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"scenarioUserEntityId":scenarioUserEntity["scenarioUserEntityId"]}, success: function (data) { if (data["error"]) $("#scenarioUserResendMessage").html("

"+data["error"]) ; else { window.location = "/game/scenario/user/view?scenarioUserEntityId="+data["scenarioUserEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#scenarioUserResendMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; document.write(getHttp("/body?name=game&sct=2165&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=2166&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/scenario/user/accept"&&validGame(gameEntity)&&validScenario(scenarioEntity)&&validScenarioUser(scenarioUserEntity)) { if (!validSession(session)) signinPage() ; else if (sessionScenarioUserEntity["userEntityId"]==session["userEntityId"]||validScenarioUserAdministrator(sessionScenarioUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=2167&v=1709561669143")) ;document.write(scenarioEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2168&v=1709561669143")) ; breadcrumbsScenario(scenarioEntity,scenarioUserEntity) ; scenarioUserMenu(scenarioEntity) ; { $.ajax ( { url: "/app/scenario/user/accept", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"scenarioUserEntityId":scenarioUserEntityId}, success: function (data) { if (data["error"]) $("#scenarioUserAcceptMessage").html("

"+data["error"]) ; else { window.location = "/game/scenario/view?scenarioEntityId="+data["scenarioEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#scenarioUserAcceptMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=2169&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/scenario/user/decline"&&validGame(gameEntity)&&validScenario(scenarioEntity)&&validScenarioUser(scenarioUserEntity)) { if (!validSession(session)) signinPage() ; else if (sessionScenarioUserEntity["userEntityId"]==session["userEntityId"]||validScenarioUserAdministrator(sessionScenarioUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=2170&v=1709561669143")) ;document.write(scenarioEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2171&v=1709561669143")) ; breadcrumbsScenario(scenarioEntity,scenarioUserEntity) ; scenarioUserMenu(scenarioEntity) ; { $.ajax ( { url: "/app/scenario/user/decline", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"scenarioUserEntityId":scenarioUserEntityId}, success: function (data) { if (data["error"]) $("#scenarioUserDeclineMessage").html("

"+data["error"]) ; else { window.location = "/game/scenario/view?scenarioEntityId="+data["scenarioEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#scenarioUserDeclineMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=2172&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/scenario/user/approve"&&validGame(gameEntity)&&validScenario(scenarioEntity)) { if (!validSession(session)) signinPage() ; else if (validScenarioUserAdministrator(sessionScenarioUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=2173&v=1709561669143")) ;document.write(scenarioEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2174&v=1709561669143")) ;document.write(scenarioUserEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2175&v=1709561669143")) ; breadcrumbsScenario(scenarioEntity,scenarioUserEntity) ; scenarioUserMenu(scenarioEntity,scenarioUserEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=2176&v=1709561669143")) ;document.write(scenarioUserEntity["scenarioUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=2177&v=1709561669143")) ; if (scenarioUserEntity["firstName"]) { document.write(getHttp("/body?name=game&sct=2178&v=1709561669143")) ;document.write(scenarioUserEntity["firstName"]) ;document.write(getHttp("/body?name=game&sct=2179&v=1709561669143")) ; } if (scenarioUserEntity["lastName"]) { document.write(getHttp("/body?name=game&sct=2180&v=1709561669143")) ;document.write(scenarioUserEntity["lastName"]) ;document.write(getHttp("/body?name=game&sct=2181&v=1709561669143")) ; } if (scenarioUserEntity["email"]) { document.write(getHttp("/body?name=game&sct=2182&v=1709561669143")) ;document.write(scenarioUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=2183&v=1709561669143")) ;document.write(scenarioUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=2184&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=2185&v=1709561669143")) ; } else { $.ajax ( { url: "/app/scenario/user/approve", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"scenarioUserEntityId":scenarioUserEntity["scenarioUserEntityId"]}, success: function (data) { if (data["error"]) $("#scenarioUserApproveMessage").html("

"+data["error"]) ; else { window.location = "/game/scenario/user/view?scenarioUserEntityId="+data["scenarioUserEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#scenarioUserApproveMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=2186&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/scenario/user/reject"&&validGame(gameEntity)&&validScenario(scenarioEntity)&&validScenarioUser(scenarioUserEntity)) { if (!validSession(session)) signinPage() ; else if (validScenarioUserAdministrator(sessionScenarioUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=2187&v=1709561669143")) ;document.write(scenarioEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2188&v=1709561669143")) ;document.write(scenarioUserEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2189&v=1709561669143")) ; breadcrumbsScenario(scenarioEntity,scenarioUserEntity) ; scenarioUserMenu(scenarioEntity,scenarioUserEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=2190&v=1709561669143")) ;document.write(scenarioUserEntity["scenarioUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=2191&v=1709561669143")) ; if (scenarioUserEntity["firstName"]) { document.write(getHttp("/body?name=game&sct=2192&v=1709561669143")) ;document.write(scenarioUserEntity["firstName"]) ;document.write(getHttp("/body?name=game&sct=2193&v=1709561669143")) ; } if (scenarioUserEntity["lastName"]) { document.write(getHttp("/body?name=game&sct=2194&v=1709561669143")) ;document.write(scenarioUserEntity["lastName"]) ;document.write(getHttp("/body?name=game&sct=2195&v=1709561669143")) ; } if (scenarioUserEntity["email"]) { document.write(getHttp("/body?name=game&sct=2196&v=1709561669143")) ;document.write(scenarioUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=2197&v=1709561669143")) ;document.write(scenarioUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=2198&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=2199&v=1709561669143")) ; } else { $.ajax ( { url: "/app/scenario/user/reject", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"scenarioUserEntityId":scenarioUserEntity["scenarioUserEntityId"]}, success: function (data) { if (data["error"]) $("#scenarioUserRejectMessage").html("

"+data["error"]) ; else { window.location = "/game/scenario/user/view?scenarioUserEntityId="+data["scenarioUserEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#scenarioUserRejectMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=2200&v=1709561669143")) ; } else errorPage() ; } else if ((pathname=="/game/scenarioreplay"||pathname=="/game/scenarioreplay/list")&&validGame(gameEntity)&&validScenario(scenarioEntity)) { var page = parseInt(getQueryParameter("page")) ; if (isNaN(page)) page = 0 ; var criteria = getQueryParameter("criteria") ; document.write(getHttp("/body?name=game&sct=2201&v=1709561669143")) ; breadcrumbsScenarioReplay(gameEntity,moduleEntity,scenarioEntity) ; scenarioReplayMenu() ; var scenarioReplayEntityList = getHttpJson("/app/scenarioreplay/listbyscenariodate?"+"scenarioEntityId="+scenarioEntity["scenarioEntityId"]+(criteria?("&criteria="+criteria):"")+"&page="+page+"&sessionToken="+session["sessionToken"]) ; document.write(getHttp("/body?name=game&sct=2202&v=1709561669143")) ; for (i=0 ; i<10&&i0) { document.write(getHttp("/body?name=game&sct=2208&v=1709561669143")) ;document.write(page-1) ;document.write(getHttp("/body?name=game&sct=2209&v=1709561669143")) ;document.write(scenarioEntity["scenarioEntityId"]) ;document.write(criteria?("&criteria="+criteria):"") ;document.write(getHttp("/body?name=game&sct=2210&v=1709561669143")) ; } if (scenarioReplayEntityList.length>10) { document.write(getHttp("/body?name=game&sct=2211&v=1709561669143")) ;document.write(page+1) ;document.write(getHttp("/body?name=game&sct=2212&v=1709561669143")) ;document.write(scenarioEntity["scenarioEntityId"]) ;document.write(criteria?("&criteria="+criteria):"") ;document.write(getHttp("/body?name=game&sct=2213&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=2214&v=1709561669143")) ; } else if (pathname=="/game/scenarioreplay/view"&&validGame(gameEntity)&&validScenario(scenarioEntity)&&validScenarioReplay(scenarioReplayEntity)) { document.write(getHttp("/body?name=game&sct=2215&v=1709561669143")) ;document.write(scenarioReplayEntity["playDate"]) ;document.write(getHttp("/body?name=game&sct=2216&v=1709561669143")) ; breadcrumbsScenarioReplay(gameEntity,moduleEntity,scenarioEntity,scenarioReplayEntity) ; scenarioReplayMenu(scenarioReplayEntity) ; document.write(getHttp("/body?name=game&sct=2217&v=1709561669143")) ;document.write(scenarioReplayEntity["playDate"]) ;document.write(getHttp("/body?name=game&sct=2218&v=1709561669143")) ; if (scenarioReplayEntity["closeDate"]) { document.write(getHttp("/body?name=game&sct=2219&v=1709561669143")) ;document.write(scenarioReplayEntity["closeDate"]) ;document.write(getHttp("/body?name=game&sct=2220&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=2221&v=1709561669143")) ;document.write(scenarioReplayEntity["scenarioReplayEntityId"]) ;document.write(getHttp("/body?name=game&sct=2222&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=2223&v=1709561669143")) ;document.write(scenarioReplayEntity["version"]) ;document.write(getHttp("/body?name=game&sct=2224&v=1709561669143")) ;document.write(scenarioReplayEntity["scenarioReplayEntityId"]) ;document.write(getHttp("/body?name=game&sct=2225&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=2226&v=1709561669143")) ;document.write(scenarioReplayEntity["version"]) ;document.write(getHttp("/body?name=game&sct=2227&v=1709561669143")) ;document.write(getHttp("/app/scenarioreplay/textlongdescription?scenarioReplayEntityId="+scenarioReplayEntity["scenarioReplayEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=2228&v=1709561669143")) ; var scenarioReplayTurnEntityList = getHttpJson("/app/scenarioreplayturn/listbyscenarioreplay?"+"scenarioReplayEntityId="+scenarioReplayEntity["scenarioReplayEntityId"]+(criteria?("&criteria="+criteria):"")+"&page="+page+"&sessionToken="+session["sessionToken"]) ; document.write(getHttp("/body?name=game&sct=2229&v=1709561669143")) ; for (i=0 ; i<10&&i"+data["error"]) ; else { window.location = "/game/scenarioreplay/view?scenarioReplayEntityId="+data["scenarioReplayEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#createScenarioReplayFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } } else if (pathname=="/game/scenarioreplay/update"&&validGame(gameEntity)&&validScenario(scenarioEntity)&&validScenarioReplay(scenarioReplayEntity)) { if (!validSession(session)) signinPage() ; else if (validScenarioReplayUserPlayer(sessionScenarioReplayUserEntity)||validScenarioUserEditor(sessionScenarioUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=2250&v=1709561669143")) ;document.write(scenarioReplayEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2251&v=1709561669143")) ; breadcrumbsScenarioReplay(gameEntity,moduleEntity,scenarioEntity,scenarioReplayEntity) ; scenarioReplayMenu(scenarioReplayEntity) ; document.write(getHttp("/body?name=game&sct=2252&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=2253&v=1709561669143")) ;document.write(scenarioReplayEntity["scenarioReplayEntityId"]) ;document.write(getHttp("/body?name=game&sct=2254&v=1709561669143")) ;document.write(scenarioReplayEntity["playDate"]) ;document.write(getHttp("/body?name=game&sct=2255&v=1709561669143")) ;document.write(scenarioReplayEntity["closeDate"]) ;document.write(getHttp("/body?name=game&sct=2256&v=1709561669143")) ; $(function(){$("#updateScenarioReplayFormPlayDate").datepicker() ;}) ; $(function(){$("#updateScenarioReplayFormCloseDate").datepicker() ;}) ; $("#updateScenarioReplayForm").on ( "submit", function (scenarioReplay) { event.preventDefault() ; $.ajax ( { url: "/app/scenarioreplay/update", method: "POST", async: false, data: $("#updateScenarioReplayForm").serializeArray(), success: function (data) { if (data["error"]) $("#updateScenarioReplayFormMessage").html("

"+data["error"]) ; else { window.location = "/game/scenarioreplay/view?scenarioReplayEntityId="+data["scenarioReplayEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateScenarioReplayFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/scenarioreplay/updateshort"&&validGame(gameEntity)&&validScenario(scenarioEntity)&&validScenarioReplay(scenarioReplayEntity)) { if (!validSession(session)) signinPage() ; else if (validScenarioReplayUserPlayer(sessionScenarioReplayUserEntity)||validScenarioUserEditor(sessionScenarioUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=2257&v=1709561669143")) ;document.write(scenarioReplayEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2258&v=1709561669143")) ; breadcrumbsScenarioReplay(gameEntity,moduleEntity,scenarioEntity,scenarioReplayEntity) ; scenarioReplayMenu(scenarioReplayEntity) ; document.write(getHttp("/body?name=game&sct=2259&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=2260&v=1709561669143")) ;document.write(scenarioReplayEntity["scenarioReplayEntityId"]) ;document.write(getHttp("/body?name=game&sct=2261&v=1709561669143")) ;document.write(scenarioReplayEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2262&v=1709561669143")) ;document.write(getHttp("/app/scenarioreplay/textshortdescription?scenarioReplayEntityId="+scenarioReplayEntity["scenarioReplayEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=2263&v=1709561669143")) ; $("#updateScenarioReplayShortForm").on ( "submit", function (scenarioReplay) { event.preventDefault() ; $.ajax ( { url: "/app/scenarioreplay/updateshortdescription", method: "POST", async: false, data: $("#updateScenarioReplayShortForm").serializeArray(), success: function (data) { if (data["error"]) $("#updateScenarioReplayShortFormMessage").html("

"+data["error"]) ; else { window.location = "/game/scenarioreplay/view?scenarioReplayEntityId="+data["scenarioReplayEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateScenarioReplayShortFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/scenarioreplay/updatelong"&&validGame(gameEntity)&&validScenario(scenarioEntity)&&validScenarioReplay(scenarioReplayEntity)) { if (!validSession(session)) signinPage() ; else if (validScenarioReplayUserPlayer(sessionScenarioReplayUserEntity)||validScenarioUserEditor(sessionScenarioUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=2264&v=1709561669143")) ;document.write(scenarioReplayEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2265&v=1709561669143")) ; breadcrumbsScenarioReplay(gameEntity,moduleEntity,scenarioEntity,scenarioReplayEntity) ; scenarioReplayMenu(scenarioReplayEntity) ; document.write(getHttp("/body?name=game&sct=2266&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=2267&v=1709561669143")) ;document.write(scenarioReplayEntity["scenarioReplayEntityId"]) ;document.write(getHttp("/body?name=game&sct=2268&v=1709561669143")) ;document.write(scenarioReplayEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2269&v=1709561669143")) ;document.write(getHttp("/app/scenarioreplay/textlongdescription?scenarioReplayEntityId="+scenarioReplayEntity["scenarioReplayEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=2270&v=1709561669143")) ; $("#updateScenarioReplayLongForm").on ( "submit", function (scenarioReplay) { event.preventDefault() ; $.ajax ( { url: "/app/scenarioreplay/updatelongdescription", method: "POST", async: false, data: $("#updateScenarioReplayLongForm").serializeArray(), success: function (data) { if (data["error"]) $("#updateScenarioReplayLongFormMessage").html("

"+data["error"]) ; else { window.location = "/game/scenarioreplay/view?scenarioReplayEntityId="+data["scenarioReplayEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateScenarioReplayLongFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/scenarioreplay/upload"&&validGame(gameEntity)&&validScenario(scenarioEntity)&&validScenarioReplay(scenarioReplayEntity)&&validScenarioReplay(scenarioReplayEntity)) { if (!validSession(session)) signinPage() ; else if (validScenarioReplayUserPlayer(sessionScenarioReplayUserEntity)||validScenarioUserEditor(sessionScenarioUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=2271&v=1709561669143")) ;document.write(scenarioReplayEntity["turn"]) ;document.write(getHttp("/body?name=game&sct=2272&v=1709561669143")) ; breadcrumbsScenarioReplay(gameEntity,moduleEntity,scenarioEntity,scenarioReplayEntity,scenarioReplayEntity) ; scenarioReplayMenu(scenarioReplayEntity) ; document.write(getHttp("/body?name=game&sct=2273&v=1709561669143")) ; $("#scenarioReplayUploadForm").on ( "submit", function (event) { event.preventDefault() ; $("#scenarioReplayUploadForm").innerHTML = 'Uploading...' ; var formData = new FormData() ; formData.append("sessionToken",session["sessionToken"]) ; formData.append("scenarioReplayEntityId",scenarioReplayEntity["scenarioReplayEntityId"]) ; formData.append("image",$('#scenarioReplayUploadFormImage')[0].files[0]) ; $.ajax ( { url: "/app/scenarioreplay/uploadimage", method: "POST", async: false, data: formData, processData: false, contentType: false, success: function (data) { if (data["error"]) $("#scenarioReplayUploadFormMessage").html("

"+data["error"]) ; else { window.location = "/game/scenarioreplay/view?scenarioReplayEntityId="+data["scenarioReplayEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#scenarioReplayUploadFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/scenarioreplay/delete"&&validGame(gameEntity)&&validScenario(scenarioEntity)&&validScenarioReplay(scenarioReplayEntity)) { if (!validSession(session)) signinPage() ; else if (validScenarioReplayUserPlayer(sessionScenarioReplayUserEntity)||validScenarioUserEditor(sessionScenarioUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=2274&v=1709561669143")) ;document.write(scenarioReplayEntity["name"]) ;document.write(getHttp("/body?name=game&sct=2275&v=1709561669143")) ; breadcrumbsScenarioReplay(gameEntity,moduleEntity,scenarioEntity,scenarioReplayEntity) ; scenarioReplayMenu(scenarioReplayEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=2276&v=1709561669143")) ;document.write(scenarioReplayEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2277&v=1709561669143")) ;document.write(scenarioReplayEntity["scenarioReplayEntityId"]) ;document.write(getHttp("/body?name=game&sct=2278&v=1709561669143")) ;document.write(scenarioReplayEntity["name"]) ;document.write(getHttp("/body?name=game&sct=2279&v=1709561669143")) ; } else { $.ajax ( { url: "/app/scenarioreplay/delete", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"scenarioReplayEntityId":scenarioReplayEntity["scenarioReplayEntityId"]}, success: function (data) { if (data["error"]) $("#scenarioreplayDeleteMessage").html("

"+data["error"]) ; else { window.location = "/game/scenario/view?scenarioEntityId="+data["scenarioEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#scenarioreplayDeleteMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=2280&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/scenarioreplay/subscribe"&&validGame(gameEntity)&&validScenario(scenarioEntity)) { if (!validSession(session)) signinPage() ; else { document.write(getHttp("/body?name=game&sct=2281&v=1709561669143")) ;document.write(scenarioReplayEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2282&v=1709561669143")) ; breadcrumbsScenarioReplay(gameEntity,moduleEntity,scenarioEntity,scenarioReplayEntity) ; scenarioReplayMenu(scenarioReplayEntity) ; $.ajax ( { url: "/app/scenarioreplay/user/subscribe", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"scenarioReplayEntityId":scenarioReplayEntity["scenarioReplayEntityId"]}, success: function (data) { if (data["error"]) $("#scenarioreplaySubscribeMessage").html("

"+data["error"]) ; else { window.location = "/game/scenarioreplay/view?scenarioReplayEntityId="+data["scenarioReplayEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#scenarioreplaySubscribeMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; document.write(getHttp("/body?name=game&sct=2283&v=1709561669143")) ; } } else if (pathname=="/game/scenarioreplay/comment"&&validGame(gameEntity)&&validScenario(scenarioEntity)) { if (!validSession(session)) signinPage() ; else if (sessionScenarioUserEntity["userEntityId"]==session["userEntityId"]||validScenarioUserEditor(sessionScenarioUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=2284&v=1709561669143")) ;document.write(gameEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2285&v=1709561669143")) ; breadcrumbsScenarioReplay(gameEntity,moduleEntity,scenarioEntity,scenarioReplayEntity) ; scenarioReplayMenu(scenarioReplayEntity) ; document.write(getHttp("/body?name=game&sct=2286&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=2287&v=1709561669143")) ;document.write(scenarioReplayEntity["scenarioReplayEntityId"]) ;document.write(getHttp("/body?name=game&sct=2288&v=1709561669143")) ;document.write(session["userEntityId"]) ;document.write(getHttp("/body?name=game&sct=2289&v=1709561669143")) ;document.write(getHttp("/app/scenarioreplay/user/textlongdescription?gameEntityId="+gameEntity["gameEntityId"]+"&userEntityId="+session["userEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=2290&v=1709561669143")) ; $("#commentScenarioReplayForm").on ( "submit", function (scenarioReplay) { event.preventDefault() ; $.ajax ( { url: "/app/scenarioreplay/comment", method: "POST", async: false, data: $("#commentScenarioReplayForm").serializeArray(), success: function (data) { if (data["error"]) $("#commentScenarioReplayFormMessage").html("

"+data["error"]) ; else { window.location = "/game/scenarioreplay/view?scenarioReplayEntityId="+data["scenarioReplayEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#commentScenarioReplayFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if ((pathname=="/game/scenarioreplay/user"||pathname=="/game/scenarioreplay/user/list")&&validGame(gameEntity)&&validScenario(scenarioEntity)&&validScenarioReplay(scenarioReplayEntity)) { if (!validSession(session)) signinPage() ; else if (validScenarioUserAdministrator(sessionScenarioUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { var page = parseInt(getQueryParameter("page")) ; if (isNaN(page)) page = 0 ; var criteria = getQueryParameter("criteria") ; document.write(getHttp("/body?name=game&sct=2291&v=1709561669143")) ;document.write(scenarioReplayEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2292&v=1709561669143")) ; breadcrumbsScenarioReplay(gameEntity,moduleEntity,scenarioEntity,scenarioReplayEntity) ; scenarioReplayUserMenu(scenarioReplayEntity) ; var scenarioReplayUserEntityList = getHttpJson("/app/scenarioreplay/user/list?scenarioReplayEntityId="+scenarioReplayEntity["scenarioReplayEntityId"]+(criteria?("&criteria="+criteria):"")+"&page="+page+"&sessionToken="+session["sessionToken"]) ; document.write(getHttp("/body?name=game&sct=2293&v=1709561669143")) ; for (i=0 ; i<10&&i0) { document.write(getHttp("/body?name=game&sct=2301&v=1709561669143")) ;document.write(scenarioReplayEntity["scenarioReplayEntityId"]) ;document.write(criteria?("&criteria="+criteria):"") ;document.write(getHttp("/body?name=game&sct=2302&v=1709561669143")) ;document.write(page-1) ;document.write(getHttp("/body?name=game&sct=2303&v=1709561669143")) ; } if (scenarioReplayUserEntityList.length>10) { document.write(getHttp("/body?name=game&sct=2304&v=1709561669143")) ;document.write(scenarioReplayEntity["scenarioReplayEntityId"]) ;document.write(criteria?("&criteria="+criteria):"") ;document.write(getHttp("/body?name=game&sct=2305&v=1709561669143")) ;document.write(page+1) ;document.write(getHttp("/body?name=game&sct=2306&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=2307&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/scenarioreplay/user/view"&&validGame(gameEntity)&&validScenario(scenarioEntity)&&validScenarioReplay(scenarioReplayEntity)&&validScenarioReplayUser(scenarioReplayUserEntity)) { if (!validSession(session)) signinPage() ; else if (validScenarioUserAdministrator(sessionScenarioUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=2308&v=1709561669143")) ;document.write(scenarioReplayEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2309&v=1709561669143")) ;document.write(scenarioReplayUserEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2310&v=1709561669143")) ; breadcrumbsScenarioReplay(gameEntity,moduleEntity,scenarioEntity,scenarioReplayEntity) ; scenarioReplayUserMenu(scenarioReplayEntity,scenarioReplayUserEntity) ; if (scenarioReplayUserEntity["userEntityId"]>0) { document.write(getHttp("/body?name=game&sct=2311&v=1709561669143")) ;document.write(scenarioReplayUserEntity["userEntityId"]) ;document.write(getHttp("/body?name=game&sct=2312&v=1709561669143")) ;document.write(scenarioReplayUserEntity["version"]) ;document.write(getHttp("/body?name=game&sct=2313&v=1709561669143")) ;document.write(scenarioReplayUserEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2314&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=2315&v=1709561669143")) ; if (scenarioReplayUserEntity["firstName"]) { document.write(getHttp("/body?name=game&sct=2316&v=1709561669143")) ;document.write(scenarioReplayUserEntity["firstName"]) ;document.write(getHttp("/body?name=game&sct=2317&v=1709561669143")) ; } if (scenarioReplayUserEntity["lastName"]) { document.write(getHttp("/body?name=game&sct=2318&v=1709561669143")) ;document.write(scenarioReplayUserEntity["lastName"]) ;document.write(getHttp("/body?name=game&sct=2319&v=1709561669143")) ; } if (scenarioReplayUserEntity["email"]) { document.write(getHttp("/body?name=game&sct=2320&v=1709561669143")) ;document.write(scenarioReplayUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=2321&v=1709561669143")) ;document.write(scenarioReplayUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=2322&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=2323&v=1709561669143")) ;document.write(scenarioReplayUserEntity["player"]) ;document.write(getHttp("/body?name=game&sct=2324&v=1709561669143")) ;document.write(scenarioReplayUserEntity["subscriber"]) ;document.write(getHttp("/body?name=game&sct=2325&v=1709561669143")) ;document.write(scenarioReplayUserEntity["createDate"]) ;document.write(getHttp("/body?name=game&sct=2326&v=1709561669143")) ;document.write(scenarioReplayUserEntity["modifyDate"]) ;document.write(getHttp("/body?name=game&sct=2327&v=1709561669143")) ;document.write(getHttp("/app/user/view/textlongdescription?userEntityId="+scenarioReplayUserEntity["userEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=2328&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/scenarioreplay/user/create"&&validGame(gameEntity)&&validScenario(scenarioEntity)&&validScenarioReplay(scenarioReplayEntity)) { if (!validSession(session)) signinPage() ; else if (validScenarioUserAdministrator(sessionScenarioUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=2329&v=1709561669143")) ;document.write(scenarioReplayEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2330&v=1709561669143")) ; breadcrumbsScenarioReplay(gameEntity,moduleEntity,scenarioEntity,scenarioReplayEntity) ; scenarioReplayUserMenu(scenarioReplayEntity) ; document.write(getHttp("/body?name=game&sct=2331&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=2332&v=1709561669143")) ;document.write(scenarioReplayEntity["scenarioReplayEntityId"]) ;document.write(getHttp("/body?name=game&sct=2333&v=1709561669143")) ;document.write(scenarioReplayUserEntity["player"]?"checked":"") ;document.write(getHttp("/body?name=game&sct=2334&v=1709561669143")) ;document.write(scenarioReplayUserEntity["subscriber"]?"checked":"") ;document.write(getHttp("/body?name=game&sct=2335&v=1709561669143")) ; $("#createScenarioReplayUserForm").on ( "submit", function (scenarioReplay) { event.preventDefault() ; $.ajax ( { url: "/app/scenarioreplay/user/create", method: "POST", async: false, data: $("#createScenarioReplayUserForm").serializeArray(), success: function (data) { if (data["error"]) $("#createScenarioReplayUserFormMessage").html("

"+data["error"]) ; else { window.location = "/game/scenarioreplay/user/view?scenarioReplayUserEntityId="+data["scenarioReplayUserEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#createScenarioReplayUserFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/scenarioreplay/user/update"&&validGame(gameEntity)&&validScenario(scenarioEntity)&&validScenarioReplay(scenarioReplayEntity)&&validScenarioReplayUser(scenarioReplayUserEntity)) { if (!validSession(session)) signinPage() ; else if (validScenarioUserAdministrator(sessionScenarioUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=2336&v=1709561669143")) ;document.write(scenarioReplayEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2337&v=1709561669143")) ;document.write(scenarioReplayUserEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2338&v=1709561669143")) ; breadcrumbsScenarioReplay(gameEntity,moduleEntity,scenarioEntity,scenarioReplayEntity) ; scenarioReplayUserMenu(scenarioReplayEntity,scenarioReplayUserEntity) ; document.write(getHttp("/body?name=game&sct=2339&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=2340&v=1709561669143")) ;document.write(scenarioReplayUserEntity["scenarioReplayUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=2341&v=1709561669143")) ; if (scenarioReplayUserEntity["firstName"]) { document.write(getHttp("/body?name=game&sct=2342&v=1709561669143")) ;document.write(scenarioReplayUserEntity["firstName"]) ;document.write(getHttp("/body?name=game&sct=2343&v=1709561669143")) ; } if (scenarioReplayUserEntity["lastName"]) { document.write(getHttp("/body?name=game&sct=2344&v=1709561669143")) ;document.write(scenarioReplayUserEntity["lastName"]) ;document.write(getHttp("/body?name=game&sct=2345&v=1709561669143")) ; } if (scenarioReplayUserEntity["email"]) { document.write(getHttp("/body?name=game&sct=2346&v=1709561669143")) ;document.write(scenarioReplayUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=2347&v=1709561669143")) ;document.write(scenarioReplayUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=2348&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=2349&v=1709561669143")) ;document.write(scenarioReplayUserEntity["player"]?"checked":"") ;document.write(getHttp("/body?name=game&sct=2350&v=1709561669143")) ;document.write(scenarioReplayUserEntity["subscriber"]?"checked":"") ;document.write(getHttp("/body?name=game&sct=2351&v=1709561669143")) ; $("#updateScenarioReplayUserForm").on ( "submit", function (scenarioReplay) { event.preventDefault() ; $.ajax ( { url: "/app/scenarioreplay/user/update", method: "POST", async: false, data: $("#updateScenarioReplayUserForm").serializeArray(), success: function (data) { if (data["error"]) $("#updateScenarioReplayUserFormMessage").html("

"+data["error"]) ; else { window.location = "/game/scenarioreplay/user/view?scenarioReplayUserEntityId="+data["scenarioReplayUserEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateScenarioReplayUserFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/scenarioreplay/user/delete"&&validGame(gameEntity)&&validScenario(scenarioEntity)&&validScenarioReplay(scenarioReplayEntity)&&validScenarioReplayUser(scenarioReplayUserEntity)) { if (!validSession(session)) signinPage() ; else if (validScenarioUserAdministrator(sessionScenarioUserEntity)||validModuleUserAdministrator(sessionModuleUserEntity)||validGameUserAdministrator(sessionGameUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=game&sct=2352&v=1709561669143")) ;document.write(scenarioReplayEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2353&v=1709561669143")) ;document.write(scenarioReplayUserEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2354&v=1709561669143")) ; breadcrumbsScenarioReplay(gameEntity,moduleEntity,scenarioEntity,scenarioReplayEntity) ; scenarioReplayUserMenu(scenarioReplayEntity,scenarioReplayUserEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=2355&v=1709561669143")) ;document.write(scenarioReplayUserEntity["scenarioReplayUserEntityId"]) ;document.write(getHttp("/body?name=game&sct=2356&v=1709561669143")) ; if (scenarioReplayUserEntity["firstName"]) { document.write(getHttp("/body?name=game&sct=2357&v=1709561669143")) ;document.write(scenarioReplayUserEntity["firstName"]) ;document.write(getHttp("/body?name=game&sct=2358&v=1709561669143")) ; } if (scenarioReplayUserEntity["lastName"]) { document.write(getHttp("/body?name=game&sct=2359&v=1709561669143")) ;document.write(scenarioReplayUserEntity["lastName"]) ;document.write(getHttp("/body?name=game&sct=2360&v=1709561669143")) ; } if (scenarioReplayUserEntity["email"]) { document.write(getHttp("/body?name=game&sct=2361&v=1709561669143")) ;document.write(scenarioReplayUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=2362&v=1709561669143")) ;document.write(scenarioReplayUserEntity["email"]) ;document.write(getHttp("/body?name=game&sct=2363&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=2364&v=1709561669143")) ; } else { $.ajax ( { url: "/app/scenarioreplay/user/delete", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"scenarioReplayUserEntityId":scenarioReplayUserEntity["scenarioReplayUserEntityId"]}, success: function (data) { if (data["error"]) $("#scenarioreplayUserDeleteMessage").html("

"+data["error"]) ; else { window.location = "/game/scenarioreplay/user/list?scenarioReplayEntityId="+data["scenarioReplayEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#scenarioreplayUserDeleteMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=2365&v=1709561669143")) ; } else errorPage() ; } else if ((pathname=="/game/scenarioreplayturn"||pathname=="/game/scenarioreplayturn/list")&&validGame(gameEntity)&&validScenario(scenarioEntity)&&validScenarioReplay(scenarioReplayEntity)) { var page = parseInt(getQueryParameter("page")) ; if (isNaN(page)) page = 0 ; var criteria = getQueryParameter("criteria") ; document.write(getHttp("/body?name=game&sct=2366&v=1709561669143")) ; breadcrumbsScenarioReplayTurn(gameEntity,moduleEntity,scenarioEntity,scenarioReplayEntity) ; scenarioReplayTurnMenu() ; var scenarioReplayTurnEntityList = getHttpJson("/app/scenarioreplayturn/listbyscenarioreplay?"+"scenarioReplayEntityId="+scenarioReplayEntity["scenarioReplayEntityId"]+(criteria?("&criteria="+criteria):"")+"&page="+page+"&sessionToken="+session["sessionToken"]) ; document.write(getHttp("/body?name=game&sct=2367&v=1709561669143")) ; for (i=0 ; i<10&&i0) { document.write(getHttp("/body?name=game&sct=2377&v=1709561669143")) ;document.write(page-1) ;document.write(getHttp("/body?name=game&sct=2378&v=1709561669143")) ;document.write(scenarioReplayEntity["scenarioReplayEntityId"]) ;document.write(criteria?("&criteria="+criteria):"") ;document.write(getHttp("/body?name=game&sct=2379&v=1709561669143")) ; } if (scenarioReplayTurnEntityList.length>10) { document.write(getHttp("/body?name=game&sct=2380&v=1709561669143")) ;document.write(page+1) ;document.write(getHttp("/body?name=game&sct=2381&v=1709561669143")) ;document.write(scenarioReplayEntity["scenarioReplayEntityId"]) ;document.write(criteria?("&criteria="+criteria):"") ;document.write(getHttp("/body?name=game&sct=2382&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=2383&v=1709561669143")) ; } else if (pathname=="/game/scenarioreplayturn/view"&&validGame(gameEntity)&&validScenario(scenarioEntity)&&validScenarioReplay(scenarioReplayEntity)&&validScenarioReplayTurn(scenarioReplayTurnEntity)) { document.write(getHttp("/body?name=game&sct=2384&v=1709561669143")) ;document.write(scenarioReplayTurnEntity["turn"]) ;document.write(getHttp("/body?name=game&sct=2385&v=1709561669143")) ; breadcrumbsScenarioReplayTurn(gameEntity,moduleEntity,scenarioEntity,scenarioReplayEntity,scenarioReplayTurnEntity) ; scenarioReplayTurnMenu(scenarioReplayTurnEntity) ; document.write(getHttp("/body?name=game&sct=2386&v=1709561669143")) ;document.write(scenarioReplayTurnEntity["scenarioReplayTurnEntityId"]) ;document.write(getHttp("/body?name=game&sct=2387&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=2388&v=1709561669143")) ;document.write(scenarioReplayTurnEntity["version"]) ;document.write(getHttp("/body?name=game&sct=2389&v=1709561669143")) ;document.write(scenarioReplayTurnEntity["scenarioReplayTurnEntityId"]) ;document.write(getHttp("/body?name=game&sct=2390&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=2391&v=1709561669143")) ;document.write(scenarioReplayTurnEntity["version"]) ;document.write(getHttp("/body?name=game&sct=2392&v=1709561669143")) ;document.write(getHttp("/app/scenarioreplayturn/textlongdescription?scenarioReplayTurnEntityId="+scenarioReplayTurnEntity["scenarioReplayTurnEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=2393&v=1709561669143")) ; if (sessionScenarioUserEntity&&(sessionScenarioUserEntity["editor"]||sessionScenarioUserEntity["administrator"])) { var scenarioReplayTurnUserEntity = getHttpJson("/app/game/scenarioreplayturn/user/view?scenarioReplayTurnEntityId="+scenarioReplayTurnEntity["scenarioReplayTurnEntityId"]+"&userEntityId="+scenarioReplayTurnEntity["userEntityId"]+"&sessionToken="+session["sessionToken"]) ; document.write(getHttp("/body?name=game&sct=2394&v=1709561669143")) ;document.write(scenarioReplayTurnEntity["createDate"]) ;document.write(getHttp("/body?name=game&sct=2395&v=1709561669143")) ;document.write(scenarioReplayTurnEntity["modifyDate"]) ;document.write(getHttp("/body?name=game&sct=2396&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=2397&v=1709561669143")) ; } else if (pathname=="/game/scenarioreplayturn/create"&&validGame(gameEntity)&&validScenario(scenarioEntity)&&validScenarioReplay(scenarioReplayEntity)) { if (!validSession(session)) signinPage() ; else if (validScenarioReplayUserPlayer(sessionScenarioReplayUserEntity)||validScenarioUserEditor(sessionScenarioUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=2398&v=1709561669143")) ; breadcrumbsScenarioReplayTurn(gameEntity,moduleEntity,scenarioEntity,scenarioReplayEntity) ; scenarioReplayTurnMenu() ; document.write(getHttp("/body?name=game&sct=2399&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=2400&v=1709561669143")) ;document.write(scenarioReplayEntity["scenarioReplayEntityId"]) ;document.write(getHttp("/body?name=game&sct=2401&v=1709561669143")) ; $("#createScenarioReplayTurnForm").on ( "submit", function (scenarioReplayTurn) { event.preventDefault() ; $.ajax ( { url: "/app/scenarioreplayturn/create", method: "POST", async: false, data: $("#createScenarioReplayTurnForm").serializeArray(), success: function (data) { if (data["error"]) $("#createScenarioReplayTurnFormMessage").html("

"+data["error"]) ; else { window.location = "/game/scenarioreplayturn/view?scenarioReplayTurnEntityId="+data["scenarioReplayTurnEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#createScenarioReplayTurnFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/scenarioreplayturn/update"&&validGame(gameEntity)&&validScenario(scenarioEntity)&&validScenarioReplay(scenarioReplayEntity)&&validScenarioReplayTurn(scenarioReplayTurnEntity)) { if (!validSession(session)) signinPage() ; else if (validScenarioReplayUserPlayer(sessionScenarioReplayUserEntity)||validScenarioUserEditor(sessionScenarioUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=2402&v=1709561669143")) ;document.write(scenarioReplayTurnEntity["turn"]) ;document.write(getHttp("/body?name=game&sct=2403&v=1709561669143")) ; breadcrumbsScenarioReplayTurn(gameEntity,moduleEntity,scenarioEntity,scenarioReplayEntity,scenarioReplayTurnEntity) ; scenarioReplayTurnMenu(scenarioReplayTurnEntity) ; document.write(getHttp("/body?name=game&sct=2404&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=2405&v=1709561669143")) ;document.write(scenarioReplayTurnEntity["scenarioReplayTurnEntityId"]) ;document.write(getHttp("/body?name=game&sct=2406&v=1709561669143")) ;document.write(scenarioReplayTurnEntity["turn"]) ;document.write(getHttp("/body?name=game&sct=2407&v=1709561669143")) ; $("#updateScenarioReplayTurnForm").on ( "submit", function (scenarioReplayTurn) { event.preventDefault() ; $.ajax ( { url: "/app/scenarioreplayturn/update", method: "POST", async: false, data: $("#updateScenarioReplayTurnForm").serializeArray(), success: function (data) { if (data["error"]) $("#updateScenarioReplayTurnFormMessage").html("

"+data["error"]) ; else { window.location = "/game/scenarioreplayturn/view?scenarioReplayTurnEntityId="+data["scenarioReplayTurnEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateScenarioReplayTurnFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/scenarioreplayturn/updatelong"&&validGame(gameEntity)&&validScenario(scenarioEntity)&&validScenarioReplay(scenarioReplayEntity)&&validScenarioReplayTurn(scenarioReplayTurnEntity)) { if (!validSession(session)) signinPage() ; else if (validScenarioReplayUserPlayer(sessionScenarioReplayUserEntity)||validScenarioUserEditor(sessionScenarioUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=2408&v=1709561669143")) ;document.write(scenarioReplayTurnEntity["turn"]) ;document.write(getHttp("/body?name=game&sct=2409&v=1709561669143")) ; breadcrumbsScenarioReplayTurn(gameEntity,moduleEntity,scenarioEntity,scenarioReplayEntity,scenarioReplayTurnEntity) ; scenarioReplayTurnMenu(scenarioReplayTurnEntity) ; document.write(getHttp("/body?name=game&sct=2410&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=2411&v=1709561669143")) ;document.write(scenarioReplayTurnEntity["scenarioReplayTurnEntityId"]) ;document.write(getHttp("/body?name=game&sct=2412&v=1709561669143")) ;document.write(getHttp("/app/scenarioreplayturn/textlongdescription?scenarioReplayTurnEntityId="+scenarioReplayTurnEntity["scenarioReplayTurnEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=2413&v=1709561669143")) ; $("#updateScenarioReplayTurnShortForm").on ( "submit", function (scenarioReplayTurn) { event.preventDefault() ; $.ajax ( { url: "/app/scenarioreplayturn/updatelongdescription", method: "POST", async: false, data: $("#updateScenarioReplayTurnShortForm").serializeArray(), success: function (data) { if (data["error"]) $("#updateScenarioReplayTurnShortFormMessage").html("

"+data["error"]) ; else { window.location = "/game/scenarioreplayturn/view?scenarioReplayTurnEntityId="+data["scenarioReplayTurnEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateScenarioReplayTurnShortFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/scenarioreplayturn/upload"&&validGame(gameEntity)&&validScenario(scenarioEntity)&&validScenarioReplay(scenarioReplayEntity)&&validScenarioReplayTurn(scenarioReplayTurnEntity)) { if (!validSession(session)) signinPage() ; else if (validScenarioReplayUserPlayer(sessionScenarioReplayUserEntity)||validScenarioUserEditor(sessionScenarioUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=2414&v=1709561669143")) ;document.write(scenarioReplayTurnEntity["turn"]) ;document.write(getHttp("/body?name=game&sct=2415&v=1709561669143")) ; breadcrumbsScenarioReplayTurn(gameEntity,moduleEntity,scenarioEntity,scenarioReplayEntity,scenarioReplayTurnEntity) ; scenarioReplayTurnMenu(scenarioReplayTurnEntity) ; document.write(getHttp("/body?name=game&sct=2416&v=1709561669143")) ; $("#scenarioReplayTurnUploadForm").on ( "submit", function (event) { event.preventDefault() ; $("#scenarioReplayTurnUploadForm").innerHTML = 'Uploading...' ; var formData = new FormData() ; formData.append("sessionToken",session["sessionToken"]) ; formData.append("scenarioReplayTurnEntityId",scenarioReplayTurnEntity["scenarioReplayTurnEntityId"]) ; formData.append("image",$('#scenarioReplayTurnUploadFormImage')[0].files[0]) ; $.ajax ( { url: "/app/scenarioreplayturn/uploadimage", method: "POST", async: false, data: formData, processData: false, contentType: false, success: function (data) { if (data["error"]) $("#scenarioReplayTurnUploadFormMessage").html("

"+data["error"]) ; else { window.location = "/game/scenarioreplayturn/view?scenarioReplayTurnEntityId="+data["scenarioReplayTurnEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#scenarioReplayTurnUploadFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/scenarioreplayturn/delete"&&validGame(gameEntity)&&validScenario(scenarioEntity)&&validScenarioReplay(scenarioReplayEntity)&&validScenarioReplayTurn(scenarioReplayTurnEntity)) { if (!validSession(session)) signinPage() ; else if (validScenarioReplayUserPlayer(sessionScenarioReplayUserEntity)||validScenarioUserEditor(sessionScenarioUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=2417&v=1709561669143")) ;document.write(scenarioReplayTurnEntity["name"]) ;document.write(getHttp("/body?name=game&sct=2418&v=1709561669143")) ; breadcrumbsScenarioReplayTurn(gameEntity,moduleEntity,scenarioEntity,scenarioReplayEntity,scenarioReplayTurnEntity) ; scenarioReplayTurnMenu(scenarioReplayTurnEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=2419&v=1709561669143")) ;document.write(scenarioReplayTurnEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2420&v=1709561669143")) ;document.write(scenarioReplayTurnEntity["scenarioReplayTurnEntityId"]) ;document.write(getHttp("/body?name=game&sct=2421&v=1709561669143")) ;document.write(scenarioReplayTurnEntity["name"]) ;document.write(getHttp("/body?name=game&sct=2422&v=1709561669143")) ; } else { $.ajax ( { url: "/app/game/scenarioreplayturn/delete", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"scenarioReplayTurnEntityId":scenarioReplayTurnEntity["scenarioReplayTurnEntityId"]}, success: function (data) { if (data["error"]) $("#scenarioreplayturnDeleteMessage").html("

"+data["error"]) ; else { window.location = "/game/scenarioreplay/view?scenarioReplayEntityId="+data["scenarioReplayEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#scenarioreplayturnDeleteMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=2423&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/document"||pathname=="/game/document/list") { var page = parseInt(getQueryParameter("page")) ; if (isNaN(page)) page = 0 ; var criteria = getQueryParameter("criteria") ; document.write(getHttp("/body?name=game&sct=2424&v=1709561669143")) ; breadcrumbsDocument(gameEntity,moduleEntity,scenarioEntity) ; documentMenu() ; var documentEntityList = getHttpJson("/app/document/list?"+((validModule(moduleEntity))?("moduleEntityId="+moduleEntity["moduleEntityId"]):("gameEntityId="+gameEntity["gameEntityId"]))+(criteria?("&criteria="+criteria):"")+"&page="+page+"&sessionToken="+session["sessionToken"]) ; document.write(getHttp("/body?name=game&sct=2425&v=1709561669143")) ; for (i=0 ; i<10&&i0) { document.write(getHttp("/body?name=game&sct=2431&v=1709561669143")) ;document.write(page-1) ;document.write(scenarioEntity!=null?("&scenarioEntityId="+scenarioEntity["scenarioEntityId"]):moduleEntity!=null?("&moduleEntityId="+moduleEntity["moduleEntityId"]):("&gameEntityId="+gameEntity["gameEntityId"])) ;document.write(criteria?("&criteria="+criteria):"") ;document.write(getHttp("/body?name=game&sct=2432&v=1709561669143")) ; } if (documentEntityList.length>10) { document.write(getHttp("/body?name=game&sct=2433&v=1709561669143")) ;document.write(page+1) ;document.write(scenarioEntity!=null?("&scenarioEntityId="+scenarioEntity["scenarioEntityId"]):moduleEntity!=null?("&moduleEntityId="+moduleEntity["moduleEntityId"]):("&gameEntityId="+gameEntity["gameEntityId"])) ;document.write(criteria?("&criteria="+criteria):"") ;document.write(getHttp("/body?name=game&sct=2434&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=2435&v=1709561669143")) ; } else if (pathname=="/game/document/view") { if (!documentEntity) { if (validScenario(scenarioEntity)) var documentEntity = getHttpJson("/app/document/view?scenarioEntityId="+scenarioEntity["scenarioEntityId"]+"&name="+getQueryParameter("name")+"&sessionToken="+session["sessionToken"]) ; else if (validMapSet(mapSetEntity)) var documentEntity = getHttpJson("/app/document/view?mapSetEntityId="+mapSetEntity["mapSetEntityId"]+"&name="+getQueryParameter("name")+"&sessionToken="+session["sessionToken"]) ; else if (validFormationSet(formationSetEntity)) var documentEntity = getHttpJson("/app/document/view?formationSetEntityId="+formationSetEntity["formationSetEntityId"]+"&name="+getQueryParameter("name")+"&sessionToken="+session["sessionToken"]) ; else if (validModule(moduleEntity)) var documentEntity = getHttpJson("/app/document/view?moduleEntityId="+moduleEntity["moduleEntityId"]+"&name="+getQueryParameter("name")+"&sessionToken="+session["sessionToken"]) ; else var documentEntity = getHttpJson("/app/document/view?gameEntityId="+gameEntity["gameEntityId"]+"&name="+getQueryParameter("name")+"&sessionToken="+session["sessionToken"]) ; } if (documentEntity) { document.write(getHttp("/body?name=game&sct=2436&v=1709561669143")) ;document.write(documentEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2437&v=1709561669143")) ; breadcrumbsDocument(gameEntity,moduleEntity,scenarioEntity,documentEntity) ; documentMenu(documentEntity) ; document.write(getHttp("/body?name=game&sct=2438&v=1709561669143")) ;document.write(getHttp("/app/document/textshortdescription?documentEntityId="+documentEntity["documentEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=2439&v=1709561669143")) ;document.write(documentEntity["documentEntityId"]) ;document.write(getHttp("/body?name=game&sct=2440&v=1709561669143")) ; if (validScenarioUserEditor(sessionScenarioUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { var userEntity = getHttpJson("/app//user/view?userEntityId="+documentEntity["userEntityId"]+"&sessionToken="+session["sessionToken"]) ; document.write(getHttp("/body?name=game&sct=2441&v=1709561669143")) ;document.write(documentEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2442&v=1709561669143")) ;document.write(documentEntity["name"]) ;document.write(getHttp("/body?name=game&sct=2443&v=1709561669143")) ;document.write(userEntity["userEntityId"]) ;document.write(getHttp("/body?name=game&sct=2444&v=1709561669143")) ;document.write(userEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2445&v=1709561669143")) ;document.write(documentEntity["createDate"]) ;document.write(getHttp("/body?name=game&sct=2446&v=1709561669143")) ;document.write(documentEntity["modifyDate"]) ;document.write(getHttp("/body?name=game&sct=2447&v=1709561669143")) ;document.write(documentEntity["approveDate"]) ;document.write(getHttp("/body?name=game&sct=2448&v=1709561669143")) ; } document.write(getHttp("/body?name=game&sct=2449&v=1709561669143")) ; } else errorPage() ; } else if (pathname=="/game/document/create") { if (!validSession(session)) signinPage() ; else if (validScenarioUserEditor(sessionScenarioUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=2450&v=1709561669143")) ; breadcrumbsDocument(gameEntity,moduleEntity,scenarioEntity) ; documentMenu() ; document.write(getHttp("/body?name=game&sct=2451&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=2452&v=1709561669143")) ;document.write(gameEntity["gameEntityId"]) ;document.write(getHttp("/body?name=game&sct=2453&v=1709561669143")) ;document.write(moduleEntity["moduleEntityId"]) ;document.write(getHttp("/body?name=game&sct=2454&v=1709561669143")) ; $("#createDocumentForm").on ( "submit", function (document) { event.preventDefault() ; $.ajax ( { url: "/app/document/create", method: "POST", async: false, data: $("#createDocumentForm").serializeArray(), success: function (data) { if (data["error"]) $("#createDocumentFormMessage").html("

"+data["error"]) ; else { window.location = "/game/document/view?documentEntityId="+data["documentEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#createDocumentFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/document/update"&&validDocument(documentEntity)) { if (!validSession(session)) signinPage() ; else if (validScenarioUserEditor(sessionScenarioUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=2455&v=1709561669143")) ;document.write(documentEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2456&v=1709561669143")) ; breadcrumbsDocument(gameEntity,moduleEntity,scenarioEntity,documentEntity) ; documentMenu(documentEntity) ; document.write(getHttp("/body?name=game&sct=2457&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=2458&v=1709561669143")) ;document.write(documentEntity["documentEntityId"]) ;document.write(getHttp("/body?name=game&sct=2459&v=1709561669143")) ;document.write(documentEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2460&v=1709561669143")) ;document.write(documentEntity["name"]) ;document.write(getHttp("/body?name=game&sct=2461&v=1709561669143")) ; $("#updateDocumentForm").on ( "submit", function (document) { event.preventDefault() ; $.ajax ( { url: "/app/document/update", method: "POST", async: false, data: $("#updateDocumentForm").serializeArray(), success: function (data) { if (data["error"]) $("#updateDocumentFormMessage").html("

"+data["error"]) ; else { window.location = "/game/document/view?documentEntityId="+data["documentEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateDocumentFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/document/movegame"&&validDocument(documentEntity)) { if (!validSession(session)) signinPage() ; else if (validScenarioUserEditor(sessionScenarioUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=2462&v=1709561669143")) ;document.write(documentEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2463&v=1709561669143")) ; breadcrumbsDocument(gameEntity,moduleEntity,scenarioEntity,documentEntity) ; documentMenu(documentEntity) ; document.write(getHttp("/body?name=game&sct=2464&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=2465&v=1709561669143")) ;document.write(documentEntity["documentEntityId"]) ;document.write(getHttp("/body?name=game&sct=2466&v=1709561669143")) ; var gameEntityList = getHttpJson("/app/game/game/list?gameEntityId="+gameEntity["gameEntityId"]+"&criteria=all&page=-1&sessionToken="+session["sessionToken"]) ; document.write(getHttp("/body?name=game&sct=2467&v=1709561669143")) ; for (var i=0 ; i"+data["error"]) ; else { window.location = "/game/document/view?documentEntityId="+data["documentEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#moveDocumentGameFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/document/movemodule"&&validDocument(documentEntity)) { if (!validSession(session)) signinPage() ; else if (validScenarioUserEditor(sessionScenarioUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=2473&v=1709561669143")) ;document.write(documentEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2474&v=1709561669143")) ; breadcrumbsDocument(gameEntity,moduleEntity,scenarioEntity,documentEntity) ; documentMenu(documentEntity) ; document.write(getHttp("/body?name=game&sct=2475&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=2476&v=1709561669143")) ;document.write(documentEntity["documentEntityId"]) ;document.write(getHttp("/body?name=game&sct=2477&v=1709561669143")) ; var moduleEntityList = getHttpJson("/app/module/list?gameEntityId="+gameEntity["gameEntityId"]+"&criteria=all&page=-1&sessionToken="+session["sessionToken"]) ; document.write(getHttp("/body?name=game&sct=2478&v=1709561669143")) ; for (var i=0 ; i"+data["error"]) ; else { window.location = "/game/document/view?documentEntityId="+data["documentEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#moveDocumentModuleFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/document/movescenario"&&validDocument(documentEntity)) { if (!validSession(session)) signinPage() ; else if (validScenarioUserEditor(sessionScenarioUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=2484&v=1709561669143")) ;document.write(documentEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2485&v=1709561669143")) ; breadcrumbsDocument(gameEntity,moduleEntity,scenarioEntity,documentEntity) ; documentMenu(documentEntity) ; document.write(getHttp("/body?name=game&sct=2486&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=2487&v=1709561669143")) ;document.write(documentEntity["documentEntityId"]) ;document.write(getHttp("/body?name=game&sct=2488&v=1709561669143")) ; var scenarioEntityList = getHttpJson("/app/scenario/list?gameEntityId="+gameEntity["gameEntityId"]+"&criteria=all&page=-1&sessionToken="+session["sessionToken"]) ; document.write(getHttp("/body?name=game&sct=2489&v=1709561669143")) ; for (var i=0 ; i"+data["error"]) ; else { window.location = "/game/document/view?documentEntityId="+data["documentEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#moveDocumentScenarioFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/document/updateshort"&&validDocument(documentEntity)) { if (!validSession(session)) signinPage() ; else if (validScenarioUserEditor(sessionScenarioUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=2495&v=1709561669143")) ;document.write(documentEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2496&v=1709561669143")) ; breadcrumbsDocument(gameEntity,moduleEntity,scenarioEntity,documentEntity) ; documentMenu(documentEntity) ; document.write(getHttp("/body?name=game&sct=2497&v=1709561669143")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=game&sct=2498&v=1709561669143")) ;document.write(documentEntity["documentEntityId"]) ;document.write(getHttp("/body?name=game&sct=2499&v=1709561669143")) ;document.write(documentEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2500&v=1709561669143")) ;document.write(getHttp("/app/document/textshortdescription?documentEntityId="+documentEntity["documentEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=game&sct=2501&v=1709561669143")) ; $("#updateDocumentShortForm").on ( "submit", function (document) { event.preventDefault() ; $.ajax ( { url: "/app/document/updateshortdescription", method: "POST", async: false, data: $("#updateDocumentShortForm").serializeArray(), success: function (data) { if (data["error"]) $("#updateDocumentShortFormMessage").html("

"+data["error"]) ; else { window.location = "/game/document/view?documentEntityId="+data["documentEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateDocumentShortFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/document/upload"&&validDocument(documentEntity)) { if (!validSession(session)) signinPage() ; else if (validScenarioUserEditor(sessionScenarioUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=2502&v=1709561669143")) ;document.write(documentEntity["label"]) ;document.write(getHttp("/body?name=game&sct=2503&v=1709561669143")) ; breadcrumbsDocument(gameEntity,moduleEntity,scenarioEntity,documentEntity) ; documentMenu(documentEntity) ; document.write(getHttp("/body?name=game&sct=2504&v=1709561669143")) ;document.write(documentEntity["name"]) ;document.write(getHttp("/body?name=game&sct=2505&v=1709561669143")) ; $("#documentUploadForm").on ( "submit", function (event) { event.preventDefault() ; $("#documentUploadForm").innerHTML = 'Uploading...' ; var formData = new FormData() ; formData.append("sessionToken",session["sessionToken"]) ; formData.append("documentEntityId",documentEntity["documentEntityId"]) ; formData.append("fileFile",$('#documentUploadFormDocument')[0].files[0]) ; $.ajax ( { url: "/app/document/uploadfile", method: "POST", async: false, data: formData, processData: false, contentType: false, success: function (data) { if (data["error"]) $("#documentUploadFormMessage").html("

"+data["error"]) ; else { window.location = "/game/document/view?documentEntityId="+data["documentEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#documentUploadFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/game/document/delete"&&validDocument(documentEntity)) { if (!validSession(session)) signinPage() ; else if (validScenarioUserEditor(sessionScenarioUserEntity)||validModuleUserEditor(sessionModuleUserEntity)||validGameUserEditor(sessionGameUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=game&sct=2506&v=1709561669143")) ;document.write(documentEntity["name"]) ;document.write(getHttp("/body?name=game&sct=2507&v=1709561669143")) ; breadcrumbsDocument(gameEntity,moduleEntity,scenarioEntity,documentEntity) ; documentMenu(documentEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=game&sct=2508&v=1709561669143")) ;document.write(documentEntity["name"]) ;document.write(getHttp("/body?name=game&sct=2509&v=1709561669143")) ;document.write(documentEntity["documentEntityId"]) ;document.write(getHttp("/body?name=game&sct=2510&v=1709561669143")) ;document.write(documentEntity["name"]) ;document.write(getHttp("/body?name=game&sct=2511&v=1709561669143")) ; } else { $.ajax ( { url: "/app/document/delete", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"documentEntityId":documentEntity["documentEntityId"]}, success: function (data) { if (data["error"]) $("#gameDocumentDeleteMessage").html("

"+data["error"]) ; else { window.location = data["moduleEntityId"]?"/game/module/view?moduleEntityId="+data["moduleEntityId"]:"/game/view?gameEntityId="+data["gameEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#gameDocumentDeleteMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=game&sct=2512&v=1709561669143")) ; } else errorPage() ; } else errorPage() ; document.write(getHttp("/body?name=game&sct=2513&v=1709561669143")) ;