UNPKG

infusion

Version:

Infusion is an application framework for developing flexible stuff with JavaScript

35 lines (26 loc) 1.45 kB
/* Copyright 2008-2009 University of Toronto Copyright 2010-2011 OCAD University Copyright 2013 Raising the Floor - US Copyright 2015 Raising the Floor - International Licensed under the Educational Community License (ECL), Version 2.0 or the New BSD license. You may not use this file except in compliance with one these Licenses. You may obtain a copy of the ECL 2.0 License and BSD License at https://github.com/fluid-project/infusion/raw/master/Infusion-LICENSE.txt */ var fluid_2_0_0 = fluid_2_0_0 || {}; (function ($, fluid) { "use strict"; fluid.registerNamespace("fluid.enhance"); /********************************************************** * This code runs immediately upon inclusion of this file * **********************************************************/ // Use JavaScript to hide any markup that is specifically in place for cases when JavaScript is off. // Note: the use of fl-ProgEnhance-basic is deprecated, and replaced by fl-progEnhance-basic. // It is included here for backward compatibility only. // Distinguish the standalone jQuery from the real one so that this can be included in IoC standalone tests if (fluid.contextAware.isBrowser() && $.fn) { $("head").append("<style type='text/css'>.fl-progEnhance-basic, .fl-ProgEnhance-basic { display: none; } .fl-progEnhance-enhanced, .fl-ProgEnhance-enhanced { display: block; }</style>"); } })(jQuery, fluid_2_0_0);