PageSourceSearch

https://myaccount.cur.org/scripts/quattro.websiteinput.js

js cur.org collected 2026-09-24 08:55:28 UTC 1,259 bytes, 29 lines download raw bytes

1var initalizeWebsiteInputControl = function () {
2    $(document).ready(function () {
3        $('.website-input').on('change', function () {
4            var self = this;
5            var url = $(self).val();
6            var icon = $(self).prev().removeClass('green').removeClass('red').popover('destroy');
7
8            if (url.trim() != '') {
9                icon.addClass('icon-spin');
10                page.ajax({
11                    url: '~/Services/UrlValidation.asmx/IsValidWebsite',
12                    parameters: {
13                        'url': url
14                    },
15                    showProgress: false,
16                    success: function (isValid) {
17                        icon.removeClass('icon-spin').addClass(isValid ? 'green' : 'red');
18                        icon.attr('data-content', (isValid ? "Valid website." : "Invalid website.")).popover();
19                    },
20                    error: function (message) {
21                        icon.removeClass('icon-spin');
22                        icon.attr('data-content', 'Validation failed').popover();
23                        page.displayError('Url Validation', message);
24                    }
25                });
26            }
27        });
28    });
29};

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.