/** * Copyright (c) Loft.Ocean * http://www.loftocean.com */ (function(api, $, preview, parentAPI){ if(typeof parentAPI.settings.settings.loftloader_main_switch !== 'undefined'){ // Helper functions /***** Update style element by id inside , if not exist, create new *****/ function loftloader_update_style(id, style){ var $style = $('head').find('#' + id); $style = $style.length ? $style : $('