New Page
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Fabric Washing Guide</title>
</head>
<body>
<h1>Fabric Washing Guide</h1>
<p>Enter the type of fabric of your garment:</p>
<input type="text" id="fabricTypeInput">
<button onclick="findWashingInstructions()">Find Washing Instructions</button>
<p id="washingInstructions"></p>
<script>
function findWashingInstructions() {
var fabricType = document.getElementById("fabricTypeInput").value.toLowerCase();
var washingInstructions = "";
switch (fabricType) {
case "silk":
washingInstructions = "Hand wash in cold water with mild detergent. Do not wring or twist. Hang to dry away from direct sunlight.";
break;
case "rayon":
washingInstructions = "Hand wash or machine wash on gentle cycle in cold water. Hang to dry or lay flat to dry.";
break;
case "leather":
washingInstructions = "Do not wash leather garments. Use a leather cleaner or take it to a professional leather cleaner.";
break;
case "wool":
washingInstructions = "Hand wash in cold water with a wool-specific detergent. Do not wring or twist. Lay flat to dry.";
break;
case "linen":
washingInstructions = "Machine wash in cold or lukewarm water on a gentle cycle. Hang to dry or lay flat to dry.";
break;
case "suede":
washingInstructions = "Do not wash suede garments. Use a suede brush or take it to a professional suede cleaner.";
break;
default:
washingInstructions = "Sorry, washing instructions for this fabric type are not available.";
break;
}
document.getElementById("washingInstructions").innerText = washingInstructions;
}
</script>
</body>
</html>