// IOTBS2.1 :: Invasion of the Body Switchers - Look Who's Switching Too// >>> Key file for all versions// ***********************************************// This copyright statement must remain in place for both personal and commercial use// GNU General Public License -- http://www.gnu.org/copyleft/gpl.html// ***********************************************// Original concept by Andy Clarke -- http://www.stuffandnonsense.co.uk/// DOM scripting by brothercake -- http://www.brothercake.com/// Create element and attributes based on a method by beetle -- http://www.peterbailey.net///************************************************function iotbs() { //open initialisation function//************************************************//initialise the preferences manager ('canvas-element', 'path-for-load-mode')var switcher = new switchManager('body', '/assets/css/');/***************************************************************************** Define switching controls*****************************************************************************///create a new switcher control ('container-id', 'label', 'is-native-switcher', '"selected" text')var screenSwitcher = new bodySwitcher('screen-switcher', 'Text Size: ', 'no', '');//add a new class option ('classname', 'label')screenSwitcher.defineClass('default', 'Small');screenSwitcher.defineClass('medium', 'Medium');screenSwitcher.defineClass('large', 'Large');/**********************************************************************************************************************************************************/}; //close initialisation function