-
Star
(76)
You must be signed in to star a gist -
Fork
(119)
You must be signed in to fork a gist
-
-
Save isdaviddong/23cc140c1780828b44f79397f737b95e to your computer and use it in GitHub Desktop.
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title></title> | |
| <meta charset="utf-8" /> | |
| <script src="Scripts/jquery-1.9.1.min.js"></script> | |
| <link href="Content/bootstrap.min.css" rel="stylesheet" /> | |
| <script src="Scripts/isRockFx.js"></script> | |
| <script> | |
| $(function () { | |
| $('#ButtonCal').click( | |
| function () { | |
| //取得用戶輸入的參數 | |
| var para = { 'height': $('#txbHeight').val(), 'weight': $('#txbWeight').val() }; | |
| //呼叫API | |
| ExecuteAPI('Example', 'BMI', para, | |
| //呼叫WebAPI成功時運行的Call Back Function | |
| function (result) { | |
| alert(result.Data); | |
| } | |
| ); | |
| } | |
| ); | |
| }); | |
| </script> | |
| </head> | |
| <body> | |
| <div class="row" style="margin:10px"> | |
| <div class="col-md-12"> | |
| <div class="form-group"> | |
| 身高: | |
| <input id="txbHeight" class="form-control" placeholder="請輸入身高" /> | |
| 體重: | |
| <input id="txbWeight" class="form-control" placeholder="請輸入體重" /> | |
| <br /> | |
| <button class="btn btn-primary" id="ButtonCal">計算</button> | |
| </div> | |
| </div> | |
| </div> | |
| </body> | |
| </html> |
/* Modern, clean styles with high contrast CTAs */
body {
font-family: 'Inter', sans-serif;
margin: 0;
padding: 0;
line-height: 1.6;
color: #333;
background: #f9f9f9;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
.hero {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 100px 0;
text-align: center;
}
.hero-content h1 {
font-size: 2.5rem;
margin-bottom: 20px;
}
.btn-primary {
background: #ff6b35;
color: white;
padding: 15px 30px;
text-decoration: none;
border-radius: 5px;
font-weight: 700;
display: inline-block;
transition: background 0.3s;
}
.btn-primary:hover {
background: #e55a2b;
}
.section {
padding: 80px 0;
text-align: center;
}
.benefits-list, .outcomes {
list-style: none;
padding: 0;
}
.benefits-list li, .outcomes li {
margin: 10px 0;
}
.pricing-card {
border: 1px solid #ddd;
padding: 40px;
border-radius: 10px;
background: white;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.footer {
background: #333;
color: white;
padding: 20px 0;
text-align: center;
}
/* Responsive */
@media (max-width: 768px) {
.hero-content h1 {
font-size: 2rem;
}
.btn-primary {
padding: 12px 25px;
}
}
/* Subtle animations */
.fade-in {
animation: fadeIn 1s ease-in;
}
@Keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.btn-primary:hover {
transform: scale(1.05);
}
// Countdown timer for urgency
function startCountdown() {
const countdownElement = document.getElementById('countdown');
let time = 24 * 60 * 60; // 24 hours in seconds
setInterval(() => {
const hours = Math.floor(time / 3600);
const minutes = Math.floor((time % 3600) / 60);
const seconds = time % 60;
countdownElement.textContent = ${hours}:${minutes}:${seconds};
time--;
if (time < 0) time = 24 * 60 * 60; // Reset
}, 1000);
}
document.addEventListener('DOMContentLoaded', startCountdown);
// Add fade-in to sections on scroll
const sections = document.querySelectorAll('.section');
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add('fade-in');
}
});
});
sections.forEach(section => observer.observe(section));
``// Placeholder for payment integration (e.g., Stripe)
document.getElementById('checkout-form').addEventListener('submit', (e) => {
e.preventDefault();
// Integrate with Stripe/PayPal here
alert('Payment processed! E-book sent to your email.');
// Redirect or show success message
});
Assalamu Alaikum
Yeh meri pehli website hai.
Click Me
Assalamu Alaikum
Yeh meri pehli website hai.
Click Me
Assalamu Alaikum
Yeh meri pehli website hai.
Click Me
📖 Islamic Books Library
Quran, Hadith aur Islamic Kitaben
Quran Sharif
Allah ka paigham
Hadith
Rasool ﷺ ki baatein
Nahjul Balagha
Imam Ali (A.S) ke khutbe
Quiz Médico
Siguiente
Resultado final
Tu puntaje: ${score} / ${quiz.length}
¡Gracias por participar!
`; } } loadQuestion(); </script><!-- Home Page -->
<section id="home" class="hero">
<div>
<h1>StrideElite: Style Meets Comfort</h1>
<p>Discover our latest collection of premium shoes – stylish, comfortable, and affordable for every step.</p>
<button class="btn" onclick="scrollToSection('shop')">Shop Now</button>
</div>
</section>
<!-- Shop Page -->
<section id="shop" class="container">
<h2>Shop by Category</h2>
<div class="grid">
<div class="product fade-in">
<img src="https://via.placeholder.com/300x200?text=Men+Shoes" alt="Men's Shoes Collection" loading="lazy">
<h3>Men Shoes</h3>
<p>Stylish and durable for everyday wear.</p>
<button class="btn">Explore</button>
</div>
<div class="product fade-in">
<img src="https://via.placeholder.com/300x200?text=Women+Shoes" alt="Women's Shoes Collection" loading="lazy">
<h3>Women Shoes</h3>
<p>Elegant designs for comfort and fashion.</p>
<button class="btn">Explore</button>
</div>
<div class="product fade-in">
<img src="https://via.placeholder.com/300x200?text=Sports+Shoes" alt="Sports Shoes Collection" loading="lazy">
<h3>Sports Shoes</h3>
<p>Performance footwear for athletes.</p>
<button class="btn">Explore</button>
</div>
<div class="product fade-in">
<img src="https://via.placeholder.com/300x200?text=Casual+Shoes" alt="Casual Shoes Collection" loading="lazy">
<h3>Casual Shoes</h3>
<p>Relaxed styles for leisure and comfort.</p>
<button class="btn">Explore</button>
</div>
</div>
<!-- Customer Reviews -->
<div class="reviews">
<h3>What Our Customers Say</h3>
<div class="review">
<div class="stars">★★★★★</div>
<p>"These shoes are incredibly comfortable and stylish. Worth every penny!" - Alex R.</p>
</div>
<div class="review">
<div class="stars">★★★★★</div>
<p>"Fast delivery and easy returns. Highly recommend!" - Jamie L.</p>
</div>
</div>
</section>
<!-- Product Detail Page (Example for One Product) -->
<section id="product-detail" class="container" style="display: none;"> <!-- Toggle visibility with JS -->
<div class="grid">
<div>
<img src="https://via.placeholder.com/500x500?text=Product+Image" alt="StrideElite Runner Shoe" loading="lazy">
</div>
<div>
<h2>StrideElite Runner</h2>
<p class="accent">$99.99</p>
<p>High-quality running shoes with breathable materials for ultimate comfort.</p>
<label for="size">Size:</label>
<select id="size">
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
</select>
<button class="btn">Add to Cart</button>
<div class="reviews">
<h3>Reviews</h3>
<div class="review">
<div class="stars">★★★★★</div>
<p>"Perfect fit and great for long runs!" - Sam T.</p>
</div>
</div>
</div>
</div>
</section>
<!-- About Us Page -->
<section id="about" class="container">
<h2>About StrideElite</h2>
<p>Founded in 2020, StrideElite is dedicated to crafting premium shoes that blend style, comfort, and affordability. Our brand story is rooted in innovation – using sustainable materials and expert craftsmanship to ensure every pair delivers on our quality promise: shoes that last, feel great, and look even better.</p>
</section>
<!-- Contact Us Page -->
<section id="contact" class="container">
<h2>Contact Us</h2>
<form>
<input type="text" placeholder="Name" required><br>
<input type="email" placeholder="Email" required><br>
<textarea placeholder="Message" required></textarea><br>
<button class="btn" type="submit">Send</button>
</form>
<a href="https://wa.me/1234567890" class="btn" style="margin-top: 20px;">Chat on WhatsApp</a>
</section>
<!-- Footer with Trust Badges -->
<footer>
<div class="trust-badges">
<div><span>🔒</span> Secure Payment</div>
<div><span>🚚</span> Fast Delivery</div>
<div><span>↩️</span> Easy Returns</div>
</div>
<p>© 2023 StrideElite. All rights reserved.</p>
</footer>
<script>
// Smooth scrolling and animations
function scrollToSection(id) {
document.getElementById(id).scrollIntoView({ behavior: 'smooth' });
}
// Fade-in on scroll
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add('visible');
}
});
});
document.querySelectorAll('.fade-in').forEach(el => observer.observe(el));
// Toggle product detail (for demo)
document.querySelectorAll('.product .btn').forEach(btn => {
btn.addEventListener('click', () => {
document.getElementById('product-detail').style.display = 'block';
scrollToSection('product-detail');
});
});
</script>
``
<title>[E-book Title] - Unlock Your Potential Today</title>From Overwhelmed to Unstoppable: Master [Topic] in 30 Days
Discover proven strategies, real-world examples, and actionable steps to [solve problem]. Join [number] readers who've transformed their lives.
Limited-time offer: Ends in 24:00:00