ソースを参照

add close modal

huaisian 3 年 前
コミット
8a098841cc
2 ファイル変更9 行追加1 行削除
  1. 6 1
      js/index.js
  2. 3 0
      js/index_match.js

+ 6 - 1
js/index.js

@@ -57,6 +57,9 @@ function detectBrowser(agent){
     console.log(isSafari);
   }
 
+var myModal = new bootstrap.Modal(document.getElementById('matchModal'), {
+    keyboard: false
+})
 
     function renderSec00(data) {
         let temp = data[0]['data'];
@@ -696,6 +699,7 @@ $('.match__next2').click(function() {
                 console.error(error)
             }
         })
+        myModal.hide();
        window.open('./index_match.html');
     }
     
@@ -708,7 +712,7 @@ $('.last-step').click(function() {
 });
 
 function submit() {
-
+    
     if ($('#name').val() == '') {
         $('#name-error').text('請填寫您的姓名');
         stop = 1;
@@ -846,3 +850,4 @@ $('.check-click').click(function(e) {
 })
 
 
+

+ 3 - 0
js/index_match.js

@@ -655,3 +655,6 @@ $('.match__next').click(function() {
 $('.close').click(function () {
     window.close();
 })
+
+
+console.log('hii');