coderpetro commited on
Commit
b92d917
·
verified ·
1 Parent(s): 26cf726

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -55,8 +55,8 @@ def web_ui():
55
  <div class="subtitle">Secure high-speed query routing system by coderpetro</div>
56
 
57
  <div class="tabs">
58
- <button class="tab-btn active" onclick="switchTab('tg')">TG to Number</button>
59
- <button class="tab-btn" onclick="switchTab('num')">Number to TG</button>
60
  </div>
61
 
62
  <div class="input-group">
@@ -80,7 +80,7 @@ def web_ui():
80
  <script>
81
  let currentMode = 'tg';
82
 
83
- function switchTab(mode) {
84
  currentMode = mode;
85
  document.querySelectorAll('.tab-btn').forEach(btn => btn.classList.remove('active'));
86
  event.target.classList.add('active');
@@ -172,7 +172,6 @@ def telegram_to_number(
172
  except Exception as e:
173
  raise HTTPException(status_code=500, detail=str(e))
174
 
175
-
176
  # ==========================================
177
  # ROUTE 3: PHONE NUMBER TO TELEGRAM ID (NUM TO TG)
178
  # ==========================================
 
55
  <div class="subtitle">Secure high-speed query routing system by coderpetro</div>
56
 
57
  <div class="tabs">
58
+ <button class="tab-btn active" onclick="switchTab('tg', event)">TG to Number</button>
59
+ <button class="tab-btn" onclick="switchTab('num', event)">Number to TG</button>
60
  </div>
61
 
62
  <div class="input-group">
 
80
  <script>
81
  let currentMode = 'tg';
82
 
83
+ function switchTab(mode, event) {
84
  currentMode = mode;
85
  document.querySelectorAll('.tab-btn').forEach(btn => btn.classList.remove('active'));
86
  event.target.classList.add('active');
 
172
  except Exception as e:
173
  raise HTTPException(status_code=500, detail=str(e))
174
 
 
175
  # ==========================================
176
  # ROUTE 3: PHONE NUMBER TO TELEGRAM ID (NUM TO TG)
177
  # ==========================================