CARVIEW |
Select Language
HTTP/2 301
location: https://raw.githubusercontent.com/twolfson/css-controls/master/dist/css-controls.js
accept-ranges: bytes
age: 0
date: Mon, 21 Jul 2025 12:13:34 GMT
via: 1.1 varnish
x-served-by: cache-bom4736-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1753100014.123251,VS0,VE305
vary: Accept-Encoding
x-fastly-request-id: b90a61bb10bc45f9d3a578fd5fc0e1031595da27
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/"0f5157bb528c3b214cc48112f2a7be012287940d95618f6017ebe4e7cba41985"
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: DB08:16775A:1633C6:32D0DE:687E2EEB
content-encoding: gzip
accept-ranges: bytes
date: Mon, 21 Jul 2025 12:13:34 GMT
via: 1.1 varnish
x-served-by: cache-bom4749-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1753100014.485203,VS0,VE365
vary: Authorization,Accept-Encoding
access-control-allow-origin: *
cross-origin-resource-policy: cross-origin
x-fastly-request-id: 79948b48a54db8c3ec5368ccff1b63502359dbe4
expires: Mon, 21 Jul 2025 12:18:34 GMT
source-age: 0
content-length: 1093
(function(e){if("function"==typeof bootstrap)bootstrap("css-controls",e);else if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeCssControls=e}else"undefined"!=typeof window?window.cssControls=e():global.cssControls=e()})(function(){var define,ses,bootstrap,module,exports;
return (function(e,t,n){function i(n,s){if(!t[n]){if(!e[n]){var o=typeof require=="function"&&require;if(!s&&o)return o(n,!0);if(r)return r(n,!0);throw new Error("Cannot find module '"+n+"'")}var u=t[n]={exports:{}};e[n][0].call(u.exports,function(t){var r=e[n][1][t];return i(r?r:t)},u,u.exports)}return t[n].exports}var r=typeof require=="function"&&require;for(var s=0;s .nav-bar`)
* @param {String} property CSS property to apply to `selector` (e.g. `background: blue`)
* @returns {Number} Index the rule was inserted at
*/
function addRule(styleSheet, selector, property) {
// if we are on IE, use addRule
if (styleSheet.addRule) {
styleSheet.addRule(selector, property);
return styleSheet.rules.length - 1;
} else {
// Otherwise, generate the rule and append it
var rule = selector + '{' + property + '}';
return styleSheet.insertRule(rule, styleSheet.cssRules.length);
}
}
/**
* Remove a CSS rule from a stylesheet
* @param {CSSStyleElement} styleSheet Stylesheet to remove rule from
* @param {Numer} index Index of the rule to remove
*/
function removeRule(styleSheet, index) {
// if we are on IE, use removeRule
if (styleSheet.removeRule) {
return styleSheet.removeRule(index);
} else {
// Otherwise, use deleteRule
return styleSheet.deleteRule(index);
}
}
// Export our methods
module.exports = {
createStyleSheet: createStyleSheet,
addRule: addRule,
removeRule: removeRule
};
},{}]},{},[1])(1)
});
;