Professional QR Code Generator
Customer QR Code
Dialer QR Code
Tool crafted by Vishal Rajput
Professional QR Code Generator
Customer QR Code
Dialer QR Code
Tool crafted by Vishal Rajput
<!-- Copy the following code and paste it into the HTML code section of your WordPress page or post -->
<style>
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
margin: 0;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
background: linear-gradient(45deg, #3498db, #8e44ad);
color: white;
}
#qr-container {
display: flex;
flex-direction: column;
align-items: center;
padding: 20px;
background-color: rgba(255, 255, 255, 0.95);
border-radius: 10px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
animation: fadeIn 0.8s ease-in-out;
}
h1 {
margin-bottom: 20px;
font-size: 2.5em;
color: #333;
}
label {
font-size: 1.2em;
margin-bottom: 10px;
color: #555;
}
input {
padding: 15px;
font-size: 1em;
margin: 10px 0;
width: 100%;
box-sizing: border-box;
border: 1px solid #ccc;
border-radius: 5px;
outline: none;
transition: border-color 0.3s;
color: #333;
}
input:focus {
border-color: #3498db;
}
button {
padding: 15px 25px;
font-size: 1.2em;
cursor: pointer;
background-color: #e74c3c; /* Red */
color: white;
border: none;
border-radius: 5px;
transition: background-color 0.3s;
outline: none;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
button:hover {
background-color: #c0392b; /* Darker Red */
}
.qr-code-container {
display: flex;
justify-content: space-around;
margin-top: 20px;
}
.qr-code {
padding: 30px;
background-color: #2ecc71; /* Green */
border-radius: 10px;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
opacity: 0;
animation: fadeInUp 0.8s ease-in-out 0.3s forwards;
}
.qr-code h2 {
font-size: 1.5em;
margin-bottom: 10px;
color: #333;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.tool-made-by {
margin-top: 20px;
font-size: 1em;
color: #555;
}
</style>
<div id="qr-container" class="fadeIn">
<h1>Professional QR Code Generator</h1>
<label for="phoneNumber">Enter Phone Number:</label>
<input type="text" id="phoneNumber" placeholder="Enter phone number">
<button onclick="generateQRCode()">Generate QR Code</button>
<div class="qr-code-container">
<div class="qr-code">
<h2>Customer QR Code</h2>
<div id="customerQR"></div>
</div>
<div class="qr-code">
<h2>Dialer QR Code</h2>
<div id="dialerQR"></div>
</div>
</div>
<p class="tool-made-by">Tool crafted by Vishal Rajput</p>
</div>
<script src="https://cdn.rawgit.com/davidshimjs/qrcodejs/gh-pages/qrcode.min.js"></script>
<script>
function generateQRCode() {
var phoneNumber = document.getElementById("phoneNumber").value;
// Generate QR code for the phone number
var qr = new QRCode(document.getElementById("customerQR"), {
text: "tel:" + phoneNumber,
width: 160,
height: 160
});
// Open dialer QR code in a new window
var dialerQR = new QRCode(document.getElementById("dialerQR"), {
text: "tel:" + phoneNumber,
width: 160,
height: 160
});
window.open(dialerQR.toDataURL("image/png"));
// Show QR codes with animation
document.getElementById("customerQR").classList.add("fadeInUp");
document.getElementById("dialerQR").classList.add("fadeInUp");
}
</script>