(function($, _, util, obj, ui){ $(function(){ ui.c753corp = (function(){ function init (){ var elem = $('.mod-corp-freeC753'); if(elem.get(0)) { elem.each(function(){ var $this = $(this); if($this.hasClass('reverse')) { var $cloned = $this.clone(true); $cloned.addClass('show-for-sp'); $this.addClass('show-for-pc'); $cloned.prepend($cloned.children('.block-txt')); $this.after($cloned); } }); } } return { init: init } })(); }); })(BROTHER.lib.$, BROTHER.lib._, BROTHER.util, BROTHER.obj, BROTHER.ui); (function($, _, util, obj, ui){ $(function(){ ui.accordion_c004corp = (function(){ var elem , accordions = [] ; function init (){ elem = $('.mod-corp-freeC004 .col'); elem.each(function(i){ var $this = $(this); var $list = $this.find('.mod-linkBlockList'); if($list.find('li').length > 1) { accordions[i] = new util.Accordion2({ trigger: $this.find('.hdg') , contents: $this.find('.mod-linkBlockList') }); } else { $this.addClass('link'); var href = $this.find('.mod-linkBlockList li').first().find('a').attr('href'); $this.find('.hdg .txt').wrap(''); } }); } return { init: init } })(); }); })(BROTHER.lib.$, BROTHER.lib._, BROTHER.util, BROTHER.obj, BROTHER.ui); (function($, _, util, obj, ui){ $(function(){ ui.c753corp.init(); ui.accordion_c004corp.init(); }); })(BROTHER.lib.$, BROTHER.lib._, BROTHER.util, BROTHER.obj, BROTHER.ui);