/* Add custom Js styles below */// تحميل مكتبة Font Awesome
const fa = document.createElement("link");
fa.rel = "stylesheet";
fa.href = "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css";
document.head.appendChild(fa);
// إنشاء الودجت
const widget = document.createElement("div");
widget.className = "custom-social-widget";
// الروابط
widget.innerHTML = `
`;
// تنسيقات CSS
const style = document.createElement("style");
style.textContent = `
.custom-social-widget {
position: fixed;
left: 20px;
top: 45%;
transform: translateY(-50%);
display: flex;
flex-direction: column;
gap: 20px;
z-index: 999999;
}
/* الأيقونات بدون خلفية */
.custom-social-widget a {
text-decoration: none;
background: none;
transition: all 0.3s ease;
}
/* ألوان الأيقونات الأصلية */
.whatsapp-icon i {
color: #25D366;
font-size: 48px;
}
.instagram-icon i {
background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
font-size: 48px;
}
/* تأثير عند المرور */
.custom-social-widget a:hover i {
transform: scale(1.15);
filter: brightness(1.2);
}
/* للهواتف */
@media (max-width: 768px) {
.custom-social-widget {
left: 12px;
top: 50%;
}
.custom-social-widget i {
font-size: 40px;
}
}
`;
// إضافتهم للصفحة بعد التحميل
window.addEventListener("load", () => {
document.head.appendChild(style);
document.body.appendChild(widget);
});