mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-06-18 14:50:59 +00:00
Hide yandex adv in fullscreen.
This commit is contained in:
+8
-4
@@ -585,17 +585,21 @@ function postLoadPage()
|
|||||||
|
|
||||||
document.getElementById('Fullscreen').onclick = function()
|
document.getElementById('Fullscreen').onclick = function()
|
||||||
{
|
{
|
||||||
var idList = ["h1Header", "h1Text", "navigation", "footerContent"];
|
var idList = ["h1Header", "h1Text", "navigation", "footerContent", "bottom_adv"];
|
||||||
|
|
||||||
fullscreen = !fullscreen
|
fullscreen = !fullscreen
|
||||||
|
|
||||||
userAction(fullscreen ? "fullscreen_on" : "fullscreen_off");
|
userAction(fullscreen ? "fullscreen_on" : "fullscreen_off");
|
||||||
|
|
||||||
for (var i = 0; i < idList.length; i++)
|
for (var i = 0; i < idList.length; i++) {
|
||||||
|
let element = document.getElementById(idList[i]);
|
||||||
|
if (!element) continue;
|
||||||
|
|
||||||
if (fullscreen)
|
if (fullscreen)
|
||||||
document.getElementById(idList[i]).style.display = "none";
|
element.style.display = "none";
|
||||||
else
|
else
|
||||||
document.getElementById(idList[i]).style.display = "block";
|
element.style.display = "block";
|
||||||
|
}
|
||||||
|
|
||||||
document.getElementById("mainContainer").className = fullscreen ? "container-fluid page-wrap" : "container page-wrap";
|
document.getElementById("mainContainer").className = fullscreen ? "container-fluid page-wrap" : "container page-wrap";
|
||||||
|
|
||||||
|
|||||||
+3
-1
@@ -183,9 +183,10 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php elseif (L('current_language') == "ru"): ?>
|
<?php elseif (L('current_language') == "ru"): ?>
|
||||||
|
<section id="bottom_adv">
|
||||||
<section style="height:50px;text-align: center;" id="bottom_info" class="hidden-phone">
|
<section style="height:50px;text-align: center;" id="bottom_info" class="hidden-phone">
|
||||||
<!-- Yandex.RTB R-A-202319-2 -->
|
<!-- Yandex.RTB R-A-202319-2 -->
|
||||||
|
|
||||||
<div id="yandex_rtb_R-A-202319-2"></div>
|
<div id="yandex_rtb_R-A-202319-2"></div>
|
||||||
<script>window.yaContextCb.push(()=>{
|
<script>window.yaContextCb.push(()=>{
|
||||||
Ya.Context.AdvManager.render({
|
Ya.Context.AdvManager.render({
|
||||||
@@ -194,6 +195,7 @@
|
|||||||
})
|
})
|
||||||
})</script>
|
})</script>
|
||||||
</section>
|
</section>
|
||||||
|
</section>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
<section style="height:32px;text-align: center;" id="bottom_info" class="hidden-phone">
|
<section style="height:32px;text-align: center;" id="bottom_info" class="hidden-phone">
|
||||||
|
|||||||
Reference in New Issue
Block a user