PageSourceSearch

https://bestessayhelp.com/manage/js/flash.js

js bestessayhelp.com collected 2026-09-26 10:00:38 UTC 1,427 bytes, 53 lines download raw bytes

1(function () {
2    this.Flash = (function () {
3        var flash, hideFlash;
4
5        hideFlash = function () {
6            return $(flash).fadeOut();
7        };
8
9        function Flash(message, type, parent, timeout) {
10            var textDiv;
11            if (type == null) {
12                type = 'warning';
13            }
14            if (timeout == null) {
15                timeout = 3000;
16            }
17            if (parent == null) {
18                parent = null;
19            }
20
21            if (parent) {
22                this.flashContainer = parent.find('.flash-container');
23            } else {
24                this.flashContainer = $('.flash-container-page');
25            }
26            this.flashContainer.html('');
27            flash = $('<div/>', {
28                'class': 'alert alert-' + type
29            });
30
31            flash.on('click', hideFlash);
32
33            setTimeout(function () {
34                hideFlash();
35            }, timeout);
36
37            textDiv = $('<div/>', {
38                'class': 'flash-text',
39                text: message
40            });
41
42            textDiv.appendTo(flash);
43            if (this.flashContainer.parent().hasClass('content-wrapper')) {
44                textDiv.addClass('container-fluid container-limited');
45            }
46            flash.appendTo(this.flashContainer);
47
48            this.flashContainer.show();
49        }
50
51        return Flash;
52    })();
53}).call(this);

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.