UNPKG

infusion

Version:

Infusion is an application framework for developing flexible stuff with JavaScript

27 lines (21 loc) 1.29 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/main/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/main/Infusion-LICENSE.txt */ "use strict"; /********************************************************** * 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>"); }