[all] hide logo on skeleton for desktop mode

This commit is contained in:
Maxim Kadushkin 2020-03-12 19:40:41 +03:00
parent 5e39627c87
commit ebbbbdcb7f
3 changed files with 23 additions and 0 deletions

View file

@ -201,6 +201,7 @@
window.frameEditorId = params["frameEditorId"]; window.frameEditorId = params["frameEditorId"];
if ( window.AscDesktopEditor ) { if ( window.AscDesktopEditor ) {
window.desktop = window.AscDesktopEditor;
window.on_native_message = function (cmd, param) { window.on_native_message = function (cmd, param) {
!window.native_message_cmd && (window.native_message_cmd = []); !window.native_message_cmd && (window.native_message_cmd = []);
window.native_message_cmd[cmd] = param; window.native_message_cmd[cmd] = param;
@ -215,6 +216,13 @@
<div id="viewport"></div> <div id="viewport"></div>
<script> <script>
if ( window.desktop ) {
var logo = document.getElementsByClassName('loading-logo');
if ( !!logo && logo.length ) {
logo[0].setAttribute('style','display:none;');
}
}
var params = getUrlParams(), var params = getUrlParams(),
notoolbar = params["toolbar"] == 'false', notoolbar = params["toolbar"] == 'false',
compact = params["compact"] == 'true', compact = params["compact"] == 'true',

View file

@ -238,6 +238,7 @@
window.frameEditorId = params["frameEditorId"]; window.frameEditorId = params["frameEditorId"];
if ( window.AscDesktopEditor ) { if ( window.AscDesktopEditor ) {
window.desktop = window.AscDesktopEditor;
window.on_native_message = function (cmd, param) { window.on_native_message = function (cmd, param) {
!window.native_message_cmd && (window.native_message_cmd = []); !window.native_message_cmd && (window.native_message_cmd = []);
window.native_message_cmd[cmd] = param; window.native_message_cmd[cmd] = param;
@ -264,6 +265,12 @@
<div id="viewport"></div> <div id="viewport"></div>
<script> <script>
if ( window.desktop ) {
var logo = document.getElementsByClassName('loading-logo');
if ( !!logo && logo.length ) {
logo[0].setAttribute('style','display:none;');
}
}
var params = getUrlParams(), var params = getUrlParams(),
notoolbar = params["toolbar"] == 'false', notoolbar = params["toolbar"] == 'false',
compact = params["compact"] == 'true', compact = params["compact"] == 'true',

View file

@ -238,6 +238,7 @@
window.frameEditorId = params["frameEditorId"]; window.frameEditorId = params["frameEditorId"];
if ( window.AscDesktopEditor ) { if ( window.AscDesktopEditor ) {
window.desktop = window.AscDesktopEditor;
window.on_native_message = function (cmd, param) { window.on_native_message = function (cmd, param) {
!window.native_message_cmd && (window.native_message_cmd = []); !window.native_message_cmd && (window.native_message_cmd = []);
window.native_message_cmd[cmd] = param; window.native_message_cmd[cmd] = param;
@ -269,6 +270,13 @@
<div id="viewport"></div> <div id="viewport"></div>
<script> <script>
if ( window.desktop ) {
var logo = document.getElementsByClassName('loading-logo');
if ( !!logo && logo.length ) {
logo[0].setAttribute('style','display:none;');
}
}
var params = getUrlParams(), var params = getUrlParams(),
internal = params["internal"] == 'true', internal = params["internal"] == 'true',
notoolbar = params["toolbar"] == 'false', notoolbar = params["toolbar"] == 'false',