-
-
Save wisnubaldas/b7896873acfd3c6ac247b60cb21b5a47 to your computer and use it in GitHub Desktop.
Tiling/Flooring Calculator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function cal() { | |
// Get total square feet to cover | |
var sf = document.getElementById('sf').value; | |
console.log(sf) | |
// Get tile size | |
var tileSize = document.getElementById('tileSize').value; | |
console.log(tileSize) | |
// Convert area to inches and divide by a single tile's area (ex 4x4 tile = 16), then divide by 144 to determine tiles needed. | |
var total = (sf * 144)/tileSize; | |
console.log(total) | |
// Add 10% for waste | |
var totalWaste = total * 1.1; | |
console.log(totalWaste) | |
// Output results | |
document.getElementById('total').innerHTML = total; | |
document.getElementById('totalSF').innerHTML = sf; | |
document.getElementById('totalWaste').innerHTML = totalWaste; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is 824 Coating that helps you to get shined your floor. It is the best flooring product and service provider at Los Angles and the surrounding area. If you also going to get your floor new You should get in touch with 824 Coatings and visit their site.