if (document.all) killItWithFire();
Ondřej Žára, Seznam.cz
Chuck Norris' copy of IE6 can render transparent PNGs correctly.
this.is_ie4up = this.is_ie && this.is_major >= 4; this.is_ie5 = this.is_ie && this.is_major == 4 && this.agent.indexOf("msie 5.0") != -1; this.is_ie5_5 = this.is_ie && this.is_major == 4 && this.agent.indexOf("msie 5.5") != -1; this.is_ie5up = this.is_ie && !this.is_ie3 && !this.is_ie4; this.is_ie5_5up = this.is_ie && !this.is_ie3 && !this.is_ie4 && !this.is_ie5; this.is_ie6 = this.is_ie && this.is_major == 4 && this.agent.indexOf("msie 6.") != -1; this.is_ie6up = this.is_ie && !this.is_ie3 && !this.is_ie4 && !this.is_ie5 && !this.is_ie5_5;
Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1468.0 Safari/537.36
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; en) Opera 9.50
Mozilla/5.0 (IE 11.0; Windows NT 6.3; Trident/7.0; .NET4.0E; .NET4.0C; rv:11.9) like Gecko
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; InfoPath.2)
Nintendo64/1.0 (SuperMarioOS with Cray-II Y-MP Emulation)
if ("draggable" in document.body) { ... }
window.requestAnimationFrame = window.requestAnimationFrame || window.mozRquestAnimationFrame || ... || function() { setTimeout(...) }
if (a) a else b
lépe if (!a) a = ...
Prostor pro otázky
Ondřej Žára, vývojář UI, ondrej.zara@firma.seznam.cz