2022-11-22 15:24:12 +07:00
|
|
|
Var MainfileSize = 0
|
2023-03-26 21:19:33 +07:00
|
|
|
DEBUGVAR BoxID
|
2023-11-10 16:05:27 +07:00
|
|
|
Var EventMatch = 0
|
2023-03-26 21:19:33 +07:00
|
|
|
|
2024-07-23 18:01:51 +07:00
|
|
|
Var EventMatch = 1
|
2023-06-15 09:56:20 +07:00
|
|
|
|
2023-12-20 11:15:09 +07:00
|
|
|
DEBUGVAR EventMatch
|
2023-11-10 16:05:27 +07:00
|
|
|
|
|
|
|
|
If EventMatch = 1 Then
|
2024-07-23 18:01:51 +07:00
|
|
|
Var WebAppShow = "Invisible"
|
|
|
|
|
|
2023-10-16 17:50:32 +07:00
|
|
|
GetFileSizeK "taobin_project/video/main_page_event.mp4" MainfileSize
|
|
|
|
|
DEBUGVAR MainfileSize
|
2024-11-01 10:39:22 +07:00
|
|
|
If MainfileSize = 10634530 Then
|
2024-07-25 17:49:10 +07:00
|
|
|
|
|
|
|
|
Var CurrentMainVideoTemp = 1
|
|
|
|
|
Var CountDownShowButton = 0
|
|
|
|
|
;Var MainPageEventWithTimeout = 25
|
|
|
|
|
Var ShowButtonClickFull = "Invisible"
|
|
|
|
|
|
|
|
|
|
Var img_rest_main_page = "ROOT/taobin_project/image/main_page/bn_main_page_start.png"
|
|
|
|
|
Var MemberButtonFileNameRest = "ROOT/taobin_project/image/main_page/bn_main_page_member.png"
|
|
|
|
|
Var img_reset_topup = "ROOT/taobin_project/image/main_page/bn_main_page_topup.png"
|
|
|
|
|
|
2024-11-18 10:38:51 +07:00
|
|
|
Var VideoMainPage = "ROOT/taobin_project/video/main_page_event.mp4"
|
2024-07-25 17:49:10 +07:00
|
|
|
|
2023-10-27 09:48:13 +07:00
|
|
|
If CocktailShow = "true" Then
|
|
|
|
|
|
|
|
|
|
Else
|
|
|
|
|
Var EventTurnOn = 1
|
|
|
|
|
EndIf
|
2023-02-03 19:08:51 +07:00
|
|
|
EndIf
|
2023-10-16 17:50:32 +07:00
|
|
|
EndIf
|
2023-03-28 14:44:43 +07:00
|
|
|
|
2024-11-20 15:07:07 +07:00
|
|
|
|
2024-12-04 22:18:22 +07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
If SystemDateMonthInt = 11 Then
|
|
|
|
|
|
|
|
|
|
Var EDC_ThailandOn = 1
|
|
|
|
|
|
|
|
|
|
If SystemDateDayInt > 20 Then
|
|
|
|
|
Var PremiumTriosEnable = 1
|
|
|
|
|
Var GiftNewYearEnable = 1
|
|
|
|
|
EndIf
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
If SystemDateMonthInt = 12 Then
|
|
|
|
|
|
|
|
|
|
Var EDC_ThailandOn = 1
|
|
|
|
|
Var GiftNewYearEnable = 1
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
If SystemDateMonthInt = 1 Then
|
|
|
|
|
If SystemDateDayInt < 20 Then
|
|
|
|
|
Var EDC_ThailandOn = 1
|
|
|
|
|
EndIf
|
|
|
|
|
If SystemDateDayInt < 16 Then
|
|
|
|
|
Var GiftNewYearEnable = 1
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Var MainAdvertiseRunSlot = 0
|
|
|
|
|
|
|
|
|
|
If MainAdvertiseShowSlot = "" Then
|
|
|
|
|
Var MainAdvertiseShowSlot = 0
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
If brewing_adv11_long_size = "" Then
|
|
|
|
|
GetFileSizeK "taobin_project/video/brewing_adv11_long.mp4" brewing_adv11_long_size
|
2024-11-20 15:07:07 +07:00
|
|
|
EndIf
|
2024-12-04 22:18:22 +07:00
|
|
|
DEBUGVAR brewing_adv11_long_size
|
|
|
|
|
If brewing_adv11_long_size = 8233782 Then
|
2024-12-04 14:24:00 +07:00
|
|
|
If WinterWonderPro = 1 Then
|
2024-11-25 17:16:16 +07:00
|
|
|
|
2024-12-04 22:18:22 +07:00
|
|
|
Var MainAdvertiseFileName[MainAdvertiseRunSlot] = "ROOT/taobin_project/video/brewing_adv11_long.mp4"
|
|
|
|
|
Var MainAdvertiseVideoEnd[MainAdvertiseRunSlot] = 0
|
|
|
|
|
Var EventTurnOn = 1
|
|
|
|
|
Var MainAdvertiseRunSlot = MainAdvertiseRunSlot + 1
|
|
|
|
|
EndIf
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
|
2024-12-23 18:09:03 +07:00
|
|
|
|
|
|
|
|
If brewing_adv13_long_size = "" Then
|
|
|
|
|
GetFileSizeK "taobin_project/video/brewing_adv13_long.mp4" brewing_adv13_long_size
|
|
|
|
|
EndIf
|
|
|
|
|
DEBUGVAR brewing_adv13_long_size
|
|
|
|
|
If brewing_adv13_long_size = 3789806 Then
|
|
|
|
|
If StrawberrySeriesPro = 1 Then
|
|
|
|
|
|
|
|
|
|
Var MainAdvertiseFileName[MainAdvertiseRunSlot] = "ROOT/taobin_project/video/brewing_adv13_long.mp4"
|
|
|
|
|
Var MainAdvertiseVideoEnd[MainAdvertiseRunSlot] = 0
|
|
|
|
|
Var EventTurnOn = 1
|
|
|
|
|
Var MainAdvertiseRunSlot = MainAdvertiseRunSlot + 1
|
|
|
|
|
EndIf
|
2024-12-04 22:18:22 +07:00
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
|
2024-12-23 18:09:03 +07:00
|
|
|
If brewing_adv21_long_size = "" Then
|
|
|
|
|
GetFileSizeK "taobin_project/video/brewing_adv21_long.mp4" brewing_adv21_long_size
|
|
|
|
|
EndIf
|
2024-12-04 22:18:22 +07:00
|
|
|
DEBUGVAR brewing_adv21_long_size
|
|
|
|
|
If brewing_adv21_long_size = 6507746 Then
|
|
|
|
|
If ThickTeaByBrewerPro = 1 Then
|
|
|
|
|
|
|
|
|
|
Var MainAdvertiseFileName[MainAdvertiseRunSlot] = "ROOT/taobin_project/video/brewing_adv21_long.mp4"
|
|
|
|
|
Var MainAdvertiseVideoEnd[MainAdvertiseRunSlot] = 1
|
|
|
|
|
|
|
|
|
|
Var EventTurnOn = 1
|
|
|
|
|
Var MainAdvertiseRunSlot = MainAdvertiseRunSlot + 1
|
2024-11-18 10:38:51 +07:00
|
|
|
|
2024-11-26 21:56:59 +07:00
|
|
|
Var EventTurnOn = 1
|
2024-11-18 10:38:51 +07:00
|
|
|
EndIf
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
|
2024-12-04 22:18:22 +07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
If brewing_adv16_size = "" Then
|
|
|
|
|
GetFileSizeK "taobin_project/video/brewing_adv16.mp4" brewing_adv16_size
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DEBUGVAR brewing_adv16_size
|
|
|
|
|
If brewing_adv16_size = 7422861 Then
|
|
|
|
|
If GiftNewYearEnable = 1 Then
|
|
|
|
|
Var MainAdvertiseFileName[MainAdvertiseRunSlot] = "ROOT/taobin_project/video/brewing_adv16.mp4"
|
|
|
|
|
Var MainAdvertiseVideoEnd[MainAdvertiseRunSlot] = 0
|
|
|
|
|
|
|
|
|
|
Var EventTurnOn = 1
|
|
|
|
|
Var MainAdvertiseRunSlot = MainAdvertiseRunSlot + 1
|
|
|
|
|
|
|
|
|
|
EndIf
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;
|
|
|
|
|
;
|
|
|
|
|
;
|
|
|
|
|
;
|
|
|
|
|
;
|
|
|
|
|
;
|
|
|
|
|
; final call
|
|
|
|
|
; Protect edge of promotion.
|
|
|
|
|
If MainAdvertiseShowSlot < MainAdvertiseRunSlot Then
|
|
|
|
|
Var VideoMainPage = MainAdvertiseFileName[MainAdvertiseShowSlot]
|
|
|
|
|
If MainAdvertiseVideoEnd[MainAdvertiseShowSlot] = 0 Then
|
|
|
|
|
Var CountDownPauseVideoEnable = "ignore"
|
|
|
|
|
Else
|
|
|
|
|
Var CountDownPauseVideoEnable = ""
|
|
|
|
|
EndIf
|
|
|
|
|
Var MainAdvertiseShowSlot = MainAdvertiseShowSlot + 1
|
|
|
|
|
Else
|
|
|
|
|
Var MainAdvertiseShowSlot = 0
|
|
|
|
|
Var VideoMainPage = MainAdvertiseFileName[MainAdvertiseShowSlot]
|
|
|
|
|
If MainAdvertiseVideoEnd[MainAdvertiseShowSlot] = 0 Then
|
|
|
|
|
Var CountDownPauseVideoEnable = "ignore"
|
|
|
|
|
Else
|
|
|
|
|
Var CountDownPauseVideoEnable = ""
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
DEBUGVAR MainAdvertiseRunSlot
|
|
|
|
|
DEBUGVAR MainAdvertiseShowSlot
|
|
|
|
|
|
|
|
|
|
DEBUGVAR VideoMainPage
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-10-16 17:50:32 +07:00
|
|
|
If EventTurnOn = 1 Then
|
2024-12-04 14:24:00 +07:00
|
|
|
Var CurrentMainVideoTemp = 1
|
|
|
|
|
;Var MainPageEventWithTimeout = 25
|
|
|
|
|
Var ShowButtonClickFull = "Invisible"
|
|
|
|
|
|
|
|
|
|
Var img_rest_main_page = "ROOT/taobin_project/image/main_page/bn_main_page_start.png"
|
|
|
|
|
Var MemberButtonFileNameRest = "ROOT/taobin_project/image/main_page/bn_main_page_member.png"
|
|
|
|
|
Var img_reset_topup = "ROOT/taobin_project/image/main_page/bn_main_page_topup.png"
|
|
|
|
|
|
|
|
|
|
|
2023-10-16 17:50:32 +07:00
|
|
|
Var CountDownShowButton = 0
|
2024-11-26 21:56:59 +07:00
|
|
|
Var ShowButtonClick = "Enable"
|
2023-10-16 17:50:32 +07:00
|
|
|
Var ShowButtonClickFull = "Invisible"
|
2024-11-18 10:38:51 +07:00
|
|
|
|
2022-11-22 15:24:12 +07:00
|
|
|
EndIf
|
2024-03-24 14:37:28 +07:00
|
|
|
|
|
|
|
|
|
2024-07-23 18:01:51 +07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-12 10:35:27 +07:00
|
|
|
If taobin_notopup = "true" Then
|
|
|
|
|
GetFileSizeK "taobin_project/video/_main_page_notopup.mp4" MainfileSize
|
|
|
|
|
DEBUGVAR MainfileSize
|
|
|
|
|
If MainfileSize > 0 Then
|
|
|
|
|
Var VideoMainPage = "ROOT/taobin_project/video/_main_page_notopup.mp4"
|
|
|
|
|
EndIf
|
|
|
|
|
EndIf
|