Function bodies 8 total
closeModal function · javascript · L52-L57 (6 LOC)js/intern-form.js
function closeModal() {
if (modal) {
modal.style.display = 'none';
document.body.style.overflow = '';
}
}isScriptConfigured function · javascript · L59-L61 (3 LOC)js/intern-form.js
function isScriptConfigured() {
return GOOGLE_SCRIPT_URL && !GOOGLE_SCRIPT_URL.includes('YOUR_GOOGLE_APPS_SCRIPT_URL_HERE');
}showSuccess function · javascript · L139-L146 (8 LOC)js/intern-form.js
function showSuccess() {
if (form) form.style.display = 'none';
if (successMessage) {
successMessage.style.display = 'block';
successMessage.scrollIntoView({ behavior: 'smooth', block: 'center' });
}
if (errorMessage) errorMessage.style.display = 'none';
}showError function · javascript · L148-L153 (6 LOC)js/intern-form.js
function showError() {
if (errorMessage) {
errorMessage.style.display = 'block';
errorMessage.scrollIntoView({ behavior: 'smooth', block: 'center' });
}
}isScriptConfigured function · javascript · L18-L20 (3 LOC)js/volunteer-form.js
function isScriptConfigured() {
return GOOGLE_SCRIPT_URL && !GOOGLE_SCRIPT_URL.includes('YOUR_GOOGLE_APPS_SCRIPT_URL_HERE');
}showSuccess function · javascript · L89-L96 (8 LOC)js/volunteer-form.js
function showSuccess() {
form.style.display = 'none';
successMessage.style.display = 'block';
errorMessage.style.display = 'none';
// Scroll to message
successMessage.scrollIntoView({ behavior: 'smooth', block: 'center' });
}showError function · javascript · L98-L103 (6 LOC)js/volunteer-form.js
function showError() {
errorMessage.style.display = 'block';
// Scroll to message
errorMessage.scrollIntoView({ behavior: 'smooth', block: 'center' });
}Citation: Repobility (2026). State of AI-Generated Code. https://repobility.com/research/
STCC_Nav_Walker class · php · L72-L111 (40 LOC)stcc-theme/functions.php
class STCC_Nav_Walker extends Walker_Nav_Menu {
public function start_lvl(&$output, $depth = 0, $args = null) {
$output .= '<ul class="dropdown">';
}
public function end_lvl(&$output, $depth = 0, $args = null) {
$output .= '</ul>';
}
public function start_el(&$output, $item, $depth = 0, $args = null, $id = 0) {
$classes = empty($item->classes) ? [] : (array) $item->classes;
$classes = array_filter($classes);
// Map WP's has-children class to our CSS class
if (in_array('menu-item-has-children', $classes)) {
$classes[] = 'has-dropdown';
}
$class_attr = $classes ? ' class="' . esc_attr(implode(' ', $classes)) . '"' : '';
$output .= '<li' . $class_attr . '>';
$atts = [];
$atts['href'] = !empty($item->url) ? $item->url : '#';
if ($item->target) {
$atts['target'] = $item->target;
}
$attr_string = '';
foreach ($atts as $attr