(☞ຈل͜ຈ)☞ Главная  Статьи  Загрузчик Домой

Ok!
Ok!
181
SELECT * FROM shoutbox 
WHERE CONCAT(name, foo, bar, baz) LIKE '%$search%' 
поиск, mysql, по колонкам340900Поиск по нескольким колонкам
180
https://marketplace.1c-bitrix.ru/solutions/bitrix.liveapi/
модуль, битрикс, API100Ссылка на Живое описание API Битрикс. Механизм сканирует все модули Битрикс и выводит все методы этих модулей. Можно посмотреть, какие возможности у каждого модуля!
179
$connection = BitrixMainApplication::getConnection();
$sqlHelper = $connection->getSqlHelper();
$recordset = $connection->query("SELECT * FROM dbname");
while ($record = $recordset->fetch()){ ...  }
d7 активация, битрикс1300Активировать в7 на конкретной странице
178
[checkbox* checkbox-41 id:agree-2 class:agree label_first use_label_element "Да"]
согласие, чекбокс34090Чекбокс согласия в contact forms 7
177
<script type="text/javascript">$(document).ready(function () {
                var div = $("#rec241218811").find(".t-video-lazyload");
                var iframe = div.find('iframe');
                var height = div.width() * 0.5625;
                div.height(height);
                iframe.height(height);
                $('.t223').bind('displayChanged', function () {
                    height = div.width() * 0.5625;
                    div.height(height);
                    iframe.height(height);
                });
                $(window).bind('scroll', t_throttle(function () {
                    height = div.width() * 0.5625;
                    div.height(height);
                    iframe.height(height);
                }, 200));
            });</script>
lazyload, youtube90890Лэйзилоуд для ютьюб роликов на страницу
176
В htaccess добавить 
<IfModule mod_headers.c>
  <FilesMatch ".(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$">
    Header set Access-Control-Allow-Origin "*"
  </FilesMatch>
</IfModule>
cors, allow origin100600No Access-Control-Allow-Origin header при подключении шрифтов
175
<script>
        document.addEventListener('touchstart', this.callPassedFuntion, {passive: false});
    </script>
passive, false120Про passive false
174
function find_closed() {
    //clearTimeout(typingTimer);
    //typingTimer = setTimeout(doneTyping, doneTypingInterval);
    var found;
    var tr = jQuery('.pricing tr');
    var pos = jQuery('body, html').scrollTop();
    var s = jQuery('#searchfield').val();
    //var add = jQuery('.prices').first().position().top;
    var old, i, cont;
    if(s.length > 2) {
        old = jQuery('.found_color').parents('td');
        jQuery.each(old, function(){
            cont = jQuery(this).text();
            old.text(cont);
        });
        jQuery('tr').removeClass('found');
        for (i = 0; i < tr.length; i++) {

            if (tr.eq(i).text().toLowerCase().indexOf(s.toLowerCase()) > -1) {
                tr.eq(i).addClass('opened found');
                var text = tr.eq(i).children('td:first-child').text().replace(s, '<span class=found_color>' + s + '</span>');
                //console.log(text);
                tr.eq(i).children('td:first-child').html(text);
                found = 1;
            }else{
                //tr.eq(i).remove();
                tr.eq(i).removeClass('opened');
                tr.eq(i).removeClass('found');
            }

        }
        if(jQuery('.found').length){
            var E = setTimeout(function(){
                pos += jQuery('.found').first().parents('table').position().top;
                jQuery('body, html').animate({scrollTop: pos}, 300, 'swing');
                console.log(pos);
            },300);
        }
        if (found < 1) {
            jQuery('.not-found').text('Не найдено на этой странице. Поищите через общий поиск')
        }
    }
}
найти в скрытом аккордионе12300find_closed с подстветкой
173
<?$arText = explode('#MY_COMPONENT#',$arResult['DETAIL_TEXT']);
for($i=0;$i<count($arText);$i++) {
echo $arText[$i];
if ($i>0) $APPLICATION->IncludeComponent('my:my_component','');
}?>
код в статью битрикс435Вставка кода в статью Битрикс
172
<span style="color: #999999; font-size: 10px;">Вы можете <a href="https://shop.lamaree.ru/disable_email/index.php?e=' . $su_email . '&s=' . $su_id . '" rel="noopener" style="text-decoration: underline; color: #0068A5;" target="_blank" title="отписаться">отписаться</a> от рассылки</span>
отписка от рассылки120отписка от рассылки ламаре
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26