Collapse navbar when i clicked url dcl
This commit is contained in:
		
					parent
					
						
							
								024f7565df
							
						
					
				
			
			
				commit
				
					
						851ae298e9
					
				
			
		
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
					@ -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);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue