completed
This commit is contained in:
260
index.html
Normal file
260
index.html
Normal file
@@ -0,0 +1,260 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Get UDID - Download Profile</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<style>
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
:root {
|
||||
--primary-color: #4F46E5;
|
||||
--primary-dark: #4338CA;
|
||||
--text-color: #1F2937;
|
||||
--text-light: #6B7280;
|
||||
--background: #F9FAFB;
|
||||
--white: #FFFFFF;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
|
||||
line-height: 1.6;
|
||||
color: var(--text-color);
|
||||
background: var(--background);
|
||||
}
|
||||
|
||||
.hero {
|
||||
background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
|
||||
color: var(--white);
|
||||
padding: 4rem 1rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.hero h1 {
|
||||
font-size: 2.5rem;
|
||||
font-weight: 700;
|
||||
margin-bottom: 1rem;
|
||||
animation: fadeInUp 0.6s ease-out;
|
||||
}
|
||||
|
||||
.hero p {
|
||||
font-size: 1.1rem;
|
||||
opacity: 0.9;
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
animation: fadeInUp 0.6s ease-out 0.2s both;
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
padding: 3rem 1rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.card {
|
||||
background: var(--white);
|
||||
border-radius: 1rem;
|
||||
padding: 2rem;
|
||||
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
||||
margin: -4rem auto 2rem;
|
||||
max-width: 500px;
|
||||
position: relative;
|
||||
animation: fadeInUp 0.6s ease-out 0.4s both;
|
||||
}
|
||||
|
||||
.qr-section {
|
||||
margin: 2rem 0;
|
||||
}
|
||||
|
||||
.qr-code {
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
margin: 2rem auto;
|
||||
background: var(--white);
|
||||
padding: 1rem;
|
||||
border-radius: 0.5rem;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.qr-code img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.download-button {
|
||||
display: inline-block;
|
||||
padding: 1rem 2.5rem;
|
||||
font-size: 1.1rem;
|
||||
font-weight: 600;
|
||||
color: var(--white);
|
||||
background: var(--primary-color);
|
||||
border-radius: 0.75rem;
|
||||
text-decoration: none;
|
||||
transition: all 0.3s ease;
|
||||
margin: 1rem 0;
|
||||
}
|
||||
|
||||
.download-button:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
|
||||
background: var(--primary-dark);
|
||||
}
|
||||
|
||||
.steps {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||||
gap: 2rem;
|
||||
padding: 2rem 0;
|
||||
animation: fadeInUp 0.6s ease-out 0.6s both;
|
||||
}
|
||||
|
||||
.step {
|
||||
background: var(--white);
|
||||
padding: 1.5rem;
|
||||
border-radius: 0.75rem;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
|
||||
.step:hover {
|
||||
transform: translateY(-5px);
|
||||
}
|
||||
|
||||
.step-number {
|
||||
width: 2.5rem;
|
||||
height: 2.5rem;
|
||||
background: var(--primary-color);
|
||||
color: var(--white);
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-weight: 600;
|
||||
margin: 0 auto 1rem;
|
||||
}
|
||||
|
||||
.step h3 {
|
||||
font-size: 1.1rem;
|
||||
margin-bottom: 0.5rem;
|
||||
color: var(--text-color);
|
||||
}
|
||||
|
||||
.step p {
|
||||
color: var(--text-light);
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
@keyframes fadeInUp {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(20px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.hero {
|
||||
padding: 3rem 1rem;
|
||||
}
|
||||
.hero h1 {
|
||||
font-size: 2rem;
|
||||
}
|
||||
.card {
|
||||
margin: -2rem 1rem 2rem;
|
||||
padding: 1.5rem;
|
||||
}
|
||||
.steps {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 1rem;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="hero">
|
||||
<h1>Get Your Device UDID</h1>
|
||||
<p>Quick and secure way to get your iOS device identifier for app testing</p>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<div class="card">
|
||||
<!-- Desktop/Non-iOS View -->
|
||||
<div id="desktop-view" style="display: none;">
|
||||
<h2>Scan QR Code</h2>
|
||||
<p>Use your iOS device to scan this QR code</p>
|
||||
<div class="qr-code">
|
||||
<img src="https://api.qrserver.com/v1/create-qr-code/?size=200x200&data=https://<?php echo $_SERVER['HTTP_HOST']; ?>/get_mobileconfig.php" alt="QR Code">
|
||||
</div>
|
||||
<p class="help-text">Open your iPhone camera and point it at the QR code</p>
|
||||
</div>
|
||||
|
||||
<!-- iOS View -->
|
||||
<div id="ios-view" style="display: none;">
|
||||
<h2>Download Profile</h2>
|
||||
<p>To get your device UDID, download and install the configuration profile.</p>
|
||||
<a href="get_mobileconfig.php" class="download-button">Download Profile</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="steps">
|
||||
<div class="step">
|
||||
<div class="step-number">1</div>
|
||||
<h3>Get Profile</h3>
|
||||
<p id="step1-desktop" style="display: none;">Scan the QR code with your iOS device</p>
|
||||
<p id="step1-ios" style="display: none;">Download the configuration profile</p>
|
||||
</div>
|
||||
<div class="step">
|
||||
<div class="step-number">2</div>
|
||||
<h3>Install Profile</h3>
|
||||
<p>Open Settings and install the downloaded profile</p>
|
||||
</div>
|
||||
<div class="step">
|
||||
<div class="step-number">3</div>
|
||||
<h3>View UDID</h3>
|
||||
<p>Your device UDID will be displayed after installation</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<footer style="text-align: center; padding: 2rem; color: var(--text-light); font-size: 0.9rem;">
|
||||
<p>© <?php echo date('Y'); ?> ctdogetudid. All rights reserved.</p>
|
||||
</footer>
|
||||
|
||||
<script>
|
||||
// Check if the device is iOS
|
||||
function isIOS() {
|
||||
return /iPad|iPhone|iPod/.test(navigator.userAgent);
|
||||
}
|
||||
|
||||
// Show appropriate view based on device
|
||||
window.onload = function() {
|
||||
const desktopView = document.getElementById('desktop-view');
|
||||
const iosView = document.getElementById('ios-view');
|
||||
const step1Desktop = document.getElementById('step1-desktop');
|
||||
const step1iOS = document.getElementById('step1-ios');
|
||||
|
||||
if (isIOS()) {
|
||||
iosView.style.display = 'block';
|
||||
step1iOS.style.display = 'block';
|
||||
// Add redirection after download
|
||||
document.querySelector('.download-button').addEventListener('click', function(e) {
|
||||
setTimeout(function() {
|
||||
window.location.href = 'instruction.php';
|
||||
}, 1000);
|
||||
});
|
||||
} else {
|
||||
desktopView.style.display = 'block';
|
||||
step1Desktop.style.display = 'block';
|
||||
}
|
||||
};
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user