// gallery
$(function(){
$('#slides').slides({
preload: true,
preloadImage: 'img/loading.gif',
play: 3000,
pause: 2500,
hoverPause: true,
animationStart: function(){
$('.caption').animate({
bottom:-35
},100);
},
animationComplete: function(current){
$('.caption').animate({
bottom:0
},200);
if (window.console && console.log) {
// example return of current slide number
};
}
});
});
// colorbox
$(document).ready(function() {
$('.colorbox_image').colorbox({
width: "50%",
height: "90%"
});
});
$(document).ready(function() {
$('.colorbox_content2').colorbox({
html:'
Список наших программ:
1. Обучение чтению
2. Тестирование скорости и техники чтения
3. Здоровое дыхание
4. Аудиокнига
5. Слева-справа
6. Пропись. Цифры
',
width: "30%",
height: "70%"
});
});
$(document).ready(function() {
$('.colorbox_content1').colorbox({
html:' Список наших программ:
1. Здоровая азбука
2. Здоровый окружающий мир
3. Аудиокнига
4. Обучение чтению
5. Слева-справа
6. Пропись. Буквы
',
width: "30%",
height: "70%"
});
});
$(document).ready(function() {
$('.colorbox_content3').colorbox({
html:' Цены на обучение:
1 человек – 3 900 руб.
Группы:
4-5 человек – 3 500 руб./чел.
6-7 человек – 3 200 руб./чел.
8 и более человек – 2 900 руб./чел.
',
width: "30%",
height: "70%"
});
});
$(document).ready(function() {
$(".colorbox_send").colorbox({
inline:true,
href:"#block8_center",
width: "80%",
height: "87%"
});
});
//coundown
$(function(){
$('#counter').countdown({
timestamp : (new Date(2014, 10, 11)).getTime() + 01*01*01*60*1000
});
});
//form send
$(function(){
$('#form').submit(function(e){
//отменяем стандартное действие при отправке формы
e.preventDefault();
//берем из формы метод передачи данных
var custom_method = $(this).attr('method');
//получаем адрес скрипта на сервере, куда нужно отправить форму
var custom_action = $(this).attr('action');
//получаем данные, введенные пользователем в формате input1=value1&input2=value2...,
//то есть в стандартном формате передачи данных формы
var custom_data = $(this).serialize();
$.ajax({
type: custom_method,
url: custom_action,
data: custom_data,
success: function(key, value){
alert ('Ваше сообщение доставлено');
location.href="index.php";
}
});
});
});