Skip to content

Commit

Permalink
fix for detection of Win7. Fix demo for opera 12
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-troll committed Jun 15, 2012
1 parent 17129bb commit cea9452
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion browser_suggest_en.js
Expand Up @@ -85,7 +85,7 @@ var browser_toolbar_init=function(){
windows='xp';
else if(navigator.userAgent.indexOf("Windows NT 6.0")>0)
windows='vista';
else if(navigator.userAgent.indexOf("Windows NT 7.0")>0)
else if(navigator.userAgent.indexOf("Windows NT 6.1")>0)
windows='seven';
else return;

Expand Down
2 changes: 1 addition & 1 deletion browser_suggest_ru.js
Expand Up @@ -85,7 +85,7 @@ var browser_toolbar_init=function(){
windows='xp';
else if(navigator.userAgent.indexOf("Windows NT 6.0")>0)
windows='vista';
else if(navigator.userAgent.indexOf("Windows NT 7.0")>0)
else if(navigator.userAgent.indexOf("Windows NT 6.1")>0)
windows='seven';
else return;

Expand Down
2 changes: 1 addition & 1 deletion demo_bookmark_en.html
Expand Up @@ -14,6 +14,6 @@
</head>
<body>
<a href="javascript:(function(){var%20ele=document.documentElement.appendChild(document.createElement('script'));ele.charset='windows-1251';ele.src='http://2s.ru/2012/t142_browser_suggest/browser_suggest_en.js';/*ele.parentNode.removeChild(ele);*/})()">BOOKMARK or click this with default browser check</a><br>
<a href="javascript:(function(){%20stable_browsers={'Explorer':10,'Firefox':25,'Opera':12,'Chrome':22};var%20ele=document.documentElement.appendChild(document.createElement('script'));ele.charset='windows-1251';ele.src='http://2s.ru/2012/t142_browser_suggest/browser_suggest.js';/*ele.parentNode.removeChild(ele);*/})()">BOOKMARK or click this with force browser check (stable_browsers={'Explorer':10,'Firefox':15,'Opera':12,'Chrome':22})</a>
<a href="javascript:(function(){%20stable_browsers={'Explorer':10,'Firefox':25,'Opera':15,'Chrome':22};var%20ele=document.documentElement.appendChild(document.createElement('script'));ele.charset='windows-1251';ele.src='http://2s.ru/2012/t142_browser_suggest/browser_suggest.js';/*ele.parentNode.removeChild(ele);*/})()">BOOKMARK or click this with force browser check (stable_browsers={'Explorer':10,'Firefox':25,'Opera':15,'Chrome':22})</a>
</body>
</html>
2 changes: 1 addition & 1 deletion demo_bookmark_ru.html
Expand Up @@ -14,6 +14,6 @@
</head>
<body>
<a href="javascript:(function(){var%20ele=document.documentElement.appendChild(document.createElement('script'));ele.charset='windows-1251';ele.src='http://2s.ru/2012/t142_browser_suggest/browser_suggest_ru.js';/*ele.parentNode.removeChild(ele);*/})()">BOOKMARK or click this with default browser check</a><br>
<a href="javascript:(function(){%20stable_browsers={'Explorer':10,'Firefox':25,'Opera':12,'Chrome':22};var%20ele=document.documentElement.appendChild(document.createElement('script'));ele.charset='windows-1251';ele.src='http://2s.ru/2012/t142_browser_suggest/browser_suggest_ru.js';/*ele.parentNode.removeChild(ele);*/})()">BOOKMARK or click this with force browser check (stable_browsers={'Explorer':10,'Firefox':25,'Opera':12,'Chrome':22})</a>
<a href="javascript:(function(){%20stable_browsers={'Explorer':10,'Firefox':25,'Opera':15,'Chrome':22};var%20ele=document.documentElement.appendChild(document.createElement('script'));ele.charset='windows-1251';ele.src='http://2s.ru/2012/t142_browser_suggest/browser_suggest_ru.js';/*ele.parentNode.removeChild(ele);*/})()">BOOKMARK or click this with force browser check (stable_browsers={'Explorer':10,'Firefox':25,'Opera':15,'Chrome':22})</a>
</body>
</html>

0 comments on commit cea9452

Please sign in to comment.