-
var moveMap = function() {
if (pause) return;
speed < 10 ? speed += 0.05 : speed = 10;
angleX < 360 ? angleX += .01 * speed : angleX -= 360;
angleY < 360 ? angleY += .003 * speed : angleY -= 360;
x = -Math.floor((Math.sin(angleX * Math.PI / 180) + 1) * mapW);
y = -Math.floor((Math.cos(angleY * Math.PI / 180) + 1) * mapH);
-
// menu scroll
$('menu ul li a, a[class$=next], ul.submenu li a').click(function() {
var target = $(this).attr('href');
$.scrollTo(target, 1000);
$('ul.submenu li a').removeClass('active').filter('a[href=' + target + ']').addClass('active');
if ($('menu span').is('.left')) $('a.opentab').click(); // Close the open menu.
-
scrollPageEvents: function() {
// scroll naar projecten
this.scrollPageEvent($('#page_5_id_5'), '#page_2', '', $.proxy(function() {
this.initProjects();
this.initProject("projecten/woningbouw");
}, this), '');
// scroll naar contact
-
$(places).each(function() {
var place = this;
var marker = new google.maps.Marker({
position: new google.maps.LatLng(place.position[0], place.position[1]),
map: map,
icon: icon
});
marker.setAnimation(google.maps.Animation.BOUNCE);
});
-
var temp = 0;
listelements.find('.fpss-cont').each(function() {
var listslides = listimages;
var index = listslides.length;
listslides[index] = temp;
temp = temp + $(this).width();
temp = temp + slidemargin;
});