Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- try {
- $('.close_f').click(function() {
- $(this).parent('div').hide();
- $('.error').hide();
- $('.good').hide();
- });
- } catch(e){};
- try {
- //$("#contactForm").animated("zoomIn");
- } catch(e){};
- try {
- $(".main_menu_button").click(function() {
- $(".nav_menu ul").slideToggle();
- });
- } catch(e){};
- try {
- $(".a_f_orm1, .f_orm_bl1").click(function() {
- $(".f_orm1").slideToggle();
- $(".good").slideToggle();
- });
- } catch(e){};
- try {
- $(".a_f_orm2, .f_orm_bl2").click(function() {
- $(".f_orm2").slideToggle();
- $(".good").slideToggle();
- });
- } catch(e){};
- try {
- //Таймер обратного отсчета
- //Документация: http://keith-wood.name/countdown.html
- //<div class="countdown" date-time="2015-01-07"></div>
- var austDay = new Date($(".countdown").attr("date-time"));
- $(".countdown").countdown({
- until: austDay,
- format: 'dHMS'
- });
- } catch(e){};
- try {
- //$(".countdown").countdown({until: '3300'});
- //Попап менеджер FancyBox
- //Документация: http://fancybox.net/howto
- //<a class="fancybox"><img src="image.jpg" /></a>
- //<a class="fancybox" data-fancybox-group="group"><img src="image.jpg" /></a>
- } catch(e){};
- try {
- $('.prod').hover(function() {
- $(this).children('.over').slideToggle(300, function() {
- $(this).children("a").animated("fadeInUp", "fadeInUp");
- });
- });
- } catch(e){};
- try {
- $(".fancybox").fancybox();
- } catch(e){};
- try {
- $("a.modalbox").fancybox({
- width: '300',
- height: '300'
- });
- } catch(e){};
- try {
- $("a.modalbox2").fancybox({
- width: '1000',
- height: '500'
- });
- } catch(e){};
- try {
- //Навигация по Landing Page
- //$(".top_mnu") - это верхняя панель со ссылками.
- //Ссылки вида <a href="#contacts">Контакты</a>
- $(".nav_menu").navigation();
- } catch(e){};
- try {
- //Добавляет классы дочерним блокам .block для анимации
- //Документация: http://imakewebthings.com/jquery-waypoints/
- $(".block").waypoint(function(direction) {
- if (direction === "down") {
- $(".class").addClass("active");
- } else if (direction === "up") {
- $(".class").removeClass("deactive");
- };
- }, {
- offset: 100
- });
- } catch(e){};
- try {
- //Плавный скролл до блока .div по клику на .scroll
- //Документация: https://github.com/flesler/jquery.scrollTo
- $("a.scroll").click(function() {
- $.scrollTo($("#section9"), 2800, {
- offset: -120
- });
- });
- } catch(e){};
- try {
- //СлайдШоу
- $('.banner_top').flexslider({
- animation: "fade",
- slideshow: true,
- slideshowSpeed: 5000,
- animationDuration: 2000
- });
- } catch(e){};
- try {
- //Каруселька
- //Документация: http://owlgraphic.com/owlcarousel/
- var owl = $(".carousel");
- owl.owlCarousel({
- items: 1,
- slideSpeed: 2000,
- paginationSpeed: 400,
- autoPlay: 10000,
- singleItem: true
- });
- /*owl.on("mousewheel", ".owl-wrapper", function (e) {
- if (e.deltaY > 0) {
- owl.trigger("owl.prev");
- } else {
- owl.trigger("owl.next");
- }
- e.preventDefault();
- });*/
- } catch(e){};
- try {
- $(".next_button").click(function() {
- owl.trigger("owl.next");
- });
- } catch(e){};
- try {
- $(".prev_button").click(function() {
- owl.trigger("owl.prev");
- });
- } catch(e){};
- try {
- $(".clients").owlCarousel({
- autoPlay: 3000,
- items: 4,
- slideSpeed: 2000,
- itemsDesktop: [1199, 3],
- itemsDesktopSmall: [979, 3]
- });
- //Кнопка "Наверх"
- //Документация:
- //http://api.jquery.com/scrolltop/
- //http://api.jquery.com/animate/
- } catch(e){};
- try {
- $(window).scroll(function() {
- if ($(this).scrollTop() > 1000) {
- $('#totop').fadeIn();
- } else {
- $('#totop').fadeOut();
- }
- });
- } catch(e){};
- try {
- $("#totop").click(function() {
- $("body, html").animate({
- scrollTop: 0
- }, 2800);
- return false;
- });
- } catch(e){};
- try {
- $("a.fancyform").fancybox();
- //Аякс отправка форм
- //Документация: http://api.jquery.com/jquery.ajax/
- } catch(e){};
- });// end of $(ready)
- $(window).load(function() {
- try {
- $(".prod, .sh_w").animated("fadeInUp", "fadeInUp");
- } catch(e){};
- try {
- $(".plys3").animated("fadeIn", "fadeIn");
- } catch(e){};
- try {
- $(".titleh2").animated("fadeInUp", "fadeInUp");
- } catch(e){};
- try {
- $(".cl, .skem, .plus p, .poch p, .otz").animated("zoomIn", "zoomIn");
- } catch(e){};
- try {
- $("#section3 p").animated("fadeIn", "fadeIn");
- } catch(e){};
- try {
- $(".contact_f, .countdown, #section2 .open_form, .log_bl>div").animated("zoomIn", "zoomIn");
- } catch(e){};
- try {
- setInterval(function() {
- $("#pech").animated("swing", "swing");
- }, 5000);
- setInterval(function() {
- $("#pech").removeClass();
- }, 6000);
- } catch(e){};
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement