PageSourceSearch

https://nccbp.org/js/nccbp.js?v=3.1

js nccbp.org collected 2026-10-06 13:04:10 UTC 1,816 bytes, 73 lines download raw bytes

1$(function() {
2    $('[data-toggle="tooltip"]').tooltip();
3    // Click login button to show form
4    setupLoginButton()
5
6    // Fancybox image hovers
7    setupFancyboxHover()
8
9    setupClickOnWorkbook();
10// institution-state
11//institution-accreditor
12    $('#institution-state').change(function() {
13        var selState = $("#institution-state option:selected");
14        $('#institution-accreditor').val();
15    });
16})
17
18function setupLoginButton()
19{
20    $('#loginButton').click(function() {
21        $('#headerButtons').hide('drop', {direction: 'up'})
22        $('#headerLoginForm').show('drop', {direction: 'down'})
23        $('input[name="identity"]').focus();
24
25        return false
26    })
27}
28
29function setupFancyboxHover() {
30    $('.fancybox').each(function() {
31        var image = $(this).find('img')
32
33        // Add the overlay
34        var markup = '<span class="rollover"></span>'
35        $(this).prepend(markup)
36        var overlay = $(this).find(".rollover")
37
38
39        // OPACITY OF BUTTON SET TO 0% and width and height set
40        overlay
41            .css("opacity", "0")
42            .css('height', image.height())
43            .css('width', image.width())
44
45
46        // ON MOUSE OVER
47        overlay.hover(
48            function () {
49                // SET OPACITY TO 70%
50                $(this).stop().animate({
51                    opacity: .5
52                }, "fast");
53            },
54
55            // ON MOUSE OUT
56            function () {
57                // SET OPACITY BACK TO 0%
58                $(this).stop().animate({
59                    opacity: 0
60                }, "fast");
61            }
62        );
63    })
64
65}
66
67function setupClickOnWorkbook()
68{
69    $('.workbook > a').click(function(e) {
70        e.preventDefault();
71        alert('You must have a current subscription to print the workbook.');
72    });
73}

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.