Social Media-Driven Market Influence & Price Impact Analyzer

0

Mentions: ${mentions.toLocaleString()}

Sentiment Score: ${sentiment}

Estimated Influence Score: ${influenceScore}

Predicted Market Impact: ${trend}

`; document.getElementById("resultSocialContent").innerHTML = html; document.getElementById("outputSocial").style.display = "block"; } function downloadSocialPDF() { const { jsPDF } = window.jspdf; const doc = new jsPDF(); const platform = document.getElementById("platform").value; const mentions = document.getElementById("mentions").value; const sentiment = document.getElementById("sentimentScore").value; const influence = (mentions * sentiment * 0.1).toFixed(2); let trend = "Neutral"; if (influence > 5000) trend = "High Positive Impact"; else if (influence > 1000) trend = "Moderate Positive"; else if (influence < -1000) trend = "Moderate Negative"; else if (influence < -5000) trend = "High Negative Impact"; doc.setFontSize(16); doc.text("Social Media Market Influence Analysis", 20, 20); doc.setFontSize(12); doc.text(`Platform: ${platform}`, 20, 40); doc.text(`Mentions: ${mentions}`, 20, 50); doc.text(`Sentiment Score: ${sentiment}`, 20, 60); doc.text(`Estimated Influence Score: ${influence}`, 20, 70); doc.text(`Predicted Impact: ${trend}`, 20, 80); doc.save("social-media-impact.pdf"); }
Scroll to Top