[PE] Fix reporter loader

This commit is contained in:
Julia Radzhabova 2019-09-13 11:18:18 +03:00
parent 9b5c768a02
commit 0af5074f4d
2 changed files with 104 additions and 202 deletions

View file

@ -23,11 +23,6 @@
z-index: 10000; z-index: 10000;
} }
.loadmask {
width: 100%;
height: 100%;
}
.loadmask > .brendpanel { .loadmask > .brendpanel {
width: 100%; width: 100%;
height: 56px; height: 56px;
@ -39,19 +34,6 @@
align-items: center; align-items: center;
} }
.loadmask > .brendpanel .loading-logo {
padding: 0 24px 0 12px;
max-width: 200px;
height: 20px;
}
.loadmask > .brendpanel .loading-logo > img {
display: inline-block;
max-width: 100px;
max-height: 20px;
opacity: 0;
}
.loadmask > .brendpanel .spacer { .loadmask > .brendpanel .spacer {
margin-left: auto; margin-left: auto;
} }
@ -191,8 +173,7 @@
var params = getUrlParams(), var params = getUrlParams(),
lang = (params["lang"] || 'en').split(/[\-\_]/)[0], lang = (params["lang"] || 'en').split(/[\-\_]/)[0],
presenter = 'Presenter View', presenter = 'Presenter View';
logo = params["headerlogo"] ? encodeUrlParam(params["headerlogo"]) : null;
window.frameEditorId = params["frameEditorId"]; window.frameEditorId = params["frameEditorId"];
@ -217,18 +198,11 @@
</style> </style>
</head> </head>
<body> <body>
<div id="loading-mask" class="loadmask"><div class="brendpanel"><div><div class="loading-logo"><img src="../../common/main/resources/img/header/header-logo.png"></div><div class="circle"></div><div class="circle"></div><div class="circle"></div><div class="circle"></div><div class="spacer"></div><div class="rect"></div></div><div><span class="rect"></span><span class="rect"></span><span class="rect"></span><span class="rect"></span><span class="rect"></span><div class="spacer"></div><span class="circle"></span><span class="circle"></span><span class="circle"></span></div></div><div class="placeholder"><div class="slide-h"><div class="slide-v"><div class="slide-container"><div class="line"></div><div class="line"></div></div></div></div></div></div> <div id="loading-mask" class="loadmask"><div class="brendpanel"><div><div class="circle"></div><div class="circle"></div><div class="circle"></div><div class="circle"></div><div class="spacer"></div><div class="rect"></div></div><div><span class="rect"></span><span class="rect"></span><span class="rect"></span><span class="rect"></span><span class="rect"></span><div class="spacer"></div><span class="circle"></span><span class="circle"></span><span class="circle"></span></div></div><div class="placeholder"><div class="slide-h"><div class="slide-v"><div class="slide-container"><div class="line"></div><div class="line"></div></div></div></div></div></div>
<div id="viewport"></div>
<script> <script>
if (stopLoading) { if (stopLoading) {
document.body.removeChild(document.getElementById('loading-mask')); document.body.removeChild(document.getElementById('loading-mask'));
} else {
var elem = document.querySelector('.loading-logo img');
if (elem) {
logo && (elem.setAttribute('src', logo));
elem.style.opacity = 1;
}
} }
</script> </script>

View file

@ -20,160 +20,110 @@
overflow: hidden; overflow: hidden;
border: none; border: none;
background-color: #f4f4f4; background-color: #f4f4f4;
z-index: 100; z-index: 10000;
} }
.loader-page { .loadmask > .brendpanel {
width: 100%; width: 100%;
height: 170px; height: 56px;
bottom: 42%; background: #aa5252;
position: absolute;
text-align: center;
line-height: 10px;
} }
.loader-logo { .loadmask > .brendpanel > div {
max-height: 160px; display: flex;
margin-bottom: 10px; align-items: center;
} }
.loader-page-romb { .loadmask > .brendpanel .spacer {
width: 40px; margin-left: auto;
display: inline-block;
} }
.loader-page-text { .loadmask > .brendpanel .circle {
vertical-align: middle;
width: 20px;
height: 20px;
border-radius: 12px;
margin: 4px 10px;
background: rgba(255, 255, 255, 0.2);
}
.loadmask > .brendpanel .rect {
vertical-align: middle;
width: 50px;
height: 12px;
border-radius: 3px;
margin: 0 10px;
background: rgba(255, 255, 255, 0.2);
}
.loadmask > .placeholder {
display: flex;
flex-direction: column;
min-height: 100%;
margin: 0 100px;
}
.loadmask > .placeholder .slide-h {
display: flex;
flex-direction: column;
justify-content: center;
flex-grow: 1;
max-width: 1350px;
width: 100%; width: 100%;
bottom: 42%; margin: 0 auto 56px;
}
.loadmask > .placeholder .slide-v {
display: flex;
position: relative;
flex-direction: column;
padding-bottom: 56.1333%;
}
.loadmask > .placeholder .slide-container {
position: absolute; position: absolute;
text-align: center; height: 100%;
color: #888; width: 100%;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; background: #fbfbfb;
line-height: 20px; border: 1px solid #dfdfdf;
display: grid;
-webkit-animation: flickerAnimation 2s infinite ease-in-out;
-moz-animation: flickerAnimation 2s infinite ease-in-out;
-o-animation: flickerAnimation 2s infinite ease-in-out;
animation: flickerAnimation 2s infinite ease-in-out;
} }
.loader-page-text-loading { .loadmask > .placeholder .slide-container > .line {
font-size: 14px; height: 30%;
} margin: auto 120px;
.loader-page-text-customer {
font-size: 16px;
margin-bottom: 5px;
}
.romb {
width: 40px;
height: 40px;
-webkit-transform: rotate(135deg) skew(20deg, 20deg);
-moz-transform: rotate(135deg) skew(20deg, 20deg);
-ms-transform: rotate(135deg) skew(20deg, 20deg);
-o-transform: rotate(135deg) skew(20deg, 20deg);
position: absolute;
background: red;
border-radius: 6px; border-radius: 6px;
-webkit-animation: movedown 3s infinite ease; background: #f5f5f5;
-moz-animation: movedown 3s infinite ease;
-ms-animation: movedown 3s infinite ease;
-o-animation: movedown 3s infinite ease;
animation: movedown 3s infinite ease;
} }
#blue { .loadmask > .placeholder .slide-container > .line:nth-child(1) {
z-index: 3; height: 40%;
background: #55bce6; margin: auto 80px;
-webkit-animation-name: blue;
-moz-animation-name: blue;
-ms-animation-name: blue;
-o-animation-name: blue;
animation-name: blue;
} }
#red { @keyframes flickerAnimation {
z-index:1; 0% { opacity:1; }
background: #de7a59; 50% { opacity:0.3; }
-webkit-animation-name: red; 100% { opacity:1; }
-moz-animation-name: red;
-ms-animation-name: red;
-o-animation-name: red;
animation-name: red;
} }
@-o-keyframes flickerAnimation{
#green { 0% { opacity:1; }
z-index: 2; 50% { opacity:0.3; }
background: #a1cb5c; 100% { opacity:1; }
-webkit-animation-name: green;
-moz-animation-name: green;
-ms-animation-name: green;
-o-animation-name: green;
animation-name: green;
} }
@-moz-keyframes flickerAnimation{
@-webkit-keyframes red { 0% { opacity:1; }
0% { top:120px; background: #de7a59; } 50% { opacity:0.3; }
10% { top:120px; background: #F2CBBF; } 100% { opacity:1; }
14% { background: #f4f4f4; top:120px; }
15% { background: #f4f4f4; top:0;}
20% { background: #E6E4E4; }
30% { background: #D2D2D2; }
40% { top:120px; }
100% { top:120px; background: #de7a59; }
} }
@-webkit-keyframes flickerAnimation{
@keyframes red { 0% { opacity:1; }
0% { top:120px; background: #de7a59; } 50% { opacity:0.3; }
10% { top:120px; background: #F2CBBF; } 100% { opacity:1; }
14% { background: #f4f4f4; top:120px; }
15% { background: #f4f4f4; top:0; }
20% { background: #E6E4E4; }
30% { background: #D2D2D2; }
40% { top:120px; }
100% { top:120px; background: #de7a59; }
}
@-webkit-keyframes green {
0% { top:110px; background: #a1cb5c; opacity:1; }
10% { top:110px; background: #CBE0AC; opacity:1; }
14% { background: #f4f4f4; top:110px; opacity:1; }
15% { background: #f4f4f4; top:0; opacity:1; }
20% { background: #f4f4f4; top:0; opacity:0; }
25% { background: #EFEFEF; top:0; opacity:1; }
30% { background:#E6E4E4; }
70% { top:110px; }
100% { top:110px; background: #a1cb5c; }
}
@keyframes green {
0% { top:110px; background: #a1cb5c; opacity:1; }
10% { top:110px; background: #CBE0AC; opacity:1; }
14% { background: #f4f4f4; top:110px; opacity:1; }
15% { background: #f4f4f4; top:0; opacity:1; }
20% { background: #f4f4f4; top:0; opacity:0; }
25% { background: #EFEFEF; top:0; opacity:1; }
30% { background:#E6E4E4; }
70% { top:110px; }
100% { top:110px; background: #a1cb5c; }
}
@-webkit-keyframes blue {
0% { top:100px; background: #55bce6; opacity:1; }
10% { top:100px; background: #BFE8F8; opacity:1; }
14% { background: #f4f4f4; top:100px; opacity:1; }
15% { background: #f4f4f4; top:0; opacity:1; }
20% { background: #f4f4f4; top:0; opacity:0; }
25% { background: #f4f4f4; top:0; opacity:0; }
45% { background: #EFEFEF; top:0; opacity:0.2; }
100% { top:100px; background: #55bce6; }
}
@keyframes blue {
0% { top:100px; background: #55bce6; opacity:1; }
10% { top:100px; background: #BFE8F8; opacity:1; }
14% { background: #f4f4f4; top:100px; opacity:1; }
15% { background: #f4f4f4; top:0; opacity:1; }
20% { background: #f4f4f4; top:0; opacity:0; }
25% { background: #f4f4f4; top:0; opacity:0; }
45% { background: #EFEFEF; top:0; opacity:0.2; }
100% { top:100px; background: #55bce6; }
} }
</style> </style>
@ -219,52 +169,22 @@
var params = getUrlParams(), var params = getUrlParams(),
lang = (params["lang"] || 'en').split(/[\-\_]/)[0], lang = (params["lang"] || 'en').split(/[\-\_]/)[0],
customer = params["customer"] ? ('<div class="loader-page-text-customer">' + encodeUrlParam(params["customer"]) + '</div>') : '', presenter = 'Presenter View';
margin = (customer !== '') ? 50 : 20,
loading = 'Loading...',
presenter = 'Presenter View',
logo = params["logo"] ? ((params["logo"] !== 'none') ? ('<img src="' + encodeUrlParam(params["logo"]) + '" class="loader-logo" />') : '') : null;
window.frameEditorId = params["frameEditorId"]; window.frameEditorId = params["frameEditorId"];
if ( lang == 'bg') { presenter = 'Изглед на презентатора'; loading = 'Зареждане...';} if ( lang == 'bg') { presenter = 'Изглед на презентатора';}
else if ( lang == 'cs') { presenter = 'Zobrazení přednášejícího'; loading = 'Nahrávám...';} else if ( lang == 'cs') { presenter = 'Zobrazení přednášejícího';}
else if ( lang == 'de') { presenter = 'Referentenansicht'; loading = 'Ladevorgang...';} else if ( lang == 'de') { presenter = 'Referentenansicht';}
else if ( lang == 'es') { presenter = 'Vista del presentador'; loading = 'Cargando...';} else if ( lang == 'es') { presenter = 'Vista del presentador';}
else if ( lang == 'fr') { presenter = 'Mode présentateur'; loading = 'Chargement en cours...';} else if ( lang == 'fr') { presenter = 'Mode présentateur';}
else if ( lang == 'it') { presenter = 'Visualizzazione del presenter'; loading = 'Caricamento in corso...';} else if ( lang == 'it') { presenter = 'Visualizzazione del presenter';}
else if ( lang == 'pl') { presenter = 'Widok Prezentera'; loading = 'Ładowanie...';} else if ( lang == 'pl') { presenter = 'Widok Prezentera';}
else if ( lang == 'pt') { presenter = 'Vista de apresentador'; loading = 'Carregando...';} else if ( lang == 'pt') { presenter = 'Vista de apresentador';}
else if ( lang == 'ru') { presenter = 'Режим докладчика'; loading = 'Загрузка...';} else if ( lang == 'ru') { presenter = 'Режим докладчика';}
else if ( lang == 'sk') { presenter = 'Režim prezentácie'; loading = 'Nahrávam...';} else if ( lang == 'sk') { presenter = 'Režim prezentácie';}
else if ( lang == 'sl') { loading = 'Nalaganje...';}
else if ( lang == 'zh') { presenter = '演示者视图';} else if ( lang == 'zh') { presenter = '演示者视图';}
else if ( lang == 'tr') { loading = 'Yükleniyor...';}
else if ( lang == 'hu') loading = 'Betöltés...';
else if ( lang == 'ja') loading = '読み込み中...';
else if ( lang == 'ko') loading = '로드 중...';
else if ( lang == 'lv') loading = 'Ieladēšana ...';
else if ( lang == 'nl') loading = 'Laden...';
else if ( lang == 'uk') loading = 'Завантаження...';
else if ( lang == 'vi') loading = 'Đang tải...';
else if ( lang == 'zh') loading = '加载中...';
window.document.title = presenter; window.document.title = presenter;
if (!stopLoading)
document.write(
'<div id="loading-mask" class="loadmask">' +
'<div class="loader-page" style="margin-bottom: ' + margin + 'px;' + ((logo!==null) ? 'height: auto;' : '') + '">' +
((logo!==null) ? logo :
'<div class="loader-page-romb">' +
'<div class="romb" id="blue"></div>' +
'<div class="romb" id="green"></div>' +
'<div class="romb" id="red"></div>' +
'</div>') +
'</div>' +
'<div class="loader-page-text">' + customer +
'<div class="loader-page-text-loading">' + loading + '</div>' +
'</div>' +
'</div>');
</script> </script>
<style> <style>
@ -274,6 +194,14 @@
</style> </style>
</head> </head>
<body> <body>
<div id="loading-mask" class="loadmask"><div class="brendpanel"><div><div class="circle"></div><div class="circle"></div><div class="circle"></div><div class="circle"></div><div class="spacer"></div><div class="rect"></div></div><div><span class="rect"></span><span class="rect"></span><span class="rect"></span><span class="rect"></span><span class="rect"></span><div class="spacer"></div><span class="circle"></span><span class="circle"></span><span class="circle"></span></div></div><div class="placeholder"><div class="slide-h"><div class="slide-v"><div class="slide-container"><div class="line"></div><div class="line"></div></div></div></div></div></div>
<div id="viewport"></div>
<script>
if (stopLoading) {
document.body.removeChild(document.getElementById('loading-mask'));
}
</script>
<script> <script>
window.requireTimeourError = function(){ window.requireTimeourError = function(){