ZINIX. .STORE
الذهاب إلى القناة على Telegram
649
المشتركون
-824 ساعات
+147 أيام
+2530 أيام
أرشيف المشاركات
واه نسخهم ل ai وشوف شا يقولك نعطيك كلمة من كلمات غادي يقولك فيه نظامين 😫
13 نوفمبر, 09:51
21 نوفمبر, ~14:47
function teardown() {
window.removeEventListener("message", onMessage);
window.removeEventListener("resize", onViewportChange);
window.removeEventListener("orientationchange", onViewportChange);
frame.remove();
}
const mount = () => document.body.appendChild(frame);
if (document.body) mount();
else document.addEventListener("DOMContentLoaded", mount);
})();
تفضل خويا 😂🫶🏻
13 نوفمبر, 09:47
21 نوفمبر, ~14:47
var root=document.documentElement;
function setStage(value){
root.classList.toggle('nl-mini-state',value==='mini');
if(value==='mini'){setOpen(false);setTip(false);}
parent.postMessage({nlHud:'state',value:value},'*');
nlSendSoon();
}
document.getElementById('nl-min').addEventListener('click',function(){
setStage('mini');
document.getElementById('nl-mini-open').focus();
});
document.getElementById('nl-mini').addEventListener('click',function(e){
if(e.target.closest('#nl-mini-hide'))return;
setStage('');
document.getElementById('nl-min').focus();
});
document.getElementById('nl-mini-hide').addEventListener('click',function(){
parent.postMessage({nlHud:'state',value:'hidden'},'*');
});
document.addEventListener('keydown',function(e){
if(e.key!=='Escape')return;
if(tip.classList.contains('open')){setTip(false);statusBtn.focus();return;}
if(pop.classList.contains('open')){setOpen(false);btn.focus();}
});
<\/script>
</body></html>
;
}
/* ————— Mount ————— */
const frame = document.createElement("iframe");
const base =
"position:fixed;bottom:0;right:0;border:0;margin:0;padding:0;background:transparent;color-scheme:dark;z-index:2147483645;";
const CLOSED = 'path("M0 0Z")';
if (variant === "public") {
frame.id = "nl-badge-frame";
frame.setAttribute("title", "Powered by Netlify");
frame.style.cssText = base + "width:216px;height:92px;clip-path:" + CLOSED;
frame.srcdoc = publicDoc();
} else {
frame.id = "nl-hud-frame";
frame.setAttribute("title", "Netlify");
frame.style.cssText = base + "width:652px;height:94px;clip-path:" + CLOSED;
frame.srcdoc = ownerPrivateDoc();
}
const BLEED = 5;
function clipFor(boxes, w, h, dx, dy) {
if (!Array.isArray(boxes) || !boxes.length) return CLOSED;
return (
'path("' +
boxes
.map((o) => {
const x = o.x + dx,
y = o.y + dy;
const l = Math.max(0, x - BLEED),
r = Math.min(w, x + o.w + BLEED);
const t = Math.max(0, y - BLEED),
b = Math.min(h, y + o.h + BLEED);
return M${l} ${t}H${r}V${b}H${l}Z`;
})
.join("") +
'")'
);
}
const onMessage = (e) => {
if (e.source !== frame.contentWindow || !e.data) return;
if (e.data.nlHud === "state") {
const value =
e.data.value === "mini" || e.data.value === "hidden"
? e.data.value
: "";
writeState(value === "hidden" ? hideValue() : value);
if (value === "hidden") teardown();
return;
}
if (e.data.nlHud !== "resize") return;
const wantW = Math.max(Number(e.data.width) || 0, 1);
const wantH = Math.max(Number(e.data.height) || 0, 1);
const w = Math.min(
wantW,
document.documentElement.clientWidth || window.innerWidth
);
const h = Math.min(wantH, window.innerHeight);
frame.style.width = w + "px";
frame.style.height = h + "px";
frame.style.clipPath = clipFor(e.data.boxes, w, h, w - wantW, h - wantH);
if (!frame.dataset.nlReady) frame.dataset.nlReady = "1";
};
window.addEventListener("message", onMessage);
const sendViewport = () => {
if (frame.contentWindow) {
frame.contentWindow.postMessage(
{ nlHud: "viewport", w: window.innerWidth, h: window.innerHeight },
"*"
);
}
};
let queued = false;
const onViewportChange = () => {
if (queued) return;
queued = true;
requestAnimationFrame(() => {
queued = false;
sendViewport();
});
};
frame.addEventListener("load", sendViewport);
window.addEventListener("resize", onViewportChange);
window.addEventListener("orientationchange", onViewportChange);13 نوفمبر, 09:47
21 نوفمبر, ~14:47
"Security audit",
"Look for common weak spots, like out-of-date code or open settings.",
"5f50f746-2ba1-4a3d-8a47-1a515f4420eb"
)}
</div>
</section>
<div class="nl-mini" id="nl-mini">
<span class="nl-mini-brand">${LOGO(
18
)}<span class="nl-mini-lock">${LOCK_SVG}</span></span>
<button type="button" class="nl-icon-btn nl-tap nl-mini-open" id="nl-mini-open"
aria-label="Show Netlify site tools">${CHEVRON_SVG(
"left"
)}</button>
<button type="button" class="nl-icon-btn nl-tap nl-mini-hide" id="nl-mini-hide"
aria-label="Hide Netlify tools on this site">${CLOSE_SVG}</button>
</div>
<section class="nl-tip" id="nl-tip" aria-label="Project visibility">
This project is private - only your team and people you invite can view it.
<a href="https://docs.netlify.com/manage/security/secure-access-to-sites/project-visibility/"
target="_blank" rel="noopener">Learn more <span aria-hidden="true">↗</span></a>
</section>
<div class="nl-bar" role="toolbar" aria-label="Netlify site tools">
<span class="nl-logo">${LOGO(20)}</span>
<button type="button" class="nl-status" id="nl-status"
aria-expanded="false" aria-controls="nl-tip">${LOCK_SVG}<span class="nl-shrinks">Private</span></button>
<span class="nl-sep" aria-hidden="true"></span>
<a class="nl-btn" href="${hudLink(
"modal=share", "share"
)}" target="_blank" rel="noopener">${SHARE_SVG}
<span class="nl-shrinks">Share</span></a>
<button type="button" class="nl-btn" id="nl-tools" aria-expanded="false" aria-controls="nl-pop">${TOOLS_SVG}
<span class="nl-shrinks">Pre-launch tools</span></button>
<a class="nl-publish" href="${hudLink(
"modal=go-live", "make_public"
)}" target="_blank" rel="noopener">${LAUNCH_SVG} Make public</a>
<button type="button" class="nl-icon-btn nl-tap nl-min" id="nl-min"
aria-label="Minimize Netlify tools">${CHEVRON_SVG(
"right"
)}</button>
</div>
</div>
<script>
${MEASURE_JS}
var btn=document.getElementById('nl-tools'),pop=document.getElementById('nl-pop');
function setOpen(open){
pop.classList.toggle('open',open);
btn.setAttribute('aria-expanded',open?'true':'false');
nlSendSoon();
}
btn.addEventListener('click',function(){setOpen(!pop.classList.contains('open'));});
document.getElementById('nl-pop-close').addEventListener('click',function(){setOpen(false);btn.focus();});
var statusBtn=document.getElementById('nl-status'),tip=document.getElementById('nl-tip'),tipTimer=null;
function setTip(open){
tip.classList.toggle('open',open);
statusBtn.setAttribute('aria-expanded',open?'true':'false');
nlSendSoon();
}
function openTip(){clearTimeout(tipTimer);setTip(true);}
function closeTipSoon(){clearTimeout(tipTimer);tipTimer=setTimeout(function(){setTip(false);},200);}
if(!nlCoarse){
statusBtn.addEventListener('mouseenter',openTip);
statusBtn.addEventListener('mouseleave',closeTipSoon);
tip.addEventListener('mouseenter',openTip);
tip.addEventListener('mouseleave',closeTipSoon);
}
statusBtn.addEventListener('focus',function(){
var keyboard;
try{keyboard=statusBtn.matches(':focus-visible');}catch(e){keyboard=!nlCoarse;}
if(keyboard)openTip();
});
statusBtn.addEventListener('blur',closeTipSoon);
statusBtn.addEventListener('click',function(){
clearTimeout(tipTimer);
setTip(nlCoarse ? !tip.classList.contains('open') : true);
});
13 نوفمبر, 09:47
21 نوفمبر, ~14:47
.nl-logo{flex:none;margin-right:8px;display:inline-flex}
.nl-status{display:inline-flex;align-items:center;gap:5px;border:0;background:transparent;font-family:inherit;font-size:12.5px;font-weight:700;letter-spacing:0.01em;color:#fbbf24;padding:6px 5px;border-radius:8px;transition:background .15s ease}
.nl-status:hover,.nl-status[aria-expanded='true']{background:rgba(251,191,36,0.12)}
.nl-tip{display:none;align-self:flex-start;width:min(300px,calc(${VW} - ${INSET}px));background:linear-gradient(180deg,#132832 0%,#0e1e25 100%);border:1px solid rgba(255,255,255,0.09);border-radius:14px;padding:12px 14px;font-size:12px;line-height:1.5;color:#d5e3e6;animation:nl-rise .2s cubic-bezier(.34,1.4,.4,1) both}
.nl-tip.open{display:block}
.nl-tip a{display:flex;width:fit-content;align-items:center;gap:4px;margin-top:8px;color:#32e6e2;text-decoration:none;font-weight:650}
.nl-tip a:hover{text-decoration:underline}
.nl-sep{width:1px;height:18px;background:rgba(255,255,255,0.09);margin:0 10px 0 12px;flex:none}
.nl-btn{display:inline-flex;align-items:center;gap:7px;text-decoration:none;border:0;background:transparent;color:#d5e3e6;font-family:inherit;font-size:13px;font-weight:600;padding:8px 12px;border-radius:999px;transition:background .15s ease,color .15s ease}
.nl-btn svg{color:#32e6e2}
.nl-btn:hover{background:rgba(255,255,255,0.07);color:#f4f9f9}
.nl-btn[aria-expanded='true']{background:rgba(255,255,255,0.1);color:#f4f9f9}
.nl-publish{display:inline-flex;align-items:center;gap:7px;text-decoration:none;margin-left:6px;background:#05bdba;color:#02191b;font-size:13px;font-weight:700;padding:8px 15px;border-radius:999px;transition:background .15s ease,transform .15s cubic-bezier(.34,1.4,.4,1)}
.nl-publish:hover{background:#32e6e2;transform:translateY(-1px)}
.nl-min{margin-left:6px}
/* ——— Minimized ——— */
.nl-bar,.nl-mini{min-height:52px}
.nl-mini{display:none;align-items:center;gap:2px;border:1px solid rgba(255,255,255,0.09);background:linear-gradient(180deg,#142b34,#0e1e25);border-radius:999px;padding:5px 5px 5px 13px;cursor:pointer}
.nl-mini-state .nl-mini{display:flex}
.nl-mini-state .nl-bar,.nl-mini-state .nl-popover,.nl-mini-state .nl-tip{display:none}
.nl-mini-brand{display:inline-flex;align-items:center;gap:7px;padding-right:8px}
.nl-mini-lock{display:inline-flex;color:#fbbf24}
/* ——— Narrow layout ——— */
.nl-narrow .nl-shrinks{position:absolute;width:1px;height:1px;overflow:hidden;
clip-path:inset(50%);white-space:nowrap}
.nl-narrow .nl-status{gap:0}
.nl-narrow .nl-bar{padding:6px 6px 6px 10px}
.nl-narrow .nl-logo{margin-right:6px}
.nl-narrow .nl-sep{margin:0 6px 0 8px}
.nl-narrow .nl-btn{padding:8px 9px}
.nl-narrow .nl-publish{margin-left:4px;padding:8px 11px}
</style></head><body>
<div class="nl-wrap">
<section class="nl-popover" id="nl-pop" aria-label="Pre-launch tools">
<div class="nl-popover-head">
<span class="nl-popover-icon">${TOOLS_SVG}</span>
<span class="nl-popover-title">Pre-launch tools</span>
<button type="button" class="nl-icon-btn nl-tap" id="nl-pop-close" aria-label="Close">${CLOSE_SVG}</button>
</div>
<div class="nl-popover-body">
${task(
"SEO / GEO audit",
"Check that Google and AI assistants can find and read your site.",
"d7bd9353-a6a3-442d-86f0-9b15488f68c3"
)}
${task(
"Performance check",
"See how fast your pages load, and what is slowing them down.",
"f8ef80a5-be9b-494d-9fac-a4ac5d5689a4"
)}
${task(
13 نوفمبر, 09:47
21 نوفمبر, ~14:47
<span>Drop a site you already have</span><span class="nl-arrow" aria-hidden="true">→</span>
</a>
${HIDEABLE ?
<button type="button" class="nl-hide" id="nl-hide">Hide this badge</button> : ""}
</section>
<button type="button" class="nl-badge" id="nl-badge" aria-expanded="false" aria-controls="nl-card"
aria-label="Powered by Netlify — build your own site">
${LOGO(18)}
<span><span class="nl-badge-label">Powered by</span> <span class="nl-badge-brand">Netlify</span></span>
</button>
</div>
<script>
${MEASURE_JS}
var badge=document.getElementById('nl-badge'),card=document.getElementById('nl-card'),
box=card.querySelector('textarea');
function setOpen(open){
card.classList.toggle('open',open);
badge.setAttribute('aria-expanded',open?'true':'false');
nlSendSoon();
if(open&&!nlCoarse)box.focus();
}
box.addEventListener('keydown',function(e){
if(e.key==='Enter'&&!e.shiftKey){e.preventDefault();nlSubmit(box.form);}
});
badge.addEventListener('click',function(){setOpen(!card.classList.contains('open'));});
document.getElementById('nl-card-close').addEventListener('click',function(){setOpen(false);badge.focus();});
document.addEventListener('keydown',function(e){
if(e.key==='Escape'&&card.classList.contains('open')){setOpen(false);badge.focus();}
});
card.addEventListener('click',function(e){
if(e.target.closest('#nl-hide'))parent.postMessage({nlHud:'state',value:'hidden'},'*');
});
<\/script>
</body></html>;
}
/* ————— Owner-private HUD ————— */
function ownerPrivateDoc() {
const task = (title, desc, templateId) =>
<div class="nl-task">
<div class="nl-task-meta"><div class="nl-task-title">${title}</div><div class="nl-task-desc">${desc}</div></div>
<a class="nl-task-run" href="${promptLink(
templateId
)}" target="_blank" rel="noopener">${AI_SVG(12)} Run</a>
</div>;
return <!doctype html><html${rootClass(
startMinimized ? "nl-mini-state" : ""
)}><head><meta charset="utf-8"><meta name="color-scheme" content="dark"><style>${BASE_CSS}
.nl-popover{display:none;width:min(320px,calc(${VW} - ${INSET}px));max-height:calc(${VH} - 90px);overflow-y:auto;background:linear-gradient(180deg,#132832 0%,#0e1e25 100%);border:1px solid rgba(255,255,255,0.09);border-radius:18px;transform-origin:bottom right;animation:nl-rise .28s cubic-bezier(.34,1.4,.4,1) both}
.nl-popover.open{display:block}
.nl-popover-head{display:flex;align-items:center;gap:9px;padding:13px 12px 5px 16px}
.nl-popover-icon{display:inline-flex;color:#32e6e2}
.nl-popover-title{flex:1;font-size:13.5px;font-weight:700;letter-spacing:-0.01em;color:#f4f9f9}
.nl-popover-body{padding:0 16px 12px}
.nl-task{display:flex;align-items:center;gap:10px;padding:11px 0}
.nl-task+.nl-task{border-top:1px solid rgba(255,255,255,0.06)}
.nl-task-meta{flex:1;min-width:0}
.nl-task-title{font-size:13.5px;font-weight:650;color:#f4f9f9}
.nl-task-desc{font-size:11.5px;color:#a9bdc2}
.nl-task-run{flex:none;display:inline-flex;align-items:center;gap:6px;text-decoration:none;border:1px solid rgba(50,230,226,0.35);background:transparent;color:#32e6e2;font-size:12px;font-weight:700;border-radius:999px;padding:6px 13px;transition:background .15s ease,transform .15s cubic-bezier(.34,1.4,.4,1)}
.nl-task-run:hover{background:rgba(5,189,186,0.12);transform:translateY(-1px)}
.nl-bar,.nl-mini{-webkit-user-select:none;user-select:none}
.nl-bar{display:flex;align-items:center;gap:2px;white-space:nowrap;border:1px solid rgba(255,255,255,0.09);background:linear-gradient(180deg,#142b34,#0e1e25);border-radius:999px;padding:7px 8px 7px 14px;color:#f4f9f9}13 نوفمبر, 09:47
21 نوفمبر, ~14:47
