Jiabao V80 Calculator
About this app
Interactive calculator for Jiabao V80
Jiabao V80 Calculator Jiabao V80 Calculator Calculate the volume of a Jiabao V80 microvan based on its dimensions. Length (mm): Width (mm): Height (mm): Calculate Volume
Related apps
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>Jiabao V80 Calculator</title>
<meta name="description" content="Interactive calculator for Jiabao V80">
<meta name="keywords" content="Jiabao V80, calculator, tool, interactive, fun">
<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">
<!-- Built-In Functions for Apps -->
<script type="text/javascript">
var localStoragePrefix = "ct-169044159669007";
var lastSave = 0;
// save to localstorage
function saveLocal(data) {
if (Date.now() - lastSave < 1000) {
return;
}
// save to cookie
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();
}
// load from localstorage
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">
// Jiabao V80 Calculator
function calculate() {
var length = parseFloat($("#length").val());
var width = parseFloat($("#width").val());
var height = parseFloat($("#height").val());
if (!isNaN(length) && !isNaN(width) && !isNaN(height)) {
var volume = length * width * height;
$("#volume").text(volume.toFixed(2));
} else {
$("#volume").text("Invalid input");
}
}
</script>
<style>
/* App CSS Goes Here */
body {
background-color: #f8f8f8;
font-family: 'Roboto', sans-serif;
}
.container {
max-width: 600px;
margin: 0 auto;
text-align: center;
padding-top: 50px;
}
h1 {
color: #003399;
font-size: 32px;
margin-bottom: 30px;
}
p {
color: #666666;
font-size: 18px;
margin-bottom: 20px;
}
label {
display: block;
color: #333333;
font-size: 18px;
margin-bottom: 5px;
text-align: left;
}
input {
width: 100%;
padding: 10px;
margin-bottom: 20px;
border: 1px solid #cccccc;
border-radius: 5px;
font-size: 16px;
box-sizing: border-box;
}
button {
padding: 10px 20px;
background-color: #003399;
color: #ffffff;
font-size: 18px;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
}
button:hover {
background-color: #002280;
}
#volume {
font-size: 24px;
margin-top: 20px;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h1>Jiabao V80 Calculator</h1>
<p>Calculate the volume of a Jiabao V80 microvan based on its dimensions.</p>
<div>
<label for="length">Length (mm):</label>
<input type="number" id="length" placeholder="Enter length" required>
</div>
<div>
<label for="width">Width (mm):</label>
<input type="number" id="width" placeholder="Enter width" required>
</div>
<div>
<label for="height">Height (mm):</label>
<input type="number" id="height" placeholder="Enter height" required>
</div>
<button onclick="calculate()">Calculate Volume</button>
<div id="volume"></div>
</div>
<script type="text/javascript">
$(document).ready(function() {
var savedData = loadLocal();
if (savedData) {
$("#length").val(savedData.length);
$("#width").val(savedData.width);
$("#height").val(savedData.height);
calculate();
}
});
$(window).on("beforeunload", function() {
var data = {
length: parseFloat($("#length").val()),
width: parseFloat($("#width").val()),
height: parseFloat($("#height").val())
};
saveLocal(data);
});
</script>
</body>
</html>
NEW APPS
These are apps made by the community!