mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
29 lines
909 B
HTML
Executable File
29 lines
909 B
HTML
Executable File
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
body { margin: 0; width:100%%; height:100%%; background-color:#000; }
|
|
html { width:100%%; height:100%%; background-color:#000; }
|
|
.container iframe, .container object, .container embed { position: absolute; top: 0; left: 0; width: 100%% !important; height: 100%% !important; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<iframe id="player" src="%@" width="100%" height="100%" frameborder="0"></iframe>
|
|
</div>
|
|
<script>
|
|
var iframe;
|
|
function invoke(command) {
|
|
iframe.contentWindow.postMessage(JSON.stringify({ "event": "inject", "command": command }), "*");
|
|
}
|
|
|
|
(function(){
|
|
iframe = document.querySelectorAll('iframe')[0];
|
|
iframe.onload = function() {
|
|
invoke('initialize');
|
|
};
|
|
})();
|
|
</script>
|
|
</body>
|
|
</html>
|