Collapse navbar when i clicked url dcl

This commit is contained in:
Henry Bravo 2017-06-01 14:49:05 -05:00
parent 024f7565df
commit 851ae298e9

View file

@ -74,7 +74,8 @@
function _initNavUrl(){ function _initNavUrl(){
$('.url').click(function(){ $('.url').click(function(){
var href = $(this).attr('data-url'); var href = $(this).attr('data-url');
console.log(href); $('.navbar-collapse').removeClass('in');
$('.navbar-collapse').addClass('collapsing');
$('html, body').animate({ $('html, body').animate({
scrollTop: $(href).offset().top scrollTop: $(href).offset().top
}, 1000); }, 1000);
@ -121,8 +122,7 @@
} }
function _calcPricing(){ function _calcPricing(){
var total = (cardPricing['cpu'].value * 5) + (2* cardPricing['ram'].value) + (0.6* cardPricing['storage'].value) var total = (cardPricing['cpu'].value * 5) + (2* cardPricing['ram'].value) + (0.6* cardPricing['storage'].value);
console.log(total);
total = parseFloat(total.toFixed(2)); total = parseFloat(total.toFixed(2));
$("#total").text(total); $("#total").text(total);