CARVIEW |
Select Language
HTTP/2 301
location: https://raw.githubusercontent.com/Ensighten/jqueryp/master/dist/jqueryp.js
accept-ranges: bytes
age: 0
date: Mon, 21 Jul 2025 06:52:40 GMT
via: 1.1 varnish
x-served-by: cache-bom4720-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1753080760.535740,VS0,VE1072
vary: Accept-Encoding
x-fastly-request-id: c06d1dd7dbd0f20e389de5a49777d0ff33ca8a5b
content-length: 0
HTTP/2 200
cache-control: max-age=300
content-security-policy: default-src 'none'; style-src 'unsafe-inline'; sandbox
content-type: text/plain; charset=utf-8
etag: W/"aeb5f3223e4e3fce4fd452e7c7060fdce03dc443058a70e21a3829cc1289ae91"
strict-transport-security: max-age=31536000
x-content-type-options: nosniff
x-frame-options: deny
x-xss-protection: 1; mode=block
x-github-request-id: 97B4:248062:3F498:808A7:687DE3B8
content-encoding: gzip
accept-ranges: bytes
date: Mon, 21 Jul 2025 06:52:41 GMT
via: 1.1 varnish
x-served-by: cache-bom4720-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1753080761.658203,VS0,VE371
vary: Authorization,Accept-Encoding
access-control-allow-origin: *
cross-origin-resource-policy: cross-origin
x-fastly-request-id: 97a2f2d2fe83b3e72c96497bd847ef416de5ff65
expires: Mon, 21 Jul 2025 06:57:41 GMT
source-age: 0
content-length: 946
/*! jqueryp - v1.0.2 - 2012-12-07
* https://github.com/Ensighten/jqueryp
* Copyright (c) 2012 Ensighten; Licensed MIT */
(function ($, undefined) {
/**
* Function to easily add new jQuery plugins via a constructor function
* @param {String} moduleName Name of the module
* @param {Function} module Constructor function to bind under $()[moduleName]
*/
$.exportModule = function (moduleName, module) {
// Namespace module name to prevent potential overwriting by jquery.data
var _moduleName = 'jqueryp_' + moduleName;
/**
* $.moduleName (e.g. $.swapper)
* @param {String|Boolean} [method] If true, the corresponding module will be returned. Otherwise, it is the method that will be called on the module.
* @param {Mixed} [params...] Parameters to pass through to the method
*/
$.fn[moduleName] = function (method/*, params... */) {
var args = [].slice.call(arguments, 1),
retVal = this;
// Go through the items
this.each(function (index) {
// Grab the item from the data layer
var $this = $(this),
item = $this.data(_moduleName);
// If it does not exist, create it
if (item === undefined) {
item = new module($this);
$this.data(_moduleName, item);
}
// If there is a method
if (method) {
// If the method is 'true'
if (method === true) {
// If this is the first item, return it as the retVal
if (index === 0) {
retVal = item;
}
} else {
// Otherwise, call the method
var methodFn = item[method];
// If there is no method fn, error out
if (methodFn === undefined) {
var console = window.console;
if (console && console.error) {
console.error(moduleName + '.' + method + ' not found!');
}
} else if (typeof methodFn !== 'function') {
// Otherwise, if the item is not a function
if (index === 0) {
retVal = methodFn;
}
} else {
var val = methodFn.apply(item, args);
if (index === 0 && val !== undefined) {
retVal = val;
}
}
}
}
});
// Return this or the retVal of the first item
return retVal;
};
};
}(jQuery));