CreatorVaultDigital Creative Agency
Resume Builder Pro + ATS Lab

Resume Builder & ATS Checker — The Resume That Passes the Robot

Build a polished resume, then run it through the ATS Lab: a synonym-aware keyword matcher scored against any job description, a missing-skills detector, a metrics check, and a plain-text preview of exactly what screening software reads. Everything runs locally on your text — nothing is uploaded.

Prime Edition · ATS Lab · Synonym-Aware Matching

Your Details

Type on the left — the resume updates as you write. One bullet per line in experience; start bullets with a strong verb and add numbers wherever they are true.

Live Preview

This is your export view — clean, single-column, and readable by both recruiters and screening software.

Saved Versions

Keep tailored versions for different roles on this device — one for marketing jobs, one for freelance clients, and so on.

No saved versions yet — build a resume and tap “Save This Version.”

Analysis History

Your recent ATS scores, so you can watch the match climb as you tailor the resume.

No analyses yet — run your first match in the ATS Lab.

Why It Works

Most resumes are rejected by software before a human ever sees them. This kit attacks the three reasons why.

01

Keywords, Honestly Matched

Recruiters search for the words in the job post. The matcher finds those words in your resume — including the synonym forms lazy matchers miss — and shows you exactly which ones are absent.

02

Numbers Get Interviews

Bullets with real figures read as proof; bullets without them read as claims. The metrics check lists every bullet still missing a number, so you can fix them one by one.

03

Built for the Parser

One clean column, standard headings, no tables or graphics in the text layer. The plain-text preview proves your resume survives the machine read intact.

'; } function fileBase(s){ var b=(s.name||"").trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,""); return b||"resume"; } function downloadBlob(name,blob){ var a=document.createElement("a"); a.href=URL.createObjectURL(blob); a.download=name; document.body.appendChild(a); a.click(); setTimeout(function(){ URL.revokeObjectURL(a.href); a.remove(); },600); } function exportPDF(){ var s=collectState(); var w=window.open("","_blank"); if(!w){ toast(t("t_lib_fail")); return; } w.document.open(); w.document.write(buildPrintHTML(s)); w.document.close(); var printed=false; function go(){ if(printed)return; printed=true; try{ w.focus(); w.print(); }catch(e){} } w.onload=function(){ setTimeout(go,400); }; setTimeout(go,1600); toast(t("t_pdf_ready")); } var DOCX_CDNS=["https://cdn.jsdelivr.net/npm/docx@8.5.0/build/index.umd.min.js","https://unpkg.com/docx@8.5.0/build/index.umd.min.js"]; function loadScript(u){ return new Promise(function(res,rej){ var sc=document.createElement("script"); sc.src=u; sc.onload=function(){ res(); }; sc.onerror=function(){ rej(new Error("script load failed")); }; document.head.appendChild(sc); }); } function loadDocxLib(){ if(window.docx&&window.docx.Document&&window.docx.Packer) return Promise.resolve(); var p=Promise.reject(new Error("start")); DOCX_CDNS.forEach(function(u){ p=p.catch(function(){ return loadScript(u); }); }); return p.then(function(){ if(!(window.docx&&window.docx.Document)) throw new Error("docx lib missing"); }); } var TPL_THEME={ "tpl-classic":{ nameFont:"Georgia", nameColor:"131A2A", titleColor:"7A5E22", headColor:"7A5E22", headBorder:"C9A961" }, "tpl-modern":{ nameFont:"Calibri", nameColor:"131A2A", titleColor:"5B21B6", headColor:"5B21B6", headBorder:"A855F7" }, "tpl-minimal":{ nameFont:"Calibri", nameColor:"1B2233", titleColor:"55607A", headColor:"1B2233", headBorder:"1B2233" }, "tpl-executive":{ nameFont:"Georgia", nameColor:"0B2545", titleColor:"7A5E22", headColor:"0B2545", headBorder:"C9A961" }, "tpl-sidebar":{ nameFont:"Calibri", nameColor:"0B2545", titleColor:"7A5E22", headColor:"0B2545", headBorder:"C9A961" }, "tpl-bold":{ nameFont:"Calibri", nameColor:"050A14", titleColor:"7A5E22", headColor:"050A14", headBorder:"C9A961" }, "tpl-accent":{ nameFont:"Calibri", nameColor:"5B21B6", titleColor:"7A5E22", headColor:"5B21B6", headBorder:"C9A961" } }; function buildDocxBlob(s){ return loadDocxLib().then(function(){ var D=window.docx, th=TPL_THEME[s.tpl]||TPL_THEME["tpl-classic"]; function run(text,o){ o=o||{}; return new D.TextRun({ text:text, bold:!!o.bold, italics:!!o.it, size:o.size||22, color:o.color||"1B2233", font:o.font||"Calibri" }); } function head(text){ return new D.Paragraph({ spacing:{ before:300, after:110 }, border:{ bottom:{ style:D.BorderStyle.SINGLE, size:10, color:th.headBorder, space:4 } }, children:[ run(text.toUpperCase(),{ bold:true, size:24, color:th.headColor }) ] }); } var ch=[]; ch.push(new D.Paragraph({ spacing:{ after:40 }, children:[ run(s.name||"Your Full Name",{ bold:true, size:56, color:th.nameColor, font:th.nameFont }) ] })); if(s.title) ch.push(new D.Paragraph({ spacing:{ after:40 }, children:[ run(s.title,{ bold:true, size:26, color:th.titleColor }) ] })); var contact=[s.email,s.phone,s.city,s.web].filter(function(x){return x&&x.trim();}).join(" | "); ch.push(new D.Paragraph({ spacing:{ after:160 }, border:{ bottom:{ style:D.BorderStyle.SINGLE, size:12, color:th.headBorder, space:6 } }, children:[ run(contact,{ size:20, color:"55607A" }) ] })); if(s.summary&&s.summary.trim()){ ch.push(head("Summary")); ch.push(new D.Paragraph({ spacing:{ after:120 }, children:[ run(s.summary.trim()) ] })); } var exps=(s.exp||[]).filter(function(e){ return e.title||e.company||e.bullets; }); if(exps.length){ ch.push(head("Experience")); exps.forEach(function(e){ ch.push(new D.Paragraph({ spacing:{ before:120, after:20 }, children:[ run(e.title||"",{ bold:true, size:24 }), e.company?run(" — "+e.company,{ size:24, color:"3E4A63" }):run("") ] })); var dates=[e.start,e.end].filter(Boolean).join(" – "); if(dates) ch.push(new D.Paragraph({ spacing:{ after:40 }, children:[ run(dates,{ size:20, color:"7C8698", it:true }) ] })); bulletLines(e.bullets).forEach(function(b){ ch.push(new D.Paragraph({ bullet:{ level:0 }, spacing:{ after:30 }, children:[ run(b) ] })); }); }); } var edus=(s.edu||[]).filter(function(e){ return e.school||e.degree; }); if(edus.length){ ch.push(head("Education")); edus.forEach(function(e){ ch.push(new D.Paragraph({ spacing:{ after:60 }, children:[ run(e.degree||"",{ bold:true, size:24 }), e.school?run(" — "+e.school,{ size:24, color:"3E4A63" }):run(""), e.year?run(" ("+e.year+")",{ size:20, color:"7C8698" }):run("") ] })); }); } if(s.skills&&s.skills.trim()){ ch.push(head("Skills")); ch.push(new D.Paragraph({ children:[ run(s.skills.trim()) ] })); } var doc=new D.Document({ creator:"CreatorVault Resume Builder", title:(s.name||"Resume")+" — Resume", sections:[{ properties:{ page:{ margin:{ top:720, bottom:720, left:900, right:900 } } }, children:ch }] }); return D.Packer.toBlob(doc); }); } function exportDOCX(){ var s=collectState(); buildDocxBlob(s).then(function(b){ downloadBlob(fileBase(s)+"-resume.docx",b); toast(t("t_docx_ready")); }) .catch(function(){ toast(t("t_lib_fail")); }); } window.CV_RB_EXPORT={ buildPrintHTML:buildPrintHTML, buildDocxBlob:buildDocxBlob, exportPDF:exportPDF, exportDOCX:exportDOCX }; function strengthOf(s){ var sc=0; if(s.name.trim())sc+=10; if(s.title.trim())sc+=10; if(s.email.trim()||s.phone.trim())sc+=10; if(s.summary.trim().length>=80)sc+=15; else if(s.summary.trim())sc+=7; var exps=(s.exp||[]).filter(function(e){ return e.title||e.bullets; }); if(exps.length)sc+=10; var bullets=0, withNum=0; exps.forEach(function(e){ bulletLines(e.bullets).forEach(function(b){ bullets++; if(/\d/.test(b))withNum++; }); }); if(bullets>=4)sc+=10; if(bullets&&withNum/Math.max(1,bullets)>=0.5)sc+=10; if((s.edu||[]).some(function(e){ return e.school||e.degree; }))sc+=10; var sk=s.skills.split(/[,\n]/).filter(function(x){return x.trim();}).length; if(sk>=5)sc+=15; else if(sk>=3)sc+=8; return Math.min(100,sc); } function syncAll(){ var s=collectState(); $("previewHost").innerHTML=sheetHTML(s); var st=strengthOf(s); $("strengthBar").style.width=st+"%"; $("strengthLabel").textContent=st+"%"; } /* ============ ATS ENGINE ============ */ var SKILLS=["seo","sem","ppc","paid search","google ads","google analytics","data analysis","data analytics","machine learning","artificial intelligence","project management","product management","agile","scrum","kanban","javascript","typescript","python","sql","excel","powerpoint","html","css","react","angular","vue","node.js","java","aws","azure","google cloud","docker","kubernetes","git","linux","cybersecurity","cloud computing","ui design","ux design","figma","photoshop","illustrator","canva","wordpress","shopify","hubspot","salesforce","crm","email marketing","content marketing","content strategy","copywriting","social media marketing","brand strategy","market research","a/b testing","conversion rate optimization","marketing automation","lead generation","business development","account management","customer service","customer success","budgeting","budget management","financial analysis","accounting","bookkeeping","supply chain","logistics","operations management","quality assurance","software testing","technical writing","public speaking","training","mentoring","team leadership","stakeholder management","negotiation","problem solving","communication","time management","recruitment","human resources","payroll","video editing","photography","motion graphics","data visualization","tableau","power bi","statistics","event planning","public relations","sales","research"]; var FAMILIES=[ ["leadership","led teams","team leadership","people management"], ["managed","led","oversaw","supervised","directed","headed","ran"], ["developed","built","created","engineered","launched"], ["increased","improved","grew","boosted","raised","lifted","grew revenue"], ["reduced","cut","lowered","decreased","streamlined"], ["javascript","js","ecmascript"], ["search engine optimization","seo"], ["pay per click","ppc","paid search","google ads"], ["customer relationship management","crm","hubspot","salesforce"], ["key performance indicators","kpis","kpi","metrics"], ["a/b testing","ab testing","split testing","experimentation"], ["machine learning","ml"], ["artificial intelligence","ai"], ["user experience","ux","ux design"], ["user interface","ui","ui design"], ["project management","managed projects","program management","delivery management"], ["data analysis","data analytics","analytics","analyzed data"], ["content marketing","content strategy","content programs"], ["email marketing","email campaigns","newsletters","mailchimp"], ["social media marketing","social media"], ["budget management","managed budgets","budgeting","monthly budget"], ["stakeholder management","stakeholders","cross functional","cross-functional"], ["conversion rate optimization","cro","conversion optimization"], ["marketing automation","automation","automated campaigns"], ["mentoring","mentored","coached","coaching"], ["customer success","client success","customer satisfaction"], ["quality assurance","qa","qa testing"], ["problem solving","problem-solving","troubleshooting"], ["communication","communicated","written communication"], ["node.js","node","nodejs"], ["search engine marketing","sem","paid media"] ]; var FAMILY_OF={}; FAMILIES.forEach(function(fam){ fam.forEach(function(v){ FAMILY_OF[v]=fam; }); }); var STOP=new Set(("the,and,for,with,you,your,will,are,our,this,that,from,have,has,had,who,whom,can,could,all,any,per,etc,into,over,under,across,within,using,use,used,work,working,team,teams,role,roles,job,candidate,requirements,required,require,experience,experienced,years,year,plus,strong,excellent,ability,including,include,day,days,week,help,helps,ensure,drive,drives,support,supports,join,us,we,an,as,at,be,by,do,does,go,it,its,of,on,or,to,in,is,am,pm").split(",")); function norm(s){ return String(s||"").toLowerCase().replace(/[^a-z0-9\s\/\.\-]/g," ").replace(/\s+/g," ").trim(); } function stem(w){ if(w.length>5){ w=w.replace(/ing$/,"").replace(/ed$/,""); } if(w.length>4){ w=w.replace(/ies$/,"y").replace(/es$/,""); } if(w.length>3){ w=w.replace(/s$/,""); } return w; } function tokensOf(s){ return norm(s).split(" ").filter(Boolean).map(stem); } function phraseIn(textTokens,textTokenSet,phrase){ var pt=tokensOf(phrase); if(!pt.length)return false; if(pt.length===1)return textTokenSet.has(pt[0]); for(var i=0;i+pt.length<=textTokens.length;i++){ var ok=true; for(var j=0;j=4&&!STOP.has(tk)&&!/^\d+$/.test(tk)) freq[tk]=(freq[tk]||0)+1; }); var words=Object.keys(freq).filter(function(w){ return freq[w]>=2; }).sort(function(a,b){ return freq[b]-freq[a]; }); words.slice(0,20).forEach(function(w){ if(!seen[w]){ seen[w]=1; found.push(w); } }); return found.slice(0,40); } function analyze(resumeText,jdText){ var rTokens=tokensOf(resumeText), rSet=new Set(rTokens); var keywords=extractKeywords(jdText); var matched=[], missing=[]; keywords.forEach(function(kw){ (keywordInText(kw,rTokens,rSet)?matched:missing).push(kw); }); var jTokens=tokensOf(jdText), jSet=new Set(jTokens); var jdSkills=SKILLS.filter(function(sk){ return keywordInText(sk,jTokens,jSet); }); var missingSkills=jdSkills.filter(function(sk){ return !keywordInText(sk,rTokens,rSet); }); var lines=String(resumeText).split("\n").map(function(x){return x.trim();}).filter(function(x){ return x.length>=25 && !/^[A-Z\s]{4,}$/.test(x) && !/@/.test(x) && (x.match(/,/g)||[]).length<4; }); var noNum=lines.filter(function(x){ return !/\d/.test(x); }); var score=keywords.length?Math.round(matched.length/keywords.length*100):0; return { score:score, matched:matched, missing:missing, total:keywords.length, missingSkills:missingSkills, jdSkills:jdSkills, bulletsTotal:lines.length, bulletsWithNum:lines.length-noNum.length, noNumBullets:noNum.slice(0,12) }; } function reportText(r){ var L=[]; L.push("CreatorVault ATS Lab — Match Report ("+new Date().toLocaleString()+")"); L.push("Match score: "+r.score+"% ("+r.matched.length+" of "+r.total+" job keywords found)"); L.push(""); L.push("MATCHED KEYWORDS ("+r.matched.length+"):"); L.push(r.matched.join(", ")||"—"); L.push(""); L.push("MISSING KEYWORDS ("+r.missing.length+"):"); L.push(r.missing.join(", ")||"—"); L.push(""); L.push("MISSING SKILLS FROM THE JOB POST ("+r.missingSkills.length+"):"); L.push(r.missingSkills.join(", ")||"None — every named skill in the post appears in the resume."); L.push(""); L.push("METRICS CHECK: "+r.bulletsWithNum+" of "+r.bulletsTotal+" statement lines include a number."); if(r.noNumBullets.length){ L.push("Lines with no number yet:"); r.noNumBullets.forEach(function(x){ L.push(" - "+x); }); } L.push(""); L.push("Method: local plain-text matching with a synonym table (for example led = managed, JS = JavaScript). Add missing keywords only where they are honestly true for you."); return L.join("\n"); } var lastReport=""; function chip(txt,cls){ return ''+esc(txt)+''; } function doAnalyze(){ var rv=$("atsResume").value.trim(), jd=$("atsJd").value.trim(); if(!rv||!jd){ toast(t("t_need_both")); return; } var r=analyze(rv,jd); lastReport=reportText(r); var H=$("atsResults"); var verdict=r.score>=80?"Strong match — the post's language is well covered.":(r.score>=60?"Solid base — closing the missing-keyword gap below should lift it further.":(r.score>=40?"Partial match — the missing lists below are your work plan.":"Low match — this resume needs tailoring for this role; start with the missing skills.")); var html='
'; html+='
'+r.score+'%
Keyword match score
'+verdict+'
'+r.matched.length+' of '+r.total+' job keywords found in your resume ('+r.jdSkills.length+' named skills detected in the post).
'; html+='
Matched keywords
'+(r.matched.map(function(k){return chip(k,"hit");}).join("")||'None yet.')+'
'; html+='
Missing keywords
'+(r.missing.map(function(k){return chip(k,"miss");}).join("")||'Nothing missing — full coverage.')+'
'; html+='
Missing skills detector
'+(r.missingSkills.length?('
'+r.missingSkills.map(function(k){return chip(k,"miss");}).join("")+'

These skills are named in the job post but never appear in your resume. Add the ones that are honestly yours, in the same words the post uses.

'):'

Every skill named in the post appears in your resume.

'); html+='
Metrics check — '+r.bulletsWithNum+' of '+r.bulletsTotal+' lines carry a number
'; if(r.noNumBullets.length){ html+='

These statement lines have no figure yet. A real number (%, count, money, time) makes each one provable:

'; } else html+='

Every statement line carries a number. Strong work.

'; html+='
'; H.innerHTML=html; var hist=loadJSON("cvt_rb_hist",[]); hist.unshift({ when:new Date().toLocaleString(), score:r.score, matched:r.matched.length, total:r.total, missingTop:r.missing.slice(0,6) }); saveJSON("cvt_rb_hist",hist.slice(0,12)); renderHist(); toast(t("t_report_ready")); } /* ============ SAVED VERSIONS + HISTORY ============ */ function renderSaved(){ var vs=loadJSON("cvt_rb_versions",[]), list=$("savedList"); list.innerHTML=""; $("savedEmpty").style.display=vs.length?"none":"block"; vs.forEach(function(v,i){ var d=document.createElement("div"); d.className="saved-item"; var p=document.createElement("p"); p.textContent=v.name+" — "+((v.state&&v.state.title)||""); d.appendChild(p); var row=document.createElement("div"); row.className="btn-row"; row.style.marginTop="0"; var b1=document.createElement("button"); b1.className="btn btn-small"; b1.type="button"; b1.textContent="Load"; b1.addEventListener("click",function(idx){ return function(){ var all=loadJSON("cvt_rb_versions",[]); if(all[idx]){ applyState(all[idx].state); toast(t("t_loaded")); } }; }(i)); var b2=document.createElement("button"); b2.className="btn btn-small"; b2.type="button"; b2.textContent="Delete"; b2.addEventListener("click",function(idx){ return function(){ var all=loadJSON("cvt_rb_versions",[]); all.splice(idx,1); saveJSON("cvt_rb_versions",all); renderSaved(); toast(t("t_deleted")); }; }(i)); row.appendChild(b1); row.appendChild(b2); d.appendChild(row); list.appendChild(d); }); } function renderHist(){ var hist=loadJSON("cvt_rb_hist",[]), list=$("histList"); list.innerHTML=""; $("histEmpty").style.display=hist.length?"none":"block"; hist.forEach(function(h){ var d=document.createElement("div"); d.className="saved-item"; var p=document.createElement("p"); p.textContent=h.when+" — score "+h.score+"% ("+h.matched+"/"+h.total+" keywords)"+(h.missingTop&&h.missingTop.length?(" · still missing: "+h.missingTop.join(", ")):""); d.appendChild(p); list.appendChild(d); }); } /* ============ TABS ============ */ function showPane(ats){ $("paneBuilder").style.display=ats?"none":"block"; $("paneAts").style.display=ats?"block":"none"; $("tabBtnBuilder").classList.toggle("on",!ats); $("tabBtnAts").classList.toggle("on",ats); if(ats) refreshAtsView(); } function refreshAtsView(){ $("atsView").textContent=plainText(collectState()); } var SAMPLE_STATE={ name:"Alex Morgan", title:"Digital Marketing Specialist", email:"alex@email.com", phone:"+1 555 010 2233", city:"Austin, TX", web:"linkedin.com/in/alexmorgan", tpl:"tpl-classic", summary:"Digital marketing specialist with 4 years of experience growing organic traffic and email revenue for small brands. Led SEO and content programs that increased organic sessions 62% year over year.", skills:"SEO, Content Strategy, Email Marketing, Google Analytics, Google Ads, WordPress, Copywriting, Social Media, A/B Testing, Canva", exp:[ {title:"Digital Marketing Specialist", company:"Brightpath Studio", start:"2022", end:"Present", bullets:"Led SEO strategy for 12 client sites, increasing organic traffic 62% in 12 months\nManaged email marketing campaigns reaching 48,000 subscribers with a 31% average open rate\nBuilt content calendar and briefed writers, publishing 8 articles per month\nRan Google Ads campaigns on a $4,500 monthly budget, improving cost per lead by 24%\nAnalyzed campaign data in Google Analytics and reported weekly KPIs to stakeholders"}, {title:"Marketing Assistant", company:"Northbeam Retail", start:"2020", end:"2022", bullets:"Grew Instagram following from 3,200 to 11,500 in 18 months\nWrote product descriptions and landing page copy for 140+ SKUs\nSupported the marketing team with scheduling and weekly reporting"} ], edu:[ {school:"University of Texas", degree:"BBA, Marketing", year:"2020"} ] }; var SAMPLE_JD="We are hiring a Digital Marketing Manager to own our growth channels. You will lead SEO strategy, plan content marketing campaigns, and manage paid search in Google Ads. Requirements: 3+ years in digital marketing; strong data analysis skills with Google Analytics; experience with email marketing platforms and CRM tools such as HubSpot; A/B testing experience; excellent copywriting; project management skills and stakeholder communication. Experience with marketing automation and conversion rate optimization is a plus. You will manage a monthly budget, lead cross-functional projects, and report on KPIs to leadership."; function init(){ var th="dark"; try{ th=localStorage.getItem("cvt_theme")||"dark"; }catch(e){} setTheme(th); var lg="en"; try{ lg=localStorage.getItem("cvt_lang")||"en"; }catch(e){} $("langSel").value=(lg in I18N)?lg:"en"; applyLang($("langSel").value); $("langSel").addEventListener("change",function(){ applyLang(this.value); }); var unlocked=false; try{ unlocked=sessionStorage.getItem("cvt_rb")==="1"; }catch(e){} if(unlocked){ $("gate").classList.add("hidden"); } else { document.body.style.overflow="hidden"; $("licenseInput").focus(); } initAmbience(); ["fName","fTitle","fEmail","fPhone","fCity","fWeb","fSummary","fSkills"].forEach(function(id){ $(id).addEventListener("input",syncAll); }); $("fTpl").addEventListener("change",syncAll); $("addExpBtn").addEventListener("click",function(){ $("expHost").appendChild(expEntry({})); syncAll(); }); $("addEduBtn").addEventListener("click",function(){ $("eduHost").appendChild(eduEntry({})); syncAll(); }); $("sampleBtn").addEventListener("click",function(){ applyState(JSON.parse(JSON.stringify(SAMPLE_STATE))); }); $("clearBtn").addEventListener("click",function(){ applyState({exp:[{}],edu:[{}],tpl:"tpl-classic"}); toast(t("t_cleared")); }); $("printBtn").addEventListener("click",function(){ $("printSheet").innerHTML=sheetHTML(collectState()); window.print(); }); $("pdfBtn").addEventListener("click",exportPDF); $("docxBtn").addEventListener("click",exportDOCX); $("toAtsBtn").addEventListener("click",function(){ $("atsResume").value=plainText(collectState()); showPane(true); }); $("saveVerBtn").addEventListener("click",function(){ var s=collectState(); var vs=loadJSON("cvt_rb_versions",[]); vs.unshift({ name:(s.name||"Untitled resume")+" — "+new Date().toLocaleDateString(), state:s }); saveJSON("cvt_rb_versions",vs.slice(0,10)); renderSaved(); toast(t("t_saved")); }); $("tabBtnBuilder").addEventListener("click",function(){ showPane(false); }); $("tabBtnAts").addEventListener("click",function(){ showPane(true); }); $("useBuilderBtn").addEventListener("click",function(){ $("atsResume").value=plainText(collectState()); }); $("sampleAtsBtn").addEventListener("click",function(){ $("atsResume").value=plainText(SAMPLE_STATE); $("atsJd").value=SAMPLE_JD; }); $("analyzeBtn").addEventListener("click",doAnalyze); $("copyReportBtn").addEventListener("click",function(){ if(lastReport)copyText(lastReport); else toast(t("t_need_both")); }); $("dlReportBtn").addEventListener("click",function(){ if(lastReport){ download("creatorvault-ats-report.txt",lastReport); toast("Report downloaded"); } else toast(t("t_need_both")); }); $("refreshViewBtn").addEventListener("click",refreshAtsView); $("clearHistBtn").addEventListener("click",function(){ saveJSON("cvt_rb_hist",[]); renderHist(); toast(t("t_hist_cleared")); }); applyState(JSON.parse(JSON.stringify(SAMPLE_STATE))); renderSaved(); renderHist(); } document.addEventListener("DOMContentLoaded",init);