newave
'+ 'here we are. come to drink a coffee!
'+ '//page preloader $(window).load(function() { $("#loader").delay(500).fadeout(); $(".mask").delay(1000).fadeout("slow"); }); $(document).ready(function(){ //sticky navigation $("#navigation").sticky({topspacing:0}); //leaving page fade out $('a.external').click(function(){ var url = $(this).attr('href'); $('.mask').fadein(250, function(){ document.location.href = url; }); $("#loader").fadein("slow"); return false; }); }); //back to top $(function() { $('a#back-top').click(function () { $('html, body').stop().animate({ scrolltop: 0 }, 1500,'easeinoutexpo'); }); }); //navigation scrolling $(function() { $('.nav a, .nav li a, #home-center a, a.move, .dizhimeun a').bind('click',function(event){ var $anchor = $(this); $('html, body').stop().animate({ scrolltop: $($anchor.attr('href')).offset().top -44 }, 1500,'easeinoutexpo'); event.preventdefault(); }); }); //prettyphoto $(function(){ $("a[rel^='prettyphoto']").prettyphoto({ opacity: 0.5, social_tools: "", deeplinking: false }); }); //parallax $(window).bind('load', function () { parallaxinit(); }); function parallaxinit() { $('#twitter-parallax').parallax("30%", 0.1); $('#quote-parallax').parallax("30%", 0.1); $('#contact-parallax').parallax("30%", 0.1); $('#home.parallax').parallax("30%", 0.1); $('#project-counters').parallax("30%", 0.1); $('#aboutus').parallax("30%", 0.1); $('#about_job').parallax("30%", 0.1); $('#about_hzhb').parallax("30%", 0.1); /*add as necessary*/ } //bxslider $(document).ready(function(){ var onmobile = false; if( /android|webos|iphone|ipad|ipod|blackberry/i.test(navigator.useragent) ) { onmobile = true; } $('.fullwidth-slider').bxslider({ /*auto:true,*/ mode:"fade", speed:1000, /* pause:5000,*/ pager: false, onslidebefore: function($slideelement) { ($slideelement).find('.slide-caption').fadeout().animate({top:'100px'},{queue:false, easing: 'easeoutquad', duration: 550}); ($slideelement).find('.slide-caption').hide().animate({top:'-100px'}); }, onslideafter: function($slideelement) { ($slideelement).find('.slide-caption').fadein().animate({top:'0'},{queue:false, easing: 'easeoutquad', duration: 450}); }, }); $('.bx-wrapper .bx-controls-direction a').attr('data-500','top:83%; opacity: 0;').attr('data-start','top:50%; opacity: 1;'); if( ( onmobile === false ) && ( $('.parallax-slider').length ) ) { skrollr.init({ edgestrategy: 'set', smoothscrolling: false, forceheight: false }); } $('.news-slider').bxslider({ pagercustom: '#news-pager', controls:false, auto:true, pause:5000, }); $('.clients-slider').bxslider({ pagercustom: '#bx-pager', controls:false, auto:true, }); $('.project-slider').bxslider({ controls: true, pager: false, auto:true, pause: 3000, preloadimages:'all', }); $('.blog-slider').bxslider({ controls: true, pager: false, auto:false, pause: 3000, preloadimages: 'visible', }); $('.text-slide-vertical').bxslider({ controls: false, adaptiveheight: true, pager: false, auto:true, mode:'fade', pause: 5000, }); }); //navigation dropdown $('.nav a.colapse-menu1').click(function () { $(".nav-collapse").collapse("hide") }); $('body').on('touchstart.dropdown', '.dropdown-menu', function (e) { e.stoppropagation(); }); // accordion $('dl.accordion dt').filter(':first-child').addclass('accordion-active'); $('dd.accordion-content').filter(':nth-child(n+3)').addclass('hide'); $('dl.accordion').on('click', 'dt', function() { $(this) .addclass('accordion-active') .next() .slidedown(200) .siblings('dd.accordion-content') .slideup(200) .prev() .removeclass('accordion-active'); }); // tabs $(".tab_container").hide(); //hide all content $("ul.tabs li:first").addclass("tab-active").show(); //activate first tab $(".tab_container:first").show(); //show first tab content $("ul.tabs li").click(function() { $("ul.tabs li").removeclass("tab-active"); //remove any "active" class $(this).addclass("tab-active"); //add "active" class to selected tab $(".tab_container").hide(); //hide all tab content var activetab = $(this).find("a").attr("href"); //find the rel attribute value to identify the active tab + content $(activetab).fadein(); //fade in the active content return false; }); // toggle $(".toggle_container").hide(); $("span.toggle-title").click(function(){ $(this).toggleclass("toggle-active").next().slidetoggle("normal"); return false; }); $(document).ready(function(){ //elements fading $('.element_from_top').each(function () { $(this).appear(function() { $(this).delay(150).animate({opacity:1,top:"0px"},1000); }); }); $('.element_from_bottom').each(function () { $(this).appear(function() { $(this).delay(150).animate({opacity:1,bottom:"0px"},1000); }); }); $('.element_from_left').each(function () { $(this).appear(function() { $(this).delay(150).animate({opacity:1,left:"0px"},1000); }); }); $('.element_from_right').each(function () { $(this).appear(function() { $(this).delay(150).animate({opacity:1,right:"0px"},1000); }); }); $('.element_fade_in').each(function () { $(this).appear(function() { $(this).delay(150).animate({opacity:1,right:"0px"},1000); }); }); //animated progress bars $('.bar li').each(function () { $(this).appear(function() { $(this).animate({opacity:1,left:"0px"},1200); var b = $(this).find("span").attr("data-width"); $(this).find("span").animate({ width: b + "%" }, 1700, "easeoutcirc"); }); }); //animated counters $('.counters').each(function () { $(".timer .count").appear(function() { var counter = $(this).html(); $(this).countto({ from: 0, to: counter, speed: 2000, refreshinterval: 60, }); }); }); //fading out alertbox $('.shortcode_alertbox').find('.box_close').click(function(){ $(this).parents('.alertboxes').animate({opacity:0},300).animate({height:"0px"}); }); }); $(window).load(function(){ //masonry blog var $container = $('.blog-posts-content'); $container.isotope({ masonry: { }, animationoptions: { duration: 750, easing: 'linear', queue: false, }, }); //google map var latlng = new google.maps.latlng(45.738028,21.224535); var settings = { zoom: 16, center: new google.maps.latlng(45.738028,21.224535), maptypeid: google.maps.maptypeid.roadmap, maptypecontrol: false, scrollwheel: false, draggable: true, maptypecontroloptions: {style: google.maps.maptypecontrolstyle.dropdown_menu}, navigationcontrol: false, navigationcontroloptions: {style: google.maps.navigationcontrolstyle.small}, maptypeid: google.maps.maptypeid.roadmap}; var map = new google.maps.map(document.getelementbyid("map_canvas"), settings); google.maps.event.adddomlistener(window, "resize", function() { var center = map.getcenter(); google.maps.event.trigger(map, "resize"); map.setcenter(center); }); var contentstring = '
here we are. come to drink a coffee!
'+ '