$(document).ready(function(){ //homepage slider var options = { nextbutton: false, prevbutton: false, pagination: true, animatestartingframein: true, autoplay: true, autoplaydelay: 3000, preloader: true }; var mysequence = $("#sequence").sequence(options).data("sequence"); //main menu initialization mainmenu.init(); //products slider var produxtsslider = $('.products-slider').bxslider({ slidewidth: $('.products-slider .shop-item').outerwidth()-20, //gets slide width responsive: true, minslides: 1, maxslides: 4, slidemargin: 20, auto: true, autohover: true, speed: 800, pager: true, controls: false }); //make videos responsive $(".video-wrapper").fitvids(); //initialize tooltips $('.show-tooltip').tooltip(); //contact us map if($('#contact-us-map').length > 0){ //checks if there is a map element var map = l.map('contact-us-map', { center: [51.502, -0.09], scrollwheelzoom: false, zoom: 15 }); l.tilelayer('http://{s}.tile.cloudmade.com/{key}/22677/256/{z}/{x}/{y}.png', { key: 'bc9a493b41014caabb98f0471d759707' }).addto(map); l.marker([51.5, -0.09]).addto(map).bindpopup("some company
123 fake street
ln1 2st
london
united kingdom").openpopup(); } $( window ).resize(function() { $('.col-footer:eq(0), .col-footer:eq(1)').css('height', ''); var footercolheight = math.max($('.col-footer:eq(0)').height(), $('.col-footer:eq(1)').height()) + 'px'; $('.col-footer:eq(0), .col-footer:eq(1)').css('height', footercolheight); }); $( window ).resize(); });