This repository has been archived by the owner on Feb 8, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 309
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1829 from Solution4Future/old_browsers
Fixed #1709 and added information for not supported old browsers
- Loading branch information
Showing
3 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Gittip.upgrade = {}; | ||
|
||
Gittip.upgrade.init = function () { | ||
|
||
var userAgent = navigator.userAgent.toLowerCase(); | ||
var browser = (userAgent.indexOf('msie') != -1) ? parseInt(userAgent.split('msie')[1]) : -1; | ||
|
||
if(browser != -1 && browser < 9) { | ||
var message = '' + | ||
'<div id="upgrade_browser">' + | ||
' <div class="container">' + | ||
'This browser isn\'t supported by GitTip.com. ' + | ||
'We encourage You to upgrade or change browser. ' + | ||
'<a href="http://browsehappy.com">Learn more</a>' + | ||
' </div>' + | ||
'</div>'; | ||
$("body").prepend(message); | ||
} | ||
}; | ||
|
||
$(document).ready(Gittip.upgrade.init); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#upgrade_browser { | ||
background: #FFFE26; | ||
width: 100%; | ||
height: auto; | ||
padding: 5px; | ||
} |