PageSourceSearch

https://britishlistedbuildings.co.uk/js/foundation/foundation.alert.js

js britishlistedbuildings.co.uk collected 2026-09-24 08:59:26 UTC 1,235 bytes, 43 lines download raw bytes

vendor: 1,235 bytes, lines 1-43
1;(function ($, window, document, undefined) {
2  'use strict';
3
4  Foundation.libs.alert = {
5    name : 'alert',
6
7    version : '5.5.1',
8
9    settings : {
10      callback : function () {}
11    },
12
13    init : function (scope, method, options) {
14      this.bindings(method, options);
15    },
16
17    events : function () {
18      var self = this,
19          S = this.S;
20
21      $(this.scope).off('.alert').on('click.fndtn.alert', '[' + this.attr_name() + '] .close', function (e) {
22        var alertBox = S(this).closest('[' + self.attr_name() + ']'),
23            settings = alertBox.data(self.attr_name(true) + '-init') || self.settings;
24
25        e.preventDefault();
26        if (Modernizr.csstransitions) {
27          alertBox.addClass('alert-close');
28          alertBox.on('transitionend webkitTransitionEnd oTransitionEnd', function (e) {
29            S(this).trigger('close').trigger('close.fndtn.alert').remove();
30            settings.callback();
31          });
32        } else {
33          alertBox.fadeOut(300, function () {
34            S(this).trigger('close').trigger('close.fndtn.alert').remove();
35            settings.callback();
36          });
37        }
38      });
39    },
40
41    reflow : function () {}
42  };
43}(jQuery, window, window.document));

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.