Skip links
User Details and Transcriptions

User Details

Loading details...

Transcriptions
Loading transcriptions...
`); newWindow.document.close(); } }); } // Format the transcript text with custom labels function formatTranscript(transcript) { // Extract the first sentence before "Speaker 0:" if it exists const firstSentenceMatch = transcript.match(/^(.*?)(?=\s*Speaker\s*0:)/); let formattedTranscript = transcript; if (firstSentenceMatch) { const firstSentence = firstSentenceMatch[0] // Replace "Speaker 0", "Speaker 1", or "Speaker 2" with uncolored labels .replace(/Speaker\s*0/g, 'Recruiter') .replace(/Speaker\s*1/g, 'Candidate') .replace(/Speaker\s*2/g, 'Candidate 2'); // Replace the first sentence in the transcript formattedTranscript = transcript.replace(firstSentenceMatch[0], firstSentence); } // Determine if Speaker 2 exists const hasSpeaker2 = /Speaker\s*2:/.test(transcript); // Replace "Speaker 0" or "Speaker0" with "Recruiter" formattedTranscript = formattedTranscript.replace(/Speaker\s*0/g, 'Recruiter'); // Replace "Speaker 1" or "Speaker1" based on the presence of Speaker 2 formattedTranscript = hasSpeaker2 ? formattedTranscript.replace(/Speaker\s*1/g, 'Candidate 1') : formattedTranscript.replace(/Speaker\s*1/g, 'Candidate'); // Replace "Speaker 2" or "Speaker2" with "Candidate 2" and add color formattedTranscript = formattedTranscript.replace(/Speaker\s*2/g, 'Candidate 2'); // Replace double line breaks with a
tag and a new content div with line gap formattedTranscript = formattedTranscript.replace(/\n\n/g, '

'); // Replace single line breaks with
tags with line gap formattedTranscript = formattedTranscript.replace(/\n/g, '
'); return formattedTranscript; } // Extract parameters from the URL and fetch user data document.addEventListener('DOMContentLoaded', function() { const userId = getUrlParameter('uid'); const userEmail = getUrlParameter('email'); // Display the user details const userDetailsElement = document.getElementById('userDetails'); if (userId || userEmail) { userDetailsElement.innerHTML = ` User ID: ${userId || 'N/A'}
User Email: ${userEmail || 'N/A'} `; // Fetch transcriptions for the user fetchTranscriptions(userId); } else { userDetailsElement.innerHTML = 'No details available.'; } });
🍪 This website uses cookies to improve your web experience.