PageSourceSearch

https://www.palmertrinity.org/Scripts/Contact/schoolInformation.js

js palmertrinity.org collected 2026-10-02 12:34:53 UTC 3,678 bytes, 74 lines download raw bytes

1var schoolInfo = [
2    {
3        schoolName: 'Palmer Trinity Schools',
4        shortSchoolName: 'Palmer Trinity School', // used as a tooltip under the pin
5        latLongs: '51.6279922,-0.7491915',
6        address: '86 Easton Street, High Wycombe, Buckinghamshire, HP11 1LT, United Kingdom',
7        customPinSrc: 'data:image/svg+xml;base64,' + btoa("<svg version='1.0' xmlns='http://www.w3.org/2000/svg'\n" +
8            " viewBox='0 0 58.000000 86.000000'\n" +
9            " preserveAspectRatio='xMidYMid meet'><g transform='translate(0.000000,86.000000) scale(0.100000,-0.100000)'\n" +
10            "fill='#6CA9DC' stroke='none'><path d='M197 843 c-131 -44 -216 -194 -187 -329 13 -56 261 -509 280 -509 19\n" +
11            "0 267 453 280 509 46 212 -164 398 -373 329z m146 -137 c53 -22 79 -59 85\n" +
12            "-117 9 -95 -44 -154 -138 -154 -94 0 -147 59 -138 154 10 98 102 155 191 117z'/>\n" +
13            "</g>\n" +
14            "</svg>"),
15        customPinSize: [29, 43],
16        customPinSizeActive: [35, 51]
17    }/*, // used in case we have more then one school (pins at the footer in /contact)
18    {
19        schoolName: 'Monkton Combe School',
20        shortSchoolName: 'Monkton Combe School',
21        latLongs: '51.358300,-2.324340',
22        address: 'Church Ln, Monkton Combe, Bath BA2 7HG, United Kingdom',
23        customPinSrc: 'data:image/svg+xml;base64,' + btoa("<svg version='1.0' xmlns='http://www.w3.org/2000/svg'\n" +
24            " viewBox='0 0 58.000000 86.000000'\n" +
25            " preserveAspectRatio='xMidYMid meet'><g transform='translate(0.000000,86.000000) scale(0.100000,-0.100000)'\n" +
26            "fill='#000000' stroke='none'><path d='M197 843 c-131 -44 -216 -194 -187 -329 13 -56 261 -509 280 -509 19\n" +
27            "0 267 453 280 509 46 212 -164 398 -373 329z m146 -137 c53 -22 79 -59 85\n" +
28            "-117 9 -95 -44 -154 -138 -154 -94 0 -147 59 -138 154 10 98 102 155 191 117z'/>\n" +
29            "</g>\n" +
30            "</svg>"),
31        customPinSize: [29, 43],
32        customPinSizeActive: [35, 51]
33    }*/
34];
35
36if (typeof schoolInfoExtension !== 'undefined' && schoolInfoExtension.length > 0) {
37    const generateCustomPinSrc = (pinBgColor) => {
38        const svgTemplate = `
39      <svg version="1.0" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 58.000000 86.000000" preserveAspectRatio="xMidYMid meet">
40        <g transform="translate(0.000000,86.000000) scale(0.100000,-0.100000)" fill="${pinBgColor}" stroke="none">
41          <path d="M197 843 c-131 -44 -216 -194 -187 -329 13 -56 261 -509 280 -509 19 0 267 453 280 509 46 212 -164 398 -373 329z m146 -137 c53 -22 79 -59 85 -117 9 -95 -44 -154 -138 -154 -94 0 -147 59 -138 154 10 98 102 155 191 117z"/>
42        </g>
43      </svg>`;
44        return 'data:image/svg+xml;base64,' + btoa(svgTemplate.trim());
45    };
46
47    schoolInfo = schoolInfoExtension.map(school => ({
48        schoolName: school.SchoolName,
49        shortSchoolName: school.ShortSchoolName,
50        latLongs: school.LatLong,
51        address: school.SchoolAddress,
52        customPinSrc: generateCustomPinSrc(school.PinBgColor),
53        customPinSize: school.PinSize,
54        customPinSizeActive: school.ActivePinSize,
55    }));
56}
57
58/*
59Below you can add extra fields to the form or replace the existing ones.
60*
61 */
62// function getLocalFormFields() {
63//     return {
64//         customIntro: "Thank you for contacting " +  $("#ddlContact")[0].value + " . We will respond as soon as possible."
65//     }
66// }
67
68
69// function getLocalMapSettings() {
70//     return {
71//         maxZoom:13,
72//         googleDomainForDirections:'google.co.uk'
73//     }
74// }

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.