Skip to content

Instantly share code, notes, and snippets.

@kennethjohnbalgos
Created September 3, 2014 07:52
Show Gist options
  • Save kennethjohnbalgos/5b0726c0ff51a2342465 to your computer and use it in GitHub Desktop.
Save kennethjohnbalgos/5b0726c0ff51a2342465 to your computer and use it in GitHub Desktop.
:javascript
var switchTo5x=true;
var isFirefox = typeof InstallTrigger !== 'undefined';
var isChromium = window.chrome,
vendorName = window.navigator.vendor;
var isChromeActive = (isChromium !== null && isChromium !== undefined && vendorName === "Google Inc.");
<<<<<<< HEAD
var ua = window.navigator.userAgent;
var msie = ua.indexOf("MSIE ");
var isOldIE = (msie > 0);
var isNewIE = (!!navigator.userAgent.match(/Trident.*rv\:11\./));
if(isFirefox || isChromeActive || isOldIE || isNewIE){
=======
if(isFirefox || isChromeActive){
>>>>>>> a840383... LMS-266 - Fix template forcing reducing image, LMS-265 - cut extra space in show slide, LMS-263 - Add standalone open templates for ckeditor in slides, Fix font awesome for google chrome
$("head").append("<link>");
var css = $("head").children(":last");
css.attr({
rel: "stylesheet",
type: "text/css",
href: "http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css"
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment