מחולל אתרים וקוד

ערוך פסקאות, הוסף קישורים והפק קוד מלא של האתר המעודכן.

עריכת הפסקאות

אפשר לכתוב טקסט וכתובות אינטרנט מלאות.

תצוגה מקדימה של האתר

מעעע

קוד HTML + CSS שנוצר

קוד JavaScript שנוצר

'; } function runtimeSource(){ return '('+arguments.callee.caller.toString()+')();'; } function generateJs(){ return runtimeSource(); } async function copyText(text,output,label){ output.value=text; output.scrollTop=0; try{ if(navigator.clipboard&&window.isSecureContext){ await navigator.clipboard.writeText(text); }else{ output.focus(); output.select(); if(!document.execCommand("copy")){ throw new Error("העתקה נכשלה"); } } notify(label+" הועתק בהצלחה."); }catch(error){ output.focus(); output.select(); notify("הקוד נוצר. סמן את הטקסט והעתק אותו ידנית."); } } addBtn.addEventListener("click",function(){ paragraphs.push(""); save(); renderEditors(); renderPreview(); const inputs=editors.querySelectorAll("textarea"); if(inputs.length){ inputs[inputs.length-1].focus(); } }); htmlBtn.addEventListener("click",function(){ copyText(generateHtml(),htmlOut,"HTML + CSS"); }); jsBtn.addEventListener("click",function(){ copyText(generateJs(),jsOut,"JavaScript"); }); renderEditors(); renderPreview(); save(); })();