Skip to content
Browse files

bird update

  • Loading branch information...
1 parent 705b9cc commit b894da7aee9ed226165dcd8bc02a393489d04b5e Vladimir Aderikhin committed Jun 4, 2012
Showing with 96 additions and 0 deletions.
  1. +1 −0 _layouts/default.html
  2. +14 −0 css/styles.css
  3. +81 −0 js/jquery.browser.js
View
1 _layouts/default.html
@@ -13,6 +13,7 @@
<script src="/js/common.js"></script>
<script src="/js/prefixfree.min.js"></script>
<script src="/js/jquery-1.7.2.min.js"></script>
+ <script src="/js/jquery.browser.js"></script>
<script>
function toggle(element) {
element.style.display = (element.style.display == 'none') ? 'block' : 'none'
View
14 css/styles.css
@@ -144,8 +144,22 @@ section.topbar li:last-child {
width: 734px !important;
}
+
+.webkit .topbar .twitter img, .msie .topbar .twitter img {
+ height:17px;
+ margin-left:47px;
+ position:absolute;
+}
+.msie .topbar .twitter{
+ border-right: 0px black solid;
+}
+.webkit .topbar {
+ height:4.1em;
+}
+
header {
border-top:#ffcf80 1px solid;
+ position:relative;
}
header .nav li, section.topbar li {
View
81 js/jquery.browser.js
@@ -0,0 +1,81 @@
+/*
+
+jQuery Browser Plugin
+ * Version 2.3
+ * 2008-09-17 19:27:05
+ * URL: http://jquery.thewikies.com/browser
+ * Description: jQuery Browser Plugin extends browser detection capabilities and can assign browser selectors to CSS classes.
+ * Author: Nate Cavanaugh, Minhchau Dang, & Jonathan Neal
+ * Copyright: Copyright (c) 2008 Jonathan Neal under dual MIT/GPL license.
+ * JSLint: This javascript file passes JSLint verification.
+*//*jslint
+ bitwise: true,
+ browser: true,
+ eqeqeq: true,
+ forin: true,
+ nomen: true,
+ plusplus: true,
+ undef: true,
+ white: true
+*//*global
+ jQuery
+*/
+
+(function ($) {
+ $.browserTest = function (a, z) {
+ var u = 'unknown', x = 'X', m = function (r, h) {
+ for (var i = 0; i < h.length; i = i + 1) {
+ r = r.replace(h[i][0], h[i][1]);
+ }
+
+ return r;
+ }, c = function (i, a, b, c) {
+ var r = {
+ name: m((a.exec(i) || [u, u])[1], b)
+ };
+
+ r[r.name] = true;
+
+ r.version = (c.exec(i) || [x, x, x, x])[3];
+
+ if (r.name.match(/safari/) && r.version > 400) {
+ r.version = '2.0';
+ }
+
+ if (r.name === 'presto') {
+ r.version = ($.browser.version > 9.27) ? 'futhark' : 'linear_b';
+ }
+ r.versionNumber = parseFloat(r.version, 10) || 0;
+ r.versionX = (r.version !== x) ? (r.version + '').substr(0, 1) : x;
+ r.className = r.name + r.versionX;
+
+ return r;
+ };
+
+ a = (a.match(/Opera|Navigator|Minefield|KHTML|Chrome/) ? m(a, [
+ [/(Firefox|MSIE|KHTML,\slike\sGecko|Konqueror)/, ''],
+ ['Chrome Safari', 'Chrome'],
+ ['KHTML', 'Konqueror'],
+ ['Minefield', 'Firefox'],
+ ['Navigator', 'Netscape']
+ ]) : a).toLowerCase();
+
+ $.browser = $.extend((!z) ? $.browser : {}, c(a, /(camino|chrome|firefox|netscape|konqueror|lynx|msie|opera|safari)/, [], /(camino|chrome|firefox|netscape|netscape6|opera|version|konqueror|lynx|msie|safari)(\/|\s)([a-z0-9\.\+]*?)(\;|dev|rel|\s|$)/));
+
+ $.layout = c(a, /(gecko|konqueror|msie|opera|webkit)/, [
+ ['konqueror', 'khtml'],
+ ['msie', 'trident'],
+ ['opera', 'presto']
+ ], /(applewebkit|rv|konqueror|msie)(\:|\/|\s)([a-z0-9\.]*?)(\;|\)|\s)/);
+
+ $.os = {
+ name: (/(win|mac|linux|sunos|solaris|iphone)/.exec(navigator.platform.toLowerCase()) || [u])[0].replace('sunos', 'solaris')
+ };
+
+ if (!z) {
+ $('html').addClass([$.os.name, $.browser.name, $.browser.className, $.layout.name, $.layout.className].join(' '));
+ }
+ };
+
+ $.browserTest(navigator.userAgent);
+})(jQuery);

0 comments on commit b894da7

Please sign in to comment.
Something went wrong with that request. Please try again.