<?
CModule::IncludeModule("iblock");
?>
##Меню
<?php
$APPLICATION->IncludeComponent("bitrix:menu", "",
array(
"ALLOW_MULTI_SELECT" => "Y",
"MENU_CACHE_TYPE" => "A",
"CHILD_MENU_TYPE" => "left",
"ROOT_MENU_TYPE" => "top",
"MAX_LEVEL" => "2",
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
{ | |
"bem":{ | |
"js":"/jquery.bem/jquery.bem.js" | |
}, | |
"bgcheck":{ | |
"js":"/bgcheck/background-check.js" | |
}, | |
"blurjs":{ | |
"js":"/blurjs/blur.js" | |
}, |
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
<?php | |
if (ini_get('short_open_tag') == 0) | |
die('Error: short_open_tag parameter must be turned on in php.ini'); | |
?><? | |
error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); | |
if (getenv('BITRIX_VA_VER')) | |
define('VMBITRIX', 'defined'); | |
if (version_compare(phpversion(),'5.3.0','<')) |
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
/* | |
// Import categories | |
$.get('http://ru.russellhobbs.com/russell-hobbs-products/', (data) => { | |
$(data).find('#dsnestCat li').each((key, el)=> { | |
let $el = $(el); | |
let $img = $el.find('img'); | |
if ($img) { |
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
//https://www.headspace.com/ajax?resource=/pack/all | |
const co = require('co') | |
const parallel = require('co-parallel') | |
const download = require('download') | |
const fetch = require('node-fetch') | |
const fs = require('fs') | |
const token = 'DJt2PcGT_vh7UAiX_1KeCxsPXhF7Aj79yc2fFdAoL1k' |
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
console.table($('#testform fieldset').map((key, el) => { | |
const parent = `#testform .testvoprosblock > div:nth-of-type(${key+1})` | |
const right = parseInt($(`${parent} input[value="2"]`)[0].getAttribute('valuez'), 10) + 1 | |
const result = { | |
title: $(`${parent} .testvopros`)[0].innerHTML, | |
right: $(`${parent} .stylezed:nth-of-type(${right}) label`)[0].innerHTML, | |
} | |
return result | |
}).toArray()) |
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
['.b-vc-workplace-orderWord__holder'].map(selector => | |
$(selector).toArray().map((el, key) => ({ | |
right: $(selector + ':nth-child(' + (key + 1) + ') .b-vc-workplace-orderWord').toArray().map(el => Object.values(JSON.parse(el.getAttribute('drag-and-drop-order').match(/rightOrder:(.*) \}/)[1])).map(el => $$('[data-hash="' + el + '"] span')[1].innerText))[0], | |
answers: $(selector + ':nth-child(' + (key + 1) + ') .b-vc-workplace-orderWord__item span') | |
.toArray() | |
.map(el => el.innerText) | |
.filter(el => el.length > 0) | |
})))[0] |
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
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to make opened Markdown files always be soft wrapped: | |
# | |
# path = require 'path' | |
# |
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
<!-- Yandex.Metrika global start - do not remove!!! --> | |
<script type="text/javascript"> | |
(function(d, w, c) { | |
(w[c] = w[c] || []).push(function() { | |
try { | |
w.yaCounter3791698 = w.yaCounter3791698 = new Ya.Metrika({ | |
id: 3791698, | |
webvisor: true, | |
clickmap: true, | |
trackLinks: true, |
OlderNewer