Audition Monologue Reference Sheet
Criteria: [Criteria Summary]
Top Recommendations
Target Requirements
Genre: N/A
Max Duration: N/A min
Character Type: N/A
Define Audition Criteria
User Metadata
No matching monologues found. Try expanding your criteria!
'; return; } suggestions.sort((a, b) => b.length - a.length); // Sort by longest first suggestions.slice(0, 5).forEach((mono, index) => { const div = document.createElement('div'); div.className = 'ams-monologue-card'; div.innerHTML = `${index + 1}. ${mono.title}
Play: ${mono.play} •
Character: ${mono.character} •
Est. Time: ${mono.length.toFixed(1)} min
Focus: ${mono.focus}
`;
listContainer.appendChild(div);
});
};
window.amsResetData = function(silent = false) {
if(silent || confirm("Clear all application data?")) {
document.getElementById('ams-in-genre').value = 'Drama';
document.getElementById('ams-in-length').value = 1.5;
document.getElementById('ams-in-type').value = 'Any';
document.getElementById('ams-cfg-actor').value = '';
document.getElementById('ams-cfg-role').value = '';
amsGenerateSuggestion();
if (!silent) alert("Settings reset.");
}
};
// --- PDF Export ---
window.amsDownloadPDF = function() {
const element = document.getElementById('ams-export-area');
// Prepare styles for print (show header)
const pdfHeader = element.querySelector('.ams-pdf-header');
pdfHeader.style.display = 'block';
const opt = {
margin: 0.5,
filename: 'Monologue_Reference_Sheet.pdf',
image: { type: 'jpeg', quality: 0.98 },
html2canvas: { scale: 2 },
jsPDF: { unit: 'in', format: 'letter', orientation: 'portrait' }
};
html2pdf().set(opt).from(element).save().then(() => {
pdfHeader.style.display = 'none'; // Restore visibility
});
};
})();
