Money Counter Calculator
Nov 9, 2023
v.0
Money Counter Calculator Calculator Money Counter

Versions  

Bugs  
None!

Get This App On Your Website

1. Copy the code above with the iframe and link.
2. Paste the code into your website.
3. Resize the iframe to fit your website.

Javascript, HTML, CSS Code

                <html>
<head>
<script type="text/javascript"> window.addEventListener('error', function(event) { var message = JSON.parse(JSON.stringify(event.message)); var source = event.filename; var lineno = event.lineno; var colno = event.colno; var error = event.error; window.parent.postMessage({ type: 'iframeError', details: { message: message, source: source, lineno: lineno, colno: colno, error: error ? error.stack : '' } }, '*'); }); window.addEventListener('unhandledrejection', function(event) { window.parent.postMessage({ type: 'iframePromiseRejection', details: { reason: event.reason } }, '*'); }); </script>

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">

<title>Money Counter Calculator</title>
<meta name="description" content="Money Counter Calculator">
<meta name="keywords" content="money,counter,calculator">

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">

<script type="text/javascript">
try {
// App Javascript Goes Here. Place your entire script content inside the try block for error handling.

// This will run when the DOM is ready.
document.addEventListener("DOMContentLoaded", function() {
// Function to calculate the total amount
function calculateTotalAmount() {
// Get the values from the input fields
let hundred = parseInt($("#hundred").val()) || 0;
let fifty = parseInt($("#fifty").val()) || 0;
let twenty = parseInt($("#twenty").val()) || 0;
let ten = parseInt($("#ten").val()) || 0;
let seven = parseInt($("#seven").val()) || 0;
let five = parseInt($("#five").val()) || 0;
let two = parseInt($("#two").val()) || 0;
let one = parseInt($("#one").val()) || 0;
let halfdollar = parseInt($("#halfdollar").val()) || 0;
let twodime = parseInt($("#twodime").val()) || 0;
let dime = parseInt($("#dime").val()) || 0;
let nickel = parseInt($("#nickel").val()) || 0;
let pettyCashBranch = parseInt($("#petty-cash-branch").val()) || 0;
let pettyCashHO = parseInt($("#petty-cash-ho").val()) || 0;
let eftposANZ = parseInt($("#eftpos-anz").val()) || 0;
let eftposWBC = parseInt($("#eftpos-wbc").val()) || 0;
let eftposBSP = parseInt($("#eftpos-bsp").val()) || 0;
let westernUnionBranch = parseInt($("#western-union-branch").val()) || 0;
let westernUnionHO = parseInt($("#western-union-ho").val()) || 0;
let eValue = parseInt($("#e-value").val()) || 0;
let mPaisa = parseInt($("#m-paisa").val()) || 0;
let creditSales = parseInt($("#credit-sales").val()) || 0;
let addMachineFloat = parseInt($("#add-machine-float").val()) || 0;
let lessMachineFloat = parseInt($("#less-machine-float").val()) || 0;

// Calculate the total amount
let totalAmount = (hundred * 100) + (fifty * 50) + (twenty * 20) + (ten * 10) + (seven * 7) +
(five * 5) + (two * 2) + one + (halfdollar * 0.5) + (twodime * 0.2) +
(dime * 0.1) + (nickel * 0.05) + pettyCashBranch + pettyCashHO +
eftposANZ + eftposWBC + eftposBSP + westernUnionBranch + westernUnionHO +
eValue + mPaisa + creditSales + addMachineFloat - lessMachineFloat;

// Display the total amount
$("#result").text("Total Amount: $" + totalAmount.toFixed(2));
}

// Bind the calculateTotalAmount function to the input fields' change event
$("input[type='number']").on("change", calculateTotalAmount);

// Function to save the page as PDF
function saveAsPDF() {
// Get the HTML element to convert to canvas
let mainContainer = document.getElementById("main-container");

// Convert the HTML element to canvas using html2canvas library
html2canvas(mainContainer).then(function(canvas) {
// Create a PDF document
let pdf = new jsPDF("p", "mm", "a4");

// Get the canvas image data
let imageData = canvas.toDataURL("image/png");

// Add the canvas image data to the PDF document
pdf.addImage(imageData, "PNG", 0, 0, 210, 297);

// Save the PDF document
pdf.save("money_counter_calculator.pdf");
});
}

// Bind the saveAsPDF function to the save PDF button click event
$("#save-pdf-button").on("click", saveAsPDF);
});

} catch (error) {
// This will throw the error to the parent window.
throw error;
}
</script>

<style>
/* App CSS Goes Here */
body {
background-color: #f9f9f9;
font-family: 'Arial', sans-serif;
}

h1 {
color: #333;
text-align: center;
margin: 20px 0;
}

#calculator {
background-color: #fff;
border: 1px solid #ccc;
border-radius: 5px;
padding: 20px;
margin-bottom: 20px;
}

label {
font-weight: bold;
}

input[type='number'] {
width: 100px;
padding: 5px;
margin: 5px 0;
}

#result {
font-weight: bold;
margin-top: 20px;
text-align: center;
}

#save-pdf-button {
display: block;
width: 200px;
margin: 20px auto;
padding: 10px;
text-align: center;
background-color: #4caf50;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
}

#save-pdf-button:hover {
background-color: #45a049;
}
</style>

<link rel="canonical" href="https://calculator.tools/app/money-counter-calculator-597/">
<meta charset="utf-8">

</head>
<body>
<div id="main-container" class="container">
<div id="calculator">
<div id="location-dropdown">
<label for="locations">Select Location:</label>
<select id="locations">
<option value="DCC">DCC</option>
<option value="NARERE">NARERE</option>
<option value="NAUSORI">NAUSORI</option>
<option value="NADI TOWN">NADI TOWN</option>
<option value="BA1">BA1</option>
<option value="RAKIRAKI">RAKIRAKI</option>
<option value="ADAMS">ADAMS</option>
<option value="GREIG">GREIG</option>
<option value="DOWNTOWN">DOWNTOWN</option>
<option value="SUPER">SUPER</option>
<option value="NAMAKA">NAMAKA</option>
<option value="TAVUA">TAVUA</option>
<option value="BA3">BA3</option>
<option value="LABASA">LABASA</option>
<option value="VITIPLAZA">VITIPLAZA</option>
<option value="NAKASI">NAKASI</option>
<option value="SAVUSAVU">SAVUSAVU</option>
<option value="IGA LAUTOKA">IGA LAUTOKA</option>
<option value="WAIYAVI">WAIYAVI</option>
<!-- Add more store options here -->
</select>
</div>
<div id="date-time">
<label for="current-date-time">Date and Time:</label>
<span id="current-date-time"></span>
</div>
</div>
<h1>Money Counter Calculator</h1>
<label for="hundred">$100 Bills:</label>
<input type="number" id="hundred" min="0" placeholder="0">
<label for="fifty">$50 Bills:</label>
<input type="number" id="fifty" min="0" placeholder="0">
<label for="twenty">$20 Bills:</label>
<input type="number" id="twenty" min="0" placeholder="0">
<label for="ten">$10 Bills:</label>
<input type="number" id="ten" min="0" placeholder="0">
<label for="seven">$7 Bills:</label>
<input type="number" id="seven" min="0" placeholder="0">
<label for="five">$5 Bills:</label>
<input type="number" id="five" min="0" placeholder="0">
<label for="two">$2 Bills:</label>
<input type="number" id="two" min="0" placeholder="0">
<label for="one">$1 Bills:</label>
<input type="number" id="one" min="0" placeholder="0">
<label for="halfdollar">50¢ Coins:</label>
<input type="number" id="halfdollar" min="0" placeholder="0">
<label for="twodime">20¢ Coins:</label>
<input type="number" id="twodime" min="0" placeholder="0">
<label for="dime">10¢ Coins:</label>
<input type="number" id="dime" min="0" placeholder="0">
<label for="nickel">5¢ Coins:</label>
<input type="number" id="nickel" min="0" placeholder="0">
<label for="petty-cash-branch">Petty Cash Branch:</label>
<input type="number" id="petty-cash-branch" min="0" placeholder="0">
<label for="petty-cash-ho">Petty Cash HO:</label>
<input type="number" id="petty-cash-ho" min="0" placeholder="0">
<label for="eftpos-anz">EFTPOS ANZ:</label>
<input type="number" id="eftpos-anz" min="0" placeholder="0">
<label for="eftpos-wbc">EFTPOS WBC:</label>
<input type="number" id="eftpos-wbc" min="0" placeholder="0">
<label for="eftpos-bsp">EFTPOS BSP:</label>
<input type="number" id="eftpos-bsp" min="0" placeholder="0">
<label for="western-union-branch">Western Union Branch:</label>
<input type="number" id="western-union-branch" min="0" placeholder="0">
<label for="western-union-ho">Western Union HO:</label>
<input type="number" id="western-union-ho" min="0" placeholder="0">
<label for="e-value">E-Value:</label>
<input type="number" id="e-value" min="0" placeholder="0">
<label for="m-paisa">M-Paisa:</label>
<input type="number" id="m-paisa" min="0" placeholder="0">
<label for="credit-sales">Credit Sales:</label>
<input type="number" id="credit-sales" min="0" placeholder="0">
<label for="add-machine-float">Add Machine Float:</label>
<input type="number" id="add-machine-float" min="0" placeholder="0">
<label for="less-machine-float">Less Machine Float:</label>
<input type="number" id="less-machine-float" min="0" placeholder="0">

<div id="result"></div>
<button id="save-pdf-button">Save as PDF</button>
</div>

<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.4.0/jspdf.umd.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.3.2/html2canvas.min.js"></script>

<style>
/* App CSS Goes Here */
</style>
<script type="text/javascript"> var localStoragePrefix = "ct-597"; var lastSave = 0; function saveLocal(data) { if (Date.now() - lastSave < 1000) { return; } let cookie = localStoragePrefix + "=" + JSON.stringify(data) + "; path=" + window.location.pathname + "'; SameSite=Strict"; cookie += "; expires=" + new Date(Date.now() + 1000 * 60 * 60 * 24 * 365 * 1000).toUTCString(); document.cookie = cookie; lastSave = Date.now(); } function loadLocal() { var cookiePrefix = localStoragePrefix + "="; var cookieStart = document.cookie.indexOf(cookiePrefix); if (cookieStart > -1) { let cookieEnd = document.cookie.indexOf(";", cookieStart); if (cookieEnd == -1) { cookieEnd = document.cookie.length; } var cookieData = document.cookie.substring(cookieStart + cookiePrefix.length, cookieEnd); return JSON.parse(cookieData); } } </script>
<script type="text/javascript"> window.addEventListener('load', function() { var observer = new MutationObserver(function() { window.parent.postMessage({height: document.documentElement.scrollHeight || document.body.scrollHeight},"*"); }); observer.observe(document.body, {attributes: true, childList: true, subtree: true}); window.parent.postMessage({height: document.documentElement.scrollHeight || document.body.scrollHeight},"*"); }); </script>
</body>
</html>

NEW APPS

These are apps made by the community!

FAQ

What is Calculator Tools?

Calculator Tools allows you to instantly create and generate any simple one page web app for free and immediately have it online to use and share. This means anything! Mini apps, calculators, trackers, tools, games, puzzles, screensavers... anything you can think of that the AI can handle.

The AI uses Javacript, HTML, and CSS programming to code your app up in moments. This currently uses GPT-4 the latest and most powerful version of the OpenAI GPT language model.

What Do You Mean Make An App?

Have you ever just wanted a simple app but didn't want to learn programming or pay someone to make it for you? Calculator Tools is the solution! Just type in your prompt and the AI will generate a simple app for you in seconds. You can then customize it to your liking and share it with your friends.

AI has become so powerful it is that simple these days.

Does This Use ChatGPT?

It uses GPT-4 which is the most powerful model for ChatGPT.

Calculator Tools does not remember things from prompt to prompt, each image is a unique image that does not reference any of the images or prompts previously supplied.