This file contains hidden or 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
//Для начала подключаем плагин "jquery-validation". Описание плагина и работа с ним описанна в книге js на стр 400 - 430. | |
// Список меттодов на сайте: https://jqueryvalidation.org/documentation, встроенные методы скриншот - http://prntscr.com/c0a340 | |
//Подключение: './bower/jquery-validation/dist/jquery.validate.min.js' | |
//js | |
(function ($) { | |
$("#offer-form").validate({ |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0 "> | |
<title>CSS3 Custom Forms</title> | |
<style type="text/css"> | |
body{ | |
margin:0; | |
font:14px/18px 'Open Sans', Arial, Helvetica, sans-serif; |
This file contains hidden or 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
Git FAQ | |
Шпаргалка по гиту и его командам: http://www.calculate-linux.ru/main/ru/git | |
Общие настройки | |
Выполнять всем, когда садитесь за новый компьютер. Если Вам поменяли комьютер их нужно снова выполнить. Если работаете с git на каком-то сервере под своим пользователем – то выполняем эти команды и там: | |
git config --global user.email "{username}@justcoded.com" например [email protected] |
This file contains hidden or 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
//Плагин позволяет прокладывать маршрут на карте гугл, подключаем скрипт себе в app.js или common.js | |
//google road-plugin | |
function initMap() { | |
var markerArray = []; | |
// Instantiate a directions service. | |
var directionsService = new google.maps.DirectionsService; |
This file contains hidden or 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
# Этот .htaccess поможет сделать ваш сайт быстрей. | |
# Пользуйтесь на здоровье себе и вашему сайту. | |
# Автор: Александр Белов aka alex Roosso | |
# Сайт: http://www.black-web.ru | |
# ICQ: 3405729 | |
# Электропочта: [email protected] | |
Options All -ExecCGI -Indexes -Includes +FollowSymLinks | |
#Options -MultiViews |
This file contains hidden or 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
/*1-й способ*/ | |
.button-top{ | |
animation: mymove-top 5s infinite; | |
@keyframes mymove-top { | |
from {box-shadow: 0px 0px 0px 0px #e9050e;} | |
to { | |
box-shadow: 0px 0px 47px 11px #e9050e; | |
transform: scale(1.1,1.1); | |
opacity: .4; | |
} |
This file contains hidden or 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
<marquee behavior="scroll" direction="left" scrolldelay="100"> | |
Доставка! Обедов в Офис. Домашняя вкусная кухня. Доставка от одного обеда в любой район города <strong>БЕСПЛАТНО!</strong> Доступные цены. Ежедневное обновление меню. Бесплатная комплектация обеда приборами и хлебом. | |
</marquee> |
This file contains hidden or 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
var footerHeight = $('.footer').height(); //это ты узнал высоту футера | |
$('wrapper').css('padding-bottom', footerHeight); |
This file contains hidden or 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
//replace tag | |
var countBox = $(".tour h2").text(); | |
var tag = ''; | |
tag += '<span>'; | |
tag += countBox; | |
tag += '<span>'; | |
$(".tour h2").replaceWith(tag); |