diff --git a/webdriver/Maxbotplus_1.0.0/js/cityline_msg_front.js b/webdriver/Maxbotplus_1.0.0/js/cityline_msg_front.js
index 018d1f5..8d9052a 100644
--- a/webdriver/Maxbotplus_1.0.0/js/cityline_msg_front.js
+++ b/webdriver/Maxbotplus_1.0.0/js/cityline_msg_front.js
@@ -1,22 +1,73 @@
-function goEvent(){
- if(urlThrottler.indexOf('https://event.cityline.com/')>-1) {
- window.location.href = urlThrottler;
- } else {
- document.getElementById("multiple_tab_layout").innerHTML = 'start to retry';
-
- var ddsScheduler = undefined;
- var retryingMsg = "重試中...
Retrying...";
- var retryingMsg2 = "重試中... Retrying...";
- var enableAutoRetry = true;
- var remainTime = 10;
- var enableButtonTime = 7;
-
- document.getElementById("busy_zone").innerHTML = '';
- setTimeout(startCountDownTimer, 1000);
- }
-
+function getHtmlDocName() {
+ var pathname = location.pathname;
+ var pathParts = pathname.split('/');
+ if(pathParts.length >= 3) return pathParts[2];
+ return null;
}
+function goToCityline(){
+ window.location="https://www.cityline.com";
+}
+
+function setRetryUrl(requestUrl){
+ urlThrottler = requestUrl;
+}
+
+function startCountDownTimer() {
+ setRetryUrl(window.location.href);
+
+ if (enableAutoRetry){
+ setRemainTime(remainTime);
+ if (ddsScheduler == undefined) {
+ ddsScheduler = setInterval(function(){
+ updateRemainTime();
+ }, 1000);
+ }
+ }else{
+ document.getElementById("remainTime1").innerHTML = '';
+ $('#btn-retry-en-1').removeAttr('disabled');
+ }
+}
+
+function setRemainTime(sec) {
+ document.getElementById("remainTime1").innerHTML = '(' +sec+ ')';
+}
+
+function goEvent(){
+ window.location.href = urlThrottler;
+}
+
+/*
+function goEvent(){
+ if(urlThrottler) {
+ if(window.location.href.indexOf("https://msg.cityline.com/") > -1) {
+ if(urlThrottler == "https://event.cityline.com") {
+ if(window.location.href.indexOf("?") > -1) {
+ urlThrottler = "https://event.cityline.com/queue?" + window.location.href.split("?")[1];
+ }
+ document.getElementById("multiple_tab_layout").innerHTML = '';
+ $('#busy_zone').removeClass('d-none')
+ document.getElementById("busy_zone").innerHTML = '