nicehero commited on
Commit
ca4fb5b
·
verified ·
1 Parent(s): a2ecadc

Upload mask.html

Browse files
Files changed (1) hide show
  1. mask.html +8 -8
mask.html CHANGED
@@ -126,17 +126,17 @@
126
  </label>
127
  </div>
128
  <div id="circle" style="width: 20px; height: 20px; border-radius: 50%; border: 2px solid red;"></div>
129
- <script src="https://telegram.org/js/telegram-web-app.js"></script>
130
  <script>
131
  // Init TWA
132
- Telegram.WebApp.ready();
133
- Telegram.WebApp.expand();
134
- Telegram.WebApp.enableClosingConfirmation()
135
- Telegram.WebApp.HapticFeedback.impactOccurred("medium");
136
  // Event occurs whenever theme settings are changed in the user's Telegram app (including switching to night mode).
137
- Telegram.WebApp.onEvent('themeChanged', function() {
138
- document.documentElement.className = Telegram.WebApp.colorScheme;
139
- });
140
  window.onload = function() {
141
  var canvas = document.getElementById('canvas');
142
  var context = canvas.getContext('2d');
 
126
  </label>
127
  </div>
128
  <div id="circle" style="width: 20px; height: 20px; border-radius: 50%; border: 2px solid red;"></div>
129
+ <!-- <script src="https://telegram.org/js/telegram-web-app.js"></script> -->
130
  <script>
131
  // Init TWA
132
+ //Telegram.WebApp.ready();
133
+ //Telegram.WebApp.expand();
134
+ //Telegram.WebApp.enableClosingConfirmation()
135
+ //Telegram.WebApp.HapticFeedback.impactOccurred("medium");
136
  // Event occurs whenever theme settings are changed in the user's Telegram app (including switching to night mode).
137
+ //Telegram.WebApp.onEvent('themeChanged', function() {
138
+ // document.documentElement.className = Telegram.WebApp.colorScheme;
139
+ //});
140
  window.onload = function() {
141
  var canvas = document.getElementById('canvas');
142
  var context = canvas.getContext('2d');