This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? $watermark = Array( | |
array("name" => "watermark", "position" => "bottomright", "size"=>"real", "file"=>$_SERVER['DOCUMENT_ROOT'].SITE_TEMPLATE_PATH."/img/watermark.png"), | |
array("name" => "watermark", "position" => "center", "size"=>"real", "file"=>$_SERVER['DOCUMENT_ROOT'].SITE_TEMPLATE_PATH."/img/watermark_text.png") | |
);?> | |
<?$photo_resized = CFile::ResizeImageGet($photo, array('width'=>960, 'height'=>640), BX_RESIZE_IMAGE_EXACT, false,$watermark);?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<video loop muted autoplay id="head_video"> | |
<source src="" type="video/webm" id="source_webm"> | |
<source src="" type="video/mp4" id="source_mp4"> | |
</video> | |
<script> | |
var aboutHeaderCheck = function() { | |
var aboutHeader = document.querySelector('.s-about-head'); | |
var video = document.getElementById("head_video"); | |
var video_mp4 = document.getElementById("source_mp4"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getCoords(elem) { | |
const box = elem.getBoundingClientRect(); | |
return { | |
top: box.top + pageYOffset, | |
left: box.left + pageXOffset | |
}; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="js-parallax" data-parallax="-0.05"></div> | |
<div class="js-parallax" data-parallax="0.1"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
//Видео url вида: https://www.youtube.com/watch?v=RYF4Gsrxur4 | |
parse_str(parse_url($arResult['PROPERTIES']['VIDEO']['VALUE'], PHP_URL_QUERY), $video_id_arr); | |
?> | |
<pre><?print_r($video_id_arr['v'])?></pre> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
$dbItems = \Bitrix\Iblock\ElementTable::getList(array( | |
'select' => array('ID', 'NAME', 'IBLOCK_ID'), | |
'filter' => array('IBLOCK_ID' => $arParams['IBLOCK_ID']) | |
)); | |
while ($arItem = $dbItems->fetch()){ | |
$dbProperty = \CIBlockElement::getProperty( | |
$arItem['IBLOCK_ID'], | |
$arItem['ID'] | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function initMap(){ | |
let myMap = new ymaps.Map("map", { | |
center: [55.76, 37.64], | |
zoom: 7 | |
}); | |
} | |
$(function($){ | |
function addScript(src) { | |
let s = document.createElement('script'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- CWCBfK05 - ID нужного места--> | |
<a href="https://yandex.by/map-widget/v1/-/CWCBfK05" class="fancy-map"> | |
ссылка | |
</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function($){ | |
const duration = 5; | |
const interval = 10; | |
const stepsBars = $('.intro-step'); | |
let isPaused = false; | |
let percentTime, step, tick, scaleWidth; | |
let currentIndex = 0; | |
let introSlider = $('.intro-slider').flickity({ | |
cellAlign: 'left', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Получаем следующий и предыдущий элемент | |
$query = CIBlockElement::GetList( | |
array('SORT' => 'ASC'), | |
array('IBLOCK_ID' => $arResult['IBLOCK_ID'],'ACTIVE' => 'Y'), | |
false, | |
array('nPageSize' => 1, 'nElementID' => $arResult['ID']), | |
array('ID', 'DETAIL_PAGE_URL','DETAIL_PICTURE','NAME') | |
); | |
while ($elem = $query->GetNextElement()) { | |
$arElements[] = $elem->GetFields(); |