PageSourceSearch

https://certportal.nhanow.com/static/javascript/portal/base.js

js nhanow.com collected 2026-10-02 05:00:03 UTC 1,851 bytes, 64 lines download raw bytes

1$.namespace('BT.Portal');
2
3BT.Portal.hide_popovers = function() {
4    $('.btn-popover').popover("hide");
5};
6
7// helper to flash an alert message to the user
8BT.Portal.flash = function(message, alertClass) {
9    alertClass = alertClass || "alert-info";
10
11    BT.Portal.hide_popovers();
12
13    $("#flash-alert").removeClass(function(index, classes) {
14        var matches = classes.match(/alert-[^ ]+/g) || [];
15        return matches.join(" ");
16    });
17
18    $("#flash-alert > span").html(message);
19    $("#flash-alert").removeClass("d-none");
20    $("#flash-alert").addClass(["show", alertClass].join(" ")).slideDown();
21};
22
23
24// helper to flash an error message to the user
25BT.Portal.flashError = function(message) {
26    if (message && typeof message != 'string') {
27        message = message.message || message.msg || message.statusText;
28    } else {
29        message = message || "There was a problem processing your request.  Please try again in a few moments or contact support for assistance.";
30    }
31
32    BT.Portal.flash(message, "alert-danger");
33};
34
35
36BT.Portal.hideFlash = function() {
37    $("#flash-alert").removeClass("alert-danger alert-block show").slideUp();
38};
39
40
41
42$(function () {
43    // activate tool tips
44    $('body').tooltip({
45        selector: '[rel="tooltip"]'
46    });
47
48    $('input [type=text]').addClass('form-group');
49
50    // make alert close button hide the alert instead of removing it
51    $("#flash-alert > button").on("click", function() {
52        BT.Portal.hideFlash();
53    });
54
55
56    // expand collapsed sections on click
57    $(".collapse-section").on("click", function() {
58        var target_opacity = $("i", this).css("opacity");
59        $("i", this).fadeTo("fast", 0.1, function() {
60            $("i", this).toggleClass("fa-plus fa-minus" );
61            $("i", this).fadeTo("fast", target_opacity);
62        }.on(this));
63    });
64});

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.