';
document.body.appendChild(m);
}
function buildColorPickers(){
var eBody=document.getElementById('editor-body');
if(!eBody||document.getElementById('custom-colors')) return;
var cmEl=document.getElementById('colorMain');
if(!cmEl) return;
var rowEl=cmEl;
while(rowEl.parentNode!==eBody) rowEl=rowEl.parentNode;
var pal=['#002f6c','#1a3a6b','#003366','#0066cc','#0099cc','#2c3e50','#e53238','#cc0000','#8b0000','#d4351c','#ff6600','#f39c12','#008000','#2e8b57','#27ae60','#1abc9c','#800080','#9b59b6','#000000','#333333','#555555','#777777','#999999','#ffffff'];
var div=document.createElement('div');
div.id='custom-colors';
function mkRow(lbl,tgt,defVal){
var h='
'+lbl+':
';
h+='
';
for(var i=0;i
';}
h+='
';
return h;
}
var caVal=(document.getElementById('colorAccent')||{value:'#e53238'}).value;
div.innerHTML=mkRow('Hauptfarbe','Main',cmEl.value)+mkRow('Akzentfarbe','Accent',caVal);
eBody.insertBefore(div,rowEl.nextElementSibling);
}
function buildColorPresets(){
var eBody=document.getElementById('editor-body');
if(!eBody||document.getElementById('color-presets')) return;
var cc=document.getElementById('custom-colors');
if(!cc) return;
var pr=[['Classic eBay','#002f6c','#e53238'],['Luxury Gold','#1a1a2e','#d4a832'],['Bold Tech','#1a1a1a','#cc0000'],['Nature Outdoor','#2d572c','#ff6600'],['Clean Eco','#333333','#27ae60'],['Sport Energy','#0047ab','#ff8c00'],['Elegant Wine','#800020','#d4a832'],['Modern Teal','#008080','#ff6b6b'],['Modern Tech','#2d2d2d','#e53238'],['Midnight Blue','#0f172a','#38bdf8']];
var div=document.createElement('div');
div.id='color-presets';
var h='
Schnellkonfig:
';
h+='
';
for(var i=0;i';
h+='
SHOP • KONTAKT
';
h+='
';
h+=''+p[0]+'';
h+='49,95
';
h+='
AKTIV
TAB
';
h+='
';
}
h+='';
div.innerHTML=h;
eBody.insertBefore(div,cc);
}
function buildLogoAlign(){
var eBody=document.getElementById('editor-body');
if(!eBody||document.getElementById('logo-align-btns')) return;
var imgInp=document.getElementById('inputLogoImg');
if(!imgInp) return;
var imgParent=imgInp;
while(imgParent.parentNode!==eBody) imgParent=imgParent.parentNode;
var div=document.createElement('div');
div.id='logo-align-btns';
div.style.cssText='display:flex;gap:4px;margin-bottom:8px;';
div.innerHTML='Ausrichtung:'
+''
+''
+'';
eBody.insertBefore(div,imgParent.nextSibling);
}
function buildCategoryPreview(){
var badges=document.getElementById('pv-badges');
if(!badges||!badges.parentNode) return;
if(document.getElementById('pv-categories')) return;
var cat=document.createElement('div');
cat.id='pv-categories';
cat.style.cssText='display:none;';
badges.parentNode.insertBefore(cat,badges.nextSibling);
}
function buildCategoryEditor(){
var eBody=document.getElementById('editor-body');
if(!eBody||document.getElementById('cat-section')) return;
var inputLogo=document.getElementById('inputLogo');
if(!inputLogo) return;
var logoParent=inputLogo;
while(logoParent.parentNode!==eBody) logoParent=logoParent.parentNode;
var logoTitle=logoParent.previousElementSibling;
var sec=document.createElement('div');
sec.id='cat-section';
sec.innerHTML='
Shop-Kategorieleiste
'
+'
Nur eBay-interne Links verwenden!
'
+''
+'';
eBody.insertBefore(sec,logoTitle);
}
function buildEulaModal(){
if(document.getElementById('modal-eula')) return;
var m=document.createElement('div');
m.id='modal-eula';
m.style.cssText='display:none;position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.6);z-index:99999;justify-content:center;align-items:center;';
var box=document.createElement('div');
box.style.cssText='background:#fff;border-radius:10px;padding:30px;max-width:740px;width:90%;max-height:85vh;overflow-y:auto;position:relative;box-shadow:0 8px 32px rgba(0,0,0,0.3);';
var closeBtn='';
var deTitle='
🇩🇪 Geistiges Eigentum und Nutzungsrechte
';
var deText='
'
+'1. Eigentum an der Software: Alle Rechte an dem geistigen Eigentum, einschließlich, aber nicht beschränkt auf den Quellcode, die Software-Architektur, das Design der Benutzeroberfläche, Grafiken, Algorithmen und die spezifischen JSON-Dateistrukturen, die innerhalb des Generators verwendet werden, verbleiben das ausschließliche Eigentum von DJ-Industrieteilehandel, Inhaber: Danijel Jeremic, Odenwaldstraße 5, 76461 Muggensturm.
'
+'2. Nutzungsrecht für den Kunden: Mit dem Kauf eines gültigen Abonnements (einschließlich des bezahlten Testzugangs) erhält der Nutzer ein nicht-exklusives, nicht-übertragbares, widerrufliches, weltweites Recht, den Generator zur Erstellung von eBay-Verkaufsvorlagen für die eigenen gewerblichen oder selbständigen geschäftlichen Aktivitäten zu nutzen.
'
+'3. Einschränkungen: Dem Nutzer ist es strikt untersagt: '
+'• Den Quellcode des Generators zurückzuentwickeln (Reverse Engineering), zu dekompilieren oder zu kopieren. '
+'• Die Generator-Software oder deren Kernfunktionen an Dritte weiterzuverkaufen, zu vermieten oder als White-Label-Produkt anzubieten. '
+'• Automatisierte Bots oder Scraper zu verwenden, um Daten oder Code von der Plattform zu extrahieren.
'
+'4. Eigentum an den erzeugten Inhalten: Die durch die Software generierten HTML-Templates sowie die vom Nutzer heruntergeladenen, exportierten JSON-Konfigurationsdateien sind Eigentum des Nutzers. Der Nutzer behält das unbeschränkte Recht, diese generierten Codes zu nutzen, zu ändern und bei eBay hochzuladen, auch nachdem das Abonnement abgelaufen oder gekündigt ist.'
+'
';
var enTitle='
🇺🇸 Intellectual Property and Usage License
';
var enText='
'
+'1. Ownership of the Software: All intellectual property rights, including but not limited to source code, software architecture, user interface design, graphics, algorithms, and the unique JSON file structures used within the Generator, remain the exclusive property of DJ-Industrieteilehandel, Owner: Danijel Jeremic, Odenwaldstrasse 5, 76461 Muggensturm, Germany.
'
+'2. License to the User: Upon purchasing a valid subscription (including the paid trial access), the User is granted a non-exclusive, non-transferable, revocable, worldwide license to use the Generator for the purpose of creating eBay listing templates for their own commercial or professional business activities.
'
+'3. Restrictions: The User is strictly prohibited from: '
+'• Reverse-engineering, decompiling, or copying the source code of the Generator. '
+'• Reselling, renting, or white-labeling the Generator software or its core functionality to third parties. '
+'• Using automated bots or scrapers to extract data or code from the platform.
'
+'4. Ownership of Generated Output: The HTML templates generated by the software, as well as the exported JSON configuration files downloaded by the User, are the property of the User. The User retains the unlimited right to use, modify, and upload these generated codes to eBay, even after the subscription has expired or has been canceled.'
+'
");
buildModal("barriere","Barrierefreiheit bearbeiten","#d1ecf1","#0c5460","BFSG gilt ab 28.06.2025 fuer gewerbliche Anbieter.","
[Erklaerung zur Barrierefreiheit hier eintragen]
");
window._logoAlign='left';
buildLogoAlign();
buildColorPickers();
buildColorPresets();
var _cr=document.querySelector('.color-row');
var _cc=document.getElementById('custom-colors');
if(_cr&&_cc&&_cr.parentNode){
var _resetEl=_cr.nextElementSibling;
while(_resetEl&&(_resetEl.id==='color-presets'||_resetEl.id==='custom-colors')) _resetEl=_resetEl.nextElementSibling;
var _imgUrl='https://templates24-uiuzqhzpfq.live-website.com/wp-content/uploads/2026/06/Farbpicker.png';
var _fp=document.createElement('div');
_fp.id='free-color-pick';
_fp.innerHTML='
Freie Farbauswahl:
'
+'
'
+'
Hauptfarbe
'
+'
Akzent
'
+'
';
_cc.parentNode.insertBefore(_fp,_cc.nextSibling);
var _mw=document.getElementById('fcp-main-wrap');
var _aw=document.getElementById('fcp-accent-wrap');
_mw.innerHTML='';
_aw.innerHTML='';
var _cmI=document.getElementById('colorMain');
var _caI=document.getElementById('colorAccent');
_cmI.style.cssText='position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer;';
_caI.style.cssText='position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer;';
_mw.appendChild(_cmI);
_aw.appendChild(_caI);
_cr.style.display='none';
if(_resetEl){ _resetEl.style.cssText='margin-top:10px;'; _fp.appendChild(_resetEl); }
}
buildCategoryPreview();
buildCategoryEditor();
applyCategories();
buildUploadZone();
// Build editor footer with legal links
(function(){
var eBody = document.getElementById('editor-body');
if(!eBody) return;
var ft = document.createElement('div');
ft.style.cssText = 'border-top:2px solid #dee2e6;margin-top:20px;padding:16px 12px 8px;text-align:center;';
ft.innerHTML = '
';
cs.innerHTML=html;
};
window.applyCategories=function(){
var cm=(document.getElementById('colorMain')||{value:'#002f6c'}).value;
var catEl=document.getElementById('pv-categories');
if(!catEl) return;
var rows=document.querySelectorAll('#cat-list .cat-row');
var items=[];
rows.forEach(function(row){
var nameInp=row.querySelector('.cat-name');
var urlInp=row.querySelector('.cat-url');
var name=nameInp?nameInp.value.trim():'';
var url=urlInp?urlInp.value.trim():'';
if(name) items.push({name:name,url:url});
});
if(items.length===0){ catEl.style.display='none'; catEl.innerHTML=''; return; }
catEl.style.display='block';
var html='
';
document.body.appendChild(overlay);
} else {
overlay.style.display = 'flex';
}
return;
}
var cm=(document.getElementById('colorMain')||{value:'#002f6c'}).value;
var ca=(document.getElementById('colorAccent')||{value:'#e53238'}).value;
var logo=(document.getElementById('inputLogo')||{value:''}).value.trim();
var logoImg=(document.getElementById('inputLogoImg')||{value:''}).value.trim();
var lShop=(document.getElementById('linkShop')||{value:'https://ebay.de'}).value||'https://ebay.de';
var lKon=(document.getElementById('linkKontakt')||{value:'https://ebay.de'}).value||'https://ebay.de';
var lBew=(document.getElementById('linkBew')||{value:'https://ebay.de'}).value||'https://ebay.de';
var title=(document.getElementById('inputTitle')||{value:''}).value.trim();
var price=((document.getElementById('inputPrice')||{value:'0,00'}).value.trim())||'0,00';
var bulletsRaw=(document.getElementById('inputBullets')||{value:''}).value;
var urls=[]; document.querySelectorAll('#img-list .img-row input').forEach(function(inp){ var v=inp.value.trim(); if(v) urls.push(v); });
// Tab-Inhalte
var tabBeschr=(document.getElementById('rte-beschr')||{innerHTML:''}).innerHTML;
var payOn=[]; var payOnHTML=[]; document.querySelectorAll('#zahlung-btns .tgl-btn.on').forEach(function(b){ payOn.push(b.textContent.trim()); payOnHTML.push(b.innerHTML); });
var shipOn=[]; var shipOnHTML=[]; document.querySelectorAll('#versand-btns .tgl-btn.on').forEach(function(b){ shipOn.push(b.textContent.trim()); shipOnHTML.push(b.innerHTML); });
var tabZahlung='';
if(payOnHTML.length){
tabZahlung='
';
}
tabVersand+=((document.getElementById('rte-versand')||{innerHTML:''}).innerHTML);
// Galerie
var galHTML='';
if(urls.length>0){
var radios='',mains='',css='';
galHTML='
'+radios+css
+'
'+mains+'
'
+'
'+thumbsH+'
';
} else { galHTML=''; }
var logoHTML=logoImg?''
:''+(logo||'[Shop-Name]')+'';
var bulletsHTML='';
bulletsRaw.split('\n').forEach(function(l){
var ln=l.trim();
if(ln) bulletsHTML+='
'
+'✓'+ln+'
';
});
// CSS-only Tab-System fuer Export
var pIds=['ptab1','ptab2','ptab3'];
var pLabels=['PRODUKTBESCHREIBUNG','ZAHLUNG','VERSAND'];
var pContents=[tabBeschr,tabZahlung,tabVersand];
var pRadios=''; var pCSS='';
var pNav='
';
for(var i=0;i<3;i++) pNav+='';
pNav+='
';
var pBody='
';
for(var i=0;i<3;i++) pBody+='
'+pContents[i]+'
';
pBody+='
';
var prodBlock='
'+pRadios+pCSS+pNav+pBody+'
';
var lIds=['ltab1','ltab2','ltab3','ltab4','ltab5'];
var lLabels=['IMPRESSUM','AGB','WIDERRUF','DATENSCHUTZ','BARRIEREFREIHEIT'];
var _impE=(document.getElementById('rte-modal-impressum')||{innerHTML:''}).innerHTML;
var _agbE=(document.getElementById('rte-modal-agb')||{innerHTML:''}).innerHTML;
var _widE=(document.getElementById('rte-modal-widerruf')||{innerHTML:''}).innerHTML;
var _datE=(document.getElementById('rte-modal-datenschutz')||{innerHTML:''}).innerHTML;
var _barE=(document.getElementById('rte-modal-barriere')||{innerHTML:''}).innerHTML;
var lContents=[_impE,_agbE,_widE,_datE,_barE];
var lRadios=''; var lCSS='';
var lNav='
';
for(var i=0;i<5;i++) lNav+='';
lNav+='
';
var lBody='
';
for(var i=0;i<5;i++) lBody+='
'+lContents[i]+'
';
lBody+='
';
// Cross-Selling Export
var csExp='';
var csExpItems=[];
for(var i=1;i<=5;i++){
var csImg=(document.getElementById('cs-img-'+i)||{value:''}).value.trim();
var csTitle=(document.getElementById('cs-title-'+i)||{value:''}).value.trim();
var csUrl=(document.getElementById('cs-url-'+i)||{value:''}).value.trim();
if(csTitle||csImg) csExpItems.push({img:csImg,title:csTitle,url:csUrl});
}
if(csExpItems.length>0){
csExp='
';
var catExpItems=[];
document.querySelectorAll('#cat-list .cat-row').forEach(function(row){
var n=row.querySelector('.cat-name');
var u=row.querySelector('.cat-url');
if(n&&n.value.trim()) catExpItems.push({name:n.value.trim(),url:u?u.value.trim():''});
});
var catBarExp='';
if(catExpItems.length>0){
catBarExp='