UNPKG

infusion

Version:

Infusion is an application framework for developing flexible stuff with JavaScript

34 lines (25 loc) 1.47 kB
/* Copyright The Infusion copyright holders See the AUTHORS.md file at the top-level directory of this distribution and at https://github.com/fluid-project/infusion/raw/master/AUTHORS.md. 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_3_0_0 = fluid_3_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_3_0_0);