mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2025-03-13 20:47:57 +01:00
Update content of files
This commit is contained in:
parent
193b280ab2
commit
a3d25cf69d
3 changed files with 13 additions and 3 deletions
|
@ -9,7 +9,7 @@
|
|||
<meta name="MobileOptimized" content="176" />
|
||||
<meta name="HandheldFriendly" content="True" />
|
||||
<meta name="robots" content="noindex, nofollow" />
|
||||
<script src="https://tg.dev/js/telegram-web-app-beta.js?74"></script>
|
||||
<script src="https://tg.dev/js/telegram-web-app-beta.js?76"></script>
|
||||
<script>
|
||||
function setThemeClass() {
|
||||
document.documentElement.className = Telegram.WebApp.colorScheme;
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<meta name="MobileOptimized" content="176" />
|
||||
<meta name="HandheldFriendly" content="True" />
|
||||
<meta name="robots" content="noindex,nofollow" />
|
||||
<script src="https://tg.dev/js/telegram-web-app-beta.js?74"></script>
|
||||
<script src="https://tg.dev/js/telegram-web-app-beta.js?76"></script>
|
||||
<script>
|
||||
function setThemeClass() {
|
||||
document.documentElement.className = Telegram.WebApp.colorScheme;
|
||||
|
@ -36,6 +36,7 @@
|
|||
<button onclick="DemoApp.toggleButtonsProgress(this);">Show Progress</button>
|
||||
<button onclick="DemoApp.toggleSwipeBehavior(this);">Disable Vertical Swypes</button>
|
||||
<button id="fullscreen_btn" onclick="DemoApp.toggleFullscreen(this);">Request Fullscreen</button>
|
||||
<button onclick="DemoApp.toggleOrientationLock(this);">Lock Orientation</button>
|
||||
<input type="text" placeholder="Input text in regular input..." />
|
||||
<div class="input" contenteditable="true" data-placeholder="Input text in contenteditable field..."></div>
|
||||
<div id="peer_wrap" style="display:none">
|
||||
|
@ -222,7 +223,7 @@
|
|||
<div class="viewport-stable-border"></div>
|
||||
<script src="/js/jquery.min.js"></script>
|
||||
<script src="https://tg.dev/js/bootstrap.min.js"></script>
|
||||
<script src="/js/webappdemo.js?42"></script>
|
||||
<script src="/js/webappdemo.js?43"></script>
|
||||
<script>DemoApp.apiUrl = "/demo/api";
|
||||
|
||||
Telegram.WebApp.onEvent('themeChanged', function() {
|
||||
|
|
|
@ -502,6 +502,15 @@ var DemoApp = {
|
|||
el.innerHTML = 'Disable Vertical Swypes';
|
||||
}
|
||||
},
|
||||
toggleOrientationLock: function(el) {
|
||||
if (Telegram.WebApp.isOrientationLocked) {
|
||||
Telegram.WebApp.unlockOrientation();
|
||||
el.innerHTML = 'Lock Orientation';
|
||||
} else {
|
||||
Telegram.WebApp.lockOrientation();
|
||||
el.innerHTML = 'Unlock Orientation';
|
||||
}
|
||||
},
|
||||
fullscreenInit: function() {
|
||||
Telegram.WebApp.onEvent('fullscreenChanged', function() {
|
||||
DemoApp.updateFullscreenButton();
|
||||
|
|
Loading…
Add table
Reference in a new issue