🚀 SENATE AI CREATOR ENGINE
Select an AI tool and generate content.
var usageCount = 0; var freeLimit = 5;
function runAITool(){
if(usageCount >= freeLimit){ alert("Free limit reached. Upgrade to Premium."); return; }
usageCount++;
var tool = document.getElementById("aiTool").value; var text = document.getElementById("userInput").value;
if(text==""){ alert("Enter text first"); return; }
var output="";
if(tool=="memorandum"){
output="MEMORANDUM\n\nTo: Staff\nFrom: Management\nDate: "+new Date().toLocaleDateString()+"\nSubject: "+text+"\n\nThis memorandum is to inform all staff regarding "+text+". Please review the information carefully and follow any instructions provided.\n\nThank you.\nManagement";
}else{
output="AI Tool: "+tool+"\n\nGenerated content for: "+text+"\n\nThis content was created by the Senate AI Creator Engine.";
}
document.getElementById("resultText").innerText = output;
var words = output.split(" ").length;
document.getElementById("wordCount").innerText="Word count: "+words;
}
function copyText(){
var text=document.getElementById("resultText").innerText;
navigator.clipboard.writeText(text);
alert("Copied!");
}
function downloadText(){
var text=document.getElementById("resultText").innerText;
var blob=new Blob([text],{type:"text/plain"});
var link=document.createElement("a");
link.href=URL.createObjectURL(blob);
link.download="senate-ai.txt";
link.click();
}
function downloadPDF(){
var text=document.getElementById("resultText").innerText;
var win=window.open("","","width=600,height=400");
win.document.write("
"+text+"
");
win.print();
}