diff options
author | hoba <hoba@hobas-imac-3.local> | 2009-06-26 02:51:52 +0200 |
---|---|---|
committer | hoba <hoba@hobas-imac-3.local> | 2009-06-26 02:51:52 +0200 |
commit | 26857a89dc8d54868147bb909eeee6f83b7fb9f8 (patch) | |
tree | 9748a6a5965c4de8a526db66cb225a922bbe5d79 /usr/local/www/themes/pfsense_ng/javascript/ie7/ie7-css-strict.js | |
parent | c36e48f0ce2ebfc7fd64d29d8f4768daa9cef179 (diff) | |
download | pfsense-26857a89dc8d54868147bb909eeee6f83b7fb9f8.zip pfsense-26857a89dc8d54868147bb909eeee6f83b7fb9f8.tar.gz |
Adding the pfSense_ng theme
Diffstat (limited to 'usr/local/www/themes/pfsense_ng/javascript/ie7/ie7-css-strict.js')
-rw-r--r-- | usr/local/www/themes/pfsense_ng/javascript/ie7/ie7-css-strict.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/themes/pfsense_ng/javascript/ie7/ie7-css-strict.js b/usr/local/www/themes/pfsense_ng/javascript/ie7/ie7-css-strict.js new file mode 100644 index 0000000..4406d7a --- /dev/null +++ b/usr/local/www/themes/pfsense_ng/javascript/ie7/ie7-css-strict.js @@ -0,0 +1,2 @@ +/* IE7 version 0.7.3 (alpha) 2004/09/18 */ +if(window.IE7)IE7.addModule("ie7-strict",function(){if(!modules["ie7-css2"])return;var NONE=[],ID=/#/g,CLASS=/[:@\.]/g,TAG=/^\w|[\s>+~]\w/g;IE7.parser.parse=function(cssText){var DYNAMIC=new RegExp("(.*):("+dynamicPseudoClasses+")(.*)");function addRule(selector,cssText){var match=selector.match(DYNAMIC);if(match)new DynamicRule(selector,match[1],match[2],match[3],cssText);else new Rule(selector,cssText)};cssText=cssText.replace(IE7.PseudoElement.ALL,IE7.PseudoElement.ID);var RULE=/([^\{]+)\{(\d+)\}/g,match;while(match=RULE.exec(cssText)){addRule(match[1],match[2]);if(appVersion<5.5)cssText=cssText.slice(match.lastIndex)}IE7.classes.sort(Rule.compare);return IE7.classes.join("\n")};function Rule(selector,cssText){this.cssText=cssText;this.specificity=Rule.score(selector);this.inherit=IE7.Class;this.inherit(selector)};Rule.prototype=new IE7.Class.ancestor;Rule.prototype.toString=function(){return "."+this.name+"{"+this.cssText+"}"};Rule.score=function(selector){return(selector.match(ID)||NONE).length*10000+(selector.match(CLASS)||NONE).length*100+(selector.match(TAG)||NONE).length};Rule.compare=function(rule1,rule2){return rule1.specificity-rule2.specificity};function DynamicRule(selector,attach,dynamicPseudoClass,target,cssText){this.cssText=cssText;this.specificity=Rule.score(selector);this.inherit=IE7.DynamicStyle;this.inherit(selector,attach,dynamicPseudoClass,target)};DynamicRule.prototype=new IE7.DynamicStyle.ancestor;DynamicRule.prototype.toString=Rule.prototype.toString}); |