Intellectual Property Rights Violation Analyzer

Intellectual Property Rights Violation Analyzer

Conduct a preliminary analysis of a potential IP rights violation.

Identify the Type of Intellectual Property

Describe the Potential Violation

Preliminary Analysis Report

Disclaimer: This tool provides a preliminary analysis for informational purposes only. It is not legal advice. Intellectual property law is complex. Consult a qualified attorney for advice on your specific situation.

Infringing Work: ${getVal('copyright-infringing') || 'Not provided.'}

Registered with Copyright Office: ${cr_reg}

`; if (cr_reg === 'yes') { strength += 5; keyFactors.push("Registration provides significant legal advantages."); } if (getVal('copyright-infringing').toLowerCase().includes('exact')) { strength += 3; } break; case 'trademark': const tm_reg = getVal('trademark-registered'); summaryHTML = `

Your Trademark: ${getVal('trademark-original') || 'Not provided.'}

Infringing Mark: ${getVal('trademark-infringing') || 'Not provided.'}

Registered with USPTO: ${tm_reg}

`; if (tm_reg === 'yes') { strength += 5; keyFactors.push("Federal registration creates a strong presumption of ownership."); } if (getVal('trademark-infringing')) { strength += 2; } break; case 'patent': const pat_stat = getVal('patent-status'); summaryHTML = `

Patent Status: ${pat_stat}

Patent Number: ${getVal('patent-number') || 'N/A'}

Description of Infringement: ${getVal('patent-infringing') || 'Not provided.'}

`; if (pat_stat === 'granted') { strength += 7; keyFactors.push("A granted patent is required to sue for infringement."); } else if (pat_stat === 'pending') { strength += 1; keyFactors.push("A pending patent provides some notice but cannot be enforced until granted.");} if (getVal('patent-infringing')) { strength += 2; } break; case 'trade_secret': summaryHTML = `

Protection Measures: ${getVal('trade_secret-protection') || 'Not provided.'}

Method of Misappropriation: ${getVal('trade_secret-misappropriation') || 'Not provided.'}

`; if (getVal('trade_secret-protection').toLowerCase().includes('nda')) { strength += 4; keyFactors.push("Using NDAs is a strong indicator of reasonable secrecy efforts."); } if (getVal('trade_secret-protection').toLowerCase().includes('secure') || getVal('trade_secret-protection').toLowerCase().includes('limited access')) { strength += 3; keyFactors.push("Active security measures strengthen a trade secret claim."); } break; } let strengthText, strengthColor; if (strength >= 7) { strengthText = 'Strong'; strengthColor = 'text-green-600'; } else if (strength >= 4) { strengthText = 'Moderate'; strengthColor = 'text-yellow-600'; } else { strengthText = 'Weak'; strengthColor = 'text-red-600'; } const reportHTML = `

Case Summary

IP Type: ${ipType.replace('_', ' ').replace(/\b\w/g, l => l.toUpperCase())}

Date of Discovery: ${discoveryDate}

${summaryHTML}

Preliminary Analysis

Potential Claim Strength: ${strengthText}

Key Factors:

    ${keyFactors.length > 0 ? keyFactors.map(f => `
  • ${f}
  • `).join('') : '
  • Analysis based on provided information.
  • '}

Recommended Next Steps

`; document.getElementById('report-output').innerHTML = reportHTML; document.getElementById('pdf-preview').innerHTML = `

IP Rights Violation Analysis Report

` + reportHTML; } // --- PDF Download --- const downloadPdfBtn = document.getElementById('download-pdf-btn'); async function downloadPDF() { const { jsPDF } = window.jspdf; const content = document.getElementById('pdf-preview'); const container = document.getElementById('pdf-container'); downloadPdfBtn.textContent = 'Generating...'; downloadPdfBtn.disabled = true; container.classList.remove('hidden'); container.style.position = 'absolute'; container.style.left = '-9999px'; container.style.top = '0'; try { const canvas = await html2canvas(content, { scale: 2, useCORS: true }); const imgData = canvas.toDataURL('image/png'); const pdf = new jsPDF({ orientation: 'p', unit: 'pt', format: 'a4' }); const pdfWidth = pdf.internal.pageSize.getWidth(); const margin = 40; const usableWidth = pdfWidth - margin * 2; const imgScaledHeight = (canvas.height * usableWidth) / canvas.width; let heightLeft = imgScaledHeight; pdf.addImage(imgData, 'PNG', margin, margin, usableWidth, imgScaledHeight); heightLeft -= (pdf.internal.pageSize.getHeight() - margin * 2); let position = -pdf.internal.pageSize.getHeight() + margin * 2; while (heightLeft > 0) { pdf.addPage(); pdf.addImage(imgData, 'PNG', margin, position, usableWidth, imgScaledHeight); heightLeft -= pdf.internal.pageSize.getHeight(); position -= pdf.internal.pageSize.getHeight(); } pdf.save('IP-Violation-Analysis-Report.pdf'); } catch (error) { console.error("Error generating PDF:", error); } finally { container.classList.add('hidden'); container.style.position = ''; container.style.left = ''; container.style.top = ''; downloadPdfBtn.textContent = 'Download PDF Report'; downloadPdfBtn.disabled = false; } } downloadPdfBtn.addEventListener('click', downloadPDF); updateDisplay(); });
Scroll to Top