Last active
August 29, 2015 14:14
-
-
Save jefffis/37e53a2e8b7759bc4118 to your computer and use it in GitHub Desktop.
IE8 and below
This file contains hidden or 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
| <!--[if lte IE 8]> | |
| <div class="old-browsers<?php if(isset($_COOKIE['hide-old-browser-content'])): ?> hide<?php endif; ?>"> | |
| <p>It seems you are using an older version of Internet Explorer. While this site may work decently well, a lot of functionality might not work as expected or as well if you were using a modern browser. We suggest using <a href="https://www.google.com/intl/en/chrome/browser/" target="_blank">Google Chrome</a>, <a href="http://www.mozilla.org/en-US/firefox/new/" target="_blank">Mozilla Firefox</a>, or the latest version of <a href="http://windows.microsoft.com/en-us/internet-explorer/download-ie" target="_blank">Internet Explorer</a> (at least version 9) available on your computer. To read more about what browsers we support, <a href="http://blog.leagueapps.com/how-we-think-about-browser-support/" target="_blank">read this blog post</a>.</p> | |
| <p id="hide-old-browser-content"><a href="#">Hide this notice</a></p> | |
| </div> | |
| <script type="text/javascript"> | |
| function SetCookie(cookieName,cookieValue) { | |
| document.cookie = cookieName+"="+escape(cookieValue) | |
| + ";expires=Sun, 17 Jan 2038 19:14:07 GMT; path=/"; | |
| } | |
| var hide_old_browser = $('#hide-old-browser-content'); | |
| hide_old_browser.on('click',function(){ | |
| SetCookie('hide-old-browser-content',1); | |
| $(this).parent().hide(); | |
| return false; | |
| }); | |
| </script> | |
| <![endif]--> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment