Sure, here are some names for your app:
Marketing copy: "Unlock your earning potential with [insert app name here], the innovative app that helps you track and quantify the financial value of every task you complete. Say goodbye to the daily grind and hello to a renewed sense of motivation as you see the real-world impact of your efforts. Whether you're looking to automate tasks for cost savings or simply want to stay motivated as you tackle challenging work, [app name] has you covered. With a simple and intuitive interface, you can easily keep track of your earnings and stay focused on your goals. So why wait? Download [app name] today and start earning more, one task at a time!"
Sure, here's the HTML + CSS code for the landing page:
html<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
crossorigin="anonymous"
/>
<title>Earn Track</title>
<style>
.jumbotron {
background-color: #007bff;
color: white;
text-align: center;
padding-top: 100px;
padding-bottom: 100px;
}
.btn-primary {
background-color: white;
color: #007bff;
border-color: #007bff;
}
.btn-primary:hover {
background-color: #007bff;
color: white;
}
</style>
</head>
<body>
<div class="jumbotron">
<h1 class="display-4">Earn Track</h1>
<p class="lead">
Track your earnings and stay motivated as you tackle challenging work!
</p>
<hr class="my-4" />
<p>
With a simple and intuitive interface, you can easily keep track of your
earnings and stay focused on your goals.
</p>
<p class="lead">
<a
href="app.html"
class="btn btn-primary btn-lg"
role="button"
>Start Tracking Now</a
>
</p>
</div>
</body>
</html>
Sure, here is the HTML, JS and CSS code for the app:
app.html:
html<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="app.css" />
<title>Earn Track</title>
</head>
<body>
<div class="container mt-5">
<h1 class="text-center">Earn Track</h1>
<form class="form-group mt-5">
<label for="hourlyPay">Hourly Pay:</label>
<input
type="number"
class="form-control"
id="hourlyPay"
value="10"
/>
</form>
<div class="text-center mt-5">
<button id="startTracking" class="btn btn-primary mr-3">
Start Tracking
</button>
<button id="stopTracking" class="btn btn-secondary">
Stop Tracking
</button>
</div>
<h1 class="text-center mt-5" id="totalEarned">Total Earned: $0</h1>
</div>
<script src="app.js"></script>
</body>
</html>
app.js:
javascriptlet hourlyPay = 10;
let timer;
let totalEarned = 0;
document.getElementById("hourlyPay").addEventListener("change", function() {
hourlyPay = this.value;
});
document.getElementById("startTracking").addEventListener("click", function() {
timer = setInterval(function() {
totalEarned += hourlyPay / 3600;
document.getElementById("totalEarned").innerHTML =
"Total Earned: $" + totalEarned.toFixed(2);
}, 1000);
});
document.getElementById("stopTracking").addEventListener("click", function() {
clearInterval(timer);
document.getElementById("totalEarned").style.color = "green";
});
app.css:
css#totalEarned {
font-size: 36px;
}
"Track your pay, watch it grow, with the app that helps you know. Earn more every hour, with just a click of a button, the app that makes your pay grow, it's time to start tracking now!"
Sure, here's the updated HTML, JS and CSS code for the app:
earntrackapp.html:
html<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="earntrackapp.css" />
<title>Earn Track</title>
</head>
<body>
<div class="container mt-5">
<h1 class="text-center">Earn Track</h1>
<form class="form-group mt-5">
<label for="hourlyPay">Hourly Pay:</label>
<input
type="password"
class="form-control"
id="hourlyPay"
value="10"
/>
</form>
<div class="text-center mt-5">
<button id="startTracking" class="btn btn-primary">
Start Tracking
</button>
<button id="stopTracking" class="btn btn-secondary d-none">
Stop Tracking
</button>
</div>
<h1 class="text-center mt-5" id="totalEarned">Total Earned: $0</h1>
</div>
<script src="earntrackapp.js"></script>
</body>
</html>
earntrackapp.js:
javascriptlet hourlyPay = 10;
let timer;
let totalEarned = 0;
document.getElementById("hourlyPay").addEventListener("change", function() {
hourlyPay = this.value;
});
document.getElementById("startTracking").addEventListener("click", function() {
document.getElementById("hourlyPay").type = "hidden";
document.getElementById("startTracking").classList.add("d-none");
document.getElementById("stopTracking").classList.remove("d-none");
timer = setInterval(function() {
totalEarned += hourlyPay / 3600;
document.getElementById("totalEarned").innerHTML =
"Total Earned: $" + totalEarned.toFixed(2);
}, 1000);
});
document.getElementById("stopTracking").addEventListener("click", function() {
clearInterval(timer);
document.getElementById("hourlyPay").type = "password";
document.getElementById("startTracking").classList.remove("d-none");
document.getElementById("stopTracking").classList.add("d-none");
document.getElementById("totalEarned").style.color = "green";
});
earntrackapp.css:
css#totalEarned {
font-size: 36px;
}
Yes, we can do that. Here's the updated code with the hourly pay label being hidden when the hourly pay box is hidden:
earntrackapp.html:
html<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="earntrackapp.css" />
<title>Earn Track</title>
</head>
<body>
<div class="container mt-5">
<h1 class="text-center">Earn Track</h1>
<form class="form-group mt-5">
<label for="hourlyPay" id="hourlyPayLabel">Hourly Pay:</label>
<input
type="password"
class="form-control"
id="hourlyPay"
value="10"
/>
</form>
<div class="text-center mt-5">
<button id="startTracking" class="btn btn-primary">
Start Tracking
</button>
<button id="stopTracking" class="btn btn-secondary d-none">
Stop Tracking
</button>
</div>
<h1 class="text-center mt-5" id="totalEarned">Total Earned: $0</h1>
</div>
<script src="earntrackapp.js"></script>
</body>
</html>
earntrackapp.js:
javascriptlet hourlyPay = 10;
let timer;
let totalEarned = 0;
document.getElementById("hourlyPay").addEventListener("change", function() {
hourlyPay = this.value;
});
document.getElementById("startTracking").addEventListener("click", function() {
document.getElementById("hourlyPay").type = "hidden";
document.getElementById("hourlyPayLabel").classList.add("d-none");
document.getElementById("startTracking").classList.add("d-none");
document.getElementById("stopTracking").classList.remove("d-none");
timer = setInterval(function() {
totalEarned += hourlyPay / 3600;
document.getElementById("totalEarned").innerHTML =
"Total Earned: $" + totalEarned.toFixed(2);
}, 1000);
});
document.getElementById("stopTracking").addEventListener("click", function() {
clearInterval(timer);
document.getElementById("hourlyPay").type = "password";
document.getElementById("hourlyPayLabel").classList.remove("d-none");
document.getElementById("startTracking").classList.remove("d-none");
document.getElementById("stopTracking").classList.add("d-none");
document.getElementById("totalEarned").style.color = "green";
});
earntrackapp.css:
css#totalEarned {
font-size: 36px;
}