PageSourceSearch

https://panyasociety.com/static/js/suggest_school.js

js panyasociety.com collected 2026-10-08 00:51:45 UTC 944 bytes, 24 lines download raw bytes

1var suggestedSchoolTimeout
2function suggestSchool(incompleteSchoolName) {
3    clearTimeout(suggestedSchoolTimeout)
4
5    suggestedSchoolTimeout = setTimeout(async () => {
6        const domain = window.location.origin
7        const response = await fetch(
8            `${domain}/account/suggest_school/${incompleteSchoolName == '' ? 'None' : incompleteSchoolName}`
9        )
10        const response_json = await response.json()
11        const suggestedSchoolNames = response_json.schools
12        const schoolDatalist = document.getElementById("suggestSchool")
13        while (schoolDatalist.firstChild) {
14            schoolDatalist.removeChild(schoolDatalist.firstChild);
15        }
16        suggestedSchoolNames.forEach((schoolName) => {
17            const option = document.createElement('option');
18            option.value = schoolName;
19            option.text = schoolName;
20            schoolDatalist.appendChild(option)
21        })
22    }, 1000);
23
24}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.