ads

vendredi 20 décembre 2024

إليك نسخة محسنة بطريقة احترافية: HTML ``` كود الخصم

كود الخصم

``` هذه النسخة تحتوي على: - تصميم أنيق ومحسّن - استعمال CSS لتحسين الشكل - إضافة تأثيرات عند التحديق على زر النسخ - تحسين القوام والتنسيق - دعم لجميع المتصفحات الحديثة استبدل "YOUR_DISCOUNT_CODE" بكود الخصم الخاص بك.
إليك مثال بسيط لصفحة ويب باستخدام HTML لإنشاء مربع كود الخصم: HTML ``` كود الخصم

كود الخصم

``` استبدل "YOUR_DISCOUNT_CODE" بكود الخصم الخاص بك.
function copyCode() { var code = document.getElementById("code"); code.select(); navigator.clipboard.writeText(code.value); alert("تم نسخ الكود!"); }

Code iherb coupon

كود الخصم

كود الخصم

إليك مثال بسيط لصفحة ويب باستخدام HTML وCSS وJavaScript لإنشاء مربع كود الخصم: HTML ``` كود الخصم

كود الخصم

``` CSS (في ملف style.css) ``` body { font-family: Arial, sans-serif; background-color: #f0f0f0; } .container { width: 300px; margin: 50px auto; padding: 20px; background-color: #fff; border: 1px solid #ddd; box-shadow: 0 0 10px rgba(0,0,0,0.1); } input[type="text"] { width: 100%; كود الخصم

كود الخصم

height: 40px; margin-bottom: 10px; padding: 10px; border: 1px solid #ccc; } button { width: 100%; height: 40px; background-color: #4CAF50; color: #fff; border: none; cursor: pointer; } button:hover { background-color: #3e8e41; } ``` JavaScript (في ملف script.js) ``` function copyCode() { var code = document.getElementById("code"); code.select(); navigator.clipboard.writeText(code.value); alert("تم نسخ الكود!"); } ``` كيفية استخدامها 1. أنشئ ملفات HTML وCSS وJavaScript. 2. نسخ ولصق الشفرة في الملفات. 3. استبدل "YOUR_DISCOUNT_CODE" بكود الخصم الخاص بك. 4. افتح الملف HTML في متصفحك. 5. انسخ الكود وشاركه! هل تحتاج إلى مزيد من المساعدة؟

mardi 26 novembre 2024

Congratulations!

You can get

75% off

Here is your code

LGP2660
copy

Code iherb

 

.coupon-container .close { width: 24px; position: absolute; top: 16px; right: 16px; z-index: 2; cursor: pointer; } .coupon-container { position: relative; font-family: "Roboto", sans-serif; max-width: 350px; text-align: center; background: #a3f9ff; margin: 100px auto 30px auto; opacity: 0; pointer-events: none; transform: translateY(30px); transition: all 400ms ease; } .coupon-container.active { opacity: 1; pointer-events: auto; transform: translateY(0); } .coupon-container .gift { position: absolute; width: 180px; top: -120px; left: 50%; transform: translateX(-50%); } .coupon-container .bg { position: absolute; left: 0; top: 0; width: 100%; } .coupon-container h2, .coupon-container p, .coupon-container .discount, .coupon-container .code, .coupon-container .btn { position: relative; } .coupon-container h2 { color: #023047; font-weight: 900; font-size: 30px; padding-top: 70px; margin-bottom: 0; } .coupon-container p { font-size: 18px; color: #023047; margin: 8px; } .coupon-container .discount { font-family: "Poppins", sans-serif; font-size: 56px; font-weight: 300; color: #076170; } .coupon-container .code { font-size: 45px; font-weight: 900; } .coupon-container .btn { text-decoration: none; background: #e63946; padding: 16px; display: inline-block; width: 100%; color: #fff; box-sizing: border-box; margin-top: 24px; font-size: 24px; font-weight: 900; text-transform: uppercase; transition: all 300ms ease; } .coupon-container .btn:hover { background: #e22535; } .get-discount-btn { padding: 8px 32px; background: #023047; color: #fff; border: none; font-size: 18px; cursor: pointer;