├── README.textile ├── booster ├── .gitignore ├── .htaccess ├── booster.css_lazyload.js ├── booster.css_lazyload.min.js ├── booster_cache │ └── empty ├── booster_css.php ├── booster_css_ie.php ├── booster_inc.php ├── booster_js.php ├── booster_mhtml.php ├── compiler │ ├── COPYING │ ├── README │ └── compiler.jar ├── htaccess │ └── .htaccess ├── jsmin │ └── jsmin.php ├── wp_booster.php └── yuicompressor │ └── yuicompressor-2.4.2.jar ├── examples └── example1 │ ├── .htaccess │ ├── css │ └── style.css │ ├── images │ ├── 24hours.gif │ ├── arrow1.gif │ ├── arrow2.gif │ ├── blank.gif │ ├── button.gif │ ├── commentbg.gif │ ├── company-bg.gif │ ├── footerbg.gif │ ├── footerlogo.gif │ ├── form-bottombg.gif │ ├── formbg.gif │ ├── header.jpg │ ├── icon.gif │ ├── icon1.gif │ ├── icon2-hover.gif │ ├── icon2-normal.gif │ ├── icon3-hover.gif │ ├── icon3-normal.gif │ ├── logo.jpg │ ├── mainbg.gif │ ├── menu-div.gif │ ├── new-registerbg.gif │ ├── not-memberbg.gif │ ├── reedmore-bg.gif │ ├── reedmore-hover.gif │ ├── rightmenu.gif │ ├── rightsidebg.jpg │ ├── servicesbody-bg.gif │ ├── servicestop-bg.gif │ ├── topleftmenu-hover.gif │ └── topmenubg.gif │ ├── index_fast.php │ ├── index_slow.php │ ├── js │ ├── 01_jquery-1.3.1.min.js │ ├── 02_cufon-yui.js │ ├── 03_Sansation_400.font.js │ ├── Sansation license.txt │ ├── cufon license.txt │ ├── jQuery license.txt │ └── z_functions.js │ ├── license.txt │ └── subfolder │ └── index_fast.php ├── htaccess └── .htaccess └── license.txt /README.textile: -------------------------------------------------------------------------------- 1 | h1. CSS-JS-Booster 2 | 3 | !http://www.der-schepp.de/css-js-booster-github.jpg! 4 | 5 | Copyright (C) 2010 Christian "Schepp" Schaefer 6 | "http://twitter.com/derSchepp":http://twitter.com/derSchepp 7 | 8 | h1. Functionality and Benefits 9 | 10 | CSS-JS-Booster is a PHP-script that tries to automate as many performance 11 | optimizing steps related to CSS and JS embedding as possible. 12 | 13 | For CSS these steps are: 14 | * combine multiple CSS-files resulting in number of HTTP-requests going down 15 | * minify CSS 16 | * Embed any CSS-images smaller 24KB as data-URI or MHTML (for IE <= 7) 17 | * Split the output back into 2 even files that can load in parallel (not for WP) 18 | * GZIP-compress the resulting CSS 19 | * Have browsers cache the result as long as it remains unchanged 20 | * If IE6: Issue a JS-command to fix background image caching behaviour 21 | 22 | For JS these steps are: 23 | * combine multiple JS-files resulting in number of HTTP-requests going down 24 | * Minify the JS through the Google Closure Compiler Webservice, or JSMin as fallback (not for WP) 25 | * GZIP-compress the resulting JS 26 | * Have browsers cache the result as long as it remains unchanged 27 | 28 | + GZIP-compresses the page calling those files. 29 | 30 | Depending on the amount of CSS, CSS-images and JS, this can significantly 31 | increase loading speed of your site. 32 | 33 | 34 | 35 | Naah, your software stinks! Alternatives? Yes, there are! 36 | 37 | Quite similar to this library is one called "SmartOptimizer":http://farhadi.ir/works/smartoptimizer 38 | with the major difference that it neither supports MHTML for the older IEs 39 | nor does it offer the possibility to back-split the output into multiple 40 | parts. 41 | 42 | Then there is another nifty piece of software called "Web Optimizer":http://www.web-optimizer.us/ 43 | that does what CSS-JS-Booster does, and a little lot more. 44 | And there are many CMS-Plugins available. There exists a free and 45 | a commercial version. 46 | 47 | For any full-fledged web 3.0 company with money, their own servers and some 48 | technical skills (or instead: even more money), there also exists an 49 | enterprise-website-accelerator named "aptimize":http://www.aptimize.com/ 50 | 51 | Just to have mentioned those... 52 | 53 | 54 | 55 | h1. System Requirements 56 | 57 | CSS-JS-Booster absolutely requires PHP 5. No PHP 4, sorry... 58 | Version-wise it is tested up until PHP 5.3. 59 | 60 | 61 | 62 | h1. Basic Usage 63 | 64 | CSS-JS-Booster is a standalone-library as well as a Wordpress-plugin. 65 | If you are interested in the Wordpress-part, you can skip all of this and 66 | scroll further down to where you will find a Wordpress install guide. 67 | 68 | Now, coming to the standalone-library... 69 | 70 | CSS-JS-Booster is - as its name implies - divided into two function blocks: 71 | A CSS-optimizing block and a JavaScript-optimizing block. 72 | 73 | For both functionalities you first need to go into the booster-folder and 74 | create a folder named *booster_cache* and have it CHMOD 0777. 75 | 76 | Afterwards include 77 | 78 | bc. 82 | 83 | at the top of your (PHP-interpreted) file. 84 | (Adjust the path according to your folder-structure) 85 | 86 | Should you happen to only have static HTML-files, try enabling PHP-parsing 87 | by putting a *.htaccess*-file into the site's root with following directive: 88 | 89 | bc. AddType application/x-httpd-php .html .htm 90 | 91 | 92 | 93 | For the CSS-part, put all releveant CSS-files into a subfolder *css* of your 94 | site. Make sure, all declarations pointing to image-files have their paths 95 | adjusted (i.e. all CSS should be fully functional by themselves inside that 96 | folder). 97 | 98 | If you have multiple CSS-files rename them so that they are alphabetically 99 | sorted in the desired order, e.g.: 100 | 101 | *01_first.css 102 | 02_second.css 103 | 03_third.css* 104 | 105 | Then add this declaration in the HTML's head-section: 106 | 107 | bc. css_source = '../css'; //relative path from inside booster folder 109 | echo $booster->css_markup(); 110 | ?> 111 | 112 | for example: 113 | 114 | bc. 115 | Webpage 116 | css_source = '../css'; //relative path from inside booster folder 118 | echo $booster->css_markup(); 119 | ?> 120 | 121 | 122 | The argument is the path relativ to CSS-JS-Booster's folder. 123 | 124 | 125 | 126 | For the JS-part, put all releveant JS-files into a subfolder *js* of your 127 | site. 128 | 129 | If you have multiple JS-files rename them so that they are alphabetically 130 | sorted in the desired order, e.g.: 131 | 132 | *01_first.js 133 | 02_second.js 134 | 03_third.js* 135 | 136 | Then add this declaration either in the HTML's head-section, or - better for 137 | performance and therefore recommended when you experience no errors - right 138 | before the closing : 139 | 140 | bc. js_source = '../js'; //relative path from inside booster folder 142 | echo $booster->js_markup(); 143 | ?> 144 | 145 | for example: 146 | 147 | bc. js_source = '../js'; //relative path from inside booster folder 149 | echo $booster->js_markup(); 150 | ?> 151 | 152 | 153 | 154 | The argument is the path relativ to CSS-JS-Booster's folder. 155 | 156 | *Notice:* Don't worry if on the very first call of your page your Javascript 157 | doesn't get loaded or your page takes long time to load. This is normal as 158 | this is the delay caused by Google's Closure compiler shrinking the scripts. 159 | Once it has been successfully shrinked it won't be shrinked again as long as 160 | you do not change your Javascript. 161 | 162 | 163 | 164 | h1. Q & A for Advanced Usage 165 | 166 | *Q: How can I combine files out of multiple CSS- or JS-folders?* 167 | A: By setting as directory argument a comma delimited list of folders: 168 | 169 | bc. $booster->css_source = '../css_1,../css_2'; 170 | echo $booster->css_markup(); 171 | 172 | or an array 173 | 174 | bc. $booster->css_source = array('../css_1','../css_2'); 175 | echo $booster->css_markup(); 176 | 177 | The same holds true for JS: 178 | 179 | bc. $booster->js_source = '../js_1,../js_2'; 180 | echo $booster->js_markup(); 181 | 182 | or 183 | 184 | bc. $booster->js_source = array('../js_1','../js_2'); 185 | echo $booster->js_markup(); 186 | 187 | 188 | *Q: I don't want to have CSS-JS-Booster to pull all the files from inside a 189 | directory, nor do I want to rename the files alphabetically. I rather want 190 | full control over which files to use. Is this possible?* 191 | A: Yes. @$booster->css_source@ and @$booster->js_source@ are very flexible in 192 | what they accept as source. You don't need to specify a folder, you can 193 | also specify a single file, or multiple files (either comma-separated or as 194 | genuine array). Here are some examples: 195 | 196 | bc. $booster->css_source = '../css_1/reset.css,../css_1/base.css'; 197 | echo $booster->css_markup(); 198 | 199 | or as array 200 | 201 | bc. $booster->css_source = array('../css_1/reset.css','../css_1/base.css'); 202 | echo $booster->css_markup(); 203 | 204 | or files and folder mixed in an array: 205 | 206 | bc. $booster->css_source = array('../css_1/reset.css','../css_1/base.css','../css_2'); 207 | echo $booster->css_markup(); 208 | 209 | 210 | *Q: I don't want to have CSS-JS-Booster to pull files from anywhere at all. 211 | I rather want to pass it a CSS-/Javascript-string and have that optimized. 212 | Is this possible?* 213 | A: Yes, @$booster->css_source@ and @$booster->js_source@ can now also accept 214 | code-strings as source. But you have to switch the respective booster-part to 215 | stringmode before by setting @$booster->css_stringmode = TRUE;@ or 216 | @$booster->js_stringmode = TRUE;@. Here is an example: 217 | 218 | bc. $booster = new Booster(); 219 | $booster->css_stringmode = TRUE; 220 | $booster->css_source = '.div1 { 221 | display: block; 222 | width: 400px; 223 | }'; 224 | echo $booster->css(); 225 | 226 | 227 | *Q: For CSS and JS tags, can I have its output-markup in HTML 4.01 fashion?* 228 | A: No problem, do this: 229 | 230 | bc. $booster->markuptype = 'HTML'; 231 | echo $booster->css_markup(); 232 | 233 | or 234 | 235 | bc. $booster->markuptype = 'HTML'; 236 | echo $booster->js_markup(); 237 | 238 | 239 | *Q: Can I stop CSS-JS-Booster to cleanup the cache folder on sundays?* 240 | A: Yes, just configure this: 241 | 242 | bc. $booster->booster_cachedir_autocleanup = FALSE; 243 | 244 | 245 | *Q: For CSS, how can I define a different/specific target-medium?* 246 | A: By setting the desired media before echoing the markup: 247 | 248 | bc. $booster->css_media = 'screen,projection'; 249 | echo $booster->css_markup(); 250 | 251 | 252 | *Q: For CSS, can I define a second folder to feed an alternate stylesheet?* 253 | A: Sure, e.g. like this: 254 | 255 | bc. $booster->css_source = 'css_1'; 256 | echo $booster->css_markup(); 257 | // 258 | $booster->css_source = 'css_2'; 259 | $booster->css_rel = 'alternate stylesheet'; 260 | $booster->css_title = 'Alternate Stylesheet'; 261 | echo $booster->css_markup(); 262 | 263 | 264 | *Q: For CSS, can I influence in how many even parts it gets split?* 265 | A: Nothing easier than this: 266 | 267 | bc. $booster->css_totalparts = 4; 268 | echo $booster->css_markup(); 269 | 270 | 271 | *Q: I would like to have YUI Compressor to minify my CSS locally. Is that 272 | possible?* 273 | A: Yes, it is possible, as long as you have a dedicated server with Java 274 | installed: 275 | 276 | bc. $booster->css_hosted_minifier = TRUE; 277 | echo $booster->css_markup(); 278 | 279 | *Please note* that this feature is still alpha and possibly buggy! 280 | 281 | 282 | *Q: The JS-minification seems to break my scripts. Can I disable it?* 283 | A: Yes, you can: 284 | 285 | bc. $booster->js_minify = FALSE; 286 | echo $booster->js_markup(); 287 | 288 | 289 | *Q: The JS-minification through the Google webservice takes too long. 290 | Can I have a local Google Closure minifier instead?* 291 | A: Yes, you can, as long as you have a dedicated server with Java installed: 292 | 293 | bc. $booster->js_hosted_minifier = TRUE; 294 | echo $booster->js_markup(); 295 | 296 | *Please note* that this feature is still alpha and possibly buggy! 297 | 298 | 299 | *Q: I would like to make use of the async and/or defer attributes for JS. 300 | Is there a way to enable them?* 301 | A: Yes, you can set the mode easily. Just remember that when Booster detects 302 | any document.write inside your script, it will ommit those attributes. 303 | 304 | This will set the async, and as fallback for older browsers defer attribute: 305 | 306 | bc. $booster->js_executionmode = "async"; 307 | echo $booster->js_markup(); 308 | 309 | This will set the defer attribute: 310 | 311 | bc. $booster->js_executionmode = "defer"; 312 | echo $booster->js_markup(); 313 | 314 | *Please note:* if CSS-JS-Booster detects a document.write inside JavaScript 315 | it will omit async and defer as both conflict with document.write. 316 | 317 | 318 | *Q: I would like to make use of the onload attribute for JS (like for example 319 | together with the async and/or defer attributes). How?* 320 | A: This will fill the onload attribute with the function "initialize();": 321 | 322 | bc. $booster->js_onload = "initialize();"; 323 | echo $booster->js_markup(); 324 | 325 | 326 | *Q: I need to debug CSS (e.g. in Firebug) or JS in the console - but I cannot 327 | find anything due to dataURI-fication and minification...* 328 | A: Yes, that's hard. In this case turn debug-mode on before outputting: 329 | 330 | bc. $booster->debug = TRUE; 331 | echo $booster->css_markup(); 332 | echo $booster->js_markup(); 333 | 334 | 335 | *Q: Can I have CSS with big inlined images lazyload on DOM ready?* 336 | A: Yes, just set the following parameter: 337 | 338 | bc. $booster->css_lazyload = TRUE; 339 | 340 | In an ideal way you would split your image-heavy CSS apart from your normal CSS 341 | and just load that one later: 342 | 343 | bc. $booster = new Booster(); 344 | $booster->css_source = 'styles_without_images.css'; 345 | echo $booster->css_markup(); 346 | $booster->css_source = 'styles_with_images.css'; 347 | $booster->css_lazyload = TRUE; 348 | echo $booster->css_markup(); 349 | 350 | 351 | 352 | h1. .htaccess Acceleration 353 | 354 | For an even further speed-boost, either add the contents of 355 | 356 | */htaccess/.htaccess* 357 | 358 | to your existing *.htaccess*-file in your site's root, or the file itself 359 | shouldn't you have any *.htaccess*-file installed in your site's root yet. 360 | 361 | Should you happen to get internal server error 500s, then something went 362 | wrong with my .htaccess and you server-config. 363 | 364 | What the *.htaccess* adds on top: 365 | 366 | * Turns off ETags 367 | * Adds aggressive caching for all sort of assets like images/favicon/flash 368 | 369 | 370 | 371 | h1. Wordpress Plugin 372 | 373 | CSS-JS-Booster also works as a Wordpress plugin. 374 | 375 | *Installation* 376 | 377 | * Copy the whole *booster* folder into *wp-content/plugins/* 378 | * Create a subfolder *booster_cache* inside *wp-content/plugins/booster/* and CHMOD it to 0777 (write-permissions) 379 | * Go into the admin-panel to the plugins and activate “CSS-JS-Booster” 380 | * Copy the contents of the file *htaccess/.htaccess* and append them to the contents of the .htaccess-file in the root of your Wordpress-site 381 | 382 | *Compatibility with other plugins* 383 | 384 | CSS-JS-Booster may in rare cases break some other plugins. 385 | I noticed for example that plugins trying to calculate file-paths based on the src-attribute of the script-tag break. 386 | So you need to check yourself. 387 | 388 | 389 | 390 | 391 | h1. Copyright and License Information for 3rd party elements used in the scripts 392 | 393 | JSMin is origined from here: 394 | "http://www.crockford.com/javascript/jsmin.html":http://www.crockford.com/javascript/jsmin.html 395 | 396 | YUI Compressor comes from here: 397 | "http://developer.yahoo.com/yui/compressor/":http://developer.yahoo.com/yui/compressor/ 398 | All code specific to YUI Compressor is issued under a "BSD license":http://developer.yahoo.com/yui/license.html. 399 | 400 | Google Closure Compiler originates from here: 401 | "http://code.google.com/intl/de-DE/closure/compiler/":http://code.google.com/intl/de-DE/closure/compiler/ 402 | Licensed under the "Apache License, Version 2.0":http://www.apache.org/licenses/LICENSE-2.0 (the "License"); 403 | 404 | h1. Copyright and License Information for 3rd party elements used in example1 405 | 406 | HTML and CSS Template named "Blog Division" is taken from here: 407 | "http://www.free-css.com/free-css-templates/page1/blog-division.php":http://www.free-css.com/free-css-templates/page1/blog-division.php 408 | You find its license inside example1's root-folder 409 | 410 | The Sansation Font is © 2008 Bernd Montag and taken from here: 411 | "http://www.free-css.com/free-css-templates/page1/blog-division.php":http://www.free-css.com/free-css-templates/page1/blog-division.php 412 | You find its license inside example1's js-folder 413 | 414 | cufon has its home here: 415 | "http://github.com/sorccu/cufon":http://github.com/sorccu/cufon 416 | You find its license inside example1's js-folder 417 | 418 | jQuery is taken from here: 419 | "http://code.google.com/p/jqueryjs/":http://code.google.com/p/jqueryjs/ 420 | You find its license inside example1's js-folder -------------------------------------------------------------------------------- /booster/.gitignore: -------------------------------------------------------------------------------- 1 | booster_cache/* 2 | !booster_cache/empty 3 | -------------------------------------------------------------------------------- /booster/.htaccess: -------------------------------------------------------------------------------- 1 | #Turn ETagging off 2 | FileETag none 3 | 4 | #Turn ETagging on for Booster PHP files 5 | 6 | FileETag MTime Size 7 | 8 | #Give access even if webmaster has globally forbidden access 9 | Order deny,allow 10 | Allow from all 11 | Satisfy any 12 | 13 | 14 | #Let the Booster PHP files appear queryless for proxies by rewriting URL 15 | 16 | RewriteEngine on 17 | RewriteRule ^booster_css\.php/(dir.*)$ booster_css.php?$1 [L] 18 | RewriteRule ^booster_css_ie\.php/(dir.*)$ booster_css_ie.php?$1 [L] 19 | RewriteRule ^booster_js\.php/(dir.*)$ booster_js.php?$1 [L] 20 | RewriteRule ^booster_mhtml\.php/(dir.*)$ booster_mhtml.php?$1 [L] 21 | 22 | 23 | RewriteEngine on 24 | RewriteRule ^booster_css\.php/(dir.*)$ booster_css.php?$1 [L] 25 | RewriteRule ^booster_css_ie\.php/(dir.*)$ booster_css_ie.php?$1 [L] 26 | RewriteRule ^booster_js\.php/(dir.*)$ booster_js.php?$1 [L] 27 | RewriteRule ^booster_mhtml\.php/(dir.*)$ booster_mhtml.php?$1 [L] 28 | 29 | 30 | #Force caching of some common files for some time in the browser's cache, to save bandwidth. 31 | #"Mod_expires" needs to be installed in your Apache server, to use this feature. 32 | 33 | ExpiresActive On 34 | ExpiresDefault "access plus 1 years" 35 | 36 | 37 | ExpiresActive On 38 | ExpiresDefault "access plus 1 years" 39 | 40 | 41 | 42 | #Alternative caching using Apache's "mod_headers", if it's installed. 43 | #Caching of common files - ENABLED 44 | 45 | 46 | Header set Cache-Control "max-age=2592000, public" 47 | 48 | #Remove comments, to disable video caching to the user's browser 49 | # 50 | # Header set Cache-Control "max-age=0, public" 51 | # 52 | 53 | 54 | 55 | Header set Cache-Control "max-age=2592000, public" 56 | 57 | #Remove comments, to disable video caching to the user's browser 58 | # 59 | # Header set Cache-Control "max-age=0, public" 60 | # 61 | 62 | 63 | -------------------------------------------------------------------------------- /booster/booster.css_lazyload.js: -------------------------------------------------------------------------------- 1 | if(typeof booster_add_all_stylesheets != 'function'){ 2 | var booster_add_all_stylesheets = function(){ 3 | if(typeof booster_stylesheets != 'undefined'){ 4 | for(var i = booster_stylesheets.length;i--;){ 5 | if(document.all && !window.postMessage) booster_add_stylesheet(booster_stylesheets[i].replace(/booster_css.php/,'booster_css_ie.php')); 6 | else booster_add_stylesheet(booster_stylesheets[i]); 7 | } 8 | } 9 | } 10 | 11 | var booster_add_stylesheet = function(stylesheet){ 12 | var html_doc = document.getElementsByTagName('head').item(0); 13 | var css = document.createElement('link'); 14 | css.setAttribute('rel', 'stylesheet'); 15 | css.setAttribute('type', 'text/css'); 16 | css.setAttribute('href', stylesheet); 17 | html_doc.appendChild(css); 18 | } 19 | 20 | try { 21 | document.addEventListener('DOMContentLoaded', function (){ 22 | booster_add_all_stylesheets(); 23 | }, false); 24 | } catch(e) { 25 | if(typeof window.postMessage != 'undefined' && window == top) (function(){ 26 | try { 27 | document.documentElement.doScroll("left"); 28 | } catch(error) { 29 | setTimeout(arguments.callee, 10); 30 | return; 31 | } 32 | booster_add_all_stylesheets(); 33 | })(); 34 | else booster_add_all_stylesheets(); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /booster/booster.css_lazyload.min.js: -------------------------------------------------------------------------------- 1 | if(typeof booster_add_all_stylesheets!="function"){var booster_add_all_stylesheets=function(){if(typeof booster_stylesheets!="undefined")for(var a=booster_stylesheets.length;a--;)document.all&&!window.postMessage?booster_add_stylesheet(booster_stylesheets[a].replace(/booster_css.php/,"booster_css_ie.php")):booster_add_stylesheet(booster_stylesheets[a])},booster_add_stylesheet=function(a){var c=document.getElementsByTagName("head").item(0),b=document.createElement("link");b.setAttribute("rel","stylesheet"); b.setAttribute("type","text/css");b.setAttribute("href",a);c.appendChild(b)};try{document.addEventListener("DOMContentLoaded",function(){booster_add_all_stylesheets()},false)}catch(e$$5){typeof window.postMessage!="undefined"&&window==top?function(){try{document.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,10);return}booster_add_all_stylesheets()}():booster_add_all_stylesheets()}}; -------------------------------------------------------------------------------- /booster/booster_cache/empty: -------------------------------------------------------------------------------- 1 | 0 2 | -------------------------------------------------------------------------------- /booster/booster_css.php: -------------------------------------------------------------------------------- 1 | 21 | * 22 | ------------------------------------------------------------------------*/ 23 | include('booster_inc.php'); 24 | 25 | ((isset($_GET['dir'])) ? $source = str_replace('>','..',rtrim(preg_replace('/[^a-z0-9,\-_\.\/>]/i','',$_GET['dir']),'/')) : $source = 'css'); 26 | ((isset($_GET['cachedir'])) ? $booster_cachedir = str_replace('>','..',rtrim(preg_replace('/[^a-z0-9,\-_\.\/>]/i','',$_GET['cachedir']),'/')) : $booster_cachedir = 'booster_cache'); 27 | ((isset($_GET['totalparts'])) ? $totalparts = intval($_GET['totalparts']) : $totalparts = 1); 28 | ((isset($_GET['part'])) ? $part = intval($_GET['part']) : $part = 0); 29 | 30 | $booster = new Booster(); 31 | if(isset($_GET['debug']) && $_GET['debug'] == 1) $booster->debug = TRUE; 32 | if(isset($_GET['librarydebug']) && $_GET['librarydebug'] == 1) $booster->librarydebug = TRUE; 33 | if(isset($_GET['css_hosted_minifier']) && $_GET['css_hosted_minifier'] == 1) $booster->css_hosted_minifier = TRUE; 34 | $booster->booster_cachedir = $booster_cachedir; 35 | $booster->css_source = $source; 36 | $booster->css_totalparts = $totalparts; 37 | $booster->css_part = $part; 38 | 39 | // Check if file gets requested with an eTag, serve 304 if nothing changed 40 | $etag = md5( 41 | $source. 42 | intval($booster->debug). 43 | intval($booster->librarydebug). 44 | intval($booster->css_hosted_minifier). 45 | $booster->filestime 46 | ); 47 | 48 | if(@$_SERVER['HTTP_IF_NONE_MATCH'] === $etag) 49 | { 50 | header('HTTP/1.1 304 Not Modified'); 51 | exit(); 52 | } 53 | $css = $booster->css(); 54 | header("Cache-Control: max-age=2592000, public"); 55 | header("Expires: ".gmdate('D, d M Y H:i:s', mktime(date('h') + (24 * 35)))." GMT"); 56 | header("Vary: Accept-Encoding"); 57 | header("Content-type: text/css"); 58 | header("ETag: ".$etag); 59 | 60 | if(isset($booster_use_ob_gzhandler)) 61 | { 62 | for($i=0;$i -------------------------------------------------------------------------------- /booster/booster_css_ie.php: -------------------------------------------------------------------------------- 1 | 21 | * 22 | ------------------------------------------------------------------------*/ 23 | include('booster_inc.php'); 24 | 25 | ((isset($_GET['dir'])) ? $source = str_replace('>','..',rtrim(preg_replace('/[^a-z0-9,\-_\.\/>]/i','',$_GET['dir']),'/')) : $source = 'css'); 26 | ((isset($_GET['cachedir'])) ? $booster_cachedir = str_replace('>','..',rtrim(preg_replace('/[^a-z0-9,\-_\.\/>]/i','',$_GET['cachedir']),'/')) : $booster_cachedir = 'booster_cache'); 27 | ((isset($_GET['totalparts'])) ? $totalparts = intval($_GET['totalparts']) : $totalparts = 1); 28 | ((isset($_GET['part'])) ? $part = intval($_GET['part']) : $part = 0); 29 | 30 | $booster = new Booster(); 31 | if(isset($_GET['debug']) && $_GET['debug'] == 1) $booster->debug = TRUE; 32 | if(isset($_GET['librarydebug']) && $_GET['librarydebug'] == 1) $booster->librarydebug = TRUE; 33 | if(isset($_GET['css_hosted_minifier']) && $_GET['css_hosted_minifier'] == 1) $booster->css_hosted_minifier = TRUE; 34 | $booster->booster_cachedir = $booster_cachedir; 35 | $booster->css_mhtml_enabled_ie = TRUE; 36 | $booster->css_source = $source; 37 | $booster->css_totalparts = $totalparts; 38 | $booster->css_part = $part; 39 | 40 | // Check if file gets requested with an eTag, serve 304 if nothing changed 41 | $etag = md5( 42 | $source. 43 | intval($booster->debug). 44 | intval($booster->librarydebug). 45 | intval($booster->css_hosted_minifier). 46 | $booster->filestime 47 | ); 48 | 49 | if(@$_SERVER['HTTP_IF_NONE_MATCH'] === $etag) 50 | { 51 | header('HTTP/1.1 304 Not Modified'); 52 | exit(); 53 | } 54 | $css = $booster->css(); 55 | header("Cache-Control: max-age=2592000, public"); 56 | header("Expires: ".gmdate('D, d M Y H:i:s', mktime(date('h') + (24 * 35)))." GMT"); 57 | header("Vary: Accept-Encoding"); 58 | header("Content-type: text/css"); 59 | header("ETag: ".$etag); 60 | 61 | if(isset($booster_use_ob_gzhandler)) 62 | { 63 | for($i=0;$i -------------------------------------------------------------------------------- /booster/booster_js.php: -------------------------------------------------------------------------------- 1 | 21 | * 22 | ------------------------------------------------------------------------*/ 23 | include('booster_inc.php'); 24 | 25 | ((isset($_GET['dir'])) ? $source = str_replace('>','..',rtrim(preg_replace('/[^a-z0-9,\-_\.\/>]/i','',$_GET['dir']),'/')) : $source = 'js'); 26 | ((isset($_GET['cachedir'])) ? $booster_cachedir = str_replace('>','..',rtrim(preg_replace('/[^a-z0-9,\-_\.\/>]/i','',$_GET['cachedir']),'/')) : $booster_cachedir = 'booster_cache'); 27 | 28 | $booster = new Booster(); 29 | if(isset($_GET['debug']) && $_GET['debug'] == 1) $booster->debug = TRUE; 30 | if(isset($_GET['librarydebug']) && $_GET['librarydebug'] == 1) $booster->librarydebug = TRUE; 31 | if(isset($_GET['js_minify']) && $_GET['js_minify'] == 0) $booster->js_minify = FALSE; 32 | if(isset($_GET['js_hosted_minifier']) && $_GET['js_hosted_minifier'] == 1) $booster->js_hosted_minifier = TRUE; 33 | $booster->booster_cachedir = $booster_cachedir; 34 | $booster->js_source = $source; 35 | 36 | // Check if file gets requested with an eTag, serve 304 if nothing changed 37 | $etag = md5( 38 | $source. 39 | intval($booster->debug). 40 | intval($booster->librarydebug). 41 | intval($booster->js_minify). 42 | intval($booster->js_hosted_minifier). 43 | $booster->filestime 44 | ); 45 | 46 | if(@$_SERVER['HTTP_IF_NONE_MATCH'] === $etag) 47 | { 48 | header('HTTP/1.1 304 Not Modified'); 49 | exit(); 50 | } 51 | $js = $booster->js(); 52 | header("Cache-Control: max-age=2592000, public"); 53 | header("Expires: ".gmdate('D, d M Y H:i:s', mktime(date('h') + (24 * 35)))." GMT"); 54 | header("Vary: Accept-Encoding"); 55 | header("Content-type: text/javascript"); 56 | header("ETag: ".$etag); 57 | 58 | if(isset($booster_use_ob_gzhandler)) 59 | { 60 | for($i=0;$i -------------------------------------------------------------------------------- /booster/booster_mhtml.php: -------------------------------------------------------------------------------- 1 | 21 | * 22 | ------------------------------------------------------------------------*/ 23 | include('booster_inc.php'); 24 | 25 | ((isset($_GET['dir'])) ? $source = str_replace('>','..',rtrim(preg_replace('/[^a-z0-9,\-_\.\/>]/i','',preg_replace('/!.+/i','',$_GET['dir'])),'/')) : $source = 'css'); 26 | ((isset($_GET['cachedir'])) ? $booster_cachedir = str_replace('>','..',rtrim(preg_replace('/[^a-z0-9,\-_\.\/>]/i','',$_GET['cachedir']),'/')) : $booster_cachedir = 'booster_cache'); 27 | 28 | $booster = new Booster(); 29 | $booster->booster_cachedir = $booster_cachedir; 30 | $booster->css_source = $source; 31 | 32 | // Check if file gets requested with an eTag, serve 304 if nothing changed 33 | $etag = md5($source.$booster->mhtmltime()); 34 | 35 | if(@$_SERVER['HTTP_IF_NONE_MATCH'] === $etag) 36 | { 37 | header('HTTP/1.1 304 Not Modified'); 38 | exit(); 39 | } 40 | 41 | $mhtml = $booster->mhtml(); 42 | header("Cache-Control: max-age=2592000, public"); 43 | header("Expires: ".gmdate('D, d M Y H:i:s', mktime(date('h') + (24 * 35)))." GMT"); 44 | header("Vary: Accept-Encoding"); 45 | header("Content-type: text/plain"); 46 | header("ETag: ".$etag); 47 | 48 | if(isset($booster_use_ob_gzhandler)) 49 | { 50 | for($i=0;$i -------------------------------------------------------------------------------- /booster/compiler/COPYING: -------------------------------------------------------------------------------- 1 | 2 | Apache License 3 | Version 2.0, January 2004 4 | http://www.apache.org/licenses/ 5 | 6 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 7 | 8 | 1. Definitions. 9 | 10 | "License" shall mean the terms and conditions for use, reproduction, 11 | and distribution as defined by Sections 1 through 9 of this document. 12 | 13 | "Licensor" shall mean the copyright owner or entity authorized by 14 | the copyright owner that is granting the License. 15 | 16 | "Legal Entity" shall mean the union of the acting entity and all 17 | other entities that control, are controlled by, or are under common 18 | control with that entity. For the purposes of this definition, 19 | "control" means (i) the power, direct or indirect, to cause the 20 | direction or management of such entity, whether by contract or 21 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 22 | outstanding shares, or (iii) beneficial ownership of such entity. 23 | 24 | "You" (or "Your") shall mean an individual or Legal Entity 25 | exercising permissions granted by this License. 26 | 27 | "Source" form shall mean the preferred form for making modifications, 28 | including but not limited to software source code, documentation 29 | source, and configuration files. 30 | 31 | "Object" form shall mean any form resulting from mechanical 32 | transformation or translation of a Source form, including but 33 | not limited to compiled object code, generated documentation, 34 | and conversions to other media types. 35 | 36 | "Work" shall mean the work of authorship, whether in Source or 37 | Object form, made available under the License, as indicated by a 38 | copyright notice that is included in or attached to the work 39 | (an example is provided in the Appendix below). 40 | 41 | "Derivative Works" shall mean any work, whether in Source or Object 42 | form, that is based on (or derived from) the Work and for which the 43 | editorial revisions, annotations, elaborations, or other modifications 44 | represent, as a whole, an original work of authorship. For the purposes 45 | of this License, Derivative Works shall not include works that remain 46 | separable from, or merely link (or bind by name) to the interfaces of, 47 | the Work and Derivative Works thereof. 48 | 49 | "Contribution" shall mean any work of authorship, including 50 | the original version of the Work and any modifications or additions 51 | to that Work or Derivative Works thereof, that is intentionally 52 | submitted to Licensor for inclusion in the Work by the copyright owner 53 | or by an individual or Legal Entity authorized to submit on behalf of 54 | the copyright owner. For the purposes of this definition, "submitted" 55 | means any form of electronic, verbal, or written communication sent 56 | to the Licensor or its representatives, including but not limited to 57 | communication on electronic mailing lists, source code control systems, 58 | and issue tracking systems that are managed by, or on behalf of, the 59 | Licensor for the purpose of discussing and improving the Work, but 60 | excluding communication that is conspicuously marked or otherwise 61 | designated in writing by the copyright owner as "Not a Contribution." 62 | 63 | "Contributor" shall mean Licensor and any individual or Legal Entity 64 | on behalf of whom a Contribution has been received by Licensor and 65 | subsequently incorporated within the Work. 66 | 67 | 2. Grant of Copyright License. Subject to the terms and conditions of 68 | this License, each Contributor hereby grants to You a perpetual, 69 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 70 | copyright license to reproduce, prepare Derivative Works of, 71 | publicly display, publicly perform, sublicense, and distribute the 72 | Work and such Derivative Works in Source or Object form. 73 | 74 | 3. Grant of Patent License. Subject to the terms and conditions of 75 | this License, each Contributor hereby grants to You a perpetual, 76 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 77 | (except as stated in this section) patent license to make, have made, 78 | use, offer to sell, sell, import, and otherwise transfer the Work, 79 | where such license applies only to those patent claims licensable 80 | by such Contributor that are necessarily infringed by their 81 | Contribution(s) alone or by combination of their Contribution(s) 82 | with the Work to which such Contribution(s) was submitted. If You 83 | institute patent litigation against any entity (including a 84 | cross-claim or counterclaim in a lawsuit) alleging that the Work 85 | or a Contribution incorporated within the Work constitutes direct 86 | or contributory patent infringement, then any patent licenses 87 | granted to You under this License for that Work shall terminate 88 | as of the date such litigation is filed. 89 | 90 | 4. Redistribution. You may reproduce and distribute copies of the 91 | Work or Derivative Works thereof in any medium, with or without 92 | modifications, and in Source or Object form, provided that You 93 | meet the following conditions: 94 | 95 | (a) You must give any other recipients of the Work or 96 | Derivative Works a copy of this License; and 97 | 98 | (b) You must cause any modified files to carry prominent notices 99 | stating that You changed the files; and 100 | 101 | (c) You must retain, in the Source form of any Derivative Works 102 | that You distribute, all copyright, patent, trademark, and 103 | attribution notices from the Source form of the Work, 104 | excluding those notices that do not pertain to any part of 105 | the Derivative Works; and 106 | 107 | (d) If the Work includes a "NOTICE" text file as part of its 108 | distribution, then any Derivative Works that You distribute must 109 | include a readable copy of the attribution notices contained 110 | within such NOTICE file, excluding those notices that do not 111 | pertain to any part of the Derivative Works, in at least one 112 | of the following places: within a NOTICE text file distributed 113 | as part of the Derivative Works; within the Source form or 114 | documentation, if provided along with the Derivative Works; or, 115 | within a display generated by the Derivative Works, if and 116 | wherever such third-party notices normally appear. The contents 117 | of the NOTICE file are for informational purposes only and 118 | do not modify the License. You may add Your own attribution 119 | notices within Derivative Works that You distribute, alongside 120 | or as an addendum to the NOTICE text from the Work, provided 121 | that such additional attribution notices cannot be construed 122 | as modifying the License. 123 | 124 | You may add Your own copyright statement to Your modifications and 125 | may provide additional or different license terms and conditions 126 | for use, reproduction, or distribution of Your modifications, or 127 | for any such Derivative Works as a whole, provided Your use, 128 | reproduction, and distribution of the Work otherwise complies with 129 | the conditions stated in this License. 130 | 131 | 5. Submission of Contributions. Unless You explicitly state otherwise, 132 | any Contribution intentionally submitted for inclusion in the Work 133 | by You to the Licensor shall be under the terms and conditions of 134 | this License, without any additional terms or conditions. 135 | Notwithstanding the above, nothing herein shall supersede or modify 136 | the terms of any separate license agreement you may have executed 137 | with Licensor regarding such Contributions. 138 | 139 | 6. Trademarks. This License does not grant permission to use the trade 140 | names, trademarks, service marks, or product names of the Licensor, 141 | except as required for reasonable and customary use in describing the 142 | origin of the Work and reproducing the content of the NOTICE file. 143 | 144 | 7. Disclaimer of Warranty. Unless required by applicable law or 145 | agreed to in writing, Licensor provides the Work (and each 146 | Contributor provides its Contributions) on an "AS IS" BASIS, 147 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 148 | implied, including, without limitation, any warranties or conditions 149 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 150 | PARTICULAR PURPOSE. You are solely responsible for determining the 151 | appropriateness of using or redistributing the Work and assume any 152 | risks associated with Your exercise of permissions under this License. 153 | 154 | 8. Limitation of Liability. In no event and under no legal theory, 155 | whether in tort (including negligence), contract, or otherwise, 156 | unless required by applicable law (such as deliberate and grossly 157 | negligent acts) or agreed to in writing, shall any Contributor be 158 | liable to You for damages, including any direct, indirect, special, 159 | incidental, or consequential damages of any character arising as a 160 | result of this License or out of the use or inability to use the 161 | Work (including but not limited to damages for loss of goodwill, 162 | work stoppage, computer failure or malfunction, or any and all 163 | other commercial damages or losses), even if such Contributor 164 | has been advised of the possibility of such damages. 165 | 166 | 9. Accepting Warranty or Additional Liability. While redistributing 167 | the Work or Derivative Works thereof, You may choose to offer, 168 | and charge a fee for, acceptance of support, warranty, indemnity, 169 | or other liability obligations and/or rights consistent with this 170 | License. However, in accepting such obligations, You may act only 171 | on Your own behalf and on Your sole responsibility, not on behalf 172 | of any other Contributor, and only if You agree to indemnify, 173 | defend, and hold each Contributor harmless for any liability 174 | incurred by, or claims asserted against, such Contributor by reason 175 | of your accepting any such warranty or additional liability. 176 | 177 | END OF TERMS AND CONDITIONS 178 | 179 | APPENDIX: How to apply the Apache License to your work. 180 | 181 | To apply the Apache License to your work, attach the following 182 | boilerplate notice, with the fields enclosed by brackets "[]" 183 | replaced with your own identifying information. (Don't include 184 | the brackets!) The text should be enclosed in the appropriate 185 | comment syntax for the file format. We also recommend that a 186 | file or class name and description of purpose be included on the 187 | same "printed page" as the copyright notice for easier 188 | identification within third-party archives. 189 | 190 | Copyright [yyyy] [name of copyright owner] 191 | 192 | Licensed under the Apache License, Version 2.0 (the "License"); 193 | you may not use this file except in compliance with the License. 194 | You may obtain a copy of the License at 195 | 196 | http://www.apache.org/licenses/LICENSE-2.0 197 | 198 | Unless required by applicable law or agreed to in writing, software 199 | distributed under the License is distributed on an "AS IS" BASIS, 200 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 201 | See the License for the specific language governing permissions and 202 | limitations under the License. 203 | -------------------------------------------------------------------------------- /booster/compiler/README: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2009 Google Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | // 18 | // Contents 19 | // 20 | 21 | The Closure Compiler performs checking, instrumentation, and 22 | optimizations on JavaScript code. The purpose of this README is to 23 | explain how to build and run the Closure Compiler. 24 | 25 | The Closure Compiler requires Java 6 or higher. 26 | http://www.java.com/ 27 | 28 | 29 | // 30 | // Building The Closure Compiler 31 | // 32 | 33 | There are three ways to get a Closure Compiler executable. 34 | 35 | 1) Use one we built for you. 36 | 37 | Pre-built Closure binaries can be found at 38 | http://code.google.com/p/closure-compiler/downloads/list 39 | 40 | 41 | 2) Check out the source and build it with Apache Ant. 42 | 43 | First, check out the full source tree of the Closure Compiler. There 44 | are instructions on how to do this at the project site. 45 | http://code.google.com/p/closure-compiler/source/checkout 46 | 47 | Apache Ant is a cross-platform build tool. 48 | http://ant.apache.org/ 49 | 50 | At the root of the source tree, there is an Ant file named 51 | build.xml. To use it, navigate to the same directory and type the 52 | command 53 | 54 | ant jar 55 | 56 | This will produce a jar file called "build/compiler.jar". 57 | 58 | 59 | 3) Check out the source and build it with Eclipse. 60 | 61 | Eclipse is a cross-platform IDE. 62 | http://www.eclipse.org/ 63 | 64 | Under Eclipse's File menu, click "New > Project ..." and create a 65 | "Java Project." You will see an options screen. Give the project a 66 | name, select "Create project from existing source," and choose the 67 | root of the checked-out source tree as the existing directory. Verify 68 | that you are using JRE version 6 or higher. 69 | 70 | Eclipse can use the build.xml file to discover rules. When you 71 | navigate to the build.xml file, you will see all the build rules in 72 | the "Outline" pane. Run the "jar" rule to build the compiler in 73 | build/compiler.jar. 74 | 75 | 76 | // 77 | // Running The Closure Compiler 78 | // 79 | 80 | Once you have the jar binary, running the Closure Compiler is straightforward. 81 | 82 | On the command line, type 83 | 84 | java -jar compiler.jar 85 | 86 | This starts the compiler in interactive mode. Type 87 | 88 | var x = 17 + 25; 89 | 90 | then hit "Enter", then hit "Ctrl-Z" (on Windows) or "Ctrl-D" (on Mac or Linux) 91 | and "Enter" again. The Compiler will respond: 92 | 93 | var x=42; 94 | 95 | The Closure Compiler has many options for reading input from a file, 96 | writing output to a file, checking your code, and running 97 | optimizations. To learn more, type 98 | 99 | java -jar compiler.jar --help 100 | 101 | You can read more detailed documentation about the many flags at 102 | http://code.google.com/closure/compiler/docs/gettingstarted_app.html 103 | 104 | 105 | // 106 | // Compiling Multiple Scripts 107 | // 108 | 109 | If you have multiple scripts, you should compile them all together with 110 | one compile command. 111 | 112 | java -jar compiler.jar --js=in1.js --js=in2.js ... --js_output_file=out.js 113 | 114 | The Closure Compiler will concatenate the files in the order they're 115 | passed at the command line. 116 | 117 | If you need to compile many, many scripts together, you may start to 118 | run into problems with managing dependencies between scripts. You 119 | should check out the Closure Library. It contains functions for 120 | enforcing dependencies between scripts, and a tool called calcdeps.py 121 | that knows how to give scripts to the Closure Compiler in the right 122 | order. 123 | 124 | http://code.google.com/p/closure-library/ 125 | 126 | // 127 | // Licensing 128 | // 129 | 130 | Unless otherwise stated, all source files are licensed under 131 | the Apache License, Version 2.0. 132 | 133 | 134 | ----- 135 | Code under: 136 | src/com/google/javascript/rhino 137 | test/com/google/javascript/rhino 138 | 139 | URL: http://www.mozilla.org/rhino 140 | Version: 1.5R3, with heavy modifications 141 | License: Netscape Public License and MPL / GPL dual license 142 | 143 | Description: A partial copy of Mozilla Rhino. Mozilla Rhino is an 144 | implementation of JavaScript for the JVM. The JavaScript parser and 145 | the parse tree data structures were extracted and modified 146 | significantly for use by Google's JavaScript compiler. 147 | 148 | Local Modifications: The packages have been renamespaced. All code not 149 | relavant to parsing has been removed. A JSDoc parser and static typing 150 | system have been added. 151 | 152 | 153 | ----- 154 | Code in: 155 | lib/libtrunk_rhino_parser_jarjared.jar 156 | 157 | Rhino 158 | URL: http://www.mozilla.org/rhino 159 | Version: Trunk 160 | License: Netscape Public License and MPL / GPL dual license 161 | 162 | Description: Mozilla Rhino is an implementation of JavaScript for the JVM. 163 | 164 | Local Modifications: None. We've used JarJar to renamespace the code 165 | post-compilation. See: 166 | http://code.google.com/p/jarjar/ 167 | 168 | 169 | ----- 170 | Code in: 171 | lib/args4j_deploy.jar 172 | 173 | Args4j 174 | URL: https://args4j.dev.java.net/ 175 | Version: 2.0.9 176 | License: MIT 177 | 178 | Description: 179 | args4j is a small Java class library that makes it easy to parse command line 180 | options/arguments in your CUI application. 181 | 182 | Local Modifications: None. 183 | 184 | 185 | ----- 186 | Code in: 187 | lib/google_common_deploy.jar 188 | 189 | Guava Libraries 190 | URL: http://code.google.com/p/guava-libraries/ 191 | Version: Trunk 192 | License: Apache License 2.0 193 | 194 | Description: Google's core Java libraries. 195 | 196 | Local Modifications: None. 197 | 198 | 199 | ----- 200 | Code in: 201 | lib/hamcrest-core-1.1.jar 202 | 203 | Hamcrest 204 | URL: http://code.google.com/p/hamcrest 205 | License: BSD 206 | License File: LICENSE 207 | 208 | Description: 209 | Provides a library of matcher objects (also known as constraints or 210 | predicates) allowing 'match' rules to be defined declaratively, to be used in 211 | other frameworks. Typical scenarios include testing frameworks, mocking 212 | libraries and UI validation rules. 213 | 214 | Local modifications: 215 | The original jars contained both source code and compiled classes. 216 | 217 | hamcrest-core-1.1.jar just contains the compiled classes. 218 | 219 | 220 | ---- 221 | Code in: 222 | lib/junit.jar 223 | 224 | JUnit 225 | URL: http://sourceforge.net/projects/junit/ 226 | Version: 4.5 227 | License: Common Public License 1.0 228 | 229 | Description: A framework for writing and running automated tests in Java. 230 | 231 | Local Modifications: None. 232 | 233 | 234 | --- 235 | Code in: 236 | lib/protobuf_deploy.jar 237 | 238 | Protocol Buffers 239 | URL: http://code.google.com/p/protobuf/ 240 | Version: 2.2.0a 241 | License: New BSD License 242 | 243 | Description: Supporting libraries for protocol buffers, 244 | an encoding of structured data. 245 | 246 | Local Modifications: None 247 | 248 | 249 | --- 250 | Code in: 251 | lib/ant_deploy.jar 252 | 253 | URL: http://ant.apache.org/bindownload.cgi 254 | Version: 1.6.5 255 | License: Apache License 2.0 256 | Description: 257 | Ant is a Java based build tool. In theory it is kind of like "make" 258 | without make's wrinkles and with the full portability of pure java code. 259 | 260 | Local Modifications: 261 | Modified apache-ant-1.6.5/bin/ant to look in the ant.runfiles directory 262 | -------------------------------------------------------------------------------- /booster/compiler/compiler.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schepp/CSS-JS-Booster/14f6a84eb1a120ac14f928808e2b6f211f443edf/booster/compiler/compiler.jar -------------------------------------------------------------------------------- /booster/htaccess/.htaccess: -------------------------------------------------------------------------------- 1 | #CSS-JS-Booster Start################################################# 2 | #Turn ETagging off 3 | FileETag none 4 | 5 | #Turn ETagging on for MHTML-file 6 | 7 | FileETag MTime Size 8 | 9 | 10 | #Force caching of some common files for some time in the browser's cache, to save bandwidth. 11 | #"Mod_expires" needs to be installed in your Apache server, to use this feature. 12 | 13 | ExpiresActive On 14 | ExpiresDefault "access plus 1 minutes" 15 | ExpiresByType text/html "access plus 1 minutes" 16 | ExpiresByType text/css "access plus 1 months" 17 | ExpiresByType text/javascript "access plus 1 months" 18 | ExpiresByType text/plain "access plus 1 months" 19 | ExpiresByType application/x-javascript "access plus 1 months" 20 | ExpiresByType application/x-shockwave-flash "access plus 1 months" 21 | ExpiresByType image/gif "access plus 1 years" 22 | ExpiresByType image/jpeg "access plus 1 years" 23 | ExpiresByType image/jpg "access plus 1 years" 24 | ExpiresByType image/png "access plus 1 years" 25 | ExpiresByType image/x-icon "access plus 1 years" 26 | 27 | ExpiresActive Off 28 | 29 | 30 | 31 | #Alternative caching using Apache's "mod_headers", if it's installed. 32 | #Caching of common files - ENABLED 33 | 34 | 35 | Header set Cache-Control "max-age=2592000, public" 36 | 37 | #Remove comments, to disable video caching to the user's browser 38 | # 39 | #Header set Cache-Control "max-age=0, public" 40 | # 41 | 42 | #CSS-JS-Booster End################################################# -------------------------------------------------------------------------------- /booster/jsmin/jsmin.php: -------------------------------------------------------------------------------- 1 | 41 | * @copyright 2002 Douglas Crockford (jsmin.c) 42 | * @copyright 2008 Ryan Grove (PHP port) 43 | * @license http://opensource.org/licenses/mit-license.php MIT License 44 | * @version 1.1.1 (2008-03-02) 45 | * @link http://code.google.com/p/jsmin-php/ 46 | */ 47 | 48 | class JSMin { 49 | const ORD_LF = 10; 50 | const ORD_SPACE = 32; 51 | 52 | protected $a = ''; 53 | protected $b = ''; 54 | protected $input = ''; 55 | protected $inputIndex = 0; 56 | protected $inputLength = 0; 57 | protected $lookAhead = null; 58 | protected $output = ''; 59 | 60 | // -- Public Static Methods -------------------------------------------------- 61 | 62 | public static function minify($js) { 63 | $jsmin = new JSMin($js); 64 | return $jsmin->min(); 65 | } 66 | 67 | // -- Public Instance Methods ------------------------------------------------ 68 | 69 | public function __construct($input) { 70 | $this->input = str_replace("\r\n", "\n", $input); 71 | $this->inputLength = strlen($this->input); 72 | } 73 | 74 | // -- Protected Instance Methods --------------------------------------------- 75 | 76 | protected function action($d) { 77 | switch($d) { 78 | case 1: 79 | $this->output .= $this->a; 80 | 81 | case 2: 82 | $this->a = $this->b; 83 | 84 | if ($this->a === "'" || $this->a === '"') { 85 | for (;;) { 86 | $this->output .= $this->a; 87 | $this->a = $this->get(); 88 | 89 | if ($this->a === $this->b) { 90 | break; 91 | } 92 | 93 | if (ord($this->a) <= self::ORD_LF) { 94 | throw new JSMinException('Unterminated string literal.'); 95 | } 96 | 97 | if ($this->a === '\\') { 98 | $this->output .= $this->a; 99 | $this->a = $this->get(); 100 | } 101 | } 102 | } 103 | 104 | case 3: 105 | $this->b = $this->next(); 106 | 107 | if ($this->b === '/' && ( 108 | $this->a === '(' || $this->a === ',' || $this->a === '=' || 109 | $this->a === ':' || $this->a === '[' || $this->a === '!' || 110 | $this->a === '&' || $this->a === '|' || $this->a === '?')) { 111 | 112 | $this->output .= $this->a . $this->b; 113 | 114 | for (;;) { 115 | $this->a = $this->get(); 116 | 117 | if ($this->a === '/') { 118 | break; 119 | } elseif ($this->a === '\\') { 120 | $this->output .= $this->a; 121 | $this->a = $this->get(); 122 | } elseif (ord($this->a) <= self::ORD_LF) { 123 | throw new JSMinException('Unterminated regular expression '. 124 | 'literal.'); 125 | } 126 | 127 | $this->output .= $this->a; 128 | } 129 | 130 | $this->b = $this->next(); 131 | } 132 | } 133 | } 134 | 135 | protected function get() { 136 | $c = $this->lookAhead; 137 | $this->lookAhead = null; 138 | 139 | if ($c === null) { 140 | if ($this->inputIndex < $this->inputLength) { 141 | $c = substr($this->input, $this->inputIndex, 1); 142 | $this->inputIndex += 1; 143 | } else { 144 | $c = null; 145 | } 146 | } 147 | 148 | if ($c === "\r") { 149 | return "\n"; 150 | } 151 | 152 | if ($c === null || $c === "\n" || ord($c) >= self::ORD_SPACE) { 153 | return $c; 154 | } 155 | 156 | return ' '; 157 | } 158 | 159 | protected function isAlphaNum($c) { 160 | return ord($c) > 126 || $c === '\\' || preg_match('/^[\w\$]$/', $c) === 1; 161 | } 162 | 163 | protected function min() { 164 | $this->a = "\n"; 165 | $this->action(3); 166 | 167 | while ($this->a !== null) { 168 | switch ($this->a) { 169 | case ' ': 170 | if ($this->isAlphaNum($this->b)) { 171 | $this->action(1); 172 | } else { 173 | $this->action(2); 174 | } 175 | break; 176 | 177 | case "\n": 178 | switch ($this->b) { 179 | case '{': 180 | case '[': 181 | case '(': 182 | case '+': 183 | case '-': 184 | $this->action(1); 185 | break; 186 | 187 | case ' ': 188 | $this->action(3); 189 | break; 190 | 191 | default: 192 | if ($this->isAlphaNum($this->b)) { 193 | $this->action(1); 194 | } 195 | else { 196 | $this->action(2); 197 | } 198 | } 199 | break; 200 | 201 | default: 202 | switch ($this->b) { 203 | case ' ': 204 | if ($this->isAlphaNum($this->a)) { 205 | $this->action(1); 206 | break; 207 | } 208 | 209 | $this->action(3); 210 | break; 211 | 212 | case "\n": 213 | switch ($this->a) { 214 | case '}': 215 | case ']': 216 | case ')': 217 | case '+': 218 | case '-': 219 | case '"': 220 | case "'": 221 | $this->action(1); 222 | break; 223 | 224 | default: 225 | if ($this->isAlphaNum($this->a)) { 226 | $this->action(1); 227 | } 228 | else { 229 | $this->action(3); 230 | } 231 | } 232 | break; 233 | 234 | default: 235 | $this->action(1); 236 | break; 237 | } 238 | } 239 | } 240 | 241 | return $this->output; 242 | } 243 | 244 | protected function next() { 245 | $c = $this->get(); 246 | 247 | if ($c === '/') { 248 | switch($this->peek()) { 249 | case '/': 250 | for (;;) { 251 | $c = $this->get(); 252 | 253 | if (ord($c) <= self::ORD_LF) { 254 | return $c; 255 | } 256 | } 257 | 258 | case '*': 259 | $this->get(); 260 | 261 | for (;;) { 262 | switch($this->get()) { 263 | case '*': 264 | if ($this->peek() === '/') { 265 | $this->get(); 266 | return ' '; 267 | } 268 | break; 269 | 270 | case null: 271 | throw new JSMinException('Unterminated comment.'); 272 | } 273 | } 274 | 275 | default: 276 | return $c; 277 | } 278 | } 279 | 280 | return $c; 281 | } 282 | 283 | protected function peek() { 284 | $this->lookAhead = $this->get(); 285 | return $this->lookAhead; 286 | } 287 | } 288 | 289 | // -- Exceptions --------------------------------------------------------------- 290 | class JSMinException extends Exception {} 291 | ?> -------------------------------------------------------------------------------- /booster/wp_booster.php: -------------------------------------------------------------------------------- 1 | = 0) 87 | { 88 | $booster_cache_dir = BOOSTER_CACHE_DIR; 89 | $js_plain = ''; 90 | $booster_out = ''; 91 | $booster_folder = explode('/',rtrim(str_replace('\\','/',realpath(dirname(__FILE__))),'/')); 92 | $booster_folder = $booster_folder[count($booster_folder) - 1]; 93 | $booster = new Booster(); 94 | if(!is_dir($booster_cache_dir)) 95 | { 96 | @mkdir($booster_cache_dir,0777); 97 | @chmod($booster_cache_dir,0777); 98 | } 99 | if(is_dir($booster_cache_dir) && is_writable($booster_cache_dir) && substr(decoct(fileperms($booster_cache_dir)),1) == "0777") 100 | { 101 | $booster_cache_reldir = $booster->getpath(str_replace('\\','/',realpath($booster_cache_dir)),str_replace('\\','/',dirname(__FILE__))); 102 | } 103 | else 104 | { 105 | $booster_cache_dir = rtrim(str_replace('\\','/',dirname(__FILE__)),'/').'/../../booster_cache'; 106 | $booster_cache_reldir = '../../booster_cache'; 107 | } 108 | $booster->booster_cachedir = $booster_cache_reldir; 109 | $booster->js_minify = FALSE; 110 | 111 | // Calculate relative path from root to Booster directory 112 | $root_to_booster_path = $booster->getpath(str_replace('\\','/',dirname(__FILE__)),str_replace('\\','/',dirname(realpath(ABSPATH)))); 113 | 114 | if(preg_match_all('//ims',$out,$headtreffer,PREG_PATTERN_ORDER) > 0) 115 | { 116 | // Prevent processing of (conditional) comments 117 | $headtreffer[0][0] = preg_replace('//ims','',$headtreffer[0][0]); 118 | 119 | // Detect charset 120 | if(preg_match('//',$headtreffer[0][0],$charset)) 121 | { 122 | $headtreffer[0][0] = str_replace($charset[1],'',$headtreffer[0][0]); 123 | $charset = $charset[1]; 124 | } 125 | else $charset = ''; 126 | 127 | // CSS part 128 | $css_rel_files = array(); 129 | 130 | // Start width inline-files 131 | preg_match_all('/]*>(.*?)<\/style>/ims',$headtreffer[0][0],$treffer,PREG_PATTERN_ORDER); 132 | for($i=0;$igetpath($booster_cache_dir.'/',str_replace('\\','/',dirname(realpath(__FILE__))).'/'); 151 | $linkhref = get_option('siteurl').'/wp-content/plugins/'.$booster_folder.'/'.$booster_to_file_path.'/'.basename($filename); 152 | 153 | $booster_cache_dir = $booster_cache_dir; 154 | $linkcode = ''; 155 | $headtreffer[0][0] = str_replace($treffer[0][$i],$linkcode,$headtreffer[0][0]); 156 | $out = str_replace($treffer[0][$i],$linkcode,$out); 157 | } 158 | else 159 | { 160 | $linkcode = ''.$treffer[0][$i]; 161 | $headtreffer[0][0] = str_replace($treffer[0][$i],$linkcode,$headtreffer[0][0]); 162 | $out = str_replace($treffer[0][$i],$linkcode,$out); 163 | } 164 | } 165 | 166 | // Continue with external files 167 | preg_match_all('/]*?href=[\'"]*?([^\'"]+?\.css)[\'"]*?[^>]*?>/ims',$headtreffer[0][0],$treffer,PREG_PATTERN_ORDER); 168 | for($i=0;$i',$out); 194 | 195 | // Calculate relative path from Booster to file 196 | $booster_to_file_path = $booster->getpath(str_replace('\\','/',dirname($filename)),str_replace('\\','/',dirname(__FILE__))); 197 | $filename = $booster_to_file_path.'/'.basename($filename); 198 | 199 | // Create sub-arrays if not yet there 200 | if(!isset($css_rel_files[$media])) $css_rel_files[$media] = array(); 201 | if(!isset($css_abs_files[$media])) $css_abs_files[$media] = array(); 202 | if(!isset($css_rel_files[$media][$rel])) $css_rel_files[$media][$rel] = array(); 203 | if(!isset($css_abs_files[$media][$rel])) $css_abs_files[$media][$rel] = array(); 204 | 205 | // Enqueue file to respective array 206 | array_push($css_rel_files[$media][$rel],$filename); 207 | array_push($css_abs_files[$media][$rel],rtrim(str_replace('\\','/',dirname(realpath(ABSPATH))),'/').'/'.$root_to_booster_path.'/'.$filename); 208 | } 209 | else $out = str_replace($treffer[0][$i],$treffer[0][$i].'',$out); 210 | } 211 | // Leave untouched but put calculated local file name into a comment for debugging 212 | else $out = str_replace($treffer[0][$i],$treffer[0][$i].'',$out); 213 | } 214 | 215 | // Creating Booster markup for each media and relation seperately 216 | $links = ''; 217 | reset($css_rel_files); 218 | for($i=0;$igetfilestime($media_rel[key($media_rel)],'css'); 226 | 227 | $media_rel[key($media_rel)] = implode(',',$media_rel[key($media_rel)]); 228 | $media_abs[key($media_rel)] = implode(',',$media_abs[key($media_rel)]); 229 | $link = ''; 240 | 241 | if(key($css_rel_files) != 'print') 242 | { 243 | $links .= $link."\r\n"; 244 | } 245 | else 246 | { 247 | $links .= ''."\r\n"; 248 | $js_plain .= 'jQuery(document).ready(function () { 249 | jQuery("head").append("'.addslashes($link).'"); 250 | }); 251 | '; 252 | } 253 | $links .= "\r\n"; 254 | next($media_rel); 255 | } 256 | next($css_rel_files); 257 | } 258 | 259 | // Insert markup for normal browsers and IEs (CC's now replacing former UA-sniffing) 260 | if($charset != '') $booster_out .= ''."\r\n"; 261 | $booster_out .= ''."\r\n"; 262 | $booster_out .= ''."\r\n"; 263 | $booster_out .= $links; 264 | $booster_out .= ''."\r\n"; 265 | $booster_out .= ''."\r\n"; 268 | 269 | // Injecting the result 270 | $out = str_replace('',"\r\n".$booster_out,$out); 271 | $booster_out = ''; 272 | 273 | 274 | // JS-part 275 | $js_rel_files = array(); 276 | $js_abs_files = array(); 277 | $js_parameters = array(); 278 | preg_match_all('/]*>(.*?)<\/script>/ims',$headtreffer[0][0],$treffer,PREG_PATTERN_ORDER); 279 | for($i=0;$i/ims',$treffer[0][$i],$srctreffer)) 282 | { 283 | // Get Domainname 284 | if(isset($_SERVER['SCRIPT_URI'])) 285 | { 286 | $host = parse_url($_SERVER['SCRIPT_URI'],PHP_URL_HOST); 287 | } 288 | else 289 | { 290 | $host = $_SERVER['HTTP_HOST']; 291 | } 292 | // Convert siteurl into a regex-safe expression 293 | $host = str_replace(array('/','.'),array('\/','\.'),$host); 294 | // Convert file's URI into an absolute local path 295 | $filename = preg_replace('/^http:\/\/'.$host.'[^\/]*/',rtrim($_SERVER['DOCUMENT_ROOT'],'/'),$srctreffer[1]); 296 | // If file is external 297 | if(substr($filename,0,7) == 'http://') 298 | { 299 | // Skip processing of external files altogether 300 | /* 301 | $vars_array = explode('&',html_entity_decode($srctreffer[2],ENT_QUOTES,'ISO-8859-1')); 302 | $js_parameters = array_merge($js_parameters,$vars_array); 303 | 304 | $buffered_filename = $booster_cache_dir.'/'.md5($filename).'_buffered.js'; 305 | 306 | if(!file_exists($buffered_filename) || filemtime($buffered_filename) < filemtime(__FILE__) || filemtime($buffered_filename) < (time() - (1 * 24 * 60 * 60))) 307 | { 308 | $parsed_url = parse_url($filename); 309 | $host = $parsed_url['host']; 310 | $service_uri = $parsed_url['path']; 311 | $vars = $parsed_url['query']; 312 | 313 | // Compose HTTP request header 314 | $header = "Host: $host\r\n"; 315 | $header .= "User-Agent: CSS-JS-Booster\r\n"; 316 | $header .= "Connection: close\r\n\r\n"; 317 | 318 | $fp = fsockopen($host, 80, $errno, $errstr); 319 | if($fp) 320 | { 321 | $body = ''; 322 | fputs($fp,"GET $service_uri?$vars HTTP/1.0\r\n"); 323 | fputs($fp,$header.$vars); 324 | while (!feof($fp)) { 325 | $body .= fgets($fp,65000); 326 | } 327 | 328 | fclose($fp); 329 | $body = preg_replace('/^HTTP.+?[\r\n]{1}[\r\n]{1}[\r\n]{1}/ms','',$body); 330 | @file_put_contents($buffered_filename,$body); 331 | @chmod($filename,0777); 332 | 333 | // Put file-reference inside a comment 334 | $out = str_replace($srctreffer[0],'',$out); 335 | 336 | // Enqueue file to array 337 | $booster_to_file_path = $booster->getpath(str_replace('\\','/',dirname($buffered_filename)),str_replace('\\','/',dirname(__FILE__))); 338 | array_push($js_rel_files,$booster_cache_reldir.'/'.md5($filename).'_buffered.js'); 339 | array_push($js_abs_files,rtrim(str_replace('\\','/',dirname(realpath(ABSPATH))),'/').'/'.$buffered_filename); 340 | } 341 | // Leave untouched but put calculated local file name into a comment for debugging 342 | else $out = str_replace($srctreffer[0],$srctreffer[0].'',$out); 343 | } 344 | else 345 | { 346 | // Put file-reference inside a comment 347 | $out = str_replace($srctreffer[0],'',$out); 348 | 349 | // Enqueue file to array 350 | $booster_to_file_path = $booster->getpath(str_replace('\\','/',dirname($buffered_filename)),str_replace('\\','/',dirname(__FILE__))); 351 | array_push($js_rel_files,$booster_cache_reldir.'/'.md5($filename).'_buffered.js'); 352 | array_push($js_abs_files,rtrim(str_replace('\\','/',dirname(realpath(ABSPATH))),'/').'/'.$buffered_filename); 353 | } 354 | */ 355 | } 356 | // If file is internal and does exist 357 | elseif(file_exists($filename)) 358 | { 359 | // If its a normal JavaScript-file 360 | if(substr($filename,strlen($filename) - 3,3) == '.js') 361 | { 362 | // Remove any parameters from file's URI 363 | $filename = preg_replace('/\?.*$/','',$filename); 364 | 365 | // Put file-reference inside a comment 366 | $out = str_replace($srctreffer[0],'',$out); 367 | 368 | // Calculate relative path from Booster to file 369 | $booster_to_file_path = $booster->getpath(str_replace('\\','/',dirname($filename)),str_replace('\\','/',dirname(__FILE__))); 370 | $filename = $booster_to_file_path.'/'.basename($filename); 371 | 372 | // Enqueue file to array 373 | array_push($js_rel_files,$filename); 374 | array_push($js_abs_files,rtrim(str_replace('\\','/',dirname(realpath(ABSPATH))),'/').'/'.$root_to_booster_path.'/'.$filename); 375 | } 376 | else $out = str_replace($srctreffer[0],$srctreffer[0].'',$out); 377 | } 378 | // Leave untouched but put calculated local file name into a comment for debugging 379 | else $out = str_replace($srctreffer[0],$srctreffer[0].'',$out); 380 | } 381 | else 382 | { 383 | // Save plain JS to file to keep everything in line 384 | $filename = $booster_cache_dir.'/'.md5($treffer[1][$i]).'_plain.js'; 385 | if(!file_exists($filename)) @file_put_contents($filename,$treffer[1][$i]); 386 | @chmod($filename,0777); 387 | 388 | // Enqueue file to array 389 | $booster_to_file_path = $booster->getpath(str_replace('\\','/',dirname($filename)),str_replace('\\','/',dirname(__FILE__))); 390 | array_push($js_rel_files,$booster_cache_reldir.'/'.md5($treffer[1][$i]).'_plain.js'); 391 | #array_push($js_rel_files,$booster_cache_reldir.'/'.md5($treffer[1][$i]).'_plain.js'); 392 | array_push($js_abs_files,rtrim(str_replace('\\','/',dirname(realpath(ABSPATH))),'/').'/'.$filename); 393 | 394 | //$js_plain .= "try{".$treffer[1][$i]; 395 | $out = str_replace($treffer[0][$i],'',$out); 396 | } 397 | } 398 | 399 | // Creating Booster markup 400 | $js_rel_files = implode(',',$js_rel_files); 401 | $js_abs_files = implode(',',$js_abs_files); 402 | $js_plain = preg_replace('/\/\*.*?\*\//ims','',$js_plain); 403 | $js_plain .= 'try {document.execCommand("BackgroundImageCache", false, true);} catch(err) {} 404 | '; 405 | 406 | $booster_out .= ' 414 | '; 415 | $booster_out .= "\r\n"; 416 | #$booster_out .= "\r\n\r\n"; 417 | 418 | // Injecting the result 419 | $out = str_replace('',$booster_out.'',$out); 420 | } 421 | } 422 | else $out = str_replace('You need to upgrade to PHP 5 or higher to have CSS-JS-Booster work. You currently are running on PHP '.phpversion().' 442 | -------------------------------------------------------------------------------- /booster/yuicompressor/yuicompressor-2.4.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schepp/CSS-JS-Booster/14f6a84eb1a120ac14f928808e2b6f211f443edf/booster/yuicompressor/yuicompressor-2.4.2.jar -------------------------------------------------------------------------------- /examples/example1/.htaccess: -------------------------------------------------------------------------------- 1 | #CSS-JS-Booster Start################################################# 2 | #Turn ETagging off 3 | FileETag none 4 | 5 | #Turn ETagging on for Booster PHP files 6 | 7 | FileETag MTime Size 8 | 9 | #Give access even if webmaster has globally forbidden access 10 | Order deny,allow 11 | Allow from all 12 | Satisfy any 13 | 14 | 15 | #Force caching of some common files for some time in the browser's cache, to save bandwidth. 16 | #"Mod_expires" needs to be installed in your Apache server, to use this feature. 17 | 18 | ExpiresActive On 19 | ExpiresDefault "access plus 1 minutes" 20 | ExpiresByType text/html "access plus 1 minutes" 21 | ExpiresByType text/css "access plus 35 days" 22 | ExpiresByType text/javascript "access plus 35 days" 23 | ExpiresByType text/plain "access plus 35 days" 24 | ExpiresByType application/x-javascript "access plus 35 days" 25 | ExpiresByType application/x-shockwave-flash "access plus 35 days" 26 | ExpiresByType image/gif "access plus 1 years" 27 | ExpiresByType image/jpeg "access plus 1 years" 28 | ExpiresByType image/jpg "access plus 1 years" 29 | ExpiresByType image/png "access plus 1 years" 30 | ExpiresByType image/x-icon "access plus 1 years" 31 | 32 | 33 | #Alternative caching using Apache's "mod_headers", if it's installed. 34 | #Caching of common files - ENABLED 35 | 36 | 37 | Header set Cache-Control "max-age=2592000, public" 38 | 39 | #Remove comments, to disable video caching to the user's browser 40 | # 41 | #Header set Cache-Control "max-age=0, public" 42 | # 43 | 44 | #CSS-JS-Booster End################################################# -------------------------------------------------------------------------------- /examples/example1/css/style.css: -------------------------------------------------------------------------------- 1 | /* CSS Document */ 2 | body{padding: 0px; margin:0px; background:url("../images/mainbg.gif") 0 0 repeat-x #fff; color:#705D20; font:14px/18px Arial, Helvetica, sans-serif;} 3 | div, p, ul, h1, h2, h3, form, img{padding:0px; margin:0px;} 4 | ul{list-style-type:none;} 5 | 6 | a{background:#FEFEFE; color:#fff; text-decoration:none;} 7 | a:hover{background:#FEFEFE; color:#fff; text-decoration:underline;} 8 | 9 | 10 | #topPan{width: 748px; height: 231px; position:relative; margin:0 auto;} 11 | 12 | #topHeaderPan {width:332px; height:231px; background:url(../images/header.jpg) 0 100% no-repeat; position:relative;} 13 | #topHeaderPan img{width:191px; height:84px; display:block; position:absolute; top:120px; left:0px;} 14 | #topHeaderPan ul{width:298px; height:59px; position:absolute; top:31px; left:0px; padding:0px;} 15 | #topHeaderPan ul li{width:74px; height:59px; background:url(../images/menu-div.gif) 100% 0 no-repeat; float:left;} 16 | #topHeaderPan ul li a{width:73px; height:59px; display:block; background:url(../images/topmenubg.gif) 0 0 repeat-x #fff; color:#88763D; text-align:center; font-size:13px; font-weight:bold; line-height:59px;} 17 | #topHeaderPan ul li a:hover{width:73px; height:59px; background:url(../images/topleftmenu-hover.gif) 50% 100% no-repeat; text-decoration:none;} 18 | #topHeaderPan ul li.company{width:74px; height:59px; background:url(../images/company-bg.gif) 0 0 no-repeat; text-decoration:none; text-align:center; line-height:59px;} 19 | #topHeaderPan ul li.client{width:74px; height:59px; background:none; float:left;} 20 | 21 | #toprightPan{width:417px; height:218px; background:url(../images/rightsidebg.jpg) 0 0 no-repeat; position:absolute; top:13px; right:0px;} 22 | #toprightPan ul{width:320px; height:49px; display:block; margin:16px 0 0 16px;} 23 | #toprightPan ul li{width:104px; height:49px; border-right:1px dashed #C1B79A; float:left;} 24 | #toprightPan ul li.home{width:104px; height:20px; font-size:13px; font-weight:bold; text-align:center; background:url(../images/icon1.gif) 50% 0 no-repeat #fff; color:#81BE28; padding:29px 0 0;} 25 | 26 | #toprightPan ul li.about{width:104px; height:20px; font-size:13px; font-weight:bold; text-align:center; background:url(../images/icon2-normal.gif) 50% 0 no-repeat #fff; color:#81BE28; padding:29px 0 0; text-decoration:none;} 27 | #toprightPan ul li.about a{width:104px; height:20px; font-size:13px; font-weight:bold; text-align:center; background:url(../images/icon2-normal.gif) 50% 0 no-repeat #fff; color:#0880BC; padding:29px 0 0; text-decoration:none;} 28 | #toprightPan ul li.about a:hover{width:104px; height:20px; font-size:13px; font-weight:bold; text-align:center; background:url(../images/icon2-hover.gif) 50% 0 no-repeat #fff; color:#81BE28; padding:29px 0 0; text-decoration:none;} 29 | 30 | #toprightPan ul li.contact{width:104px; height:20px; font-size:13px; font-weight:bold; text-align:center; background:url(../images/icon3-normal.gif) 50% 20% no-repeat #fff; color:#81BE28; border:none; padding:29px 0 0; text-decoration:none;} 31 | #toprightPan ul li.contact a{width:104px; height:20px; font-size:13px; font-weight:bold; text-align:center; background:url(../images/icon3-normal.gif) 50% 20% no-repeat #fff; color:#0880BC; padding:29px 0 0; text-decoration:none;} 32 | #toprightPan ul li.contact a:hover{width:104px; height:20px; font-size:13px; font-weight:bold; text-align:center; background:url(../images/icon3-hover.gif) 50% 20% no-repeat #fff; color:#81BE28; padding:29px 0 0; text-decoration:none;} 33 | 34 | 35 | /*----/TOP PANEL----*/ 36 | 37 | /*----BODY PANEL----*/ 38 | #bodyPan{width:748px; position:relative; margin:0 auto;} 39 | /*----BODY LEFT PANEL----*/ 40 | #bodyleftPan{width:331px; float:left;} 41 | #bodyleftPan h2{width:196px; height:30px; font:30px/30px Georgia, "Times New Roman", Times, serif; background:#fff; color:#006EA6; margin:43px 0 0;} 42 | #bodyleftPan h3{width:196px; height:30px; font:30px/30px Georgia, "Times New Roman", Times, serif; background:#fff; color:#006EA6; margin:20px 0 0;} 43 | 44 | 45 | #bodyleftPan p{padding:14px 28px 0 0;} 46 | #bodyleftPan p.greentext{background:#fff; color:#5E9908; font-size:16px; font-weight:bold; padding:14px 0 0;} 47 | #bodyleftPan p.browntext{background:#fff; color:#705D20; font-size:24px; padding:10px 0 0;} 48 | 49 | #bodyleftPan ul{width:270px; height:24px; margin:20px 0 0;} 50 | #bodyleftPan ul li{width:118px; height:24px; float:left; margin:0 5px 0 0;} 51 | #bodyleftPan ul li.more{width:118px; height:24px; float:left;} 52 | #bodyleftPan ul li a{width:90px; height:24px; display:block; background:url(../images/reedmore-bg.gif) 0 0 no-repeat #FEFEFE; color:#fff; font-size:13px; font-weight:bold; line-height:20px; padding:0 0 0 28px} 53 | #bodyleftPan ul li a:hover{background:url(../images/reedmore-hover.gif) 0 0 no-repeat; text-decoration:none;} 54 | 55 | #bodyleftPan ul li.comment{width:98px; height:24px; background:url(../images/commentbg.gif) 0 0 no-repeat #FEFEFE; color:#fff; font-size:13px; font-weight:bold; line-height:24px; text-decoration:none; float:left; padding:0 0 0 20px} 56 | 57 | 58 | /*----/BODY LEFT PANEL----*/ 59 | /*----BODY RIGHT PANEL----*/ 60 | #bodyrightPan{width:359px; float:left;} 61 | /*----Login Panel----*/ 62 | #loginPan{width:359px; height:199px; background:url(../images/formbg.gif) 0 0 repeat-y;} 63 | #loginPan h2{width:230px; height:81px; display:block; background:url(../images/icon.gif) 0 50% no-repeat #fff; color:#5EA000; font:30px/80px Georgia, "Times New Roman", Times, serif; padding:0 0 0 64px; margin:0 0 0 18px;} 64 | #loginPan h2 span{background:#fff; color:#017FC0;} 65 | 66 | #loginPan form{width:321px; height:76px; background:#FCF6E6; color:#705D20; position:relative; border:1px dashed #BFB492; margin:0 0 0 18px; padding:6px 0 0;} 67 | #loginPan form label{width:91px; height:22px; display:block; float:left; padding: 0 0 0 20px; margin:9px 0 0;} 68 | #loginPan form input{width:130px; height:18px; font-size:12px; display:block; float:left; margin:9px 12px 0 0;} 69 | 70 | #loginPan form input.button{width:49px; height:52px; display:block; position:absolute; top:6px; right:16px; background:url(../images/button.gif) 0 0 no-repeat #FCF6E6; border:none; color:#fff; margin:9px 0 0; font:16px/52px Georgia, "Times New Roman", Times, serif; text-align:center; padding:0px;} 71 | 72 | #loginPan ul{width:323px; height:25px; margin:6px 0 0 18px;} 73 | #loginPan ul li{width:166px; height:25px; float:left;} 74 | #loginPan ul li.nonregister{width:156px; height:25px; float:left; background:url(../images/not-memberbg.gif) 0 0 no-repeat #FEFEFE; color:#fff; font-weight:bold; line-height:25px; text-align:center;} 75 | #loginPan ul li.register{width:165px; height:25px; float:left; background:url(../images/new-registerbg.gif) 0 0 no-repeat #FEFEFE; color:#fff; font-weight:bold; line-height:25px; margin:0 0 0 1px;} 76 | #loginPan ul li.register a{width:141px; height:25px; display:block; background:url(../images/arrow1.gif) 95% 60% no-repeat; text-decoration:none; padding:0 0 0 25px;} 77 | #loginPan ul li.register a:hover{background:url(../images/arrow2.gif) 95% 60% no-repeat; text-decoration:none;} 78 | /*----/Login Panel----*/ 79 | #bodyrightPan p.hours{width:323px; height:83px; margin:33px 0 33px 18px;} 80 | #bodyrightPan p.hours a{width:323px; height:83px; display:block; background:url(../images/24hours.gif) 0 0; text-indent:-2000px;} 81 | #bodyrightPan p.hours a:hover{width:323px; height:83px; background:url(../images/24hours.gif) 0 0; text-indent:-2000px;} 82 | /*----Login Panel----*/ 83 | #loginBottomPan{width:359px; height:25px; background:url(../images/form-bottombg.gif) 0 0 no-repeat;} 84 | 85 | /*----/Login Panel----*/ 86 | /*----Services Panel----*/ 87 | #servicesPan{width:359px; height:21px; background:url(../images/servicestop-bg.gif) 0 0 no-repeat;} 88 | #servicesBodyPan{width:359px; background:url(../images/servicesbody-bg.gif) 0 0 repeat-y;} 89 | #servicesBodyPan p{padding:10px 25px 0 34px;} 90 | #servicesBodyPan p.services{width:140px; height:60px; font:30px/60px Georgia, "Times New Roman", Times, serif; background:#fff; color:#006EA6; margin:0 0 0 34px; padding:0px;} 91 | #servicesBodyPan p.boldbrowntext{font-size:16px; font-weight:bold; padding:4px 25px 0 34px;} 92 | #servicesBodyPan p.bluetext{background:url(../images/servicesbody-bg.gif) 0 0 repeat-y #fff; color:#007EC1; font-size:15px; font-style:italic;} 93 | #servicesBodyPan p.largebrowntext{font-size:30px; padding:10px 25px 10px 34px;} 94 | 95 | #servicesBodyPan p.link{width:289px; height:23px; background:#FCF6E6; color:#705D20; margin:0 36px ; padding:0px;} 96 | #servicesBodyPan p.link a{width:289px; height:23px; display:block; background:#FCF6E6; color:#705D20; line-height:23px; text-decoration:none; text-align:center;} 97 | #servicesBodyPan p.link a:hover{width:289px; height:23px; background:#F9E09F; color:#705D20; text-align:center; text-decoration:none;} 98 | 99 | #servicesBottomPan{width:359px; height:25px; background:url(../images/form-bottombg.gif) 0 0 no-repeat; padding:10px 0 0;} 100 | /*----/Services Panel----*/ 101 | /*----FOOTER PANEL----*/ 102 | #footermainPan{height:126px; background:url(../images/footerbg.gif) 0 0 repeat-x #705D20; color:#fff; font:12px/22px "Trebuchet MS",Arial, Helvetica, sans-serif; clear:both; padding:82px 0 0;} 103 | #footerPan{width:748px; position:relative; margin:0 auto;} 104 | #footerlogoPan{display:block; width:215px; height:40px; position:absolute; top:0px; right:15px;} 105 | 106 | #footerPan ul{width:546px; position:absolute; top:0px; left:0px;} 107 | #footerPan li{float:left; } 108 | #footerPan ul li a{padding:0 10px 0; color:#fff; background-color: #705D20; text-decoration:none;} 109 | #footerPan ul li a:hover{text-decoration:underline;} 110 | 111 | #footerPan ul.templateworld{width:250px; background:#705D20; color:#fff; display:block; position:absolute; top:40px; left:10px;} 112 | #footerPan ul.templateworld li a{background:#705D20; display:block; color:#fff; text-decoration:none;} 113 | #footerPan ul.templateworld li a:hover{text-decoration:underline;} 114 | 115 | #footerPan ul.validation{width:250px; background:#705D20; color:#fff; display:block; position:absolute; top:60px; left:10px;} 116 | #footerPan ul.validation li a{background:#705D20; display:block; color:#fff; text-decoration:none;} 117 | #footerPan ul.validation li a:hover{text-decoration:underline;} 118 | 119 | #footerPan p.copyright{width:auto; background-color: #705D20; color:#fff; position:absolute; top:23px; left:10px;} 120 | 121 | 122 | -------------------------------------------------------------------------------- /examples/example1/images/24hours.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schepp/CSS-JS-Booster/14f6a84eb1a120ac14f928808e2b6f211f443edf/examples/example1/images/24hours.gif -------------------------------------------------------------------------------- /examples/example1/images/arrow1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schepp/CSS-JS-Booster/14f6a84eb1a120ac14f928808e2b6f211f443edf/examples/example1/images/arrow1.gif -------------------------------------------------------------------------------- /examples/example1/images/arrow2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schepp/CSS-JS-Booster/14f6a84eb1a120ac14f928808e2b6f211f443edf/examples/example1/images/arrow2.gif -------------------------------------------------------------------------------- /examples/example1/images/blank.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schepp/CSS-JS-Booster/14f6a84eb1a120ac14f928808e2b6f211f443edf/examples/example1/images/blank.gif -------------------------------------------------------------------------------- /examples/example1/images/button.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schepp/CSS-JS-Booster/14f6a84eb1a120ac14f928808e2b6f211f443edf/examples/example1/images/button.gif -------------------------------------------------------------------------------- /examples/example1/images/commentbg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schepp/CSS-JS-Booster/14f6a84eb1a120ac14f928808e2b6f211f443edf/examples/example1/images/commentbg.gif -------------------------------------------------------------------------------- /examples/example1/images/company-bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schepp/CSS-JS-Booster/14f6a84eb1a120ac14f928808e2b6f211f443edf/examples/example1/images/company-bg.gif -------------------------------------------------------------------------------- /examples/example1/images/footerbg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schepp/CSS-JS-Booster/14f6a84eb1a120ac14f928808e2b6f211f443edf/examples/example1/images/footerbg.gif -------------------------------------------------------------------------------- /examples/example1/images/footerlogo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schepp/CSS-JS-Booster/14f6a84eb1a120ac14f928808e2b6f211f443edf/examples/example1/images/footerlogo.gif -------------------------------------------------------------------------------- /examples/example1/images/form-bottombg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schepp/CSS-JS-Booster/14f6a84eb1a120ac14f928808e2b6f211f443edf/examples/example1/images/form-bottombg.gif -------------------------------------------------------------------------------- /examples/example1/images/formbg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schepp/CSS-JS-Booster/14f6a84eb1a120ac14f928808e2b6f211f443edf/examples/example1/images/formbg.gif -------------------------------------------------------------------------------- /examples/example1/images/header.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schepp/CSS-JS-Booster/14f6a84eb1a120ac14f928808e2b6f211f443edf/examples/example1/images/header.jpg -------------------------------------------------------------------------------- /examples/example1/images/icon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schepp/CSS-JS-Booster/14f6a84eb1a120ac14f928808e2b6f211f443edf/examples/example1/images/icon.gif -------------------------------------------------------------------------------- /examples/example1/images/icon1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schepp/CSS-JS-Booster/14f6a84eb1a120ac14f928808e2b6f211f443edf/examples/example1/images/icon1.gif -------------------------------------------------------------------------------- /examples/example1/images/icon2-hover.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schepp/CSS-JS-Booster/14f6a84eb1a120ac14f928808e2b6f211f443edf/examples/example1/images/icon2-hover.gif -------------------------------------------------------------------------------- /examples/example1/images/icon2-normal.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schepp/CSS-JS-Booster/14f6a84eb1a120ac14f928808e2b6f211f443edf/examples/example1/images/icon2-normal.gif -------------------------------------------------------------------------------- /examples/example1/images/icon3-hover.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schepp/CSS-JS-Booster/14f6a84eb1a120ac14f928808e2b6f211f443edf/examples/example1/images/icon3-hover.gif -------------------------------------------------------------------------------- /examples/example1/images/icon3-normal.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schepp/CSS-JS-Booster/14f6a84eb1a120ac14f928808e2b6f211f443edf/examples/example1/images/icon3-normal.gif -------------------------------------------------------------------------------- /examples/example1/images/logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schepp/CSS-JS-Booster/14f6a84eb1a120ac14f928808e2b6f211f443edf/examples/example1/images/logo.jpg -------------------------------------------------------------------------------- /examples/example1/images/mainbg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schepp/CSS-JS-Booster/14f6a84eb1a120ac14f928808e2b6f211f443edf/examples/example1/images/mainbg.gif -------------------------------------------------------------------------------- /examples/example1/images/menu-div.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schepp/CSS-JS-Booster/14f6a84eb1a120ac14f928808e2b6f211f443edf/examples/example1/images/menu-div.gif -------------------------------------------------------------------------------- /examples/example1/images/new-registerbg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schepp/CSS-JS-Booster/14f6a84eb1a120ac14f928808e2b6f211f443edf/examples/example1/images/new-registerbg.gif -------------------------------------------------------------------------------- /examples/example1/images/not-memberbg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schepp/CSS-JS-Booster/14f6a84eb1a120ac14f928808e2b6f211f443edf/examples/example1/images/not-memberbg.gif -------------------------------------------------------------------------------- /examples/example1/images/reedmore-bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schepp/CSS-JS-Booster/14f6a84eb1a120ac14f928808e2b6f211f443edf/examples/example1/images/reedmore-bg.gif -------------------------------------------------------------------------------- /examples/example1/images/reedmore-hover.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schepp/CSS-JS-Booster/14f6a84eb1a120ac14f928808e2b6f211f443edf/examples/example1/images/reedmore-hover.gif -------------------------------------------------------------------------------- /examples/example1/images/rightmenu.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schepp/CSS-JS-Booster/14f6a84eb1a120ac14f928808e2b6f211f443edf/examples/example1/images/rightmenu.gif -------------------------------------------------------------------------------- /examples/example1/images/rightsidebg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schepp/CSS-JS-Booster/14f6a84eb1a120ac14f928808e2b6f211f443edf/examples/example1/images/rightsidebg.jpg -------------------------------------------------------------------------------- /examples/example1/images/servicesbody-bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schepp/CSS-JS-Booster/14f6a84eb1a120ac14f928808e2b6f211f443edf/examples/example1/images/servicesbody-bg.gif -------------------------------------------------------------------------------- /examples/example1/images/servicestop-bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schepp/CSS-JS-Booster/14f6a84eb1a120ac14f928808e2b6f211f443edf/examples/example1/images/servicestop-bg.gif -------------------------------------------------------------------------------- /examples/example1/images/topleftmenu-hover.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schepp/CSS-JS-Booster/14f6a84eb1a120ac14f928808e2b6f211f443edf/examples/example1/images/topleftmenu-hover.gif -------------------------------------------------------------------------------- /examples/example1/images/topmenubg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schepp/CSS-JS-Booster/14f6a84eb1a120ac14f928808e2b6f211f443edf/examples/example1/images/topmenubg.gif -------------------------------------------------------------------------------- /examples/example1/index_fast.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schepp/CSS-JS-Booster/14f6a84eb1a120ac14f928808e2b6f211f443edf/examples/example1/index_fast.php -------------------------------------------------------------------------------- /examples/example1/index_slow.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schepp/CSS-JS-Booster/14f6a84eb1a120ac14f928808e2b6f211f443edf/examples/example1/index_slow.php -------------------------------------------------------------------------------- /examples/example1/js/01_jquery-1.3.1.min.js: -------------------------------------------------------------------------------- 1 | /* 2 | * jQuery JavaScript Library v1.3.1 3 | * http://jquery.com/ 4 | * 5 | * Copyright (c) 2009 John Resig 6 | * Dual licensed under the MIT and GPL licenses. 7 | * http://docs.jquery.com/License 8 | * 9 | * Date: 2009-01-21 20:42:16 -0500 (Wed, 21 Jan 2009) 10 | * Revision: 6158 11 | */ 12 | (function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.length=1;this.context=E;return this}if(typeof E==="string"){var G=D.exec(E);if(G&&(G[1]||!H)){if(G[1]){E=o.clean([G[1]],H)}else{var I=document.getElementById(G[3]);if(I&&I.id!=G[3]){return o().find(E)}var F=o(I||[]);F.context=document;F.selector=E;return F}}else{return o(H).find(E)}}else{if(o.isFunction(E)){return o(document).ready(E)}}if(E.selector&&E.context){this.selector=E.selector;this.context=E.context}return this.setArray(o.makeArray(E))},selector:"",jquery:"1.3.1",size:function(){return this.length},get:function(E){return E===g?o.makeArray(this):this[E]},pushStack:function(F,H,E){var G=o(F);G.prevObject=this;G.context=this.context;if(H==="find"){G.selector=this.selector+(this.selector?" ":"")+E}else{if(H){G.selector=this.selector+"."+H+"("+E+")"}}return G},setArray:function(E){this.length=0;Array.prototype.push.apply(this,E);return this},each:function(F,E){return o.each(this,F,E)},index:function(E){return o.inArray(E&&E.jquery?E[0]:E,this)},attr:function(F,H,G){var E=F;if(typeof F==="string"){if(H===g){return this[0]&&o[G||"attr"](this[0],F)}else{E={};E[F]=H}}return this.each(function(I){for(F in E){o.attr(G?this.style:this,F,o.prop(this,E[F],G,I,F))}})},css:function(E,F){if((E=="width"||E=="height")&&parseFloat(F)<0){F=g}return this.attr(E,F,"curCSS")},text:function(F){if(typeof F!=="object"&&F!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(F))}var E="";o.each(F||this,function(){o.each(this.childNodes,function(){if(this.nodeType!=8){E+=this.nodeType!=1?this.nodeValue:o.fn.text([this])}})});return E},wrapAll:function(E){if(this[0]){var F=o(E,this[0].ownerDocument).clone();if(this[0].parentNode){F.insertBefore(this[0])}F.map(function(){var G=this;while(G.firstChild){G=G.firstChild}return G}).append(this)}return this},wrapInner:function(E){return this.each(function(){o(this).contents().wrapAll(E)})},wrap:function(E){return this.each(function(){o(this).wrapAll(E)})},append:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild(E)}})},prepend:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.insertBefore(E,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this)})},after:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.nextSibling)})},end:function(){return this.prevObject||o([])},push:[].push,find:function(E){if(this.length===1&&!/,/.test(E)){var G=this.pushStack([],"find",E);G.length=0;o.find(E,this[0],G);return G}else{var F=o.map(this,function(H){return o.find(E,H)});return this.pushStack(/[^+>] [^+>]/.test(E)?o.unique(F):F,"find",E)}},clone:function(F){var E=this.map(function(){if(!o.support.noCloneEvent&&!o.isXMLDoc(this)){var I=this.cloneNode(true),H=document.createElement("div");H.appendChild(I);return o.clean([H.innerHTML])[0]}else{return this.cloneNode(true)}});var G=E.find("*").andSelf().each(function(){if(this[h]!==g){this[h]=null}});if(F===true){this.find("*").andSelf().each(function(I){if(this.nodeType==3){return}var H=o.data(this,"events");for(var K in H){for(var J in H[K]){o.event.add(G[I],K,H[K][J],H[K][J].data)}}})}return E},filter:function(E){return this.pushStack(o.isFunction(E)&&o.grep(this,function(G,F){return E.call(G,F)})||o.multiFilter(E,o.grep(this,function(F){return F.nodeType===1})),"filter",E)},closest:function(E){var F=o.expr.match.POS.test(E)?o(E):null;return this.map(function(){var G=this;while(G&&G.ownerDocument){if(F?F.index(G)>-1:o(G).is(E)){return G}G=G.parentNode}})},not:function(E){if(typeof E==="string"){if(f.test(E)){return this.pushStack(o.multiFilter(E,this,true),"not",E)}else{E=o.multiFilter(E,this)}}var F=E.length&&E[E.length-1]!==g&&!E.nodeType;return this.filter(function(){return F?o.inArray(this,E)<0:this!=E})},add:function(E){return this.pushStack(o.unique(o.merge(this.get(),typeof E==="string"?o(E):o.makeArray(E))))},is:function(E){return !!E&&o.multiFilter(E,this).length>0},hasClass:function(E){return !!E&&this.is("."+E)},val:function(K){if(K===g){var E=this[0];if(E){if(o.nodeName(E,"option")){return(E.attributes.value||{}).specified?E.value:E.text}if(o.nodeName(E,"select")){var I=E.selectedIndex,L=[],M=E.options,H=E.type=="select-one";if(I<0){return null}for(var F=H?I:0,J=H?I+1:M.length;F=0||o.inArray(this.name,K)>=0)}else{if(o.nodeName(this,"select")){var N=o.makeArray(K);o("option",this).each(function(){this.selected=(o.inArray(this.value,N)>=0||o.inArray(this.text,N)>=0)});if(!N.length){this.selectedIndex=-1}}else{this.value=K}}})},html:function(E){return E===g?(this[0]?this[0].innerHTML:null):this.empty().append(E)},replaceWith:function(E){return this.after(E).remove()},eq:function(E){return this.slice(E,+E+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(E){return this.pushStack(o.map(this,function(G,F){return E.call(G,F,G)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(K,N,M){if(this[0]){var J=(this[0].ownerDocument||this[0]).createDocumentFragment(),G=o.clean(K,(this[0].ownerDocument||this[0]),J),I=J.firstChild,E=this.length>1?J.cloneNode(true):J;if(I){for(var H=0,F=this.length;H0?E.cloneNode(true):J)}}if(G){o.each(G,z)}}return this;function L(O,P){return N&&o.nodeName(O,"table")&&o.nodeName(P,"tr")?(O.getElementsByTagName("tbody")[0]||O.appendChild(O.ownerDocument.createElement("tbody"))):O}}};o.fn.init.prototype=o.fn;function z(E,F){if(F.src){o.ajax({url:F.src,async:false,dataType:"script"})}else{o.globalEval(F.text||F.textContent||F.innerHTML||"")}if(F.parentNode){F.parentNode.removeChild(F)}}function e(){return +new Date}o.extend=o.fn.extend=function(){var J=arguments[0]||{},H=1,I=arguments.length,E=false,G;if(typeof J==="boolean"){E=J;J=arguments[1]||{};H=2}if(typeof J!=="object"&&!o.isFunction(J)){J={}}if(I==H){J=this;--H}for(;H-1}},swap:function(H,G,I){var E={};for(var F in G){E[F]=H.style[F];H.style[F]=G[F]}I.call(H);for(var F in G){H.style[F]=E[F]}},css:function(G,E,I){if(E=="width"||E=="height"){var K,F={position:"absolute",visibility:"hidden",display:"block"},J=E=="width"?["Left","Right"]:["Top","Bottom"];function H(){K=E=="width"?G.offsetWidth:G.offsetHeight;var M=0,L=0;o.each(J,function(){M+=parseFloat(o.curCSS(G,"padding"+this,true))||0;L+=parseFloat(o.curCSS(G,"border"+this+"Width",true))||0});K-=Math.round(M+L)}if(o(G).is(":visible")){H()}else{o.swap(G,F,H)}return Math.max(0,K)}return o.curCSS(G,E,I)},curCSS:function(I,F,G){var L,E=I.style;if(F=="opacity"&&!o.support.opacity){L=o.attr(E,"opacity");return L==""?"1":L}if(F.match(/float/i)){F=w}if(!G&&E&&E[F]){L=E[F]}else{if(q.getComputedStyle){if(F.match(/float/i)){F="float"}F=F.replace(/([A-Z])/g,"-$1").toLowerCase();var M=q.getComputedStyle(I,null);if(M){L=M.getPropertyValue(F)}if(F=="opacity"&&L==""){L="1"}}else{if(I.currentStyle){var J=F.replace(/\-(\w)/g,function(N,O){return O.toUpperCase()});L=I.currentStyle[F]||I.currentStyle[J];if(!/^\d+(px)?$/i.test(L)&&/^\d/.test(L)){var H=E.left,K=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;E.left=L||0;L=E.pixelLeft+"px";E.left=H;I.runtimeStyle.left=K}}}}return L},clean:function(F,K,I){K=K||document;if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&&K[0].ownerDocument||document}if(!I&&F.length===1&&typeof F[0]==="string"){var H=/^<(\w+)\s*\/?>$/.exec(F[0]);if(H){return[K.createElement(H[1])]}}var G=[],E=[],L=K.createElement("div");o.each(F,function(P,R){if(typeof R==="number"){R+=""}if(!R){return}if(typeof R==="string"){R=R.replace(/(<(\w+)[^>]*?)\/>/g,function(T,U,S){return S.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?T:U+">"});var O=o.trim(R).toLowerCase();var Q=!O.indexOf("",""]||!O.indexOf("",""]||O.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"","
"]||!O.indexOf("",""]||(!O.indexOf("",""]||!O.indexOf("",""]||!o.support.htmlSerialize&&[1,"div
","
"]||[0,"",""];L.innerHTML=Q[1]+R+Q[2];while(Q[0]--){L=L.lastChild}if(!o.support.tbody){var N=!O.indexOf(""&&O.indexOf("=0;--M){if(o.nodeName(N[M],"tbody")&&!N[M].childNodes.length){N[M].parentNode.removeChild(N[M])}}}if(!o.support.leadingWhitespace&&/^\s/.test(R)){L.insertBefore(K.createTextNode(R.match(/^\s*/)[0]),L.firstChild)}R=o.makeArray(L.childNodes)}if(R.nodeType){G.push(R)}else{G=o.merge(G,R)}});if(I){for(var J=0;G[J];J++){if(o.nodeName(G[J],"script")&&(!G[J].type||G[J].type.toLowerCase()==="text/javascript")){E.push(G[J].parentNode?G[J].parentNode.removeChild(G[J]):G[J])}else{if(G[J].nodeType===1){G.splice.apply(G,[J+1,0].concat(o.makeArray(G[J].getElementsByTagName("script"))))}I.appendChild(G[J])}}return E}return G},attr:function(J,G,K){if(!J||J.nodeType==3||J.nodeType==8){return g}var H=!o.isXMLDoc(J),L=K!==g;G=H&&o.props[G]||G;if(J.tagName){var F=/href|src|style/.test(G);if(G=="selected"&&J.parentNode){J.parentNode.selectedIndex}if(G in J&&H&&!F){if(L){if(G=="type"&&o.nodeName(J,"input")&&J.parentNode){throw"type property can't be changed"}J[G]=K}if(o.nodeName(J,"form")&&J.getAttributeNode(G)){return J.getAttributeNode(G).nodeValue}if(G=="tabIndex"){var I=J.getAttributeNode("tabIndex");return I&&I.specified?I.value:J.nodeName.match(/(button|input|object|select|textarea)/i)?0:J.nodeName.match(/^(a|area)$/i)&&J.href?0:g}return J[G]}if(!o.support.style&&H&&G=="style"){return o.attr(J.style,"cssText",K)}if(L){J.setAttribute(G,""+K)}var E=!o.support.hrefNormalized&&H&&F?J.getAttribute(G,2):J.getAttribute(G);return E===null?g:E}if(!o.support.opacity&&G=="opacity"){if(L){J.zoom=1;J.filter=(J.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(K)+""=="NaN"?"":"alpha(opacity="+K*100+")")}return J.filter&&J.filter.indexOf("opacity=")>=0?(parseFloat(J.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}G=G.replace(/-([a-z])/ig,function(M,N){return N.toUpperCase()});if(L){J[G]=K}return J[G]},trim:function(E){return(E||"").replace(/^\s+|\s+$/g,"")},makeArray:function(G){var E=[];if(G!=null){var F=G.length;if(F==null||typeof G==="string"||o.isFunction(G)||G.setInterval){E[0]=G}else{while(F){E[--F]=G[F]}}}return E},inArray:function(G,H){for(var E=0,F=H.length;E*",this).remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(E,F){o.fn[E]=function(){return this.each(F,arguments)}});function j(E,F){return E[0]&&parseInt(o.curCSS(E[0],F,true),10)||0}var h="jQuery"+e(),v=0,A={};o.extend({cache:{},data:function(F,E,G){F=F==l?A:F;var H=F[h];if(!H){H=F[h]=++v}if(E&&!o.cache[H]){o.cache[H]={}}if(G!==g){o.cache[H][E]=G}return E?o.cache[H][E]:H},removeData:function(F,E){F=F==l?A:F;var H=F[h];if(E){if(o.cache[H]){delete o.cache[H][E];E="";for(E in o.cache[H]){break}if(!E){o.removeData(F)}}}else{try{delete F[h]}catch(G){if(F.removeAttribute){F.removeAttribute(h)}}delete o.cache[H]}},queue:function(F,E,H){if(F){E=(E||"fx")+"queue";var G=o.data(F,E);if(!G||o.isArray(H)){G=o.data(F,E,o.makeArray(H))}else{if(H){G.push(H)}}}return G},dequeue:function(H,G){var E=o.queue(H,G),F=E.shift();if(!G||G==="fx"){F=E[0]}if(F!==g){F.call(H)}}});o.fn.extend({data:function(E,G){var H=E.split(".");H[1]=H[1]?"."+H[1]:"";if(G===g){var F=this.triggerHandler("getData"+H[1]+"!",[H[0]]);if(F===g&&this.length){F=o.data(this[0],E)}return F===g&&H[1]?this.data(H[0]):F}else{return this.trigger("setData"+H[1]+"!",[H[0],G]).each(function(){o.data(this,E,G)})}},removeData:function(E){return this.each(function(){o.removeData(this,E)})},queue:function(E,F){if(typeof E!=="string"){F=E;E="fx"}if(F===g){return o.queue(this[0],E)}return this.each(function(){var G=o.queue(this,E,F);if(E=="fx"&&G.length==1){G[0].call(this)}})},dequeue:function(E){return this.each(function(){o.dequeue(this,E)})}}); 13 | /* 14 | * Sizzle CSS Selector Engine - v0.9.3 15 | * Copyright 2009, The Dojo Foundation 16 | * Released under the MIT, BSD, and GPL Licenses. 17 | * More information: http://sizzlejs.com/ 18 | */ 19 | (function(){var Q=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]+['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[]+)+|[>+~])(\s*,\s*)?/g,K=0,G=Object.prototype.toString;var F=function(X,T,aa,ab){aa=aa||[];T=T||document;if(T.nodeType!==1&&T.nodeType!==9){return[]}if(!X||typeof X!=="string"){return aa}var Y=[],V,ae,ah,S,ac,U,W=true;Q.lastIndex=0;while((V=Q.exec(X))!==null){Y.push(V[1]);if(V[2]){U=RegExp.rightContext;break}}if(Y.length>1&&L.exec(X)){if(Y.length===2&&H.relative[Y[0]]){ae=I(Y[0]+Y[1],T)}else{ae=H.relative[Y[0]]?[T]:F(Y.shift(),T);while(Y.length){X=Y.shift();if(H.relative[X]){X+=Y.shift()}ae=I(X,ae)}}}else{var ad=ab?{expr:Y.pop(),set:E(ab)}:F.find(Y.pop(),Y.length===1&&T.parentNode?T.parentNode:T,P(T));ae=F.filter(ad.expr,ad.set);if(Y.length>0){ah=E(ae)}else{W=false}while(Y.length){var ag=Y.pop(),af=ag;if(!H.relative[ag]){ag=""}else{af=Y.pop()}if(af==null){af=T}H.relative[ag](ah,af,P(T))}}if(!ah){ah=ae}if(!ah){throw"Syntax error, unrecognized expression: "+(ag||X)}if(G.call(ah)==="[object Array]"){if(!W){aa.push.apply(aa,ah)}else{if(T.nodeType===1){for(var Z=0;ah[Z]!=null;Z++){if(ah[Z]&&(ah[Z]===true||ah[Z].nodeType===1&&J(T,ah[Z]))){aa.push(ae[Z])}}}else{for(var Z=0;ah[Z]!=null;Z++){if(ah[Z]&&ah[Z].nodeType===1){aa.push(ae[Z])}}}}}else{E(ah,aa)}if(U){F(U,T,aa,ab)}return aa};F.matches=function(S,T){return F(S,null,null,T)};F.find=function(Z,S,aa){var Y,W;if(!Z){return[]}for(var V=0,U=H.order.length;V":function(X,T,Y){if(typeof T==="string"&&!/\W/.test(T)){T=Y?T:T.toUpperCase();for(var U=0,S=X.length;U=0){if(!U){S.push(X)}}else{if(U){T[W]=false}}}}return false},ID:function(S){return S[1].replace(/\\/g,"")},TAG:function(T,S){for(var U=0;S[U]===false;U++){}return S[U]&&P(S[U])?T[1]:T[1].toUpperCase()},CHILD:function(S){if(S[1]=="nth"){var T=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(S[2]=="even"&&"2n"||S[2]=="odd"&&"2n+1"||!/\D/.test(S[2])&&"0n+"+S[2]||S[2]);S[2]=(T[1]+(T[2]||1))-0;S[3]=T[3]-0}S[0]="done"+(K++);return S},ATTR:function(T){var S=T[1].replace(/\\/g,"");if(H.attrMap[S]){T[1]=H.attrMap[S]}if(T[2]==="~="){T[4]=" "+T[4]+" "}return T},PSEUDO:function(W,T,U,S,X){if(W[1]==="not"){if(W[3].match(Q).length>1){W[3]=F(W[3],null,null,T)}else{var V=F.filter(W[3],T,U,true^X);if(!U){S.push.apply(S,V)}return false}}else{if(H.match.POS.test(W[0])){return true}}return W},POS:function(S){S.unshift(true);return S}},filters:{enabled:function(S){return S.disabled===false&&S.type!=="hidden"},disabled:function(S){return S.disabled===true},checked:function(S){return S.checked===true},selected:function(S){S.parentNode.selectedIndex;return S.selected===true},parent:function(S){return !!S.firstChild},empty:function(S){return !S.firstChild},has:function(U,T,S){return !!F(S[3],U).length},header:function(S){return/h\d/i.test(S.nodeName)},text:function(S){return"text"===S.type},radio:function(S){return"radio"===S.type},checkbox:function(S){return"checkbox"===S.type},file:function(S){return"file"===S.type},password:function(S){return"password"===S.type},submit:function(S){return"submit"===S.type},image:function(S){return"image"===S.type},reset:function(S){return"reset"===S.type},button:function(S){return"button"===S.type||S.nodeName.toUpperCase()==="BUTTON"},input:function(S){return/input|select|textarea|button/i.test(S.nodeName)}},setFilters:{first:function(T,S){return S===0},last:function(U,T,S,V){return T===V.length-1},even:function(T,S){return S%2===0},odd:function(T,S){return S%2===1},lt:function(U,T,S){return TS[3]-0},nth:function(U,T,S){return S[3]-0==T},eq:function(U,T,S){return S[3]-0==T}},filter:{CHILD:function(S,V){var Y=V[1],Z=S.parentNode;var X=V[0];if(Z&&(!Z[X]||!S.nodeIndex)){var W=1;for(var T=Z.firstChild;T;T=T.nextSibling){if(T.nodeType==1){T.nodeIndex=W++}}Z[X]=W-1}if(Y=="first"){return S.nodeIndex==1}else{if(Y=="last"){return S.nodeIndex==Z[X]}else{if(Y=="only"){return Z[X]==1}else{if(Y=="nth"){var ab=false,U=V[2],aa=V[3];if(U==1&&aa==0){return true}if(U==0){if(S.nodeIndex==aa){ab=true}}else{if((S.nodeIndex-aa)%U==0&&(S.nodeIndex-aa)/U>=0){ab=true}}return ab}}}}},PSEUDO:function(Y,U,V,Z){var T=U[1],W=H.filters[T];if(W){return W(Y,V,U,Z)}else{if(T==="contains"){return(Y.textContent||Y.innerText||"").indexOf(U[3])>=0}else{if(T==="not"){var X=U[3];for(var V=0,S=X.length;V=0:V==="~="?(" "+X+" ").indexOf(T)>=0:!U[4]?S:V==="!="?X!=T:V==="^="?X.indexOf(T)===0:V==="$="?X.substr(X.length-T.length)===T:V==="|="?X===T||X.substr(0,T.length+1)===T+"-":false},POS:function(W,T,U,X){var S=T[2],V=H.setFilters[S];if(V){return V(W,U,T,X)}}}};var L=H.match.POS;for(var N in H.match){H.match[N]=RegExp(H.match[N].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var E=function(T,S){T=Array.prototype.slice.call(T);if(S){S.push.apply(S,T);return S}return T};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(M){E=function(W,V){var T=V||[];if(G.call(W)==="[object Array]"){Array.prototype.push.apply(T,W)}else{if(typeof W.length==="number"){for(var U=0,S=W.length;U";var S=document.documentElement;S.insertBefore(T,S.firstChild);if(!!document.getElementById(U)){H.find.ID=function(W,X,Y){if(typeof X.getElementById!=="undefined"&&!Y){var V=X.getElementById(W[1]);return V?V.id===W[1]||typeof V.getAttributeNode!=="undefined"&&V.getAttributeNode("id").nodeValue===W[1]?[V]:g:[]}};H.filter.ID=function(X,V){var W=typeof X.getAttributeNode!=="undefined"&&X.getAttributeNode("id");return X.nodeType===1&&W&&W.nodeValue===V}}S.removeChild(T)})();(function(){var S=document.createElement("div");S.appendChild(document.createComment(""));if(S.getElementsByTagName("*").length>0){H.find.TAG=function(T,X){var W=X.getElementsByTagName(T[1]);if(T[1]==="*"){var V=[];for(var U=0;W[U];U++){if(W[U].nodeType===1){V.push(W[U])}}W=V}return W}}S.innerHTML="";if(S.firstChild&&S.firstChild.getAttribute("href")!=="#"){H.attrHandle.href=function(T){return T.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var S=F,T=document.createElement("div");T.innerHTML="

";if(T.querySelectorAll&&T.querySelectorAll(".TEST").length===0){return}F=function(X,W,U,V){W=W||document;if(!V&&W.nodeType===9&&!P(W)){try{return E(W.querySelectorAll(X),U)}catch(Y){}}return S(X,W,U,V)};F.find=S.find;F.filter=S.filter;F.selectors=S.selectors;F.matches=S.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){H.order.splice(1,0,"CLASS");H.find.CLASS=function(S,T){return T.getElementsByClassName(S[1])}}function O(T,Z,Y,ac,aa,ab){for(var W=0,U=ac.length;W0){W=S;break}}}S=S[T]}ab[V]=W}}}var J=document.compareDocumentPosition?function(T,S){return T.compareDocumentPosition(S)&16}:function(T,S){return T!==S&&(T.contains?T.contains(S):true)};var P=function(S){return S.nodeType===9&&S.documentElement.nodeName!=="HTML"||!!S.ownerDocument&&P(S.ownerDocument)};var I=function(S,Z){var V=[],W="",X,U=Z.nodeType?[Z]:Z;while((X=H.match.PSEUDO.exec(S))){W+=X[0];S=S.replace(H.match.PSEUDO,"")}S=H.relative[S]?S+"*":S;for(var Y=0,T=U.length;Y=0){I.type=G=G.slice(0,-1);I.exclusive=true}if(!H){I.stopPropagation();if(this.global[G]){o.each(o.cache,function(){if(this.events&&this.events[G]){o.event.trigger(I,K,this.handle.elem)}})}}if(!H||H.nodeType==3||H.nodeType==8){return g}I.result=g;I.target=H;K=o.makeArray(K);K.unshift(I)}I.currentTarget=H;var J=o.data(H,"handle");if(J){J.apply(H,K)}if((!H[G]||(o.nodeName(H,"a")&&G=="click"))&&H["on"+G]&&H["on"+G].apply(H,K)===false){I.result=false}if(!E&&H[G]&&!I.isDefaultPrevented()&&!(o.nodeName(H,"a")&&G=="click")){this.triggered=true;try{H[G]()}catch(L){}}this.triggered=false;if(!I.isPropagationStopped()){var F=H.parentNode||H.ownerDocument;if(F){o.event.trigger(I,K,F,true)}}},handle:function(K){var J,E;K=arguments[0]=o.event.fix(K||l.event);var L=K.type.split(".");K.type=L.shift();J=!L.length&&!K.exclusive;var I=RegExp("(^|\\.)"+L.slice().sort().join(".*\\.")+"(\\.|$)");E=(o.data(this,"events")||{})[K.type];for(var G in E){var H=E[G];if(J||I.test(H.type)){K.handler=H;K.data=H.data;var F=H.apply(this,arguments);if(F!==g){K.result=F;if(F===false){K.preventDefault();K.stopPropagation()}}if(K.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(H){if(H[h]){return H}var F=H;H=o.Event(F);for(var G=this.props.length,J;G;){J=this.props[--G];H[J]=F[J]}if(!H.target){H.target=H.srcElement||document}if(H.target.nodeType==3){H.target=H.target.parentNode}if(!H.relatedTarget&&H.fromElement){H.relatedTarget=H.fromElement==H.target?H.toElement:H.fromElement}if(H.pageX==null&&H.clientX!=null){var I=document.documentElement,E=document.body;H.pageX=H.clientX+(I&&I.scrollLeft||E&&E.scrollLeft||0)-(I.clientLeft||0);H.pageY=H.clientY+(I&&I.scrollTop||E&&E.scrollTop||0)-(I.clientTop||0)}if(!H.which&&((H.charCode||H.charCode===0)?H.charCode:H.keyCode)){H.which=H.charCode||H.keyCode}if(!H.metaKey&&H.ctrlKey){H.metaKey=H.ctrlKey}if(!H.which&&H.button){H.which=(H.button&1?1:(H.button&2?3:(H.button&4?2:0)))}return H},proxy:function(F,E){E=E||function(){return F.apply(this,arguments)};E.guid=F.guid=F.guid||E.guid||this.guid++;return E},special:{ready:{setup:B,teardown:function(){}}},specialAll:{live:{setup:function(E,F){o.event.add(this,F[0],c)},teardown:function(G){if(G.length){var E=0,F=RegExp("(^|\\.)"+G[0]+"(\\.|$)");o.each((o.data(this,"events").live||{}),function(){if(F.test(this.type)){E++}});if(E<1){o.event.remove(this,G[0],c)}}}}}};o.Event=function(E){if(!this.preventDefault){return new o.Event(E)}if(E&&E.type){this.originalEvent=E;this.type=E.type}else{this.type=E}this.timeStamp=e();this[h]=true};function k(){return false}function u(){return true}o.Event.prototype={preventDefault:function(){this.isDefaultPrevented=u;var E=this.originalEvent;if(!E){return}if(E.preventDefault){E.preventDefault()}E.returnValue=false},stopPropagation:function(){this.isPropagationStopped=u;var E=this.originalEvent;if(!E){return}if(E.stopPropagation){E.stopPropagation()}E.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u;this.stopPropagation()},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k};var a=function(F){var E=F.relatedTarget;while(E&&E!=this){try{E=E.parentNode}catch(G){E=this}}if(E!=this){F.type=F.data;o.event.handle.apply(this,arguments)}};o.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(F,E){o.event.special[E]={setup:function(){o.event.add(this,F,a,E)},teardown:function(){o.event.remove(this,F,a)}}});o.fn.extend({bind:function(F,G,E){return F=="unload"?this.one(F,G,E):this.each(function(){o.event.add(this,F,E||G,E&&G)})},one:function(G,H,F){var E=o.event.proxy(F||H,function(I){o(this).unbind(I,E);return(F||H).apply(this,arguments)});return this.each(function(){o.event.add(this,G,E,F&&H)})},unbind:function(F,E){return this.each(function(){o.event.remove(this,F,E)})},trigger:function(E,F){return this.each(function(){o.event.trigger(E,F,this)})},triggerHandler:function(E,G){if(this[0]){var F=o.Event(E);F.preventDefault();F.stopPropagation();o.event.trigger(F,G,this[0]);return F.result}},toggle:function(G){var E=arguments,F=1;while(F=0){var E=G.slice(I,G.length);G=G.slice(0,I)}var H="GET";if(J){if(o.isFunction(J)){K=J;J=null}else{if(typeof J==="object"){J=o.param(J);H="POST"}}}var F=this;o.ajax({url:G,type:H,dataType:"html",data:J,complete:function(M,L){if(L=="success"||L=="notmodified"){F.html(E?o("
").append(M.responseText.replace(//g,"")).find(E):M.responseText)}if(K){F.each(K,[M.responseText,L,M])}}});return this},serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?o.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password/i.test(this.type))}).map(function(E,F){var G=o(this).val();return G==null?null:o.isArray(G)?o.map(G,function(I,H){return{name:F.name,value:I}}):{name:F.name,value:G}}).get()}});o.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(E,F){o.fn[F]=function(G){return this.bind(F,G)}});var r=e();o.extend({get:function(E,G,H,F){if(o.isFunction(G)){H=G;G=null}return o.ajax({type:"GET",url:E,data:G,success:H,dataType:F})},getScript:function(E,F){return o.get(E,null,F,"script")},getJSON:function(E,F,G){return o.get(E,F,G,"json")},post:function(E,G,H,F){if(o.isFunction(G)){H=G;G={}}return o.ajax({type:"POST",url:E,data:G,success:H,dataType:F})},ajaxSetup:function(E){o.extend(o.ajaxSettings,E)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return l.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(M){M=o.extend(true,M,o.extend(true,{},o.ajaxSettings,M));var W,F=/=\?(&|$)/g,R,V,G=M.type.toUpperCase();if(M.data&&M.processData&&typeof M.data!=="string"){M.data=o.param(M.data)}if(M.dataType=="jsonp"){if(G=="GET"){if(!M.url.match(F)){M.url+=(M.url.match(/\?/)?"&":"?")+(M.jsonp||"callback")+"=?"}}else{if(!M.data||!M.data.match(F)){M.data=(M.data?M.data+"&":"")+(M.jsonp||"callback")+"=?"}}M.dataType="json"}if(M.dataType=="json"&&(M.data&&M.data.match(F)||M.url.match(F))){W="jsonp"+r++;if(M.data){M.data=(M.data+"").replace(F,"="+W+"$1")}M.url=M.url.replace(F,"="+W+"$1");M.dataType="script";l[W]=function(X){V=X;I();L();l[W]=g;try{delete l[W]}catch(Y){}if(H){H.removeChild(T)}}}if(M.dataType=="script"&&M.cache==null){M.cache=false}if(M.cache===false&&G=="GET"){var E=e();var U=M.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+E+"$2");M.url=U+((U==M.url)?(M.url.match(/\?/)?"&":"?")+"_="+E:"")}if(M.data&&G=="GET"){M.url+=(M.url.match(/\?/)?"&":"?")+M.data;M.data=null}if(M.global&&!o.active++){o.event.trigger("ajaxStart")}var Q=/^(\w+:)?\/\/([^\/?#]+)/.exec(M.url);if(M.dataType=="script"&&G=="GET"&&Q&&(Q[1]&&Q[1]!=location.protocol||Q[2]!=location.host)){var H=document.getElementsByTagName("head")[0];var T=document.createElement("script");T.src=M.url;if(M.scriptCharset){T.charset=M.scriptCharset}if(!W){var O=false;T.onload=T.onreadystatechange=function(){if(!O&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){O=true;I();L();H.removeChild(T)}}}H.appendChild(T);return g}var K=false;var J=M.xhr();if(M.username){J.open(G,M.url,M.async,M.username,M.password)}else{J.open(G,M.url,M.async)}try{if(M.data){J.setRequestHeader("Content-Type",M.contentType)}if(M.ifModified){J.setRequestHeader("If-Modified-Since",o.lastModified[M.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}J.setRequestHeader("X-Requested-With","XMLHttpRequest");J.setRequestHeader("Accept",M.dataType&&M.accepts[M.dataType]?M.accepts[M.dataType]+", */*":M.accepts._default)}catch(S){}if(M.beforeSend&&M.beforeSend(J,M)===false){if(M.global&&!--o.active){o.event.trigger("ajaxStop")}J.abort();return false}if(M.global){o.event.trigger("ajaxSend",[J,M])}var N=function(X){if(J.readyState==0){if(P){clearInterval(P);P=null;if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}}else{if(!K&&J&&(J.readyState==4||X=="timeout")){K=true;if(P){clearInterval(P);P=null}R=X=="timeout"?"timeout":!o.httpSuccess(J)?"error":M.ifModified&&o.httpNotModified(J,M.url)?"notmodified":"success";if(R=="success"){try{V=o.httpData(J,M.dataType,M)}catch(Z){R="parsererror"}}if(R=="success"){var Y;try{Y=J.getResponseHeader("Last-Modified")}catch(Z){}if(M.ifModified&&Y){o.lastModified[M.url]=Y}if(!W){I()}}else{o.handleError(M,J,R)}L();if(X){J.abort()}if(M.async){J=null}}}};if(M.async){var P=setInterval(N,13);if(M.timeout>0){setTimeout(function(){if(J&&!K){N("timeout")}},M.timeout)}}try{J.send(M.data)}catch(S){o.handleError(M,J,null,S)}if(!M.async){N()}function I(){if(M.success){M.success(V,R)}if(M.global){o.event.trigger("ajaxSuccess",[J,M])}}function L(){if(M.complete){M.complete(J,R)}if(M.global){o.event.trigger("ajaxComplete",[J,M])}if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}return J},handleError:function(F,H,E,G){if(F.error){F.error(H,E,G)}if(F.global){o.event.trigger("ajaxError",[H,F,G])}},active:0,httpSuccess:function(F){try{return !F.status&&location.protocol=="file:"||(F.status>=200&&F.status<300)||F.status==304||F.status==1223}catch(E){}return false},httpNotModified:function(G,E){try{var H=G.getResponseHeader("Last-Modified");return G.status==304||H==o.lastModified[E]}catch(F){}return false},httpData:function(J,H,G){var F=J.getResponseHeader("content-type"),E=H=="xml"||!H&&F&&F.indexOf("xml")>=0,I=E?J.responseXML:J.responseText;if(E&&I.documentElement.tagName=="parsererror"){throw"parsererror"}if(G&&G.dataFilter){I=G.dataFilter(I,H)}if(typeof I==="string"){if(H=="script"){o.globalEval(I)}if(H=="json"){I=l["eval"]("("+I+")")}}return I},param:function(E){var G=[];function H(I,J){G[G.length]=encodeURIComponent(I)+"="+encodeURIComponent(J)}if(o.isArray(E)||E.jquery){o.each(E,function(){H(this.name,this.value)})}else{for(var F in E){if(o.isArray(E[F])){o.each(E[F],function(){H(F,this)})}else{H(F,o.isFunction(E[F])?E[F]():E[F])}}}return G.join("&").replace(/%20/g,"+")}});var m={},n,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function t(F,E){var G={};o.each(d.concat.apply([],d.slice(0,E)),function(){G[this]=F});return G}o.fn.extend({show:function(J,L){if(J){return this.animate(t("show",3),J,L)}else{for(var H=0,F=this.length;H").appendTo("body");K=I.css("display");if(K==="none"){K="block"}I.remove();m[G]=K}this[H].style.display=o.data(this[H],"olddisplay",K)}}return this}},hide:function(H,I){if(H){return this.animate(t("hide",3),H,I)}else{for(var G=0,F=this.length;G=0;H--){if(G[H].elem==this){if(E){G[H](true)}G.splice(H,1)}}});if(!E){this.dequeue()}return this}});o.each({slideDown:t("show",1),slideUp:t("hide",1),slideToggle:t("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(E,F){o.fn[E]=function(G,H){return this.animate(F,G,H)}});o.extend({speed:function(G,H,F){var E=typeof G==="object"?G:{complete:F||!F&&H||o.isFunction(G)&&G,duration:G,easing:F&&H||H&&!o.isFunction(H)&&H};E.duration=o.fx.off?0:typeof E.duration==="number"?E.duration:o.fx.speeds[E.duration]||o.fx.speeds._default;E.old=E.complete;E.complete=function(){if(E.queue!==false){o(this).dequeue()}if(o.isFunction(E.old)){E.old.call(this)}};return E},easing:{linear:function(G,H,E,F){return E+F*G},swing:function(G,H,E,F){return((-Math.cos(G*Math.PI)/2)+0.5)*F+E}},timers:[],fx:function(F,E,G){this.options=E;this.elem=F;this.prop=G;if(!E.orig){E.orig={}}}});o.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(o.fx.step[this.prop]||o.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(F){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var E=parseFloat(o.css(this.elem,this.prop,F));return E&&E>-10000?E:parseFloat(o.curCSS(this.elem,this.prop))||0},custom:function(I,H,G){this.startTime=e();this.start=I;this.end=H;this.unit=G||this.unit||"px";this.now=this.start;this.pos=this.state=0;var E=this;function F(J){return E.step(J)}F.elem=this.elem;if(F()&&o.timers.push(F)==1){n=setInterval(function(){var K=o.timers;for(var J=0;J=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var E=true;for(var F in this.options.curAnim){if(this.options.curAnim[F]!==true){E=false}}if(E){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(o.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){o(this.elem).hide()}if(this.options.hide||this.options.show){for(var I in this.options.curAnim){o.attr(this.elem.style,I,this.options.orig[I])}}this.options.complete.call(this.elem)}return false}else{var J=G-this.startTime;this.state=J/this.options.duration;this.pos=o.easing[this.options.easing||(o.easing.swing?"swing":"linear")](this.state,J,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};o.extend(o.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(E){o.attr(E.elem.style,"opacity",E.now)},_default:function(E){if(E.elem.style&&E.elem.style[E.prop]!=null){E.elem.style[E.prop]=E.now+E.unit}else{E.elem[E.prop]=E.now}}}});if(document.documentElement.getBoundingClientRect){o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}var G=this[0].getBoundingClientRect(),J=this[0].ownerDocument,F=J.body,E=J.documentElement,L=E.clientTop||F.clientTop||0,K=E.clientLeft||F.clientLeft||0,I=G.top+(self.pageYOffset||o.boxModel&&E.scrollTop||F.scrollTop)-L,H=G.left+(self.pageXOffset||o.boxModel&&E.scrollLeft||F.scrollLeft)-K;return{top:I,left:H}}}else{o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}o.offset.initialized||o.offset.initialize();var J=this[0],G=J.offsetParent,F=J,O=J.ownerDocument,M,H=O.documentElement,K=O.body,L=O.defaultView,E=L.getComputedStyle(J,null),N=J.offsetTop,I=J.offsetLeft;while((J=J.parentNode)&&J!==K&&J!==H){M=L.getComputedStyle(J,null);N-=J.scrollTop,I-=J.scrollLeft;if(J===G){N+=J.offsetTop,I+=J.offsetLeft;if(o.offset.doesNotAddBorder&&!(o.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(J.tagName))){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}F=G,G=J.offsetParent}if(o.offset.subtractsBorderForOverflowNotVisible&&M.overflow!=="visible"){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}E=M}if(E.position==="relative"||E.position==="static"){N+=K.offsetTop,I+=K.offsetLeft}if(E.position==="fixed"){N+=Math.max(H.scrollTop,K.scrollTop),I+=Math.max(H.scrollLeft,K.scrollLeft)}return{top:N,left:I}}}o.offset={initialize:function(){if(this.initialized){return}var L=document.body,F=document.createElement("div"),H,G,N,I,M,E,J=L.style.marginTop,K='
';M={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(E in M){F.style[E]=M[E]}F.innerHTML=K;L.insertBefore(F,L.firstChild);H=F.firstChild,G=H.firstChild,I=H.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(G.offsetTop!==5);this.doesAddBorderForTableAndCells=(I.offsetTop===5);H.style.overflow="hidden",H.style.position="relative";this.subtractsBorderForOverflowNotVisible=(G.offsetTop===-5);L.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(L.offsetTop===0);L.style.marginTop=J;L.removeChild(F);this.initialized=true},bodyOffset:function(E){o.offset.initialized||o.offset.initialize();var G=E.offsetTop,F=E.offsetLeft;if(o.offset.doesNotIncludeMarginInBodyOffset){G+=parseInt(o.curCSS(E,"marginTop",true),10)||0,F+=parseInt(o.curCSS(E,"marginLeft",true),10)||0}return{top:G,left:F}}};o.fn.extend({position:function(){var I=0,H=0,F;if(this[0]){var G=this.offsetParent(),J=this.offset(),E=/^body|html$/i.test(G[0].tagName)?{top:0,left:0}:G.offset();J.top-=j(this,"marginTop");J.left-=j(this,"marginLeft");E.top+=j(G,"borderTopWidth");E.left+=j(G,"borderLeftWidth");F={top:J.top-E.top,left:J.left-E.left}}return F},offsetParent:function(){var E=this[0].offsetParent||document.body;while(E&&(!/^body|html$/i.test(E.tagName)&&o.css(E,"position")=="static")){E=E.offsetParent}return o(E)}});o.each(["Left","Top"],function(F,E){var G="scroll"+E;o.fn[G]=function(H){if(!this[0]){return null}return H!==g?this.each(function(){this==l||this==document?l.scrollTo(!F?H:o(l).scrollLeft(),F?H:o(l).scrollTop()):this[G]=H}):this[0]==l||this[0]==document?self[F?"pageYOffset":"pageXOffset"]||o.boxModel&&document.documentElement[G]||document.body[G]:this[0][G]}});o.each(["Height","Width"],function(H,F){var E=H?"Left":"Top",G=H?"Right":"Bottom";o.fn["inner"+F]=function(){return this[F.toLowerCase()]()+j(this,"padding"+E)+j(this,"padding"+G)};o.fn["outer"+F]=function(J){return this["inner"+F]()+j(this,"border"+E+"Width")+j(this,"border"+G+"Width")+(J?j(this,"margin"+E)+j(this,"margin"+G):0)};var I=F.toLowerCase();o.fn[I]=function(J){return this[0]==l?document.compatMode=="CSS1Compat"&&document.documentElement["client"+F]||document.body["client"+F]:this[0]==document?Math.max(document.documentElement["client"+F],document.body["scroll"+F],document.documentElement["scroll"+F],document.body["offset"+F],document.documentElement["offset"+F]):J===g?(this.length?o.css(this[0],I):null):this.css(I,typeof J==="string"?J:J+"px")}})})(); -------------------------------------------------------------------------------- /examples/example1/js/02_cufon-yui.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2009 Simo Kinnunen. 3 | * Licensed under the MIT license. 4 | */ 5 | var Cufon=(function(){var L=function(){return L.replace.apply(null,arguments)};var W=L.DOM={ready:(function(){var b=false,d={loaded:1,complete:1};var a=[],c=function(){if(b){return}b=true;for(var e;e=a.shift();e()){}};if(document.addEventListener){document.addEventListener("DOMContentLoaded",c,false);window.addEventListener("pageshow",c,false)}if(!window.opera&&document.readyState){(function(){d[document.readyState]?c():setTimeout(arguments.callee,10)})()}if(document.readyState&&document.createStyleSheet){(function(){try{document.body.doScroll("left");c()}catch(f){setTimeout(arguments.callee,1)}})()}P(window,"load",c);return function(e){if(!arguments.length){c()}else{b?e():a.push(e)}}})()};var M=L.CSS={Size:function(b,a){this.value=parseFloat(b);this.unit=String(b).match(/[a-z%]*$/)[0]||"px";this.convert=function(c){return c/a*this.value};this.convertFrom=function(c){return c/this.value*a};this.toString=function(){return this.value+this.unit}},color:I(function(b){var a={};a.color=b.replace(/^rgba\((.*?),\s*([\d.]+)\)/,function(d,c,e){a.opacity=parseFloat(e);return"rgb("+c+")"});return a}),fontStretch:I(function(a){if(typeof a=="number"){return a}if(/%$/.test(a)){return parseFloat(a)/100}return{"ultra-condensed":0.5,"extra-condensed":0.625,condensed:0.75,"semi-condensed":0.875,"semi-expanded":1.125,expanded:1.25,"extra-expanded":1.5,"ultra-expanded":2}[a]||1}),getStyle:function(b){var a=document.defaultView;if(a&&a.getComputedStyle){return new A(a.getComputedStyle(b,null))}if(b.currentStyle){return new A(b.currentStyle)}return new A(b.style)},gradient:I(function(e){var f={id:e,type:e.match(/^-([a-z]+)-gradient\(/)[1],stops:[]},b=e.substr(e.indexOf("(")).match(/([\d.]+=)?(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)/ig);for(var d=0,a=b.length,c;d0){d=" "+d}}else{if(a400}if(h==500){h=400}for(var i in f){if(!J(f,i)){continue}i=parseInt(i,10);if(!e||ic){c=i}j.push(i)}if(hc){h=c}j.sort(function(l,k){return(d?(l>h&&k>h)?lk:(lk:lv){v=q}if(o>t){t=o}if(q.cufon-vml-canvas{text-indent:0;}@media screen{cvml\\:shape,cvml\\:rect,cvml\\:fill,cvml\\:shadow{behavior:url(#default#VML);display:block;antialias:true;position:absolute;}.cufon-vml-canvas{position:absolute;text-align:left;}.cufon-vml{display:inline-block;position:relative;vertical-align:'+(F?"middle":"text-bottom")+";}.cufon-vml .cufon-alt{position:absolute;left:-10000in;font-size:1px;}a .cufon-vml{cursor:pointer}}@media print{.cufon-vml *{display:none;}.cufon-vml .cufon-alt{display:inline;}}").replace(/;/g,"!important;"));function C(G,H){return A(G,/(?:em|ex|%)$/i.test(H)?"1em":H)}function A(J,K){if(/px$/i.test(K)){return parseFloat(K)}var I=J.style.left,H=J.runtimeStyle.left;J.runtimeStyle.left=J.currentStyle.left;J.style.left=K.replace("%","em");var G=J.style.pixelLeft;J.style.left=I;J.runtimeStyle.left=H;return G}var E={};function D(L){var M=L.id;if(!E[M]){var J=L.stops,K=document.createElement("cvml:fill"),G=[];K.type="gradient";K.angle=180;K.focus="0";K.method="sigma";K.color=J[0][1];for(var I=1,H=J.length-1;I 8 | SetOutputFilter DEFLATE 9 | 10 | 11 | #Turn ETagging on for Booster PHP files 12 | 13 | FileETag MTime Size 14 | 15 | #Give access even if webmaster has globally forbidden access 16 | Order deny,allow 17 | Allow from all 18 | Satisfy any 19 | 20 | 21 | #Force caching of some common files for some time in the browser's cache, to save bandwidth. 22 | #"Mod_expires" needs to be installed in your Apache server, to use this feature. 23 | 24 | ExpiresActive On 25 | ExpiresDefault "access plus 1 minutes" 26 | ExpiresByType text/html "access plus 1 minutes" 27 | ExpiresByType text/css "access plus 35 days" 28 | ExpiresByType text/javascript "access plus 35 days" 29 | ExpiresByType text/plain "access plus 35 days" 30 | ExpiresByType application/x-javascript "access plus 35 days" 31 | ExpiresByType application/x-shockwave-flash "access plus 35 days" 32 | ExpiresByType image/gif "access plus 1 years" 33 | ExpiresByType image/jpeg "access plus 1 years" 34 | ExpiresByType image/jpg "access plus 1 years" 35 | ExpiresByType image/png "access plus 1 years" 36 | ExpiresByType image/x-icon "access plus 1 years" 37 | 38 | 39 | 40 | mod_gzip_on Yes 41 | mod_gzip_dechunk Yes 42 | mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$ 43 | mod_gzip_item_include handler ^cgi-script$ 44 | mod_gzip_item_include mime ^text/.* 45 | mod_gzip_item_include mime ^application/x-javascript.* 46 | mod_gzip_item_exclude mime ^image/.* 47 | mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.* 48 | 49 | 50 | #Alternative caching using Apache's "mod_headers", if it's installed. 51 | #Caching of common files - ENABLED 52 | 53 | 54 | Header set Cache-Control "max-age=2592000, public" 55 | 56 | #Remove comments, to disable video caching to the user's browser 57 | # 58 | #Header set Cache-Control "max-age=0, public" 59 | # 60 | 61 | #CSS-JS-Booster End################################################# 62 | -------------------------------------------------------------------------------- /license.txt: -------------------------------------------------------------------------------- 1 | GNU LESSER GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | 9 | This version of the GNU Lesser General Public License incorporates 10 | the terms and conditions of version 3 of the GNU General Public 11 | License, supplemented by the additional permissions listed below. 12 | 13 | 0. Additional Definitions. 14 | 15 | As used herein, "this License" refers to version 3 of the GNU Lesser 16 | General Public License, and the "GNU GPL" refers to version 3 of the GNU 17 | General Public License. 18 | 19 | "The Library" refers to a covered work governed by this License, 20 | other than an Application or a Combined Work as defined below. 21 | 22 | An "Application" is any work that makes use of an interface provided 23 | by the Library, but which is not otherwise based on the Library. 24 | Defining a subclass of a class defined by the Library is deemed a mode 25 | of using an interface provided by the Library. 26 | 27 | A "Combined Work" is a work produced by combining or linking an 28 | Application with the Library. The particular version of the Library 29 | with which the Combined Work was made is also called the "Linked 30 | Version". 31 | 32 | The "Minimal Corresponding Source" for a Combined Work means the 33 | Corresponding Source for the Combined Work, excluding any source code 34 | for portions of the Combined Work that, considered in isolation, are 35 | based on the Application, and not on the Linked Version. 36 | 37 | The "Corresponding Application Code" for a Combined Work means the 38 | object code and/or source code for the Application, including any data 39 | and utility programs needed for reproducing the Combined Work from the 40 | Application, but excluding the System Libraries of the Combined Work. 41 | 42 | 1. Exception to Section 3 of the GNU GPL. 43 | 44 | You may convey a covered work under sections 3 and 4 of this License 45 | without being bound by section 3 of the GNU GPL. 46 | 47 | 2. Conveying Modified Versions. 48 | 49 | If you modify a copy of the Library, and, in your modifications, a 50 | facility refers to a function or data to be supplied by an Application 51 | that uses the facility (other than as an argument passed when the 52 | facility is invoked), then you may convey a copy of the modified 53 | version: 54 | 55 | a) under this License, provided that you make a good faith effort to 56 | ensure that, in the event an Application does not supply the 57 | function or data, the facility still operates, and performs 58 | whatever part of its purpose remains meaningful, or 59 | 60 | b) under the GNU GPL, with none of the additional permissions of 61 | this License applicable to that copy. 62 | 63 | 3. Object Code Incorporating Material from Library Header Files. 64 | 65 | The object code form of an Application may incorporate material from 66 | a header file that is part of the Library. You may convey such object 67 | code under terms of your choice, provided that, if the incorporated 68 | material is not limited to numerical parameters, data structure 69 | layouts and accessors, or small macros, inline functions and templates 70 | (ten or fewer lines in length), you do both of the following: 71 | 72 | a) Give prominent notice with each copy of the object code that the 73 | Library is used in it and that the Library and its use are 74 | covered by this License. 75 | 76 | b) Accompany the object code with a copy of the GNU GPL and this license 77 | document. 78 | 79 | 4. Combined Works. 80 | 81 | You may convey a Combined Work under terms of your choice that, 82 | taken together, effectively do not restrict modification of the 83 | portions of the Library contained in the Combined Work and reverse 84 | engineering for debugging such modifications, if you also do each of 85 | the following: 86 | 87 | a) Give prominent notice with each copy of the Combined Work that 88 | the Library is used in it and that the Library and its use are 89 | covered by this License. 90 | 91 | b) Accompany the Combined Work with a copy of the GNU GPL and this license 92 | document. 93 | 94 | c) For a Combined Work that displays copyright notices during 95 | execution, include the copyright notice for the Library among 96 | these notices, as well as a reference directing the user to the 97 | copies of the GNU GPL and this license document. 98 | 99 | d) Do one of the following: 100 | 101 | 0) Convey the Minimal Corresponding Source under the terms of this 102 | License, and the Corresponding Application Code in a form 103 | suitable for, and under terms that permit, the user to 104 | recombine or relink the Application with a modified version of 105 | the Linked Version to produce a modified Combined Work, in the 106 | manner specified by section 6 of the GNU GPL for conveying 107 | Corresponding Source. 108 | 109 | 1) Use a suitable shared library mechanism for linking with the 110 | Library. A suitable mechanism is one that (a) uses at run time 111 | a copy of the Library already present on the user's computer 112 | system, and (b) will operate properly with a modified version 113 | of the Library that is interface-compatible with the Linked 114 | Version. 115 | 116 | e) Provide Installation Information, but only if you would otherwise 117 | be required to provide such information under section 6 of the 118 | GNU GPL, and only to the extent that such information is 119 | necessary to install and execute a modified version of the 120 | Combined Work produced by recombining or relinking the 121 | Application with a modified version of the Linked Version. (If 122 | you use option 4d0, the Installation Information must accompany 123 | the Minimal Corresponding Source and Corresponding Application 124 | Code. If you use option 4d1, you must provide the Installation 125 | Information in the manner specified by section 6 of the GNU GPL 126 | for conveying Corresponding Source.) 127 | 128 | 5. Combined Libraries. 129 | 130 | You may place library facilities that are a work based on the 131 | Library side by side in a single library together with other library 132 | facilities that are not Applications and are not covered by this 133 | License, and convey such a combined library under terms of your 134 | choice, if you do both of the following: 135 | 136 | a) Accompany the combined library with a copy of the same work based 137 | on the Library, uncombined with any other library facilities, 138 | conveyed under the terms of this License. 139 | 140 | b) Give prominent notice with the combined library that part of it 141 | is a work based on the Library, and explaining where to find the 142 | accompanying uncombined form of the same work. 143 | 144 | 6. Revised Versions of the GNU Lesser General Public License. 145 | 146 | The Free Software Foundation may publish revised and/or new versions 147 | of the GNU Lesser General Public License from time to time. Such new 148 | versions will be similar in spirit to the present version, but may 149 | differ in detail to address new problems or concerns. 150 | 151 | Each version is given a distinguishing version number. If the 152 | Library as you received it specifies that a certain numbered version 153 | of the GNU Lesser General Public License "or any later version" 154 | applies to it, you have the option of following the terms and 155 | conditions either of that published version or of any later version 156 | published by the Free Software Foundation. If the Library as you 157 | received it does not specify a version number of the GNU Lesser 158 | General Public License, you may choose any version of the GNU Lesser 159 | General Public License ever published by the Free Software Foundation. 160 | 161 | If the Library as you received it specifies that a proxy can decide 162 | whether future versions of the GNU Lesser General Public License shall 163 | apply, that proxy's public statement of acceptance of any version is 164 | permanent authorization for you to choose that version for the 165 | Library. 166 | --------------------------------------------------------------------------------