jQuery.ui.autocomplete.prototype._resizeMenu = function () {
this.menu.element.css("min-width", this.element.outerWidth());
this.menu.element.css("max-width", Math.max(this.element.outerWidth(), (this.menu.element.parent().outerWidth() - this.element.offset().left - 10)));
};
var App_localeMap = new Array();
App_localeMap["en"] = {description:"English"};App_localeMap["th"] = {description:"Thai"};App_localeMap["id"] = {description:"Indonesia"};App_localeMap["zh_CN"] = {description:"Simplified Chinese"};App_localeMap["zh_HK"] = {description:"Traditional Chinese (Hong Kong)"};App_localeMap["zh_TW"] = {description:"Traditional Chinese (Taiwan)"};
var App_isLoopRunning = true;
var App_unreadNotificationCount = 0;
var App_unreadTeamInviteRequestCount = 0;
var App_unreadTeamJoinRequestCount = 0;
function App_init()
{
//App_loop();
}
function App_endLoop()
{
App_isLoopRunning = false;
}
function App_loop()
{
if(!App_isLoopRunning) {
return;
}
setTimeout(App_loop, 15000);//15 seconds
}
function App_convertBooleanToString(value)
{
return (value ? true : false);
}
function App_convertStringToBoolean(content)
{
return (content === "true");
}
function App_convertBrToNl(content)
{
return content.replace(/
/gi, "\n");
}
function App_convertNLtoBr(content)
{
return content.replace(/(?:\r\n|\r|\n)/g, "
");
}
function App_encodeHtmlEntities(content)
{
return content.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");
}
function App_getScreenHeight()
{
return $(window).height();
}
function App_getScreenWidth()
{
return $(window).width();
}
function App_getDateStringWithYearAndMonthAndDay(year, month, day)
{
if(year == null || month == null || day == null) {
return null;
}
var output = year;
output += '-';
if(month.length < 2) {
output += '0';
}
output += month;
output += '-';
if(day.length < 2) {
output += '0';
}
output += day;
return output;
}
function App_getDatePickerFormatValue($element, format)
{
var date = $element.data("DateTimePicker").date();
if(date == null) {
return "";
}
return date.format(format);
}
function App_getDatePickerFormatDateValue($element)
{
return App_getDatePickerFormatValue($element, "YYYY-MM-DD");
}
/*
function App_getDatePickerFormatDateTimeValue($element)
{
return App_getDatePickerFormatValue($element, "YYYY-MM-DD kk:mm:ss");
}
function App_getDatePickerFormatDateTimeWithTimezoneValue($element)
{
return App_getDatePickerFormatDateTimeValue($element) + App_getDatePickerFormatValue($element, "ZZ").substr(0 ,3);
}
*/
function App_getDatePickerFormatTimeValue($element)
{
return App_getDatePickerFormatValue($element, "kk:mm:ss");
}
function App_getDatePickerFormatISO8601Value($element)
{
return App_getDatePickerFormatValue($element, null);
}
function App_diffNowAndMomentDateInDays(date)
{
return new moment().diff(date, 'days');
}
function App_addMomentDateSecond(date, value)
{
return date.add('second', value);
}
function App_subtractMomentDateSecond(date, value)
{
return date.subtract('second', value);
}
function App_convertISO8601StringToDate(date)
{
return new moment(date);
}
function App_convertDateStringToDate(date)
{
return new moment(date, 'YYYY-MM-DD');
}
function App_convertTimeStringToDate(time)
{
return new moment(time, 'HH:mm:ssZZ');
}
function App_getDateWithTimeZoneOffset(timezoneOffset)
{
return new moment().utcOffset(timezoneOffset);
}
function App_getFormatDateString(date, format)
{
return new moment(date).format(format);
}
function App_getLastDayOfMonth(date)
{
return parseInt(date.endOf("month").format("DD"));
}
function App_getFormatISO8601String(date)
{
return App_getFormatDateString(date, null);
}
function App_getFormatLocaleDateString(date)
{
return App_getFormatDateString(date, "LL");
}
function App_getFormatLocaleDateTimeString(date)
{
return App_getFormatDateString(date, "LLL");
}
function App_getFormatLocaleDateTimeStringWithTimezone(date)
{
return App_getFormatDateString(date, "LLL") + " (GMT" + App_getFormatDateString(date, "ZZ").substr(0 ,3) + ")";
}
function App_getFormatLocaleDateTimeWeekString(date)
{
return App_getFormatDateString(date, "LLLL");
}
function App_getFormatSlashDate(date)
{
return App_getFormatDateString(date, "YYYY/MM/DD");
}
function App_getFormatSlashDateHourMinute(date)
{
return App_getFormatDateString(date, "YYYY/MM/DD HH:mm");
}
function App_getFormatSlashDateHourMinuteWithTimezone(date)
{
return App_getFormatDateString(date, "YYYY/MM/DD HH:mm") + " (GMT" + App_getFormatDateString(date, "ZZ").substr(0 ,3) + ")";
}
function App_getFormatSlashDateHourMinuteSecond(date)
{
return App_getFormatDateString(date, "YYYY/MM/DD HH:mm:ss");
}
function App_getFormatSlashDateHourMinuteSecondWithTimezone(date)
{
return App_getFormatDateString(date, "YYYY/MM/DD HH:mm:ss") + " (GMT" + App_getFormatDateString(date, "ZZ").substr(0 ,3) + ")";
}
function App_getFormatDate(date)
{
return App_getFormatDateString(date, "YYYY-MM-DD");
}
function App_getFormatHourMinute(date)
{
return App_getFormatDateString(date, "HH:mm");
}
function App_isDateAfterAnother(date, anotherDate)
{
return new moment(date).isAfter(new moment(anotherDate));
}
function App_isDateBeforeAnother(date, anotherDate)
{
return new moment(date).isBefore(new moment(anotherDate));
}
function App_isDateBetweenAnothers(date, anotherDate1, anotherDate2)
{
return new moment(date).isBetween(new moment(anotherDate1), new moment(anotherDate2));
}
function App_isDateEqualToday(date)
{
return App_getFormatSlashDate(date) == App_getFormatSlashDate(new Date());
}
function App_isDateInEarlyMorning(date)
{
var momentDate = new moment(date);
if(momentDate.hour() == 0 && momentDate.minute() == 0 && momentDate.second() == 0) {
return true;
}
return false
}
function App_getFormatNumberString(number, format)
{
return numeral(number).format(format);
}
function App_getFormatDisplayNumberString(number, fix)
{
var format = "0,0";
if(fix != null && fix > 0) {
format += ".";
for(var i = 0; i < fix; ++i) {
format += "0";
}
}
return App_getFormatNumberString(number, format);
}
function App_getFormatDisplayNumberInMaxFractionDigitsString(number, maxFix)
{
var format = "0,0";
if(maxFix != null && maxFix > 0) {
format += "[.]";
for(var i = 0; i < maxFix; ++i) {
format += "0";
}
}
return App_getFormatNumberString(number, format);
}
function App_getUnformatNumber(number)
{
return numeral().unformat(number);
}
function App_getDisplayString(content)
{
if(!System_checkIsEmptyString(content))
{
return content;
}
return App_getNotDefinedString();
}
function App_getNotDefinedString()
{
return "--";
}
function App_omitString(content, maxLength)
{
if(content == null) {
return "";
}
if(content.length <= maxLength) {
return content;
}
return content.substr(0, maxLength) + "...";
}
function App_mergeStringArray(contents, maxLength, divider)
{
if(maxLength == null)
{
maxLength = contents.length;
}
if(divider == null)
{
divider = ", ";
}
var output = "";
for(var i = 0; i < Math.min(contents.length, maxLength); ++i) {
var content = contents[i];
if(content == null) {
continue;
}
if(i > 0) {
output += divider;
}
output += content;
}
if(contents.length > maxLength) {
//output = App_omitString(output, maxLength);
output += "...";
}
return output;
}
function App_limitImageSize(size, limitWidth, limitHeight)
{
var widthRatio = 1;
if(limitWidth != null) {
widthRatio = limitWidth / size.width;
}
var heightRatio = 1;
if(limitHeight != null) {
heightRatio = limitHeight / size.height;
}
var ratio = ((widthRatio < heightRatio) ? widthRatio : heightRatio);
ratio = Math.min(ratio, 1);
return {
width:(size.width * ratio),
height:(size.height * ratio)
};
}
function App_limitUploadImageSize(size)
{
return App_limitImageSize(size, 2048, 2048);
}
function App_checkBrowserIsIOS() {
return (/iPhone|iPad|iPod/i.test(navigator.userAgent));
}
function App_getRedirectToConsolesManageCreatePageUrl()
{
return "https://vs.cga.gg/consoles/manage/create";
}
function App_redirectToConsolesManageCreatePage()
{
window.location = App_getRedirectToConsolesManageCreatePageUrl();
}
function App_gotoConsolesManageCreatePage()
{
$.mobile.changePage(App_getRedirectToConsolesManageCreatePageUrl());
}
function App_getRedirectToConsoleManageEditPageUrl(consoleId)
{
return "https://vs.cga.gg/console/%3CconsoleId%3E/manage/edit".replace("%3CconsoleId%3E", consoleId);
}
function App_gotoConsoleManageEditPage(consoleId)
{
$.mobile.changePage(App_getRedirectToConsoleManageEditPageUrl(consoleId));
}
function App_getRedirectToCouponInfoPageUrl(id)
{
return "https://vs.cga.gg/coupon/" + id;
}
function App_redirectToCouponInfoPage(id)
{
window.location = App_getRedirectToCouponInfoPageUrl(id);
}
function App_getRedirectToCouponTypeGetPageUrl(code)
{
return "https://vs.cga.gg/coupon_type//get/" + code;
}
function App_redirectToCouponTypeGetPage(code)
{
window.location = App_getRedirectToCouponTypeGetPageUrl(code);
}
function App_getRedirectToFeedIndexPageUrl(feedId)
{
return "https://vs.cga.gg/feed/" + feedId;
}
function App_redirectToFeedIndexPage(feedId)
{
window.location = App_getRedirectToFeedIndexPageUrl(feedId);
}
function App_getRedirectToFriendFinderPageUrl()
{
return "https://vs.cga.gg/friend/finder";
}
function App_redirectToFriendFinderPage()
{
window.location = App_getRedirectToFriendFinderPageUrl();
}
function App_getRedirectToGamesManageCreatePageUrl()
{
return "https://vs.cga.gg/games/manage/create";
}
function App_redirectToGamesManageCreatePage()
{
window.location = App_getRedirectToGamesManageCreatePageUrl();
}
function App_gotoGamesManageCreatePage()
{
$.mobile.changePage(App_getRedirectToGamesManageCreatePageUrl());
}
function App_getRedirectToGameManageEditPageUrl(gameId)
{
return "https://vs.cga.gg/game/%3CgameId%3E/manage/edit".replace("%3CgameId%3E", gameId);
}
function App_gotoGameManageEditPage(gameId)
{
$.mobile.changePage(App_getRedirectToGameManageEditPageUrl(gameId));
}
function App_getRedirectToGameManageOptionEditPageUrl(gameId, optionId)
{
return "https://vs.cga.gg/game/%3CgameId%3E/manage/option/%3CoptionId%3E/edit".replace("%3CgameId%3E", gameId).replace("%3CoptionId%3E", optionId);
}
function App_gotoGameManageOptionEditPage(gameId, optionId)
{
$.mobile.changePage(App_getRedirectToGameManageOptionEditPageUrl(gameId, optionId));
}
function App_getRedirectToGameManageOptionsCreatePageUrl(gameId)
{
return "https://vs.cga.gg/game/%3CgameId%3E/manage/options/create".replace("%3CgameId%3E", gameId);
}
function App_gotoGameManageOptionsCreatePage(gameId)
{
$.mobile.changePage(App_getRedirectToGameManageOptionsCreatePageUrl(gameId));
}
function App_getRedirectToGameManageOptionsEditPageUrl(gameId, optionId)
{
return "https://vs.cga.gg/game/%3CgameId%3E/manage/option/%3CoptionId%3E/edit".replace("%3CgameId%3E", gameId).replace("%3CoptionId%3E", optionId);
}
function App_redirectToGameManageOptionsEditPage(gameId, optionId)
{
window.location = App_getRedirectToGameManageOptionsEditPageUrl(gameId, optionId);
}
function App_getRedirectToGameManageOptionIndexPageUrl(gameId)
{
return "https://vs.cga.gg/game/%3CgameId%3E/manage/options".replace("%3CgameId%3E", gameId);
}
function App_redirectToGameManageOptionIndexPage(gameId)
{
window.location = App_getRedirectToGameManageOptionIndexPageUrl(gameId);
}
function App_getRedirectToGiftcardRedeemPageUrl()
{
return "https://vs.cga.gg/giftcard/redeem";
}
function App_redirectToGiftcardRedeemPage()
{
window.location = App_getRedirectToGiftcardRedeemPageUrl();
}
function App_getRedirectToIndexPageUrl()
{
return "https://vs.cga.gg";
}
function App_redirectToIndexPage()
{
window.location = App_getRedirectToIndexPageUrl();
}
function App_gotoIndexPage()
{
$.mobile.changePage(App_getRedirectToIndexPageUrl());
}
function App_getRedirectToLadderInfoPageUrl(ladderId)
{
return "https://vs.cga.gg/ladder/" + ladderId;
}
function App_redirectToLadderInfoPage(ladderId)
{
window.location = App_getRedirectToLadderInfoPageUrl(ladderId);
}
function App_getRedirectToMatchPageUrl(matchId)
{
return "https://vs.cga.gg/match/" + matchId;
}
function App_redirectToMatchPage(matchId)
{
window.location = App_getRedirectToMatchPageUrl(matchId);
}
function App_getRedirectToShopPageUrl(shopId)
{
return "https://vs.cga.gg/shop/%3CshopId%3E".replace("%3CshopId%3E", shopId);
}
function App_redirectToShopPage(shopId)
{
window.location = App_getRedirectToShopPageUrl(shopId);
}
function App_getRedirectToShopItemPageUrl(shopId, itemId)
{
return "https://vs.cga.gg/shop/%3CshopId%3E/item/%3CitemId%3E".replace("%3CshopId%3E", shopId).replace("%3CitemId%3E", itemId);
}
function App_redirectToShopItemPage(shopId, itemId)
{
window.location = App_getRedirectToShopItemPageUrl(shopId, itemId);
}
function App_getRedirectToShopsManageCreatePageUrl()
{
return "https://vs.cga.gg/shops/manage/create";
}
function App_redirectToShopsManageCreatePage()
{
window.location = App_getRedirectToShopsManageCreatePageUrl();
}
function App_getRedirectToShopManageEditPageUrl(shopId)
{
return "https://vs.cga.gg/shop/%3CshopId%3E/manage/edit".replace("%3CshopId%3E", shopId);
}
function App_redirectToShopManageEditPage(shopId)
{
window.location = App_getRedirectToShopManageEditPageUrl(shopId);
}
function App_getRedirectToShopManageAdministratorIndexPageUrl(shopId)
{
return "https://vs.cga.gg/shop/%3CshopId%3E/manage/administrators".replace("%3CshopId%3E", shopId);
}
function App_redirectToShopManageAdministratorIndexPage(shopId)
{
window.location = App_getRedirectToShopManageAdministratorIndexPageUrl(shopId);
}
function App_getRedirectToShopManageItemCreatePageUrl(shopId)
{
return "https://vs.cga.gg/shop/%3CshopId%3E/manage/items/create".replace("%3CshopId%3E", shopId);
}
function App_redirectToShopManageItemCreatePage(shopId)
{
window.location = App_getRedirectToShopManageItemCreatePageUrl(shopId);
}
function App_getRedirectToShopManageItemEditPageUrl(shopId, itemId)
{
return "https://vs.cga.gg/shop/%3CshopId%3E/manage/item/%3CitemId%3E/edit".replace("%3CshopId%3E", shopId).replace("%3CitemId%3E", itemId);
}
function App_redirectToShopManageItemEditPage(shopId, itemId)
{
window.location = App_getRedirectToShopManageItemEditPageUrl(shopId, itemId);
}
function App_getRedirectToShopManageItemsIndexPageUrl(shopId)
{
return "https://vs.cga.gg/shop/%3CshopId%3E/manage/items".replace("%3CshopId%3E", shopId);
}
function App_redirectToShopManageItemsIndexPage(shopId)
{
window.location = App_getRedirectToShopManageItemsIndexPageUrl(shopId);
}
function App_getRedirectToShopManageOrderEditPageUrl(shopId, orderId)
{
return "https://vs.cga.gg/shop/%3CshopId%3E/manage/order/%3CorderId%3E/edit".replace("%3CshopId%3E", shopId).replace("%3CorderId%3E", orderId);
}
function App_redirectToShopManageOrderEditPage(shopId, orderId)
{
window.location = App_getRedirectToShopManageOrderEditPageUrl(shopId, orderId);
}
function App_getRedirectToShopManageOrdersPageUrl(shopId)
{
return "https://vs.cga.gg/shop/%3CshopId%3E/manage/orders".replace("%3CshopId%3E", shopId);
}
function App_redirectToShopManageOrdersPage(shopId)
{
window.location = App_getRedirectToShopManageOrdersPageUrl(shopId);
}
function App_getRedirectToShoppingcartOrderPageUrl()
{
return "https://vs.cga.gg/shoppingcart/order";
}
function App_redirectToShoppingcartOrderPage()
{
window.location = App_getRedirectToShoppingcartOrderPageUrl();
}
function App_getRedirectToUserPageUrl(userId)
{
return "https://vs.cga.gg/user/" + userId;
}
function App_redirectToUserPage(userId)
{
window.location = App_getRedirectToUserPageUrl(userId);
}
function App_goToUserPage(userId)
{
$.mobile.changePage(App_getRedirectToUserPageUrl(userId));
}
function App_getRedirectToUserCreateGettingStartedPageUrl()
{
return "https://vs.cga.gg/user/create_getting_started";
}
function App_redirectToUserCreateGettingStartedPage()
{
window.location = App_getRedirectToUserCreateGettingStartedPageUrl();
}
function App_getRedirectToUserLoginPageUrl(nextUrl, email)
{
var url = "https://vs.cga.gg/user/login";
if(!System_checkIsEmptyString(nextUrl)) {
url = System_setUrlParameter(url, "next_url", encodeURIComponent(nextUrl));
}
if(!System_checkIsEmptyString(email)) {
url = System_setUrlParameter(url, "email", encodeURIComponent(email));
}
return url;
}
function App_redirectToUserLoginPage(nextUrl, email)
{
window.location = App_getRedirectToUserLoginPageUrl(nextUrl, email);
}
function App_newWindowToUserLoginPage(nextUrl, email)
{
window.open(App_getRedirectToUserLoginPageUrl(nextUrl, email), "", "width=650,height=500");
}
function App_getRedirectToUserPhotosPageUrl(userId)
{
return "https://vs.cga.gg/user/photos/" + userId;
}
function App_redirectToUserPhotosPage(userId)
{
window.location = App_getRedirectToUserPhotosPageUrl(userId);
}
function App_getRedirectToUserSettingPageUrl()
{
return "https://vs.cga.gg/user/edit_profile";
}
function App_redirectToUserSettingPage()
{
window.location = App_getRedirectToUserSettingPageUrl();
}
function App_goToUserSettingPage()
{
$.mobile.changePage(App_getRedirectToUserSettingPageUrl());
}
function App_getRedirectToUserSettingPageContactTagUrl()
{
return App_getRedirectToUserSettingPageUrl() + "#contact";
}
function App_redirectToUserSettingPageContactTag()
{
window.location = App_getRedirectToUserSettingPageContactTagUrl();
}
function App_getRedirectToUserSettingPageProfilePhotoTagUrl()
{
return App_getRedirectToUserSettingPageUrl() + "#profile_photo";
}
function App_redirectToUserSettingPageProfilePhotoTag()
{
window.location = App_getRedirectToUserSettingPageProfilePhotoTagUrl();
}
function App_getRedirectToUserSettingPageSetGameTagUrl()
{
return App_getRedirectToUserSettingPageUrl() + "#set_game";
}
function App_redirectToUserSettingPageSetGameTag()
{
window.location = App_getRedirectToUserSettingPageSetGameTagUrl();
}
function App_getRedirectToUserResetPasswordPageUrl()
{
return "https://vs.cga.gg/user/reset_password";
}
function App_redirectToUserResetPasswordPage()
{
window.location = App_getRedirectToUserResetPasswordPageUrl();
}
function App_getRedirectToUserEditProfilePageUrl()
{
return "https://vs.cga.gg/user/edit_profile";
}
function App_redirectToUserEditProfilePage()
{
window.location = App_getRedirectToUserEditProfilePageUrl();
}
function App_getRedirectToUserEditProfilePageLiveTagUrl()
{
return App_getRedirectToUserEditProfilePageUrl() + "#live";
}
function App_gotoUserEditProfilePageLiveTag()
{
//$.mobile.changePage(App_getRedirectToUserEditProfilePageLiveTagUrl());
$.mobile.changePage(App_getRedirectToUserEditProfilePageLiveTagUrl(), {changeHash:false});
window.history.pushState({}, null, App_getRedirectToUserEditProfilePageLiveTagUrl());
}
function App_getRedirectToTeamPageUrl()
{
return "https://vs.cga.gg/team";
}
function App_redirectToTeamPage()
{
window.location = App_getRedirectToTeamPageUrl();
}
function App_getRedirectToTeamPageReceivedRequestTagUrl(tournamentId)
{
return App_getRedirectToTeamPageUrl() + "#received_request";
}
function App_redirectToTeamPageReceivedRequestTag()
{
window.location = App_getRedirectToTeamPageReceivedRequestTagUrl();
}
function App_gotoTeamPageReceivedRequestTag()
{
//$.mobile.changePage(App_getRedirectToTeamPageReceivedRequestTagUrl());
$.mobile.changePage(App_getRedirectToTeamPageReceivedRequestTagUrl(), {changeHash:false});
window.history.pushState({}, null, App_getRedirectToTeamPageReceivedRequestTagUrl());
}
function App_getRedirectToTeamCreatePageUrl()
{
return "https://vs.cga.gg/team/create";
}
function App_redirectToTeamCreatePage()
{
window.location = App_getRedirectToTeamCreatePageUrl();
}
function App_goToTeamCreatePage()
{
$.mobile.changePage(App_getRedirectToTeamCreatePageUrl());
}
function App_getRedirectToTeamCreatePageUrlWithNextUrl(nextUrl)
{
var url = App_getRedirectToTeamCreatePageUrl();
if(!System_checkIsEmptyString(nextUrl)) {
url = System_setUrlParameter(url, "next_url", encodeURIComponent(nextUrl));
}
return url;
}
function App_redirectToTeamCreatePageWithNextUrl(nextUrl)
{
window.location = App_getRedirectToTeamCreatePageUrlWithNextUrl(nextUrl);
}
function App_getRedirectToTeamCreateGettingStartedPageUrl(teamId)
{
return "https://vs.cga.gg/team/create_getting_started/" + teamId;
}
function App_redirectToTeamCreateGettingStartedPage(teamId)
{
window.location = App_getRedirectToTeamCreateGettingStartedPageUrl(teamId);
}
function App_gotoTeamCreateGettingStartedPage(teamId)
{
$.mobile.changePage(App_getRedirectToTeamCreateGettingStartedPageUrl(teamId));
}
function App_getRedirectToTeamInfoPageUrl(teamId)
{
return "https://vs.cga.gg/team/" + teamId;
}
function App_redirectToTeamInfoPage(teamId)
{
window.location = App_getRedirectToTeamInfoPageUrl(teamId);
}
function App_gotoTeamInfoPage(teamId)
{
$.mobile.changePage(App_getRedirectToTeamInfoPageUrl(teamId));
}
function App_getRedirectToTournamentInfoPageUrl(tournamentId)
{
return "https://vs.cga.gg/tournament/" + tournamentId;
}
function App_redirectToTournamentInfoPage(tournamentId)
{
window.location = App_getRedirectToTournamentInfoPageUrl(tournamentId);
}
function App_getRedirectToTournamentInfoPageKnockoutStageTagUrl(tournamentId)
{
return App_getRedirectToTournamentInfoPageUrl(tournamentId) + "#knockout_stage";
}
function App_redirectToTournamentInfoPageKnockoutStageTag(tournamentId)
{
window.location = App_getRedirectToTournamentInfoPageKnockoutStageTagUrl(tournamentId);
}
function App_getRedirectToTournamentInfoPageSignupTagUrl(tournamentId)
{
return App_getRedirectToTournamentInfoPageUrl(tournamentId) + "#signup";
}
function App_redirectToTournamentInfoPageSignupTag(tournamentId)
{
window.location = App_getRedirectToTournamentInfoPageSignupTagUrl(tournamentId);
}
function App_getRedirectToTournamentSignupPayPaymePageUrl(tournamentId)
{
return "https://vs.cga.gg/tournament/%3CtournamentId%3E/signup/pay/payme".replace("%3CtournamentId%3E", tournamentId);
}
function App_redirectToTournamentSignupPayPaymePage(tournamentId)
{
window.location = App_getRedirectToTournamentSignupPayStripePageUrl(tournamentId);
}
function App_getRedirectToTournamentSignupPayStripePageUrl(tournamentId)
{
return "https://vs.cga.gg/tournament/%3CtournamentId%3E/signup/pay/stripe".replace("%3CtournamentId%3E", tournamentId);
}
function App_redirectToTournamentSignupPayStripePage(tournamentId)
{
window.location = App_getRedirectToTournamentSignupPayStripePageUrl(tournamentId);
}
function App_getRedirectToTournamentManageBracketsCreatePageUrl(tournamentId)
{
return "https://vs.cga.gg/tournament/%3CtournamentId%3E/manage/brackets/create".replace("%3CtournamentId%3E", tournamentId);
}
function App_redirectToTournamentManageBracketsCreatePage(tournamentId)
{
window.location = App_getRedirectToTournamentManageBracketsCreatePageUrl(tournamentId);
}
function App_gotoTournamentManageBracketsCreatePage(tournamentId)
{
$.mobile.changePage(App_getRedirectToTournamentManageBracketsCreatePageUrl(tournamentId));
}
function App_getRedirectToTournamentManageBracketEditPageUrl(tournamentId, bracketId)
{
return "https://vs.cga.gg/tournament/%3CtournamentId%3E/manage/bracket/%3CbracketId%3E/edit".replace("%3CtournamentId%3E", tournamentId).replace("%3CbracketId%3E", bracketId);
}
function App_redirectToTournamentManageBracketEditPage(tournamentId, bracketId)
{
window.location = App_getRedirectToTournamentManageBracketEditPageUrl(tournamentId, bracketId);
}
function App_getRedirectToTournamentManageBracketIndexPage(tournamentId)
{
return "https://vs.cga.gg/tournament/%3CtournamentId%3E/manage/brackets".replace("%3CtournamentId%3E", tournamentId);
}
function App_redirectToTournamentManageBracketIndexPage(tournamentId)
{
window.location = App_getRedirectToTournamentManageBracketIndexPage(tournamentId);
}
function App_getRedirectToTournamentManageAdministratorIndexPage(tournamentId)
{
return "https://vs.cga.gg/tournament/%3CtournamentId%3E/manage/administrators".replace("%3CtournamentId%3E", tournamentId);
}
function App_redirectToTournamentManageAdministratorIndexPage(tournamentId)
{
window.location = App_getRedirectToTournamentManageAdministratorIndexPage(tournamentId);
}
function App_getRedirectToTournamentManageCompetitorEditPage(tournamentId, competitorId)
{
return "https://vs.cga.gg/tournament/%3CtournamentId%3E/manage/competitor/%3CcompetitorId%3E/edit".replace("%3CtournamentId%3E", tournamentId).replace("%3CcompetitorId%3E", competitorId);
}
function App_redirectToTournamentManageCompetitorEditPage(tournamentId, competitorId)
{
window.location = App_getRedirectToTournamentManageCompetitorEditPage(tournamentId, competitorId);
}
function App_getRedirectToTournamentManageCompetitorEditTeamMatchPlayersPageUrl(tournamentId, competitorId)
{
return "https://vs.cga.gg/tournament/%3CtournamentId%3E/manage/competitor/%3CcompetitorId%3E/edit_team_match_players".replace("%3CtournamentId%3E", tournamentId).replace("%3CcompetitorId%3E", competitorId);
}
function App_redirectToTournamentManageCompetitorEditTeamMatchPlayersPage(tournamentId, competitorId)
{
window.location = App_getRedirectToTournamentManageCompetitorEditTeamMatchPlayersPageUrl(tournamentId, competitorId);
}
function App_getRedirectToTournamentManageCompetitorIndexPage(tournamentId)
{
return "https://vs.cga.gg/tournament/%3CtournamentId%3E/manage/competitors".replace("%3CtournamentId%3E", tournamentId);
}
function App_redirectToTournamentManageCompetitorIndexPage(tournamentId)
{
window.location = App_getRedirectToTournamentManageCompetitorIndexPage(tournamentId);
}
function App_gotoTournamentManageCompetitorIndexPage(tournamentId)
{
$.mobile.changePage(App_getRedirectToTournamentManageCompetitorIndexPage(tournamentId));
}
function App_getRedirectToTournamentManageCompetitorIndexPageSpecificDivisionTag(tournamentId, specificDivisionId)
{
return App_getRedirectToTournamentManageCompetitorIndexPage(tournamentId) + "#division_" + specificDivisionId;
}
function App_redirectToTournamentManageCompetitorIndexPageSpecificDivisionTag(tournamentId, specificDivisionId)
{
window.location = App_getRedirectToTournamentManageCompetitorIndexPageSpecificDivisionTag(tournamentId, specificDivisionId);
}
function App_getRedirectToTournamentsManageCreatePage(gameId, refTournamentId)
{
var url = "https://vs.cga.gg/tournaments/manage/create";
if(!System_checkIsEmptyString(gameId)) {
url = System_setUrlParameter(url, "game_id", encodeURIComponent(gameId));
}
if(!System_checkIsEmptyString(refTournamentId)) {
url = System_setUrlParameter(url, "ref_tournament_id", encodeURIComponent(refTournamentId));
}
return url;
}
function App_redirectToTournamentsManageCreatePage(gameId)
{
window.location = App_getRedirectToTournamentsManageCreatePage(gameId);
}
function App_gotoTournamentsManageCreatePage(gameId)
{
$.mobile.changePage(App_getRedirectToTournamentsManageCreatePage(gameId));
}
function App_getRedirectToTournamentManageEditPage(tournamentId)
{
return "https://vs.cga.gg/tournament/%3CtournamentId%3E/manage/edit".replace("%3CtournamentId%3E", tournamentId);
}
function App_redirectToTournamentManageEditPage(tournamentId)
{
window.location = App_getRedirectToTournamentManageEditPage(tournamentId);
}
function App_getRedirectToAjaxPublicCompetitorExtraConfigPageUrl(tournamentId, partyId)
{
return "https://vs.cga.gg/tournament/ajax_public_competitor_extra_config?tournament_id=" + tournamentId + "&party_id=" + partyId;
}
function App_redirectToFacebookAuthorizationPage()
{
window.location = "https:\/\/www.facebook.com\/v2.10\/dialog\/oauth?client_id=983638428444395&state=b24ad57a793f42cfd24af4be5beaa4c8&response_type=code&sdk=php-sdk-5.6.1&redirect_uri=https%3A%2F%2Fvs.cga.gg%2Fexternal%2Ffacebook%2Flogin&scope=email";
}
function App_redirectToTwitchAuthorizationPage()
{
window.location = "https:\/\/id.twitch.tv\/oauth2\/authorize?response_type=code&client_id=k34e0llydgfgoaols2hujqvqeqjiv5&redirect_uri=https:\/\/vs.cga.gg\/external\/twitch\/login&scope=user:read:email+viewing_activity_read";
}
function App_newWindowForImgSrc(src)
{
var newWindow = window.open();
/*
newWindow.document.body.innerHTML = '';
newWindow.document.body.style.background = '#0e0e0e';
newWindow.document.body.style.margin = '0';
newWindow.document.body.style.padding = '0';
newWindow.document.body.style.textAlign = 'center';
*/
newWindow.document.open();
newWindow.document.write('
' + ' | '; } html += ' | ' +
' ' + (!System_checkIsEmptyString(title)?title:"") + ' ' +
'' + (!System_checkIsEmptyString(content)?content:"") + ' ' +
' | ' +
'