0% found this document useful (0 votes)
45 views2 pages

Hsuwbsbsus

The document describes a function for switching protocols and defines an Alert class with methods like close and dispose. It establishes constants, selects elements, and triggers events when closing an alert.

Uploaded by

johanliebertzx
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
45 views2 pages

Hsuwbsbsus

The document describes a function for switching protocols and defines an Alert class with methods like close and dispose. It establishes constants, selects elements, and triggers events when closing an alert.

Uploaded by

johanliebertzx
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

TTP/1.

1 101 Switching Protocols


Date: Thu, 30 May 2024 [Link] GMT
Referrer-Policy: no-referrer-when-downgrade
X-Content-Type-Options: nosniff
X-XSS-Protection: 1
Strict-Transport-Security: max-age=31536000; includeSubDomains
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Accept: gq9Gu6jMNt+sykSF4VQnw3xyocc=
Content-Length: 0
Expires: Thu, 01 Dec 1994 [Link] GMT
Cache-Control: no-cache="set-cookie, set-cookie2"
Set-Cookie:
JSESSIONIDPA=0000cMQJdumjB7TEBa5fkUJnhPH:f3cf64e0de0a63461c0a1c5cefec5e8e; Path=/;
HttpOnly; Secure
Content-Type: text/plain
Content-Language: en-US

function _defineProperties(target, props) { for (var i = 0; i < [Link]; i++)


{ var descriptor = props[i]; [Link] = [Link] ||
false; [Link] = true; if ("value" in descriptor)
[Link] = true; [Link](target, [Link],
descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps)
_defineProperties([Link], protoProps); if (staticProps)
_defineProperties(Constructor, staticProps); return Constructor; }
/**
* --------------------------------------------------------------------------
* Bootstrap (v4.1.0): [Link]
* Licensed under MIT ([Link]
* --------------------------------------------------------------------------
*/
var Alert = function ($) {
/**
* ------------------------------------------------------------------------
* Constants
* ------------------------------------------------------------------------
*/
var NAME = 'alert';
var VERSION = '4.1.0';
var DATA_KEY = '[Link]';
var EVENT_KEY = "." + DATA_KEY;
var DATA_API_KEY = '.data-api';
var JQUERY_NO_CONFLICT = $.fn[NAME];
var Selector = {
DISMISS: '[data-dismiss="alert"]'
};
var Event = {
CLOSE: "close" + EVENT_KEY,
CLOSED: "closed" + EVENT_KEY,
CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY
};
var ClassName = {
ALERT: 'alert',
FADE: 'fade',
SHOW: 'show'
/**
* ------------------------------------------------------------------------
* Class Definition
* ------------------------------------------------------------------------
*/
};
var Alert =
/*#__PURE__*/
function () {
function Alert(element) {
this._element = element;
} // Getters
var _proto = [Link];
// Public
_proto.close = function close(element) {
element = element || this._element;
var rootElement = this._getRootElement(element);
var customEvent = this._triggerCloseEvent(rootElement);
if ([Link]()) {
return;
}
this._removeElement(rootElement);
};
_proto.dispose = function dispose() {
$.removeData(this._element, DATA_KEY);
this._element = null;
}; // Private
_proto._getRootElement = function _getRootElement(element) {
var selector = [Link](element);
var parent = false;
if (selector) {
parent = $(selector)[0];
}

You might also like