Skip to content

Instantly share code, notes, and snippets.

@isdaviddong
Last active February 17, 2026 14:11
Show Gist options
  • Select an option

  • Save isdaviddong/23cc140c1780828b44f79397f737b95e to your computer and use it in GitHub Desktop.

Select an option

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>
@qq2kw28ynb-del
Copy link

<title>Legal Birthday Surprise 🎉</title> <style> body { margin: 0; font-family: 'Segoe UI', sans-serif; background: radial-gradient(circle, #0f2027, #203a43, #2c5364); color: white; text-align: center; overflow-x: hidden; }

/* Utility */
.hidden { display: none; }
button {
padding: 12px 25px;
font-size: 18px;
border: none;
border-radius: 8px;
cursor: pointer;
background: gold;
font-weight: bold;
}
button:hover { background: orange; }

/* Brankas */
#vault {
margin-top: 100px;
}
.vault-box {
width: 260px;
height: 260px;
margin: auto;
border-radius: 50%;
background: #444;
border: 10px solid silver;
position: relative;
}
.vault-box::after {
content: "⚖️";
font-size: 70px;
position: absolute;
top: 80px;
left: 95px;
}
input {
margin-top: 20px;
padding: 10px;
font-size: 18px;
text-align: center;
width: 120px;
}

/* Gift */
#gift {
font-size: 120px;
cursor: pointer;
animation: bounce 1s infinite;
}

/* Cake */
#cake {
font-size: 140px;
}
#blow {
margin-top: 15px;
text-decoration: underline;
cursor: pointer;
font-size: 20px;
color: gold;
}

/* Party */
.party {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
}
.confetti {
position: absolute;
width: 10px;
height: 10px;
background: gold;
animation: fall 3s linear infinite;
}

/* Animations */
@Keyframes bounce {
0%,100%{ transform: translateY(0); }
50%{ transform: translateY(-20px); }
}
@Keyframes fall {
from { transform: translateY(-10px) rotate(0deg); }
to { transform: translateY(100vh) rotate(360deg); }
}

/* Message */
#message {
max-width: 800px;
margin: 60px auto;
background: rgba(0,0,0,0.6);
padding: 30px;
border-radius: 15px;
}
</style>

🔐 Brankas Hukum Rahasia

Masukk

@bielwilder6-alt
Copy link

<title>TaskHero</title> <style> body { font-family: Arial, sans-serif; background: #f4f6fb; text-align: center; padding: 20px; }
h1 {
  color: #4a4aff;
}

.card {
  background: white;
  padding: 20px;
  margin: 20px auto;
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

button {
  background: #4a4aff;
  color: white;
  border: none;
  padding: 10px 15px;
  margin-top: 10px;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background: #3737cc;
}

.task {
  margin: 10px 0;
}
</style>

🦸‍♂️ TaskHero

Cumpra tarefas e ganhe recompensas!

Tarefas

<div class="task">
  Arrumar o quarto — ⭐ 10 pontos
  <br>
  <button onclick="concluirTarefa(10)">Concluir</button>
</div>

<div class="task">
  Fazer lição de casa — ⭐ 20 pontos
  <br>
  <button onclick="concluirTarefa(20)">Concluir</button>
</div>

<h3>Pontos: <span id="pontos">0</span></h3>
<script> let pontos = 0; function concluirTarefa(valor) { pontos += valor; document.getElementById("pontos").innerText = pontos; alert("Parabéns! Você ganhou " + valor + " pontos 🎉"); } </script>

@harshmishra2028-lab
Copy link

<title>Happy Propose Day ❤️</title>

💖 Happy Propose Day 💖

जब भी तुम्हें देखता हूँ,
दिल बस यही कहता है…

Will you be mine forever? 💍

YES ❤️ NO 😜
<script src="script.js"></script> body { background: linear-gradient(135deg, #ff9a9e, #fad0c4); height: 100vh; display: flex; justify-content: center; align-items: center; font-family: 'Segoe UI', sans-serif; }

.card {
background: white;
padding: 40px;
border-radius: 20px;
text-align: center;
box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

h1 {
color: #e6005c;
}

h2 {
margin-top: 20px;
}

.buttons {
margin-top: 30px;
}

button {
padding: 12px 25px;
font-size: 18px;
border: none;
border-radius: 10px;
cursor: pointer;
margin: 10px;
}

.yes {
background: #e6005c;
color: white;
}

.no {
background: #ccc;
position: relative;
}

#result {
margin-top: 30px;
font-size: 22px;
color: #e6005c;
}function yesClicked() {
document.getElementById("result").innerHTML =
"Yayyy! 💕
तुमने मेरा दिल जीत लिया 😍";
}

function moveNo() {
const btn = document.querySelector(".no");
const x = Math.random() * 200 - 100;
const y = Math.random() * 200 - 100;
btn.style.transform = translate(${x}px, ${y}px);
}
49714

@sahilarora5859-cloud
Copy link

<title>Elevate Your Style - Premium Streetwear</title> <style> /* Global Styles */ body { font-family: 'Montserrat', sans-serif; margin: 0; padding: 0; background-color: #f5f5f5; /* Light grey background */ color: #333; line-height: 1.6; } a { text-decoration: none; color: inherit; } button { font-family: 'Montserrat', sans-serif; cursor: pointer; transition: all 0.3s ease; } .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; } /* Header */ header { background-color: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.1); position: fixed; width: 100%; top: 0; z-index: 1000; } nav { display: flex; justify-content: space-between; align-items: center; padding: 20px; } .logo { font-size: 24px; font-weight: 700; color: #000; } .nav-links { list-style: none; display: flex; gap: 30px; } .nav-links li a { font-weight: 500; color: #333; transition: color 0.3s; } .nav-links li a:hover { color: #000; } /* Hero Section */ .hero { background-image: url('hero-model-image.jpg'); /* Placeholder for provided hero image */ background-size: cover; background-position: center; height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; position: relative; } .hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); } .hero-content { position: relative; z-index: 1; } .hero h1 { font-size: 48px; font-weight: 700; margin: 0; } .hero p { font-size: 24px; margin: 20px 0; } .btn { background-color: #000; color: #fff; padding: 15px 30px; border: none; font-size: 18px; font-weight: 700; text-transform: uppercase; } .btn:hover { background-color: #333; } /* Product Section */ .products { padding: 100px 0; background-color: #fff; } .products h2 { text-align: center; font-size: 36px; font-weight: 700; margin-bottom: 50px; color: #000; } .product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; } .product-card { background-color: #f9f9f9; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: transform 0.3s ease; } .product-card:hover { transform: scale(1.05); } .product-image { width: 100%; height: 300px; background-size: cover; background-position: center; transition: transform 0.3s ease; } .product-card:hover .product-image { transform: scale(1.1); } .product-info { padding: 20px; text-align: center; } .product-name { font-size: 20px; font-weight: 700; margin-bottom: 10px; } .product-price { font-size: 18px; color: #000; margin-bottom: 15px; } .size-options { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; } .size-btn { background-color: #fff; border: 1px solid #000; padding: 5px 10px; font-size: 14px; cursor: pointer; } .size-btn:hover, .size-btn.selected { background-color: #000; color: #fff; } .add-to-cart { background-color: #000; color: #fff; border: none; padding: 10px 20px; font-size: 16px; font-weight: 700; text-transform: uppercase; } .add-to-cart:hover { background-color: #333; } /* Instagram Section */ .instagram { padding: 100px 0; background-color: #f5f5f5; text-align: center; } .instagram h2 { font-size: 36px; font-weight: 700; margin-bottom: 50px; color: #000; } .instagram-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; } .instagram-item { height: 200px; background-color: #ddd; border-radius: 10px; background-size: cover; background-position: center; } /* Reviews Section */ .reviews { padding: 100px 0; background-color: #fff; } .reviews h2 { text-align: center; font-size: 36px; font-weight: 700; margin-bottom: 50px; color: #000; } .review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; } .review-card { background-color: #f9f9f9; padding: 30px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); } .review-text { font-style: italic; margin-bottom: 20px; } .review-author { font-weight: 700; } /* Newsletter */ .newsletter { padding: 100px 0; background-color: #000; color: #fff; text-align: center; } .newsletter h2 { font-size: 36px; font-weight: 700; margin-bottom: 20px; } .newsletter p { font-size: 18px; margin-bottom: 30px; } .newsletter-form { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; } .newsletter-input { padding: 15px; font-size: 16px; border: none; border-radius: 5px; width: 300px; } .newsletter-btn { background-color: #fff; color: #000; border: none; padding: 15px 30px; font-size: 16px; font-weight: 700; text-transform: uppercase; } .newsletter-btn:hover { background-color: #f5f5f5; } /* Footer */ footer { background-color: #333; color: #fff; padding: 50px 0; text-align: center; } .footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; } .social-icons { display: flex; gap: 20px; } .social-icons a { color: #fff; font-size: 24px; transition: color 0.3s; } .social-icons a:hover { color: #f5f5f5; } /* Mobile Responsiveness */ @media (max-width: 768px) { .nav-links { display: none; /* For simplicity, hide nav on mobile; could add hamburger menu */ } .hero h1 { font-size: 36px; } .hero p { font-size: 18px; } .product-grid { grid-template-columns: 1fr; } .instagram-grid { grid-template-columns: repeat(2, 1fr); } .review-grid { grid-template-columns: 1fr; } .newsletter-form { flex-direction: column; align-items: center; } .newsletter-input { width: 100%; max-width: 300px; } } /* Smooth Scrolling */ html { scroll-behavior: smooth; } </style>
Elevate Style

Elevate Your Style

Premium Streetwear Collection

Shop Now

Featured Products

Urban Graphic Tee
$49.99
S M L XL
Add to Cart
Minimalist Street Shirt
$59.99
S M L XL
Add to Cart
Bold Print Tee
$54.99
S M L XL
Add to Cart

Follow Us on Instagram

Customer Reviews

"Amazing quality and style. Perfect for streetwear lovers!"

- Alex, 25

"Elevated my wardrobe. Highly recommend!"

- Jordan, 28

"Clean designs and premium feel. Love it!"

- Taylor, 22

Stay Updated

Subscribe to our newsletter for the latest drops and exclusive offers.

Subscribe

© 2023 Elevate Your Style. All rights reserved.

<script> // Simple size selection script document.querySelectorAll('.size-btn').forEach(btn => { btn.addEventListener('click', () => { btn.parentElement.querySelectorAll('.size-btn').forEach(b => b.classList.remove('selected')); btn.classList.add('selected'); }); }); // Smooth scroll to section function scrollToSection(sectionId) { document.getElementById(sectionId).scrollIntoView({ behavior: 'smooth' }); } // Placeholder for add to cart (could integrate with a backend) document.querySelectorAll('.add-to-cart').forEach(btn => { btn.addEventListener('click', () => { alert('Added to cart!'); // Placeholder }); }); </script> <script src="https://kit.fontawesome.com/a076d05399.js">

@sahilarora5859-cloud
Copy link

Make a website

@iamayra2010-rgb
Copy link

<title>For Amaan 🤍</title>
<!-- Romantic Music -->
<audio autoplay loop>
    <source src="https://www2.cs.uic.edu/~i101/SoundFiles/ILoveYou.mp3" type="audio/mpeg">
</audio>

<style>
    body {
        margin: 0;
        padding: 0;
        font-family: 'Segoe UI', sans-serif;
        background: linear-gradient(135deg, #f8d7da, #e6ccb2);
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
        text-align: center;
        overflow: hidden;
    }

    .card {
        background: rgba(255, 255, 255, 0.6);
        backdrop-filter: blur(12px);
        padding: 40px;
        border-radius: 25px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.1);
        max-width: 420px;
        transition: 0.5s;
    }

    h1 {
        font-size: 34px;
        color: #b5838d;
    }

    p {
        font-size: 18px;
        color: #6d6875;
        line-height: 1.6;
    }

    button {
        margin-top: 20px;
        padding: 12px 30px;
        font-size: 18px;
        border: none;
        border-radius: 30px;
        background-color: #b5838d;
        color: white;
        cursor: pointer;
        transition: 0.3s;
    }

    button:hover {
        background-color: #6d6875;
    }

    .heart {
        position: absolute;
        font-size: 18px;
        animation: float 6s linear infinite;
        color: #ff8fab;
    }

    @keyframes float {
        0% { transform: translateY(100vh); opacity: 1; }
        100% { transform: translateY(-10vh); opacity: 0; }
    }

    .finalMessage {
        display: none;
    }
</style>
<div class="card" id="mainCard">
    <h1>Happy Valentine’s Day Amaan 🤍</h1>
    <p>
        You walked into my life so softly…  
        and somehow made everything feel warmer 🌸  
        With you, even ordinary days feel magical ✨  
    </p>
    <button onclick="nextPage()">Click Here 💖</button>
</div>

<div class="card finalMessage" id="secondCard">
    <h1>Amaan… 💍</h1>
    <p>
        On our very first Valentine’s Day,  
        I just want to say…  
        I choose you. Today. Tomorrow. Always. 🤍  
        <br><br>
        Will you be my forever Valentine? 💌
        <br><br>
        <small>— From Ayra 🎀</small>
    </p>
</div>

<script>
    function nextPage() {
        document.getElementById("mainCard").style.display = "none";
        document.getElementById("secondCard").style.display = "block";
    }

    function createHeart() {
        const heart = document.createElement("div");
        heart.classList.add("heart");
        heart.innerHTML = "🤍";
        heart.style.left = Math.random() * 100 + "vw";
        heart.style.fontSize = Math.random() * 20 + 10 + "px";
        document.body.appendChild(heart);

        setTimeout(() => {
            heart.remove();
        }, 6000);
    }

    setInterval(createHeart, 400);
</script>

@qurbanovnicat871-rgb
Copy link

Hello

@qurbanovnicat871-rgb
Copy link

Znznhgsvsbbbbs

@noobgamingng8368360-maker

How are you

@noobgamingng8368360-maker

Uploading 10064.jpg…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment