Socks Size Calculator
About this app
A fun and colorful tool to calculate socks size using shoe size!
Socks Size Calculator Socks Size Calculator 🧦 Calculate Socks Size
Related apps
Put this on your site
Source
<!DOCTYPE html>
<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>Socks Size Calculator</title>
<meta name="description" content="A fun and colorful tool to calculate socks size using shoe size!">
<meta name="keywords" content="Socks, Size, Calculator, Shoe Size">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Lobster&display=swap" rel="stylesheet">
<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 {
document.addEventListener("DOMContentLoaded", function() {
$("#calculate").click(function(){
var shoeSize = parseInt($("#shoe-size").val());
var socksSize = Math.floor(shoeSize / 3);
$("#socks-size").text("Your socks size is: " + socksSize + " 🧦");
});
});
} catch (error) {
throw error;
}
</script>
<style>
body {
background: linear-gradient(to right, #fc5c7d, #6a82fb);
font-family: 'Lobster', cursive;
color: white;
}
#main-container {
margin-top: 50px;
text-align: center;
}
.form-control {
margin-bottom: 20px;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h1>Socks Size Calculator 🧦</h1>
<input type="number" id="shoe-size" class="form-control" placeholder="Enter your shoe size 👟">
<button id="calculate" class="btn btn-light">Calculate Socks Size</button>
<h2 id="socks-size"></h2>
</div>
</body>
</html>
NEW APPS
These are apps made by the community!