PageSourceSearch

https://www.cfnc.org/assets/javascripts/app-es.js

js cfnc.org collected 2026-09-24 08:57:06 UTC 1,650 bytes, 55 lines download raw bytes

1$ = jQuery.noConflict();
2
3$(document).ready(function () {
4    // search
5    function executeSearch(selector) {
6        var query = $(selector).val();
7        window.location.href = "/search?q=" + query;
8    }
9    $('.innerSearchBtn').click(function () {
10        executeSearch('#desktop-search');
11    });
12    $('.search-controll').click(function (event) {
13        event.preventDefault();
14        executeSearch('#mobile-search');
15    });
16    $('#desktop-search').keypress(function (event) {
17        var keycode = (event.keyCode ? event.keyCode : event.which);
18        if (keycode == '13') {
19            event.preventDefault();
20            executeSearch('#desktop-search');
21        }
22    });
23    $('#mobile-search').keypress(function (event) {
24        var keycode = (event.keyCode ? event.keyCode : event.which);
25        if (keycode == '13') {
26            event.preventDefault();
27            executeSearch('#mobile-search');
28        }
29    });
30
31    /* Notice close */
32    function hideNotification($this) {
33        $('#page-notice').hide();
34
35        var noticeDate = $this.data('notice-date');
36        document.cookie = 'showNotice=false; path=/; domain=.cfnc.org';
37        document.cookie = 'noticeDate=' + encodeURIComponent(noticeDate) + '; path=/; domain=.cfnc.org';
38
39        return false;
40    }
41
42    $('#page-notice-close').click(function () {
43        $this = $(this);
44        hideNotification($this)
45    });
46
47    $('#page-notice-close').keypress(function (e) {
48        if (e.which != 13) {
49            return;
50        }
51
52        var $item = $(this);
53        hideNotification($item);
54    });
55});

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.