hjkhghopjkertteerterterterertertrtoirh
bnmbertsurhetertertertertertertertpdf'tdfg
/
srv
/
www
/
virtual
/
dev1.wccweb.jp.dac4.biz
/
web
/
htdocs
/
sp
/
assets
/
js
/
Upload FileeE
HOME
/** * sp/js/index.bv.js * * @author Mitsutoshi Nakamura <mitsutoshi.nakamura.jp@gmail.com> */ $(function() { var page = { init: function() { carousel.init(); news1.init(); news2.init(); shop.init(); } }; var carousel = { init: function() { carousel.load(); }, load: function() { $('#carousel').load('/api/hero_carousel/iframe_sp/ ul'); } }; var news1 = { init: function() { news1.load(); }, load: function() { $('#news-wccweb-1').load('/api/information/iframe/wccweb1/top/ ul', function() { var $ul = $(this).children('ul'); var $li = $ul.children('li'); $li.each(function(i) { if (i > 5) { $(this).remove(); } }); $ul.removeClass('information'); $(this).height($ul.height() / 2); news1.bind(); }); }, bind: function() { $('.news-wccweb-1_more').on('click', function() { var size = $('#news-wccweb-1').data('size'); var $ul = $('#news-wccweb-1 ul'); switch (size) { case 'half': $('#news-wccweb-1').height($ul.height() / 1).data('size', 'full'); break; case 'full': $('#news-wccweb-1').height($ul.height() / 2).data('size', 'half'); break; } }); } }; var news2 = { init: function() { news2.load(); }, load: function() { $('#news-wccweb-2').load('/api/information/iframe/wccweb2/top/ ul', function() { var $ul = $(this).children('ul'); var $li = $ul.children('li'); $li.each(function(i) { if (i > 5) { $(this).remove(); } }); $ul.removeClass('information'); $(this).height($ul.height() / 2); news2.bind(); }); }, bind: function() { $('.news-wccweb-2_more').on('click', function() { var size = $('#news-wccweb-2').data('size'); var $ul = $('#news-wccweb-2 ul'); switch (size) { case 'half': $('#news-wccweb-2').height($ul.height() / 1).data('size', 'full'); break; case 'full': $('#news-wccweb-2').height($ul.height() / 2).data('size', 'half'); break; } }); } }; var shop = { init: function() { shop.fmwTokyo(); shop.fmwGinza(); shop.fmwOsaka(); shop.fmwFukuoka(); shop.fmwgTokyo(); shop.fmwgOsaka(); }, fmwTokyo: function() { $('#news-fmw-tokyo').load('/_iframe/news/fmwTokyo/ .newsFmwTokyo'); }, fmwGinza: function() { $('#news-fmw-ginza').load('/_iframe/news/fmwGinza/ .newsFmwTokyo'); }, fmwOsaka: function() { $('#news-fmw-osaka').load('/_iframe/news/fmwOsaka/ .newsFmwOsaka'); }, fmwFukuoka: function() { $('#news-fmw-fukuoka').load('/_iframe/news/fmwFukuoka/ .newsFmwFukuoka'); }, fmwgTokyo: function() { $('#news-fmwg-tokyo').load('/_iframe/news/fmwgTokyo/ .newsFmwgTokyo'); }, fmwgOsaka: function() { $('#news-fmwg-osaka').load('/_iframe/news/fmwgOsaka/ .newsFmwgOsaka'); } }; page.init(); }); var bv = { pr: function(data) { window.console.log(data); } };