Merge branch 'main' of http://91.189.216.43:3000/jacek.pyziak/drmaterac.pl
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@@ -1050,4 +1050,25 @@ $(document).ready(function(){
|
||||
$(headerNav).removeClass('fixed');
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
$(document).ready(function () {
|
||||
$('.nav-item.parent.dropdown').on('mouseenter', function () {
|
||||
var $submenu = $(this).find('.dropdown-menu');
|
||||
|
||||
if ($submenu.length) {
|
||||
$submenu.css({ left: '', right: '', transform: '' });
|
||||
|
||||
var submenuRect = $submenu[0].getBoundingClientRect();
|
||||
var windowWidth = $(window).width();
|
||||
|
||||
if (submenuRect.right > windowWidth) {
|
||||
$submenu.attr('style', 'left: 50% !important; right: auto !important; transform: translateX(-50%) !important;');
|
||||
} else if (submenuRect.left < 0) {
|
||||
$submenu.attr('style', 'left: 50% !important; right: auto !important; transform: translateX(-50%) !important;');
|
||||
} else {
|
||||
$submenu.css({ left: '', right: '', transform: '' });
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -22,49 +22,49 @@
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
{extends file='page.tpl'}
|
||||
{extends file='page.tpl'}
|
||||
|
||||
{block name='page_title'}
|
||||
{$cms.meta_title}
|
||||
{/block}
|
||||
{block name='page_title'}
|
||||
{$cms.meta_title}
|
||||
{/block}
|
||||
|
||||
{block name='page_content_container'}
|
||||
<section id="content" class="page-content page-cms page-cms-{$cms.id}">
|
||||
{if $cms.id == 61}
|
||||
<iframe id="paypoIframe" src="https://start.paypo.pl" width="100%" frameborder="no"></iframe>
|
||||
{literal}
|
||||
<script type="module">
|
||||
window.addEventListener('message', event => {
|
||||
const paypoIframe = document.querySelector('#paypoIframe');
|
||||
{block name='page_content_container'}
|
||||
<section id="content" class="page-content page-cms page-cms-{$cms.id}">
|
||||
{if $cms.id == 61}
|
||||
<iframe id="paypoIframe" src="https://start.paypo.pl" width="100%" frameborder="no"></iframe>
|
||||
{literal}
|
||||
<script type="module">
|
||||
window.addEventListener('message', event => {
|
||||
const paypoIframe = document.querySelector('#paypoIframe');
|
||||
|
||||
const eventData = JSON.parse(event.data);
|
||||
const eventData = JSON.parse(event.data);
|
||||
|
||||
let isPageHeightSet = false;
|
||||
let isPageHeightSet = false;
|
||||
|
||||
if (typeof eventData === "object") {
|
||||
if ('pageBodyHeight' in eventData) {
|
||||
paypoIframe.style.height = eventData.pageBodyHeight + 'px';
|
||||
isPageHeightSet = true;
|
||||
} else {
|
||||
isPageHeightSet || (paypoIframe.style.height = '5200px');
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
{/if}
|
||||
if (typeof eventData === "object") {
|
||||
if ('pageBodyHeight' in eventData) {
|
||||
paypoIframe.style.height = eventData.pageBodyHeight + 'px';
|
||||
isPageHeightSet = true;
|
||||
} else {
|
||||
isPageHeightSet || (paypoIframe.style.height = '5200px');
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
{/if}
|
||||
|
||||
{block name='cms_content'}
|
||||
{$cms.content nofilter}
|
||||
{/block}
|
||||
{block name='cms_content'}
|
||||
{$cms.content nofilter}
|
||||
{/block}
|
||||
|
||||
{block name='hook_cms_dispute_information'}
|
||||
{hook h='displayCMSDisputeInformation'}
|
||||
{/block}
|
||||
{block name='hook_cms_dispute_information'}
|
||||
{hook h='displayCMSDisputeInformation'}
|
||||
{/block}
|
||||
|
||||
{block name='hook_cms_print_button'}
|
||||
{hook h='displayCMSPrintButton'}
|
||||
{/block}
|
||||
{block name='hook_cms_print_button'}
|
||||
{hook h='displayCMSPrintButton'}
|
||||
{/block}
|
||||
|
||||
</section>
|
||||
{/block}
|
||||
</section>
|
||||
{/block}
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
{/block}
|
||||
</head>
|
||||
|
||||
<body id="{$page.page_name}" class="{$page.body_classes|classnames}{if isset($LEO_LAYOUT_MODE)} {$LEO_LAYOUT_MODE}{/if}{if isset($USE_FHEADER) && $USE_FHEADER} keep-header{/if}">
|
||||
<body id="{$page.page_name}" class="1 {$page.body_classes|classnames}{if isset($LEO_LAYOUT_MODE)} {$LEO_LAYOUT_MODE}{/if}{if isset($USE_FHEADER) && $USE_FHEADER} keep-header{/if}">
|
||||
<!-- Google Tag Manager (noscript) -->
|
||||
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MJDZPHD" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user