Your IP : 18.118.151.110
<?php
if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true)
{
die();
}
use Bitrix\Landing\Assets;
use Bitrix\Main\Loader;
use Bitrix\Main\UI\Extension;
/** @var \CMain $APPLICATION */
if (!Loader::includeModule('landing'))
{
return;
}
$assets = Assets\Manager::getInstance();
$assets->addAsset('landing_auto_font_scale');
$APPLICATION->ShowProperty('FooterJS');
?>
</main>
<?php $APPLICATION->ShowProperty('BeforeBodyClose');?>
<?php if (\Bitrix\Landing\Connector\Mobile::isMobileHit()):
Extension::load(['mobile_tools']);
?>
<script type="text/javascript">
if (typeof BXMPage !== 'undefined')
{
BXMPage.TopBar.title.setText('<?= $APPLICATION->getTitle();?>');
BXMPage.TopBar.title.show();
}
document.addEventListener('DOMContentLoaded', function ()
{
BX.bindDelegate(document.body, 'click', {tagName: 'A'}, function (event)
{
if (this.hostname === document.location.hostname)
{
let func = BX.MobileTools.resolveOpenFunction(this.href);
if (func)
{
func();
return BX.PreventDefault(event);
}
}
});
}, false);
</script>
<?php endif?>
</body>
</html>