//;(function(win, doc, $) { // 'use strict'; // if (!$) { return; } // $.fn.search = (function() { // var search = {}; // // $.extend(search, { // init: init_, // redirect: redirect_ // }); // // function init_() { // search.redirect() // $(win).on('resize',search.redirect); // } // // function redirect_() { // if ($('html').hasClass('device-sp')) { // location.href = 'http://www.e-map.ne.jp/smt/gskemap/?p_f14=1'; // }; // } // // $(function(){ // search.init(); // }); // // return search; // })(); // //})(window, document, jQuery); ;(function(win, doc, $) { 'use strict'; if (!$) { return; } $.fn.recipient = (function() { var recipient = {}; $.extend(recipient, { init: init_ }); function init_() { var tab_ = $('.tabs li') tab_.each(function(i) { var i_ = i; $(this).click(function(e) { // tab-section系を非アクティブに $('.tabs>li').each(function() { $(this).removeClass('active'); }); // 該当のtabs li をactiveに $('.tabs .tab-'+(i_+1)).addClass('active'); // tab-section系を非アクティブに $('.tab-wrap>.block-frame-inner>div').each(function() { $(this).removeClass('active'); }); // 該当のtab-sectionをactiveに $('.tab-wrap .tab-section-'+(i_+1)).addClass('active'); }); }); } // START $(function(){ recipient.init(); }); // methodchain的な return recipient; })(); })(window, document, jQuery);