Live Bidding App
About this app
A fun and interactive live bidding app
Live Bidding App Live Bidding App Current Bid: $0.00 Place Bid
Put this on your site
Source
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Live Bidding App</title>
<meta name="description" content="A fun and interactive live bidding app">
<meta name="keywords" content="live bidding, auction, app">
<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">
<link href="https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap" 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 handle bidding
function placeBid() {
// Get current bid amount
var currentBid = parseFloat($("#current-bid").text());
// Get bid increment
var bidIncrement = parseFloat($("#bid-increment").val());
// Add bid increment to current bid
var newBid = currentBid + bidIncrement;
// Update current bid amount
$("#current-bid").text(newBid.toFixed(2));
// Clear bid increment input
$("#bid-increment").val("");
}
// Event listener for bidding button
$("#bid-button").click(function() {
placeBid();
});
});
} catch (error) {
// This will throw the error to the parent window.
throw error;
}
</script>
<style>
/* App CSS Goes Here */
body {
background-color: #f6f6f6;
font-family: 'Poppins', sans-serif;
}
h1 {
text-align: center;
margin-top: 50px;
font-size: 32px;
font-weight: 600;
color: #333;
}
.container {
max-width: 400px;
margin: 0 auto;
padding: 20px;
background-color: #fff;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.bid-amount {
text-align: center;
font-size: 24px;
font-weight: 500;
color: #333;
}
.bid-increment {
width: 100%;
padding: 10px;
font-size: 18px;
border: 1px solid #ddd;
border-radius: 5px;
margin-top: 20px;
}
.bid-button {
width: 100%;
padding: 10px;
font-size: 18px;
font-weight: 500;
color: #fff;
background-color: #007bff;
border: none;
border-radius: 5px;
margin-top: 20px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.bid-button:hover {
background-color: #0056b3;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h1>Live Bidding App</h1>
<div class="bid-amount">
Current Bid: $<span id="current-bid">0.00</span>
</div>
<input id="bid-increment" class="bid-increment" type="number" placeholder="Enter Bid Increment">
<button id="bid-button" class="bid-button">Place Bid</button>
</div>
</body>
</html>
NEW APPS
These are apps made by the community!