Last active
January 30, 2026 20:09
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!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> |
<title>StrideElite - Premium Shoes for Style and Comfort</title>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Product",
"name": "StrideElite Runner",
"image": "https://example.com/shoe-image.jpg",
"description": "Comfortable running shoes with premium materials.",
"brand": "StrideElite",
"offers": {
"@type": "Offer",
"price": "99.99",
"priceCurrency": "USD"
}
}
</script>
<style>
/* Global Styles */
body { font-family: 'Open Sans', sans-serif; margin: 0; padding: 0; color: #000; background: #fff; }
h1, h2, h3 { font-family: 'Montserrat', sans-serif; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.accent { color: #C8102E; }
.btn { background: #C8102E; color: #fff; padding: 10px 20px; border: none; cursor: pointer; transition: background 0.3s; }
.btn:hover { background: #A00; }
/* Navigation */
nav { position: sticky; top: 0; background: #fff; border-bottom: 1px solid #000; z-index: 100; }
nav ul { list-style: none; display: flex; justify-content: space-between; padding: 10px; margin: 0; }
nav a { text-decoration: none; color: #000; font-weight: bold; }
/* Hero */
.hero { background: url('https://via.placeholder.com/1200x600?text=Latest+Shoes+Collection') no-repeat center/cover; height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; }
.hero h1 { font-size: 3em; margin: 0; }
.hero p { font-size: 1.2em; }
/* Sections */
section { padding: 50px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.product { border: 1px solid #ddd; padding: 20px; text-align: center; transition: transform 0.3s; }
.product:hover { transform: scale(1.05); }
.product img { max-width: 100%; height: auto; }
/* Reviews */
.reviews { background: #f9f9f9; }
.review { margin: 20px 0; }
.stars { color: #FFD700; }
/* Footer */
footer { background: #000; color: #fff; text-align: center; padding: 20px; }
.trust-badges { display: flex; justify-content: center; gap: 20px; margin: 20px 0; }
.trust-badges div { display: flex; align-items: center; }
/* Mobile Responsiveness */
@media (max-width: 768px) { .hero h1 { font-size: 2em; } nav ul { flex-direction: column; } .grid { grid-template-columns: 1fr; } }
/* Animations */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s, transform 0.6s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
</style>
<!-- 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>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Quiz Médico
Siguiente
Resultado final
Tu puntaje: ${score} / ${quiz.length}
¡Gracias por participar!
`; } } loadQuestion(); </script>