All Rounder Tools Blogger-Best blog for blogger: September 2024

Monday, September 30, 2024

Octal to HEX converter Tool with colorful styling and all its features use any free library

 

Octal to Hex Converter

Octal to Hexadecimal Converter

body { background-color: #f8f9fa; color: #343a40; } .card { background-color: #ffffff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); } .result-text { font-weight: bold; font-size: 1.5em; color: #28a745; /* Green color for result */ } document.getElementById('convertButton').addEventListener('click', function() { const octalInput = document.getElementById('octalInput').value; const resultDiv = document.getElementById('result'); const hexOutput = document.getElementById('hexOutput'); // Validate octal input if (/^[0-7]+$/.test(octalInput)) { // Convert octal to decimal const decimalValue = parseInt(octalInput, 8); // Convert decimal to hexadecimal const hexValue = decimalValue.toString(16).toUpperCase(); hexOutput.textContent = hexValue; resultDiv.style.display = 'block'; } else { alert('Please enter a valid octal number.'); resultDiv.style.display = 'none'; } });

Sunday, September 29, 2024

HEX to Octal converter Tool with colorful styling and all its features use any free library

 

HEX to Octal Converter

HEX to Octal Converter

Octal Value:

body { font-family: 'Arial', sans-serif; background: linear-gradient(135deg, #f3ec78, #af4261); color: white; margin: 0; padding: 0; display: flex; justify-content: center; align-items: center; height: 100vh; } .container { background-color: rgba(0, 0, 0, 0.7); padding: 20px; border-radius: 8px; text-align: center; box-shadow: 0 0 15px rgba(0, 0, 0, 0.5); } h1 { margin-bottom: 20px; } .input-group { margin-bottom: 15px; } label { display: block; margin-bottom: 5px; } input { padding: 10px; border: none; border-radius: 5px; width: 100%; font-size: 16px; } button { padding: 10px 15px; background-color: #6c63ff; color: white; border: none; border-radius: 5px; cursor: pointer; transition: background-color 0.3s ease; } button:hover { background-color: #5a54d5; } .result { margin-top: 20px; } h2 { margin-bottom: 10px; } p { font-size: 18px; font-weight: bold; } document.getElementById('convertButton').addEventListener('click', function() { const hexInput = document.getElementById('hexInput').value.trim(); const resultOutput = document.getElementById('resultOutput'); // Validate hex input if (!/^#?([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(hexInput)) { resultOutput.textContent = 'Please enter a valid HEX color code!'; return; } // Remove hash symbol if present const hexValue = hexInput.replace('#', ''); // Convert HEX to decimal const decimalValue = parseInt(hexValue, 16); // Convert decimal to octal const octalValue = decimalValue.toString(8); resultOutput.textContent = octalValue.toUpperCase(); });

Decimal to Octal converter Tool with colorful styling and all its features use any free library

 

Decimal to Octal Converter

Decimal to Octal Converter

Octal Value:

body { font-family: Arial, sans-serif; background-color: #f0f8ff; color: #333; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; } .container { background-color: #fff; padding: 20px; border-radius: 10px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); text-align: center; } h1 { color: #4a90e2; } input[type="number"] { padding: 10px; margin: 10px 0; border: 2px solid #4a90e2; border-radius: 5px; width: 100%; box-sizing: border-box; transition: border-color 0.3s; } input[type="number"]:focus { border-color: #007bff; outline: none; } button { background-color: #4a90e2; color: white; padding: 10px 15px; border: none; border-radius: 5px; cursor: pointer; transition: background-color 0.3s; } button:hover { background-color: #007bff; } h2 { margin-top: 20px; color: #d35400; } document.getElementById('convertButton').addEventListener('click', function() { const decimalInput = document.getElementById('decimalInput').value; const octalOutput = document.getElementById('octalOutput'); if (decimalInput === "") { octalOutput.textContent = "Please enter a valid decimal number."; return; } const decimalNumber = parseInt(decimalInput, 10); if (isNaN(decimalNumber) || decimalNumber < 0) { octalOutput.textContent = "Please enter a non-negative integer."; return; } const octalNumber = decimalNumber.toString(8); octalOutput.textContent = octalNumber; });

Octal to Decimal converter Tool with colorful styling and all its features use any free library

 

Octal to Decimal Converter

Octal to Decimal Converter

body { font-family: 'Arial', sans-serif; background-color: #f0f4f8; margin: 0; padding: 20px; } .container { max-width: 400px; margin: 0 auto; padding: 20px; border-radius: 10px; background-color: #ffffff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); text-align: center; } h1 { color: #333; } input[type="text"] { width: 80%; padding: 10px; margin-bottom: 10px; border: 2px solid #4a90e2; border-radius: 5px; font-size: 16px; transition: border-color 0.3s; } input[type="text"]:focus { border-color: #007bff; outline: none; } button { padding: 10px 20px; background-color: #4a90e2; color: white; border: none; border-radius: 5px; font-size: 16px; cursor: pointer; transition: background-color 0.3s; } button:hover { background-color: #007bff; } .result { margin-top: 20px; padding: 10px; border: 1px solid #4a90e2; border-radius: 5px; font-size: 18px; color: #333; display: none; } document.getElementById("convertButton").addEventListener("click", function() { const octalInput = document.getElementById("octalInput").value; const resultContainer = document.getElementById("resultContainer"); // Validate input if (!/^[0-7]+$/.test(octalInput)) { resultContainer.textContent = "Please enter a valid octal number."; resultContainer.style.color = "red"; resultContainer.style.display = "block"; return; } // Convert octal to decimal const decimalValue = parseInt(octalInput, 8); // Display result resultContainer.textContent = `Decimal Value: ${decimalValue}`; resultContainer.style.color = "#4a90e2"; // Color for valid output resultContainer.style.display = "block"; });

Saturday, September 28, 2024

Binary to Octal converter Tool with colorful styling and all its features use any free library

 

Binary to Octal Converter

Binary to Octal Converter

Octal Result:

-

Note: Only binary numbers (0s and 1s) are accepted.

body { font-family: Arial, sans-serif; background-color: #f0f8ff; color: #333; margin: 0; padding: 20px; } .container { max-width: 600px; margin: 0 auto; padding: 20px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); background-color: #fff; } h1 { text-align: center; color: #4CAF50; } .input-group { margin-bottom: 20px; } label { display: block; margin-bottom: 5px; font-weight: bold; } input[type="text"] { width: 100%; padding: 10px; border: 2px solid #4CAF50; border-radius: 4px; } button { width: 100%; padding: 10px; background-color: #4CAF50; color: white; border: none; border-radius: 4px; font-size: 16px; cursor: pointer; transition: background-color 0.3s; } button:hover { background-color: #45a049; } .result-group { margin-top: 20px; } h2 { color: #4CAF50; } .note { margin-top: 10px; font-style: italic; color: #666; } document.getElementById('convertButton').addEventListener('click', function() { const binaryInput = document.getElementById('binaryInput').value; const resultElement = document.getElementById('result'); // Validate binary input if (!/^[01]+$/.test(binaryInput)) { resultElement.textContent = "Invalid input! Please enter a valid binary number."; return; } // Convert binary to decimal const decimal = parseInt(binaryInput, 2); // Convert decimal to octal const octal = decimal.toString(8); // Display result resultElement.textContent = octal; });

Octal to Binary converter Tool with colorful styling and all its features use any free library

 

Octal to Binary Converter

Octal to Binary Converter

Binary Value:

0

body { font-family: Arial, sans-serif; background: linear-gradient(to right, #4facfe, #00f2fe); display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; } .container { background: white; border-radius: 15px; padding: 20px; box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); text-align: center; max-width: 400px; width: 90%; } h1 { color: #333; } input[type="text"] { width: 100%; padding: 10px; border: 2px solid #00f2fe; border-radius: 5px; margin-bottom: 10px; font-size: 16px; } button { background-color: #4facfe; color: white; border: none; padding: 10px; border-radius: 5px; cursor: pointer; font-size: 16px; transition: background-color 0.3s; } button:hover { background-color: #00f2fe; } .result { margin-top: 20px; } h2 { color: #333; } #binaryOutput { font-size: 24px; font-weight: bold; color: #4facfe; } document.getElementById("convertButton").addEventListener("click", function() { const octalInput = document.getElementById("octalInput").value; const binaryOutput = document.getElementById("binaryOutput"); // Validate input if (octalInput === "") { binaryOutput.textContent = "Please enter a valid number!"; return; } // Check if the input is a valid octal number if (!/^[0-7]+$/.test(octalInput)) { binaryOutput.textContent = "Please enter a valid octal number!"; return; } // Convert octal to decimal const decimalValue = parseInt(octalInput, 8); // Convert decimal to binary const binaryValue = decimalValue.toString(2); // Update output binaryOutput.textContent = binaryValue; });

Decimal to HEX converter Tool with colorful styling and all its features use any free library

 

Decimal to HEX Converter

Decimal to HEX Converter

HEX Value:

#

body { font-family: Arial, sans-serif; background: linear-gradient(to right, #ff7e5f, #feb47b); display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; } .container { background: white; border-radius: 15px; padding: 20px; box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); text-align: center; max-width: 400px; width: 100%; } h1 { color: #333; } input[type="number"] { width: 100%; padding: 10px; border: 2px solid #feb47b; border-radius: 5px; margin-bottom: 10px; font-size: 16px; } button { background-color: #ff7e5f; color: white; border: none; padding: 10px; border-radius: 5px; cursor: pointer; font-size: 16px; transition: background-color 0.3s; } button:hover { background-color: #feb47b; } .result { margin-top: 20px; } h2 { color: #333; } #hexOutput { font-size: 24px; font-weight: bold; color: #ff7e5f; } document.getElementById("convertButton").addEventListener("click", function() { const decimalInput = document.getElementById("decimalInput").value; const hexOutput = document.getElementById("hexOutput"); if (decimalInput === "") { hexOutput.textContent = "Please enter a valid number!"; return; } const decimalNumber = parseInt(decimalInput, 10); if (isNaN(decimalNumber) || decimalNumber < 0) { hexOutput.textContent = "Please enter a positive integer!"; } else { const hexValue = decimalNumber.toString(16).toUpperCase(); hexOutput.textContent = `#${hexValue}`; } });

HEX to Decimal converter Tool with colorful styling and all its features use any free library

 

HEX to Decimal Converter

HEX to Decimal Converter

body { font-family: 'Arial', sans-serif; background: linear-gradient(135deg, #f0f4f8, #a7c6ed); color: #333; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; } .container { text-align: center; background: white; padding: 30px; border-radius: 15px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); } h1 { color: #4a90e2; margin-bottom: 20px; } input { padding: 10px; border: 2px solid #4a90e2; border-radius: 5px; width: 80%; max-width: 300px; margin-bottom: 20px; transition: border-color 0.3s; } input:focus { border-color: #0056b3; outline: none; } button { padding: 10px 15px; background-color: #4a90e2; color: white; border: none; border-radius: 5px; cursor: pointer; transition: background-color 0.3s; } button:hover { background-color: #0056b3; } .result { margin-top: 20px; font-size: 1.5em; color: #4caf50; } document.getElementById('convertBtn').addEventListener('click', function() { const hexInput = document.getElementById('hexInput').value; const resultDiv = document.getElementById('result'); // Remove the hash if it's present const hex = hexInput.replace('#', ''); // Validate hex input const isValidHex = /^[0-9A-Fa-f]{1,6}$/.test(hex); if (isValidHex) { const decimalValue = parseInt(hex, 16); resultDiv.textContent = `Decimal Value: ${decimalValue}`; } else { resultDiv.textContent = 'Please enter a valid HEX color code.'; } });

Thursday, September 26, 2024

ASCII to Text converter Tool with colorful styling and all its features use any free library...

 

ASCII to Text Converter

ASCII to Text Converter

Converted Text:

body { font-family: Arial, sans-serif; background-color: #f0f8ff; color: #333; margin: 0; padding: 0; display: flex; justify-content: center; align-items: center; height: 100vh; } .container { background: linear-gradient(135deg, #ff7e5f, #feb47b); padding: 20px; border-radius: 15px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); text-align: center; width: 90%; max-width: 500px; } h1 { margin-bottom: 20px; font-size: 24px; color: #fff; } textarea { width: 100%; height: 100px; padding: 10px; border: none; border-radius: 5px; resize: none; font-size: 16px; } button { background-color: #4CAF50; color: white; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; font-size: 16px; margin-top: 10px; transition: background-color 0.3s; } button:hover { background-color: #45a049; } .result { margin-top: 20px; padding: 10px; border: 1px solid #ccc; border-radius: 5px; background-color: #fff; } h2 { color: #4CAF50; } document.getElementById('convertBtn').addEventListener('click', function() { const asciiInput = document.getElementById('asciiInput').value; const textOutput = document.getElementById('textOutput'); // Split input by commas and convert each ASCII value to character const asciiValues = asciiInput.split(',').map(val => val.trim()); const text = asciiValues.map(val => String.fromCharCode(parseInt(val, 10))).join(''); textOutput.textContent = text || 'Please enter valid ASCII values.'; });

Wednesday, September 25, 2024

Text to ASCII converter Tool with colorful styling and all its features use any free library...

 

Text to ASCII Converter

Text to ASCII Converter

ASCII Output


    
body { background-color: #f0f0f0; font-family: Arial, sans-serif; margin: 0; padding: 0; } .container { max-width: 600px; margin: 50px auto; padding: 20px; background-color: white; border-radius: 8px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); } h1 { color: #333; text-align: center; } textarea { width: 100%; height: 150px; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 16px; resize: none; } textarea:focus { border-color: #6a5acd; outline: none; } button { width: 100%; padding: 10px; background-color: #6a5acd; color: white; border: none; border-radius: 4px; font-size: 18px; cursor: pointer; transition: background-color 0.3s; } button:hover { background-color: #483d8b; } h2 { color: #333; } pre { background-color: #e6e6fa; border-radius: 4px; padding: 10px; overflow-x: auto; white-space: pre-wrap; /* Allow wrapping of ASCII output */ } document.getElementById('convertButton').addEventListener('click', function() { const inputText = document.getElementById('inputText').value; const outputASCII = document.getElementById('outputASCII'); if (inputText) { let asciiOutput = ''; for (let char of inputText) { asciiOutput += char.charCodeAt(0) + ' '; } outputASCII.textContent = asciiOutput.trim(); } else { outputASCII.textContent = 'Please enter some text to convert.'; } });

Binary to Decimal converter Tool with colorful styling and all its features use any free library...

 

Binary to Decimal Converter

Binary to Decimal Converter

body { font-family: 'Arial', sans-serif; background: linear-gradient(135deg, #f5f7fa, #c3cfe2); display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; } .container { background-color: #ffffff; border-radius: 10px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); padding: 20px; text-align: center; width: 90%; max-width: 400px; } h1 { color: #333; } input { width: 100%; padding: 10px; margin: 10px 0; border: 2px solid #4CAF50; border-radius: 5px; font-size: 16px; } button { background-color: #4CAF50; color: white; padding: 10px 15px; border: none; border-radius: 5px; cursor: pointer; font-size: 16px; } button:hover { background-color: #45a049; } .result { margin-top: 20px; font-size: 20px; color: #4CAF50; } .error { margin-top: 20px; font-size: 20px; color: #ff0000; } document.getElementById('convertBtn').addEventListener('click', function() { const binaryInput = document.getElementById('binaryInput').value; const resultDisplay = document.getElementById('resultDisplay'); const errorDisplay = document.getElementById('errorDisplay'); // Clear previous results resultDisplay.innerHTML = ''; errorDisplay.innerHTML = ''; // Validate binary input if (!/^[01]+$/.test(binaryInput)) { errorDisplay.innerHTML = 'Please enter a valid binary number.'; return; } // Convert binary to decimal const decimalValue = parseInt(binaryInput, 2); resultDisplay.innerHTML = `Decimal Value: ${decimalValue}`; });

Decimal to Binary converter Tool with colorful styling and all its features use any free library...

 

Decimal to Binary Converter

Decimal to Binary Converter

Binary:

body { background-color: #f0f8ff; color: #333; } .title { color: #ff6347; margin-bottom: 20px; font-family: 'Arial', sans-serif; } .result { font-size: 1.5rem; margin-top: 20px; color: #4caf50; font-family: 'Courier New', Courier, monospace; } document.getElementById('convertButton').addEventListener('click', function() { const decimalInput = document.getElementById('decimalInput').value; const binaryResult = document.getElementById('binaryResult'); if (decimalInput === '' || decimalInput < 0) { binaryResult.textContent = 'Please enter a valid non-negative decimal number.'; } else { const binaryValue = Number(decimalInput).toString(2); binaryResult.textContent = 'Binary: ' + binaryValue; } });

Binary to ASCII converter Tool with colorful styling and all its features use any free library...

 

Binary to ASCII Converter

Binary to ASCII Converter

ASCII Output

body { font-family: Arial, sans-serif; background-color: #f4f4f9; color: #333; margin: 0; padding: 0; } .container { max-width: 600px; margin: auto; padding: 20px; border-radius: 10px; background: linear-gradient(135deg, #74ebd5, #acb6e5); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); } h1 { text-align: center; color: #fff; } textarea { width: 100%; height: 150px; padding: 10px; border: 2px solid #fff; border-radius: 5px; resize: none; font-size: 16px; } textarea:focus { outline: none; border-color: #f8e2a1; } button { display: block; width: 100%; padding: 10px; margin: 20px 0; border: none; border-radius: 5px; background-color: #ff6f61; color: white; font-size: 16px; cursor: pointer; transition: background-color 0.3s; } button:hover { background-color: #ff4a3b; } .output { padding: 10px; border: 2px solid #fff; border-radius: 5px; background-color: #fff; font-size: 18px; word-wrap: break-word; min-height: 50px; } document.getElementById('convertButton').addEventListener('click', function() { const binaryInput = document.getElementById('binaryInput').value.trim(); const asciiOutput = document.getElementById('asciiOutput'); // Clear previous output asciiOutput.innerHTML = ''; if (binaryInput === '') { asciiOutput.innerHTML = 'Please enter binary code.'; return; } // Split the input into chunks of 8 (1 byte) const binaryArray = binaryInput.split(' '); let asciiString = ''; // Convert each binary byte to ASCII binaryArray.forEach(binary => { if (binary.length === 8 && /^[01]+$/.test(binary)) { asciiString += String.fromCharCode(parseInt(binary, 2)); } else { asciiString += '?'; // Placeholder for invalid binary } }); // Display the output asciiOutput.innerHTML = asciiString || 'Invalid binary input.'; });

ASCII to Binary converter Tool with colorful styling and all its features use any free library ...

 

ASCII to Binary Converter

ASCII to Binary Converter

Binary Output:

body { background-color: #f0f0f0; font-family: 'Arial', sans-serif; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; } .container { background-color: #ffffff; border-radius: 8px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); padding: 20px; width: 90%; max-width: 600px; } h1 { color: #4a90e2; text-align: center; } textarea { width: 100%; height: 150px; padding: 10px; margin: 10px 0; border: 1px solid #cccccc; border-radius: 4px; resize: none; font-size: 16px; } button { background-color: #4caf50; color: white; padding: 10px 15px; border: none; border-radius: 4px; cursor: pointer; font-size: 16px; width: 100%; } button:hover { background-color: #45a049; } h2 { color: #e67e22; text-align: center; } document.getElementById('convertButton').addEventListener('click', function() { const asciiInput = document.getElementById('asciiInput').value; const binaryOutput = asciiToBinary(asciiInput); document.getElementById('binaryOutput').value = binaryOutput; }); function asciiToBinary(str) { return str.split('') .map(char => char.charCodeAt(0).toString(2).padStart(8, '0')) .join(' '); }

Binary to HEX converter Tool with colorful styling and all its features use any free library...

 

Binary to HEX Converter

Binary to HEX Converter

Hexadecimal Output:

body { background-color: #f8f9fa; } .card { box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); } #hexOutput { font-weight: bold; color: #007bff; font-size: 1.5rem; } document.getElementById("convertButton").addEventListener("click", function() { const binaryInput = document.getElementById("binaryInput").value; const hexOutput = document.getElementById("hexOutput"); // Validate binary input if (/^[01]+$/.test(binaryInput)) { // Convert binary to decimal const decimal = parseInt(binaryInput, 2); // Convert decimal to hexadecimal const hex = decimal.toString(16).toUpperCase(); hexOutput.textContent = hex; } else { hexOutput.textContent = "Please enter a valid binary number."; hexOutput.style.color = "red"; } });

HEX to Binary converter Tool with colorful styling and all its features use any free library...

 

HEX to Binary Converter

HEX to Binary Converter

Binary Output:

body { background-color: #f8f9fa; } .card { background-color: #ffffff; border-radius: 15px; } .btn { transition: background-color 0.3s ease; } .btn:hover { background-color: #17a2b8; } #binaryOutput { font-family: monospace; font-size: 1.2em; color: #343a40; overflow-wrap: break-word; } document.getElementById('convertBtn').addEventListener('click', function() { const hexInput = document.getElementById('hexInput').value.trim(); const binaryOutput = document.getElementById('binaryOutput'); // Validate HEX input if (!/^([0-9A-Fa-f]{1,6})$/.test(hexInput)) { binaryOutput.textContent = "Please enter a valid HEX value (1 to 6 characters)."; binaryOutput.style.color = 'red'; return; } // Convert HEX to Binary const decimalValue = parseInt(hexInput, 16); const binaryValue = decimalValue.toString(2); binaryOutput.textContent = binaryValue; binaryOutput.style.color = 'green'; });

Binary to Text converter Tool with colorful styling and all its features use any free library...

 

Binary to Text Converter

Binary to Text Converter

Converted Text

* { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: Arial, sans-serif; background: linear-gradient(135deg, #f3f4f6, #e2e8f0); color: #333; display: flex; justify-content: center; align-items: center; height: 100vh; } .container { background: #ffffff; border-radius: 8px; padding: 20px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); width: 90%; max-width: 600px; text-align: center; } h1 { color: #4A90E2; } textarea { width: 100%; height: 100px; margin: 10px 0; padding: 10px; border: 2px solid #4A90E2; border-radius: 4px; font-size: 16px; resize: none; } textarea:focus { border-color: #2E86C1; outline: none; } button { background-color: #4A90E2; color: white; border: none; border-radius: 4px; padding: 10px 20px; cursor: pointer; font-size: 16px; transition: background-color 0.3s; } button:hover { background-color: #357ABD; } document.getElementById("convertButton").addEventListener("click", function() { const binaryInput = document.getElementById("binaryInput").value; const textOutput = document.getElementById("textOutput"); // Split the input by spaces and convert each binary to decimal const binaryArray = binaryInput.split(' '); let text = ''; binaryArray.forEach(binary => { // Check if the binary is valid (should be 8 bits) if (/^[01]{8}$/.test(binary)) { const charCode = parseInt(binary, 2); text += String.fromCharCode(charCode); } else { text += '?'; // Append a placeholder for invalid binary } }); textOutput.value = text; });

Text to Binary converter Tool with colorful styling and all its features use any free library...

 

Text to Binary Converter

Text to Binary Converter

Binary Output:

body { font-family: Arial, sans-serif; background: linear-gradient(to right, #6a11cb, #2575fc); color: #ffffff; margin: 0; padding: 20px; } .container { max-width: 600px; margin: auto; background: rgba(0, 0, 0, 0.7); border-radius: 10px; padding: 20px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); } h1 { text-align: center; color: #ffeb3b; } textarea { width: 100%; height: 150px; border: none; border-radius: 5px; padding: 10px; font-size: 16px; margin-bottom: 20px; } button { background-color: #ff5722; border: none; border-radius: 5px; color: white; padding: 10px 15px; cursor: pointer; font-size: 16px; transition: background-color 0.3s; width: 100%; } button:hover { background-color: #e64a19; } .result { margin-top: 20px; padding: 10px; background: rgba(255, 255, 255, 0.1); border-radius: 5px; } #binaryOutput { white-space: pre-wrap; /* Preserve whitespace and formatting */ } document.getElementById("convertButton").addEventListener("click", function() { const inputText = document.getElementById("inputText").value; const binaryOutput = document.getElementById("binaryOutput"); if (inputText.trim() === "") { binaryOutput.textContent = "Please enter some text to convert."; return; } const binaryResult = textToBinary(inputText); binaryOutput.textContent = binaryResult; }); function textToBinary(text) { return text.split('').map(char => { return char.charCodeAt(0).toString(2).padStart(8, '0'); }).join(' '); }

Video to Audio Converter Tool with colorful styling and all its features use any free library...

 

Video to Audio Converter

Video to Audio Converter

body { font-family: Arial, sans-serif; background-color: #f0f4f8; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; } .container { background: linear-gradient(135deg, #6d5f9f, #b6b0d7); border-radius: 15px; padding: 20px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); text-align: center; color: white; } h1 { margin-bottom: 20px; } input[type="file"] { padding: 10px; border: none; border-radius: 5px; margin-bottom: 10px; } button { background-color: #ff6b6b; color: white; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; transition: background-color 0.3s; } button:hover { background-color: #ff4c4c; } #message { margin-top: 10px; color: #ffd700; } document.getElementById('convertButton').addEventListener('click', function() { const videoInput = document.getElementById('videoInput'); const audioOutput = document.getElementById('audioOutput'); const message = document.getElementById('message'); if (videoInput.files.length === 0) { message.textContent = "Please select a video file."; return; } const videoFile = videoInput.files[0]; const audioContext = new (window.AudioContext || window.webkitAudioContext)(); const reader = new FileReader(); reader.onload = function(e) { const videoBlob = new Blob([e.target.result], { type: videoFile.type }); const videoURL = URL.createObjectURL(videoBlob); const video = document.createElement('video'); video.src = videoURL; video.addEventListener('loadedmetadata', function() { const source = audioContext.createMediaElementSource(video); const destination = audioContext.destination; source.connect(destination); video.play(); const audioBuffer = audioContext.createBufferSource(); const mediaRecorder = new MediaRecorder(audioContext.createMediaStreamDestination().stream); mediaRecorder.ondataavailable = function(event) { const audioBlob = new Blob([event.data], { type: 'audio/webm' }); const audioURL = URL.createObjectURL(audioBlob); audioOutput.src = audioURL; audioOutput.style.display = 'block'; message.textContent = "Conversion complete! Enjoy your audio."; }; mediaRecorder.start(); video.play(); video.addEventListener('ended', function() { mediaRecorder.stop(); audioContext.close(); }); }); }; reader.readAsArrayBuffer(videoFile); });

URL Shortener Tool with colorful styling and all its features use any free library...

 

URL Shortener Tool

URL Shortener

body { font-family: Arial, sans-serif; background: linear-gradient(135deg, #f0f4c3, #81c784); margin: 0; padding: 0; display: flex; justify-content: center; align-items: center; height: 100vh; } .container { background: white; border-radius: 10px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); padding: 20px; text-align: center; width: 90%; max-width: 400px; } h1 { color: #388e3c; margin-bottom: 20px; } input { width: 100%; padding: 10px; margin-bottom: 10px; border: 1px solid #ccc; border-radius: 5px; } button { background-color: #388e3c; color: white; border: none; padding: 10px; border-radius: 5px; cursor: pointer; transition: background-color 0.3s ease; } button:hover { background-color: #66bb6a; } .result { margin-top: 20px; display: none; } #shortenedUrl { color: #1976d2; font-weight: bold; } document.getElementById('shortenBtn').addEventListener('click', async () => { const urlInput = document.getElementById('urlInput').value; const resultContainer = document.getElementById('resultContainer'); const shortenedUrl = document.getElementById('shortenedUrl'); // Basic URL validation if (!urlInput) { alert('Please enter a URL'); return; } // Simulating URL shortening with a placeholder // Replace this part with a real API call to shorten URLs try { const mockShortenedUrl = `https://short.url/${btoa(urlInput).slice(0, 5)}`; shortenedUrl.innerText = mockShortenedUrl; resultContainer.style.display = 'block'; } catch (error) { console.error('Error shortening URL:', error); alert('Error shortening URL. Please try again.'); } });

Toss Coin Game Tool with colorful styling and all its features use any free library

 

Toss Coin Game

Toss Coin Game

body { font-family: Arial, sans-serif; background-color: #f0f8ff; margin: 0; padding: 20px; } .container { max-width: 400px; margin: auto; text-align: center; background: #fff; border-radius: 10px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); padding: 20px; } h1 { color: #333; } .coin { width: 100px; height: 100px; margin: 20px auto; border-radius: 50%; background: linear-gradient(45deg, #ffcc00, #ff9900); display: flex; justify-content: center; align-items: center; font-size: 2em; transition: transform 0.8s; } button { background-color: #007bff; color: white; border: none; border-radius: 5px; padding: 10px 15px; cursor: pointer; font-size: 16px; transition: background-color 0.3s; } button:hover { background-color: #0056b3; } .result { margin-top: 20px; font-size: 1.5em; color: #555; } const tossButton = document.getElementById('tossButton'); const coin = document.getElementById('coin'); const resultDisplay = document.getElementById('result'); tossButton.addEventListener('click', tossCoin); function tossCoin() { // Adding a rotation animation coin.style.transform = 'rotateY(0deg)'; setTimeout(() => { coin.style.transform = 'rotateY(1800deg)'; }, 50); // Determine result after animation setTimeout(() => { const result = Math.random() < 0.5 ? 'Heads' : 'Tails'; coin.innerHTML = result === 'Heads' ? '🪙' : '🪙'; resultDisplay.textContent = `Result: ${result}`; }, 800); }

Text Editor Tool with colorful styling and all its features use any free library...

 

Text Editor Tool
body { font-family: Arial, sans-serif; background-color: #f4f4f4; margin: 0; padding: 20px; } .editor-container { max-width: 800px; margin: auto; background: #fff; border-radius: 5px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); overflow: hidden; } .toolbar { background-color: #007bff; padding: 10px; display: flex; justify-content: space-around; } .toolbar button { background: none; border: none; color: white; font-size: 16px; cursor: pointer; padding: 10px; transition: background-color 0.3s; } .toolbar button:hover { background-color: rgba(255, 255, 255, 0.2); } .editor { padding: 20px; min-height: 300px; outline: none; font-size: 16px; color: #333; } .editor:focus { border: 2px solid #007bff; } function formatText(command) { document.execCommand(command, false, null); } function changeColor() { const color = prompt("Enter a color or hex code (e.g. red, #ff0000):"); if (color) { document.execCommand('foreColor', false, color); } } function clearEditor() { document.getElementById('editor').innerHTML = ''; }

SpeedTest Checker Tool with colorful styling and all its features use any free library

 

Speed Test Checker

Speed Test Checker

Results:

* { box-sizing: border-box; } body { font-family: Arial, sans-serif; background-color: #e3f2fd; color: #333; margin: 0; padding: 20px; } .container { max-width: 600px; margin: 0 auto; padding: 20px; border-radius: 8px; background: #ffffff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); } h1 { text-align: center; color: #2196f3; } button { display: block; width: 100%; padding: 10px; background-color: #2196f3; color: white; border: none; border-radius: 5px; cursor: pointer; margin-bottom: 20px; } button:hover { background-color: #1976d2; } .output { margin-top: 20px; } p { font-size: 1.2em; color: #2196f3; } #status { text-align: center; margin-top: 10px; font-weight: bold; } document.getElementById('start-btn').addEventListener('click', function() { const downloadSpeedDisplay = document.getElementById('download-speed'); const uploadSpeedDisplay = document.getElementById('upload-speed'); const pingDisplay = document.getElementById('ping'); const statusDisplay = document.getElementById('status'); statusDisplay.innerText = "Testing your speed..."; const speedTest = new SpeedTest(); speedTest.getBestServer().then(server => { return speedTest.downloadSpeed(); }).then(downloadSpeed => { downloadSpeedDisplay.innerText = `Download Speed: ${(downloadSpeed / 1e6).toFixed(2)} Mbps`; return speedTest.uploadSpeed(); }).then(uploadSpeed => { uploadSpeedDisplay.innerText = `Upload Speed: ${(uploadSpeed / 1e6).toFixed(2)} Mbps`; return speedTest.getPing(); }).then(ping => { pingDisplay.innerText = `Ping: ${ping} ms`; statusDisplay.innerText = "Speed Test Completed!"; }).catch(err => { console.error(err); statusDisplay.innerText = "Error during speed test."; }); });

Speach to Text Converter Tool with colorful styling and all its features use any free library...

 

Speech to Text Converter

Speech to Text Converter

Converted Text:

* { box-sizing: border-box; } body { font-family: Arial, sans-serif; background-color: #e3f2fd; color: #333; margin: 0; padding: 20px; } .container { max-width: 600px; margin: 0 auto; padding: 20px; border-radius: 8px; background: #ffffff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); } h1 { text-align: center; color: #2196f3; } button { display: block; width: 100%; padding: 10px; background-color: #2196f3; color: white; border: none; border-radius: 5px; cursor: pointer; margin-bottom: 20px; } button:hover { background-color: #1976d2; } .output { margin-top: 20px; } textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 5px; font-family: monospace; resize: none; } #status { text-align: center; margin-top: 10px; font-weight: bold; } const startButton = document.getElementById('start-btn'); const outputText = document.getElementById('output-text'); const status = document.getElementById('status'); let recognition; if ('webkitSpeechRecognition' in window) { recognition = new webkitSpeechRecognition(); recognition.continuous = false; // Stop after one recognition recognition.interimResults = false; // Do not show interim results recognition.lang = 'en-US'; // Set the language recognition.onstart = function() { status.innerText = "Listening..."; }; recognition.onresult = function(event) { const transcript = event.results[0][0].transcript; outputText.value += transcript + ' '; status.innerText = "Conversion complete!"; }; recognition.onerror = function(event) { status.innerText = "Error occurred in recognition: " + event.error; }; recognition.onend = function() { status.innerText = "Click 'Start Listening' to continue."; }; } else { status.innerText = "Speech recognition is not supported in this browser."; } startButton.addEventListener('click', function() { if (recognition) { outputText.value = ''; // Clear previous output recognition.start(); } });

Reverse Text Generator Tool with colorful styling and all its features use any free library...

 

Reverse Text Generator

Reverse Text Generator

Reversed Text:

* { box-sizing: border-box; } body { font-family: Arial, sans-serif; background-color: #fce4ec; color: #333; margin: 0; padding: 20px; } .container { max-width: 600px; margin: 0 auto; padding: 20px; border-radius: 8px; background: #ffffff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); } h1 { text-align: center; color: #e91e63; } textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 5px; margin: 10px 0; resize: none; } button { display: block; width: 100%; padding: 10px; background-color: #e91e63; color: white; border: none; border-radius: 5px; cursor: pointer; } button:hover { background-color: #d81b60; } .output { margin-top: 20px; } #reversed-text { font-size: 1.2em; color: #e91e63; text-align: center; } document.getElementById('reverse-btn').addEventListener('click', function() { const inputText = document.getElementById('input-text').value; const reversedTextDisplay = document.getElementById('reversed-text'); if (!inputText) { reversedTextDisplay.innerText = "Please enter some text."; return; } const reversedText = inputText.split('').reverse().join(''); reversedTextDisplay.innerText = reversedText; });

Reading Time Calculator Tool with colorful styling and all its features use any free library...

 

Reading Time Calculator

Reading Time Calculator

Estimated Reading Time:

* { box-sizing: border-box; } body { font-family: Arial, sans-serif; background-color: #e0f7fa; color: #333; margin: 0; padding: 20px; } .container { max-width: 600px; margin: 0 auto; padding: 20px; border-radius: 8px; background: #ffffff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); } h1 { text-align: center; color: #00796b; } textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 5px; margin: 10px 0; resize: none; } button { display: block; width: 100%; padding: 10px; background-color: #00796b; color: white; border: none; border-radius: 5px; cursor: pointer; } button:hover { background-color: #00695c; } .output { margin-top: 20px; } #reading-time { font-size: 1.5em; color: #00796b; text-align: center; } document.getElementById('calculate-btn').addEventListener('click', function() { const inputText = document.getElementById('input-text').value; const readingTimeDisplay = document.getElementById('reading-time'); if (!inputText) { readingTimeDisplay.innerText = "Please enter some text."; return; } const wordsPerMinute = 200; // Average reading speed const textLength = inputText.split(/\s+/).filter(word => word.length > 0).length; // Count words const readingTimeInMinutes = Math.ceil(textLength / wordsPerMinute); if (readingTimeInMinutes === 0) { readingTimeDisplay.innerText = "Please enter more text."; } else if (readingTimeInMinutes === 1) { readingTimeDisplay.innerText = "Estimated reading time: 1 minute."; } else { readingTimeDisplay.innerText = `Estimated reading time: ${readingTimeInMinutes} minutes.`; } });

Language Translator Tool with colorful styling and all its features use any free library...

 

Language Translator Tool

Language Translator Tool

Translated Text:

* { box-sizing: border-box; } body { font-family: Arial, sans-serif; background-color: #e8f0fe; color: #333; margin: 0; padding: 20px; } .container { max-width: 600px; margin: 0 auto; padding: 20px; border-radius: 8px; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); } h1 { text-align: center; color: #4CAF50; } textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 5px; font-family: monospace; margin: 10px 0; resize: none; } select { width: 48%; padding: 10px; border: 1px solid #ccc; border-radius: 5px; margin: 10px 1%; } button { display: block; width: 100%; padding: 10px; background-color: #4CAF50; color: white; border: none; border-radius: 5px; cursor: pointer; } button:hover { background-color: #45a049; } .output { margin-top: 20px; } #status { text-align: center; margin-top: 10px; font-weight: bold; } document.getElementById('translate-btn').addEventListener('click', function() { const inputText = document.getElementById('input-text').value; const fromLang = document.getElementById('from-lang').value; const toLang = document.getElementById('to-lang').value; const outputText = document.getElementById('output-text'); const status = document.getElementById('status'); if (!inputText) { status.innerText = "Please enter text to translate."; return; } status.innerText = "Translating..."; outputText.value = ''; fetch('https://libretranslate.com/translate', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ q: inputText, source: fromLang, target: toLang, format: "text" }) }) .then(response => response.json()) .then(data => { outputText.value = data.translatedText; status.innerText = "Translation complete!"; }) .catch(err => { console.error(err); status.innerText = "Error during translation."; }); });

Image to Text Converter Tool with colorful styling and all its features use any free library...

 

Image to Text Converter

Image to Text Converter

Converted Text:

* { box-sizing: border-box; } body { font-family: Arial, sans-serif; background-color: #f0f4f8; color: #333; margin: 0; padding: 20px; } .container { max-width: 600px; margin: 0 auto; padding: 20px; border-radius: 8px; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); } h1 { text-align: center; color: #4CAF50; } input[type="file"] { display: block; margin: 20px auto; } button { display: block; width: 100%; padding: 10px; background-color: #4CAF50; color: white; border: none; border-radius: 5px; cursor: pointer; } button:hover { background-color: #45a049; } .output { margin-top: 20px; } textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 5px; font-family: monospace; resize: none; } #status { text-align: center; margin-top: 10px; font-weight: bold; } document.getElementById('convert-btn').addEventListener('click', function() { const fileInput = document.getElementById('file-input'); const outputText = document.getElementById('output-text'); const status = document.getElementById('status'); if (fileInput.files.length === 0) { status.innerText = "Please upload an image."; return; } const file = fileInput.files[0]; const reader = new FileReader(); reader.onload = function(event) { const img = new Image(); img.src = event.target.result; img.onload = function() { status.innerText = "Converting..."; Tesseract.recognize( img, 'eng', { logger: info => console.log(info) // Optional: Log progress } ).then(({ data: { text } }) => { outputText.value = text; status.innerText = "Conversion complete!"; }).catch(err => { console.error(err); status.innerText = "Error during conversion."; }); }; }; reader.readAsDataURL(file); });

Tuesday, September 24, 2024

Fake Name Generator Tool with colorful styling and all its features use any free library...

 

Fake Name Generator

Fake Name Generator

body { font-family: Arial, sans-serif; background-color: #f0f8ff; color: #333; margin: 0; padding: 0; } .container { max-width: 600px; margin: auto; padding: 20px; text-align: center; background: linear-gradient(135deg, #ffafbd, #ffc3a0); border-radius: 10px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); } h1 { font-size: 2.5em; margin-bottom: 20px; } .generator { margin-top: 20px; } button { padding: 10px 20px; font-size: 1.2em; background-color: #ff6b6b; color: white; border: none; border-radius: 5px; cursor: pointer; transition: background-color 0.3s; } button:hover { background-color: #ff4d4d; } .output { margin-top: 20px; padding: 20px; background-color: white; border-radius: 5px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); } h2 { margin: 10px 0; font-size: 1.8em; color: #333; } p { margin: 5px 0; font-size: 1.2em; } document.getElementById('generate').addEventListener('click', generateFakeName); function generateFakeName() { const names = ["John Doe", "Jane Smith", "Emily Johnson", "Michael Brown", "Jessica Williams"]; const streets = ["123 Elm St", "456 Maple Ave", "789 Oak Dr", "101 Pine Ct", "202 Birch Blvd"]; const cities = ["Springfield", "Greenville", "Fairview", "Midtown", "Riverside"]; const states = ["NY", "CA", "TX", "FL", "IL"]; const zipCodes = ["12345", "67890", "10112", "13141", "51516"]; const randomName = names[Math.floor(Math.random() * names.length)]; const randomAddress = `${streets[Math.floor(Math.random() * streets.length)]}, ${cities[Math.floor(Math.random() * cities.length)]}, ${states[Math.floor(Math.random() * states.length)]} ${zipCodes[Math.floor(Math.random() * zipCodes.length)]}`; const randomEmail = randomName.split(" ").join("").toLowerCase() + "@example.com"; const randomPhone = `(${Math.floor(Math.random() * 900 + 100)}) ${Math.floor(Math.random() * 900 + 100)}-${Math.floor(Math.random() * 9000 + 1000)}`; document.getElementById('name').innerText = randomName; document.getElementById('address').innerText = randomAddress; document.getElementById('email').innerText = randomEmail; document.getElementById('phone').innerText = randomPhone; }

Fake Address Generator Tool with colorful styling and all its features use any free library...

 

Fake Address Generator

Fake Address Generator

body { font-family: 'Arial', sans-serif; background-color: #f0f4f8; color: #333; margin: 0; padding: 0; } .container { max-width: 600px; margin: 50px auto; padding: 20px; background-color: #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); text-align: center; } h1 { color: #007bff; } button { padding: 10px 20px; background-color: #007bff; color: #fff; border: none; border-radius: 4px; font-size: 16px; cursor: pointer; transition: background-color 0.3s; } button:hover { background-color: #0056b3; } .address { margin-top: 20px; padding: 15px; border: 1px solid #007bff; border-radius: 4px; background-color: #e7f3ff; color: #0056b3; display: none; /* Hidden initially */ font-size: 18px; } $(document).ready(function() { const streets = [ "Main St", "High St", "Oak St", "Pine St", "Maple Ave", "Cedar St", "Elm St", "1st St", "2nd St", "3rd St" ]; const cities = [ "Springfield", "Rivertown", "Lakeside", "Hill Valley", "Metropolis", "Gotham", "Smallville", "Sunnydale", "Star City", "Central City" ]; const states = [ "CA", "NY", "TX", "FL", "IL", "PA", "OH", "MI", "NC", "GA" ]; const zipCodes = [ "12345", "67890", "54321", "98765", "45678", "87654", "23456", "65432", "34567", "76543" ]; $('#generate').click(function() { const randomStreet = streets[Math.floor(Math.random() * streets.length)]; const randomCity = cities[Math.floor(Math.random() * cities.length)]; const randomState = states[Math.floor(Math.random() * states.length)]; const randomZip = zipCodes[Math.floor(Math.random() * zipCodes.length)]; const address = `${Math.floor(Math.random() * 9999)} ${randomStreet}, ${randomCity}, ${randomState} ${randomZip}`; $('#address').text(address).show(); }); });

Adsense Revenue Calculator Tool with colorful styling and all its features use any free library...

 

AdSense Revenue Calculator

AdSense Revenue Calculator

body { font-family: 'Arial', sans-serif; background-color: #f0f4f8; color: #333; margin: 0; padding: 0; } .container { max-width: 600px; margin: 50px auto; padding: 20px; background-color: #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); } h1 { text-align: center; color: #007bff; } .form-group { margin-bottom: 15px; } label { display: block; margin-bottom: 5px; color: #555; } input { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; } input:focus { border-color: #007bff; } button { width: 100%; padding: 10px; background-color: #007bff; color: #fff; border: none; border-radius: 4px; font-size: 16px; cursor: pointer; } button:hover { background-color: #0056b3; } .result { margin-top: 20px; padding: 15px; border: 1px solid #007bff; border-radius: 4px; background-color: #e7f3ff; color: #0056b3; display: none; /* Hidden initially */ } document.getElementById('revenue-form').addEventListener('submit', function(event) { event.preventDefault(); // Get input values const pageViews = parseInt(document.getElementById('page-views').value); const ctr = parseFloat(document.getElementById('ctr').value) / 100; const cpc = parseFloat(document.getElementById('cpc').value); // Calculate revenue const clicks = pageViews * ctr; const revenue = clicks * cpc; // Display result const resultDiv = document.getElementById('result'); resultDiv.style.display = 'block'; resultDiv.innerHTML = `

Estimated Revenue: $${revenue.toFixed(2)}

`; });

Sunday, September 22, 2024

Discounted Cash Flow Calculator tool with colorful styling and all its features use any free library...

 

Discounted Cash Flow Calculator

DCF Calculator

body { font-family: Arial, sans-serif; background: linear-gradient(135deg, #f8f9fa, #e9ecef); color: #333; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; } .container { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 0 15px rgba(0, 0, 0, 0.2); text-align: center; width: 300px; } h1 { color: #007BFF; } .input-group { margin: 10px 0; } label { display: block; margin-bottom: 5px; } input { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 16px; } button { background-color: #28a745; color: white; padding: 10px 15px; border: none; border-radius: 4px; cursor: pointer; margin-top: 10px; transition: background-color 0.3s; font-size: 16px; } button:hover { background-color: #218838; } .result { margin-top: 20px; } #output { margin-top: 10px; padding: 10px; border: 1px solid #ddd; border-radius: 4px; background: #f9f9f9; } document.getElementById('calculateButton').addEventListener('click', function() { const cashFlow = parseFloat(document.getElementById('cashFlow').value); const discountRate = parseFloat(document.getElementById('discountRate').value) / 100; const years = parseInt(document.getElementById('years').value); const output = document.getElementById('output'); if (isNaN(cashFlow) || isNaN(discountRate) || isNaN(years) || years <= 0) { output.textContent = "Please enter valid values."; return; } const presentValue = cashFlow / Math.pow(1 + discountRate, years); output.textContent = `Present Value: $${presentValue.toFixed(2)}`; });

Equity Calculator tool with colorful styling and all its features use any free library...

 

Equity Calculator

Equity Calculator

body { font-family: Arial, sans-serif; background: linear-gradient(135deg, #e9f1f7, #f0f4f8); color: #333; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; } .container { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 0 15px rgba(0, 0, 0, 0.2); text-align: center; width: 300px; } h1 { color: #007BFF; } .input-group { margin: 10px 0; } label { display: block; margin-bottom: 5px; } input { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 16px; } button { background-color: #28a745; color: white; padding: 10px 15px; border: none; border-radius: 4px; cursor: pointer; margin-top: 10px; transition: background-color 0.3s; font-size: 16px; } button:hover { background-color: #218838; } .result { margin-top: 20px; } #output { margin-top: 10px; padding: 10px; border: 1px solid #ddd; border-radius: 4px; background: #f9f9f9; } document.getElementById('calculateButton').addEventListener('click', function() { const totalAssets = parseFloat(document.getElementById('totalAssets').value); const totalLiabilities = parseFloat(document.getElementById('totalLiabilities').value); const output = document.getElementById('output'); if (isNaN(totalAssets) || isNaN(totalLiabilities)) { output.textContent = "Please enter valid values."; return; } const equity = totalAssets - totalLiabilities; output.textContent = `Equity: $${equity.toFixed(2)}`; });

Dividend Calculator tool with colorful styling and all its features use any free library...

 

Dividend Calculator

Dividend Calculator

body { font-family: Arial, sans-serif; background: linear-gradient(135deg, #f8f9fa, #e9ecef); color: #333; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; } .container { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 0 15px rgba(0, 0, 0, 0.2); text-align: center; width: 300px; } h1 { color: #007BFF; } .input-group { margin: 10px 0; } label { display: block; margin-bottom: 5px; } input { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 16px; } button { background-color: #28a745; color: white; padding: 10px 15px; border: none; border-radius: 4px; cursor: pointer; margin-top: 10px; transition: background-color 0.3s; font-size: 16px; } button:hover { background-color: #218838; } .result { margin-top: 20px; } #output { margin-top: 10px; padding: 10px; border: 1px solid #ddd; border-radius: 4px; background: #f9f9f9; } document.getElementById('calculateButton').addEventListener('click', function() { const annualDividend = parseFloat(document.getElementById('annualDividend').value); const stockPrice = parseFloat(document.getElementById('stockPrice').value); const output = document.getElementById('output'); if (isNaN(annualDividend) || isNaN(stockPrice) || stockPrice <= 0) { output.textContent = "Please enter valid values."; return; } const dividendYield = (annualDividend / stockPrice) * 100; output.textContent = `Dividend Yield: ${dividendYield.toFixed(2)}%`; });

Compound Annual Growth rate calculator tool with colorful styling and all its features use any free library...

 

CAGR Calculator

CAGR Calculator

body { font-family: Arial, sans-serif; background: linear-gradient(135deg, #f0f0f0, #e0e0e0); color: #333; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; } .container { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 0 15px rgba(0, 0, 0, 0.2); text-align: center; width: 300px; } h1 { color: #4a4a4a; } .input-group { margin: 10px 0; } label { display: block; margin-bottom: 5px; } input { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 16px; } button { background-color: #007BFF; color: white; padding: 10px 15px; border: none; border-radius: 4px; cursor: pointer; margin-top: 10px; transition: background-color 0.3s; font-size: 16px; } button:hover { background-color: #0056b3; } .result { margin-top: 20px; } #output { margin-top: 10px; padding: 10px; border: 1px solid #ddd; border-radius: 4px; background: #f9f9f9; } document.getElementById('calculateButton').addEventListener('click', function() { const initialValue = parseFloat(document.getElementById('initialValue').value); const finalValue = parseFloat(document.getElementById('finalValue').value); const years = parseFloat(document.getElementById('years').value); const output = document.getElementById('output'); if (isNaN(initialValue) || isNaN(finalValue) || isNaN(years) || years <= 0) { output.textContent = "Please enter valid values."; return; } const cagr = ((finalValue / initialValue) ** (1 / years) - 1) * 100; output.textContent = `CAGR: ${cagr.toFixed(2)}%`; });

Color Converter (HEX, RGB, HSL) tool with colorful styling and all its features use any free library...

 

Color Converter Tool

Color Converter

Converted Colors:

body { font-family: Arial, sans-serif; background-color: #f0f0f0; color: #333; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; } .container { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); text-align: center; } h1 { color: #4a4a4a; } .color-input { margin: 10px 0; } label { display: block; margin-bottom: 5px; } input { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; } button { background-color: #4CAF50; color: white; padding: 10px 15px; border: none; border-radius: 4px; cursor: pointer; margin-top: 10px; transition: background-color 0.3s; } button:hover { background-color: #45a049; } .result { margin-top: 20px; } #output { margin-top: 10px; padding: 10px; border: 1px solid #ddd; border-radius: 4px; background: #f9f9f9; } document.getElementById('convertButton').addEventListener('click', function() { const hexInput = document.getElementById('hexInput').value; const rgbInput = document.getElementById('rgbInput').value; const hslInput = document.getElementById('hslInput').value; const output = document.getElementById('output'); output.innerHTML = ''; // Clear previous results if (hexInput) { const rgb = hexToRgb(hexInput); const hsl = rgbToHsl(rgb.r, rgb.g, rgb.b); output.innerHTML += `HEX: ${hexInput}
RGB: ${rgb.r}, ${rgb.g}, ${rgb.b}
HSL: ${hsl.h}, ${hsl.s}%, ${hsl.l}%
`; } if (rgbInput) { const rgbArr = rgbInput.split(',').map(Number); const hex = rgbToHex(rgbArr[0], rgbArr[1], rgbArr[2]); const hsl = rgbToHsl(rgbArr[0], rgbArr[1], rgbArr[2]); output.innerHTML += `RGB: ${rgbInput}
HEX: ${hex}
HSL: ${hsl.h}, ${hsl.s}%, ${hsl.l}%
`; } if (hslInput) { const hslArr = hslInput.split(',').map((v, i) => i === 0 ? Number(v) : v.trim()); const rgb = hslToRgb(hslArr[0], parseFloat(hslArr[1]) / 100, parseFloat(hslArr[2]) / 100); const hex = rgbToHex(rgb.r, rgb.g, rgb.b); output.innerHTML += `HSL: ${hslInput}
RGB: ${rgb.r}, ${rgb.g}, ${rgb.b}
HEX: ${hex}
`; } }); function hexToRgb(hex) { let r = 0, g = 0, b = 0; // 3 digits if (hex.length === 4) { r = parseInt(hex[1] + hex[1], 16); g = parseInt(hex[2] + hex[2], 16); b = parseInt(hex[3] + hex[3], 16); } // 6 digits else if (hex.length === 7) { r = parseInt(hex[1] + hex[2], 16); g = parseInt(hex[3] + hex[4], 16); b = parseInt(hex[5] + hex[6], 16); } return { r, g, b }; } function rgbToHex(r, g, b) { return '#' + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1).toUpperCase(); } function rgbToHsl(r, g, b) { r /= 255, g /= 255, b /= 255; let max = Math.max(r, g, b), min = Math.min(r, g, b); let h, s, l = (max + min) / 2; if (max === min) { h = s = 0; // achromatic } else { const d = max - min; s = l > 0.5 ? d / (2 - max - min) : d / (max + min); switch (max) { case r: h = (g - b) / d + (g < b ? 6 : 0); break; case g: h = (b - r) / d + 2; break; case b: h = (r - g) / d + 4; break; } h /= 6; } return { h: Math.round(h * 360), s: Math.round(s * 100), l: Math.round(l * 100) }; } function hslToRgb(h, s, l) { let r, g, b; h /= 360; s /= 100; l /= 100; const k = (n) => (n + h * 12) % 12; const f = (n) => l - l * s * Math.max(0, Math.min(k(n), 1, 4 - k(n), 1)); r = Math.round(f(0) * 255); g = Math.round(f(8) * 255); b = Math.round(f(4) * 255); return { r, g, b }; }

Case Converter tool with colorful styling and all its features use any free library...

 

Case Converter Tool

Case Converter Tool

Converted Text

* { box-sizing: border-box; } body { font-family: Arial, sans-serif; margin: 0; padding: 0; background: #f0f0f0; } .container { max-width: 600px; margin: 50px auto; text-align: center; background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); } h1 { color: #333; } textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 5px; margin-bottom: 20px; resize: none; } .buttons { display: flex; justify-content: space-around; margin-bottom: 20px; } button { padding: 10px 15px; border: none; border-radius: 5px; background-color: #3498db; color: white; cursor: pointer; transition: background-color 0.3s; } button:hover { background-color: #2980b9; } button:active { transform: scale(0.98); } h2 { color: #333; } #outputText { background: #f9f9f9; } document.getElementById('toUpperCaseBtn').addEventListener('click', () => { const inputText = document.getElementById('inputText').value; document.getElementById('outputText').value = inputText.toUpperCase(); }); document.getElementById('toLowerCaseBtn').addEventListener('click', () => { const inputText = document.getElementById('inputText').value; document.getElementById('outputText').value = inputText.toLowerCase(); }); document.getElementById('toTitleCaseBtn').addEventListener('click', () => { const inputText = document.getElementById('inputText').value; const titleCase = inputText.split(' ') .map(word => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()) .join(' '); document.getElementById('outputText').value = titleCase; }); document.getElementById('clearBtn').addEventListener('click', () => { document.getElementById('inputText').value = ''; document.getElementById('outputText').value = ''; });

Color Scheme Generator Tool with colorful styling and all its features use any free library...

 

Color Scheme Generator

Color Scheme Generator

* { box-sizing: border-box; } body { font-family: Arial, sans-serif; margin: 0; padding: 0; background: #f0f0f0; } .container { max-width: 600px; margin: 50px auto; text-align: center; background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); } h1 { color: #333; } input[type="color"] { width: 100%; height: 50px; border: none; border-radius: 5px; cursor: pointer; } button { margin-top: 20px; padding: 10px 20px; border: none; background-color: #3498db; color: #fff; border-radius: 5px; cursor: pointer; font-size: 16px; } button:hover { background-color: #2980b9; } .color-schemes { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; } .color-scheme { padding: 20px; border-radius: 5px; color: #fff; text-align: center; transition: transform 0.3s; } .color-scheme:hover { transform: scale(1.05); } document.getElementById('generateBtn').addEventListener('click', () => { const baseColor = document.getElementById('baseColor').value; const colorSchemes = document.getElementById('colorSchemes'); // Clear previous schemes colorSchemes.innerHTML = ''; // Generate color schemes const colors = [ chroma(baseColor).brighten(1).hex(), chroma(baseColor).darken(1).hex(), chroma(baseColor).saturate(2).hex(), chroma(baseColor).desaturate(2).hex(), chroma(baseColor).spin(30).hex(), chroma(baseColor).spin(-30).hex() ]; // Create color scheme elements colors.forEach(color => { const colorDiv = document.createElement('div'); colorDiv.className = 'color-scheme'; colorDiv.style.backgroundColor = color; colorDiv.textContent = color; colorDiv.style.color = chroma(color).luminance() < 0.5 ? '#fff' : '#000'; // Adjust text color for contrast colorSchemes.appendChild(colorDiv); }); });

Saturday, September 21, 2024

Sales Tax Calculator tool with colorful styling and all its features use any free library...

 

Sales Tax Calculator

Sales Tax Calculator

* { box-sizing: border-box; } body { font-family: 'Arial', sans-serif; background: linear-gradient(135deg, #e3f2fd, #bbdefb); margin: 0; padding: 20px; color: #333; } .container { max-width: 400px; margin: auto; background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); } h1 { text-align: center; color: #1976d2; } .input-group { margin-bottom: 15px; } label { display: block; margin-bottom: 5px; } input[type="number"] { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; } button { width: 100%; padding: 10px; background-color: #1976d2; color: white; border: none; border-radius: 4px; font-size: 16px; cursor: pointer; transition: background-color 0.3s; } button:hover { background-color: #115293; } .output { margin-top: 20px; padding: 10px; border: 1px solid #ddd; border-radius: 4px; background-color: #f9f9f9; white-space: pre-wrap; /* Preserve whitespace for formatting */ text-align: center; font-weight: bold; } document.getElementById('calculate').addEventListener('click', function() { const price = parseFloat(document.getElementById('price').value); const taxRate = parseFloat(document.getElementById('taxRate').value); const output = document.getElementById('output'); if (!isNaN(price) && !isNaN(taxRate)) { const taxAmount = (price * taxRate) / 100; const totalAmount = price + taxAmount; output.innerHTML = `Total Amount: $${totalAmount.toFixed(2)} (Tax: $${taxAmount.toFixed(2)})`; } else { output.innerHTML = 'Please enter valid numbers for price and tax rate.'; } });

Lorum Text Generator tool with colorful styling and all its features use any free library...

 

Lorem Ipsum Generator

Lorem Ipsum Generator

* { box-sizing: border-box; } body { font-family: 'Arial', sans-serif; background: linear-gradient(135deg, #f3f4f6, #e5e7eb); margin: 0; padding: 20px; color: #333; } .container { max-width: 600px; margin: auto; background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); } h1 { text-align: center; color: #4A90E2; } .input-group { margin-bottom: 15px; } label { display: block; margin-bottom: 5px; } input[type="number"] { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; } button { width: 100%; padding: 10px; background-color: #4A90E2; color: white; border: none; border-radius: 4px; font-size: 16px; cursor: pointer; transition: background-color 0.3s; } button:hover { background-color: #357ABD; } .output { margin-top: 20px; padding: 10px; border: 1px solid #ddd; border-radius: 4px; background-color: #f9f9f9; white-space: pre-wrap; /* Preserve whitespace for formatting */ } document.getElementById('generate').addEventListener('click', function() { const count = document.getElementById('count').value; const output = document.getElementById('output'); output.innerHTML = generateLoremIpsum(count); }); function generateLoremIpsum(paragraphs) { const loremText = `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.`; let result = ''; for (let i = 0; i < paragraphs; i++) { result += loremText + '\n\n'; } return result.trim(); }