Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
: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
You can’t perform that action at this time.