Google+

HideSeek - простой скрипт поиска на странице jQuery #

HideSeek - простой скрипт поиска на странице jQuery

http://vdw.github.io/HideSeek/

Проверка на пустые поля jQuery #

Проверка на пустые поля jQuery



Validate empty fields





ФИО:*
Адресс:*
Город:
Страна:*



Аналогично проводится проверка по числам
$('.number').each(function () {
    var cur = $(this);
    cur.next().remove();
    if (isNaN(cur.val())) {
        cur.after(' Что-то не так');
        dataValid = false;
    }
});
if (dataValid) {
    $('#info').html('Все хорошо!');
}

Поиск c подсветкой на странице средствами jQuery #

Поиск c подсветкой на странице средствами jQuery



Search





I consider that a man's brain originally is like a little empty attic, and you have to stock it with such furniture as you choose. A fool takes in all the lumber of every sort that he comes across, so that the knowledge which might be useful to him gets crowded out, or at best is jumbled up with a lot of other things, so that he has a difficulty in laying his hands upon it.

I consider that a man's brain originally is like a little empty attic, and you have to stock it with such furniture as you choose. A fool takes in all the lumber of every sort that he comes across, so that the knowledge which might be useful to him gets crowded out, or at best is jumbled up with a lot of other things, so that he has a difficulty in laying his hands upon it.

I consider that a man's brain originally is like a little empty attic, and you have to stock it with such furniture as you choose. A fool takes in all the lumber of every sort that he comes across, so that the knowledge which might be useful to him gets crowded out, or at best is jumbled up with a lot of other things, so that he has a difficulty in laying his hands upon it.

Добавление полей в форму динамически jQuery #

Добавление полей в форму динамически jQuery



Добавление полей динамически





Форма

php snippets #

Вывести исходный код страницы
$lines = file('http://google.com/');
foreach ($lines as $line_num => $line) { 
        echo "Line #{$line_num} : " . htmlspecialchars($line) . "\n";
}


Определение защищенного https подключения
if ($_SERVER['HTTPS'] != "on") { 
        echo "This is not HTTPS";
}else{
        echo "This is HTTPS";
}


Определить доминантный цвет картинки
$i = imagecreatefromjpeg("image.jpg");

for ($x=0;$x> 16) & 0xFF;
        $g   = ($rgb >>  & 0xFF;
        $b   = $rgb & 0xFF;

        $rTotal += $r;
        $gTotal += $g;
        $bTotal += $b;
        $total++;
    }
}

$rAverage = round($rTotal/$total);
$gAverage = round($gTotal/$total);
$bAverage = round($bTotal/$total);

responsiveemailpatterns.com - сайт шаблонов отзывчивых писем #

responsiveemailpatterns.com - сайт шаблонов отзывчивых писем

http://responsiveemailpatterns.com/