tenweb-speed-optimizer
/
vendor
/
mrclay
/
jsmin-php
/
tests
/
Resources
/
minify
/
expected
/
before.js
tenweb-speed-optimizer
/
vendor
/
mrclay
/
jsmin-php
/
tests
/
Resources
/
minify
/
expected
Last commit date
before.js
4 years ago
class.js
3 years ago
comment.js
3 years ago
condcomm.js
4 years ago
control-chars.js
3 years ago
es6-literal.js
3 years ago
issue144.js
4 years ago
issue256.js
4 years ago
keyword-regex.js
4 years ago
not-regexp.js
4 years ago
regexes.js
4 years ago
starts-regex.js
4 years ago
tab-in-comment.js
3 years ago
token-regexp.js
4 years ago
before.js
27 lines
| 1 | /*! is.js |
| 2 | |
| 3 | (c) 2001 Douglas Crockford |
| 4 | 2001 June 3 |
| 5 | */ |
| 6 | var is={ie:navigator.appName=='Microsoft Internet Explorer',java:navigator.javaEnabled(),ns:navigator.appName=='Netscape',ua:navigator.userAgent.toLowerCase(),version:parseFloat(navigator.appVersion.substr(21))||parseFloat(navigator.appVersion),win:navigator.platform=='Win32'} |
| 7 | /*!* |
| 8 | * preserve this comment, too |
| 9 | */ |
| 10 | is.mac=is.ua.indexOf('mac')>=0;if(is.ua.indexOf('opera')>=0){is.ie=is.ns=false;is.opera=true;} |
| 11 | if(is.ua.indexOf('gecko')>=0){is.ie=is.ns=false;is.gecko=true;}/*@cc_on |
| 12 | /*@if (@_win32) |
| 13 | if (is.ie && is.win) |
| 14 | document.write("PASS: IE/win honored conditional comment.<br>"); |
| 15 | @else @*/if(is.ie&&is.win) |
| 16 | document.write("FAIL: IE/win did not honor multi-line conditional comment.<br>");else |
| 17 | document.write("PASS: Non-IE/win browser ignores multi-line conditional comment.<br>");/*@end |
| 18 | @*/var recognizesCondComm=true;//@cc_on/* |
| 19 | recognizesCondComm=false;//@cc_on*/ |
| 20 | if((is.ie&&is.win)==recognizesCondComm) |
| 21 | document.write("PASS: IE/win honored single-line conditional comment.<br>");else |
| 22 | document.write("FAIL: Non-IE/win browser did not ignore single-line conditional comment.<br>");//@cc_on/* |
| 23 | //@cc_on*/ |
| 24 | //@cc_on/* |
| 25 | 'hello'; |
| 26 | /*!* preserved */ |
| 27 | /*!* preserved */ |