Fix: ads -> cm_time

This commit is contained in:
2022-05-16 23:02:48 +09:00
parent 7e1669cc51
commit 13f3928f7d
14 changed files with 14 additions and 27 deletions
@@ -1,7 +1,7 @@
var Ads = {
var CmTime = {
preload: function() {
game.load.image('ads_image', '../../../resources/image/ads/mental_abacus_banner.png');
game.load.image('cm_time_image', '../../../resources/image/cm_time/mental_abacus_banner.png');
},
create: function() {
@@ -26,7 +26,7 @@ var Ads = {
this.getFontStyle(32, "#888"))
.anchor.set(0.5);
var sprite = game.add.sprite(game.world.centerX, game.world.centerY, "ads_image");
var sprite = game.add.sprite(game.world.centerX, game.world.centerY, "cm_time_image");
sprite.anchor.set(0.5);
var width = sprite.width;
var height = sprite.height;
@@ -1,13 +1,12 @@
/////////////////////////////
// Main game
var CONTENT_ID = "Ads";
var CONTENT_ID = "CmTime";
var game = new Phaser.Game(
GAME_SCREEN_SIZE.x, GAME_SCREEN_SIZE.y,
Phaser.CANVAS, CONTENT_ID
);
game.state.add('Ads', Ads);
game.state.start('Ads');
game.state.add('CmTime', CmTime);
game.state.start('CmTime');
+1 -1
View File
@@ -84,7 +84,7 @@ GameAppButton.prototype.clickEvent = function() {
sessionStorageManager.setPlayingAppKoreanName(this.appInfo.KoreanName);
if(isExperiencePlayerAccount())
location.href = '../../web/client/ads.html';
location.href = '../../web/client/cm_time.html';
else
location.href = '../../web/client/start.html';
}
+1 -1
View File
@@ -96,7 +96,7 @@ TypingAppButton.prototype.clickEvent = function() {
sessionStorageManager.setPlayingAppKoreanName(this.appInfo.KoreanName);
if(isExperiencePlayerAccount())
location.href = '../../web/client/ads.html';
location.href = '../../web/client/cm_time.html';
else
location.href = '../../web/client/start.html';
}
+1 -1
View File
@@ -158,7 +158,7 @@ PlayAppButton.prototype.clickEvent = function() {
sessionStorageManager.setPlayingAppKoreanName(this.appData.koreanName);
if(isExperiencePlayerAccount())
location.href = '../../web/client/ads.html';
location.href = '../../web/client/cm_time.html';
else
location.href = '../../web/client/start.html';
}
@@ -249,7 +249,7 @@ TypingAppButton.prototype.clickEvent = function() {
sessionStorageManager.setPlayingAppKoreanName(this.appData.koreanName);
if(isExperiencePlayerAccount())
location.href = '../../web/client/ads.html';
location.href = '../../web/client/cm_time.html';
else
location.href = '../../web/client/start.html';
}
@@ -212,7 +212,7 @@ TypingExamButton.prototype.clickEvent = function() {
sessionStorageManager.setWritingID(this.writingID);
if(isExperiencePlayerAccount())
location.href = '../../web/client/ads.html';
location.href = '../../web/client/cm_time.html';
else
location.href = '../../web/client/start.html';
}
@@ -52,8 +52,8 @@
<script src="../../game/lib/chart.js"></script>
<!-- source files -->
<script src="../../game/ads/ads.js"></script>
<script src="../../game/ads/main.js"></script>
<script src="../../game/cm_time/cm_time.js"></script>
<script src="../../game/cm_time/main.js"></script>
<style>
@@ -67,18 +67,6 @@
}
</style>
<!-- Google Admob
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "ca-pub-1331753663238060",
enable_page_level_ads: true
});
</script>
-->
<script>
$(document).ready(function() {
$('#client_refresh').load("./../module/client_refresh.html");
@@ -88,7 +76,7 @@
</head>
<body>
<div id="Ads" style="text-align:center;"></div>
<div id="CmTime" style="text-align:center;"></div>
<div id="client_refresh"></div>
</body>
</html>