document.addEventListener('DOMContentLoaded',function(){var topUrl=location.href;if(topUrl.indexOf('/english')!=-1){getDLabValueRandom(DLabContentsDataEN);}else{getDLabValueRandom(DLabContentsDataJA);}});var DLabContentsDataJA={type01:{text:'場所の束縛から解放される',image:'/img/img-dlab-scenario-2030-01.png',year:'is-2030',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_01_j\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/scenarios/scenarios-01/'},type02:{text:'おまかせ健康便利生活',image:'/img/img-dlab-scenario-2030-02.png',year:'is-2030',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_02_j\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/scenarios/scenarios-02/'},type03:{text:'エンターテインメントにおける
物語の主人公が「私」になる',image:'/img/img-dlab-scenario-2030-03.png',year:'is-2030',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_03_j\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/scenarios/scenarios-03/'},type04:{text:'コミュニティを自由に選び、
つくれるようになる',image:'/img/img-dlab-scenario-2030-04.png',year:'is-2030',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_04_j\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/scenarios/scenarios-04/'},type05:{text:'AIと共存して、
人間は創造性を発揮する',image:'/img/img-dlab-scenario-2030-05.png',year:'is-2030',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_05_j\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/scenarios/scenarios-05/'},type06:{text:'「あえて接続しない」権利が
社会的に尊重される',image:'/img/img-dlab-scenario-2030-06.png',year:'is-2030',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_06_j\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/scenarios/scenarios-06/'},type07:{text:'ほとんどの仕事はオンライン化され、
旅をしながら
働くことができるようになる',image:'/img/img-dlab-scenario-2040-07.png',year:'is-2040',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_07_j\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/scenarios/scenarios-07/'},type08:{text:'おうち完結生活',image:'/img/img-dlab-scenario-2040-08.png',year:'is-2040',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_08_j\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/scenarios/scenarios-08/'},type09:{text:'AIがデザインした偶発的な出会いが、
個人の成長を牽引するようになる',image:'/img/img-dlab-scenario-2040-09.png',year:'is-2040',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_09_j\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/scenarios/scenarios-09/'},type10:{text:'他者・社会に気を遣うことなく、
最期を笑顔で迎えられる',image:'/img/img-dlab-scenario-2040-10.png',year:'is-2040',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_10_j\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/scenarios/scenarios-10/'},type11:{text:'記憶を自由に選択し、
心の傷を癒す',image:'/img/img-dlab-scenario-2050-11.png',year:'is-2050',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_11_j\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/scenarios/scenarios-11/'},type12:{text:'知識・五感・視点の着脱により、
あらゆるものへの共感、
体験の共有が可能となる',image:'/img/img-dlab-scenario-2050-12.png',year:'is-2050',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_12_j\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/scenarios/scenarios-12/'},type13:{text:'あえてエラーや不確実なことを
デザインするビジネスが栄える',image:'/img/img-dlab-scenario-2050-13.png',year:'is-2050',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_13_j\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/scenarios/scenarios-13/'},type14:{text:'個人の経験やスキルが
可視化されることで、
「人間的魅力」が市場での交換財となる',image:'/img/img-dlab-scenario-2050-14.png',year:'is-2050',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_14_j\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/scenarios/scenarios-14/'},type15:{text:'「60年×2回」の直列120年人生を
送れるようになる',image:'/img/img-dlab-scenario-2050-15.png',year:'is-2050',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_15_j\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/scenarios/scenarios-15/'},type16:{text:'現在未開拓の空間資源
(宇宙・地底など)を活用した
エンターテインメントが作られる',image:'/img/img-dlab-scenario-2050-16.png',year:'is-2050',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_16_j\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/scenarios/scenarios-16/'},type17:{text:'仮想世界が日常に、
現実世界が非日常になる',image:'/img/img-dlab-scenario-2050-17.png',year:'is-2050',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_17_j\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/scenarios/scenarios-17/'},type18:{text:'宇宙における
ゼロベース都市開発が始まり、
宇宙での快適な暮らしが実現する',image:'/img/img-dlab-scenario-2060-18.png',year:'is-2060',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_18_j\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/scenarios/scenarios-18/'},type19:{text:'人々が、「老いる・老いない」を
選択できるようになる',image:'/img/img-dlab-scenario-2070-19.png',year:'is-2070',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_19_j\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/scenarios/scenarios-19/'},type20:{text:'人類が等しく
エネルギー不足・食料不足に
悩まなくなる',image:'/img/img-dlab-scenario-2070-20.png',year:'is-2070',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_20_j\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/scenarios/scenarios-20/'},type21:{text:'人は最期まで、どんなことにも
挑戦できるようになる',image:'/img/img-dlab-scenario-2100-21.png',year:'is-2100',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_21_j\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/scenarios/scenarios-21/'},type22:{text:'人類が地球全体の生態系や
自然現象を把握し、
地球軸での共生が進む',image:'/img/img-dlab-scenario-2100-22.png',year:'is-2100',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_22_j\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/scenarios/scenarios-22/'},type23:{text:'誰もが宇宙規模の
視点・視野をもつことで
紛争の蓋然性が低下する',image:'/img/img-dlab-scenario-2150-23.png',year:'is-2150',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_23_j\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/scenarios/scenarios-23/'},type24:{text:'物質と生命の根源が理解され、
持続可能な社会が実現する',image:'/img/img-dlab-scenario-2200-24.png',year:'is-2200',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_24_j\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/scenarios/scenarios-24/'}};var DLabContentsDataEN={type01:{text:'Liberate yourself
from all constraints of place',image:'/img/img-dlab-scenario-2030-01.png',year:'is-2030',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_01_e\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/en/scenarios/scenarios-01/'},type02:{text:'Live a more convenient life
with entrusted health monitoring',image:'/img/img-dlab-scenario-2030-02.png',year:'is-2030',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_02_e\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/en/scenarios/scenarios-02/'},type03:{text:'Be the hero
of your own entertainment',image:'/img/img-dlab-scenario-2030-03.png',year:'is-2030',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_03_e\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/en/scenarios/scenarios-03/'},type04:{text:'Choose or build
your own community',image:'/img/img-dlab-scenario-2030-04.png',year:'is-2030',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_04_e\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/en/scenarios/scenarios-04/'},type05:{text:'Exhibit enhanced creativity
through coexistence with AI',image:'/img/img-dlab-scenario-2030-05.png',year:'is-2030',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_05_e\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/en/scenarios/scenarios-05/'},type06:{text:'Exercise your right
to disconnect
and reap the benefits',image:'/img/img-dlab-scenario-2030-06.png',year:'is-2030',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_06_e\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/en/scenarios/scenarios-06/'},type07:{text:'Travel while you work,
work while you travel',image:'/img/img-dlab-scenario-2040-07.png',year:'is-2040',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_07_e\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/en/scenarios/scenarios-07/'},type08:{text:'Enjoy a strong, complete,
balanced home',image:'/img/img-dlab-scenario-2040-08.png',year:'is-2040',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_08_e\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/en/scenarios/scenarios-08/'},type09:{text:'Maximize personal growth
through unexpected encounters
designed by AI',image:'/img/img-dlab-scenario-2040-09.png',year:'is-2040',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_09_e\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/en/scenarios/scenarios-09/'},type10:{text:'Complete your life
without regrets, discomforts,
or apologies',image:'/img/img-dlab-scenario-2040-10.png',year:'is-2040',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_10_e\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/en/scenarios/scenarios-10/'},type11:{text:'Select your memories,
heal your wounds',image:'/img/img-dlab-scenario-2050-11.png',year:'is-2050',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_11_e\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/en/scenarios/scenarios-11/'},type12:{text:'Empathize with all beings
via selective knowledge,
senses, perspectives',image:'/img/img-dlab-scenario-2050-12.png',year:'is-2050',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_12_e\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/en/scenarios/scenarios-12/'},type13:{text:'Thrive through
intentionally designed
errors and uncertainties',image:'/img/img-dlab-scenario-2050-13.png',year:'is-2050',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_13_e\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/en/scenarios/scenarios-13/'},type14:{text:'Set your experiences
and skills in view
and apply them as currency',image:'/img/img-dlab-scenario-2050-14EN.png',year:'is-2050',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_14_e\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/en/scenarios/scenarios-14/'},type15:{text:'Flourish during both
halves of the "60 x 2"',image:'/img/img-dlab-scenario-2050-15EN.png',year:'is-2050',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_15_e\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/en/scenarios/scenarios-15/'},type16:{text:'Experience new cosmic, subaquatic,
and subterranean adventures',image:'/img/img-dlab-scenario-2050-16.png',year:'is-2050',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_16_e\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/en/scenarios/scenarios-16/'},type17:{text:'Make the virtual world
everyday life and the physical
world fantastic',image:'/img/img-dlab-scenario-2050-17.png',year:'is-2050',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_17_e\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/en/scenarios/scenarios-17/'},type18:{text:'Realize a comfortable
living environment
in space',image:'/img/img-dlab-scenario-2060-18.png',year:'is-2060',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_18_e\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/en/scenarios/scenarios-18/'},type19:{text:'Design, or remove,
your own aging process',image:'/img/img-dlab-scenario-2070-19.png',year:'is-2070',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_19_e\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/en/scenarios/scenarios-19/'},type20:{text:'Eliminate concerns
regarding food
and energy shortages',image:'/img/img-dlab-scenario-2070-20.png',year:'is-2070',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_20_e\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/en/scenarios/scenarios-20/'},type21:{text:'Take on any challenge
at any age',image:'/img/img-dlab-scenario-2100-21.png',year:'is-2100',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_21_e\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/en/scenarios/scenarios-21/'},type22:{text:'Achieve global symbiosis
with a full understanding
of Earth\'s ecosystem',image:'/img/img-dlab-scenario-2100-22.png',year:'is-2100',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_22_e\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/en/scenarios/scenarios-22/'},type23:{text:'Reduce drastically
the probability of conflict
with a cosmic-scale perspective',image:'/img/img-dlab-scenario-2150-23.png',year:'is-2150',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_23_e\', {\'nonInteraction\': 1});',link:'https://www.dlab.titech.ac.jp/en/scenarios/scenarios-23/'},type24:{text:'Understand the origins
of materials and life
to create a sustainable world',image:'/img/img-dlab-scenario-2200-24.png',year:'is-2200',attribute:'ga(\'send\', \'event\', \'TopDLab\', \'Click\', \'Top_DLab_Link_24_e\', {\'nonInteraction\': 1})',link:'https://www.dlab.titech.ac.jp/en/scenarios/scenarios-24/'}};function _instanceof(left,right){if(right!=null&&typeof Symbol!=="undefined"&&right[Symbol.hasInstance]){return!!right[Symbol.hasInstance](left);}else{return left instanceof right;}};function getDLabValueRandom(_object){var allData=Object.keys(_object);var indexData=allData[Math.floor(Math.random()*allData.length)];if(_instanceof(_object,Array)){_object.splice(indexData,1);}else{DLabDomBuild(_object[indexData]);var loadingPlaceholderTitle=document.querySelector('.is-loading_title');var loadingPlaceholderDots=document.querySelector('.is-loading_dots');if(loadingPlaceholderTitle){loadingPlaceholderTitle.parentNode.removeChild(loadingPlaceholderTitle);}
if(loadingPlaceholderDots){loadingPlaceholderDots.parentNode.removeChild(loadingPlaceholderDots);}
delete _object[indexData];}};function DLabDomBuild(_data){var valueSetYear=_data.year;var valueText=_data.text;var valueAltText=valueText.replace(/<("[^"]*"|'[^']*'|[^'">])*>/g,'');var valueImageSrc=_data.image;var valueScenarioLink=_data.link;var valueSetAttribute=_data.attribute;var attributeLinkArea=document.querySelectorAll('.DLab-event-tracking');for(var i=0;i
");$lastChild.clone(true).prependTo($container);$fourthChild.clone(true).prependTo($container);$firstChild.clone(true).appendTo($container);$secondChild.clone(true).appendTo($container);$txtLastChild.clone(true).prependTo($txtContainer);$txtFourthChild.clone(true).prependTo($txtContainer);$txtFirstChild.clone(true).appendTo($txtContainer);$txtSecondChild.clone(true).appendTo($txtContainer);$contents=$container.children();$txtContents=$txtContainer.children();$('.leftOpacity').click(function(){movePrev();});$('.rightOpacity').click(function(){moveNext();});} function mainImageSet(){nowPosition=$('div.topSliderTxtBox01 div.topSliderNavi01 ul.number li.current').index()+1;if(nowPosition==5){$numberSec.removeClass(currentCls);$('div.topSliderTxtBox01 div.topSliderNavi01 ul.number li:first-child').addClass(currentCls);$container.animate({left:-(size.width*(nowPosition+2))},speedTime.speed,'easeOutCubic',function(){$container.css({left:-size.width*2});});$txtContainer.animate({left:-(size.txtWidth*(nowPosition+2))},speedTime.speed,'easeOutCubic',function(){$txtContainer.css({left:-size.txtWidth*2});}) nowPosition=1;}else{$numberSec.removeClass(currentCls);$('div.topSliderTxtBox01 div.topSliderNavi01 ul.number li:nth-child('+(nowPosition+1)+')').addClass(currentCls);$container.animate({left:-(size.width*(nowPosition+2))},speedTime.speed,'easeOutCubic');$txtContainer.animate({left:-(size.txtWidth*(nowPosition+2))},speedTime.speed,'easeOutCubic');nowPosition++;}} function movePrev(){nowPosition=$('div.topSliderTxtBox01 div.topSliderNavi01 ul.number li.current').index()+1;if($('div.topSliderSec01 ul').is(':not(:animated)')){if(nowPosition==1){$numberSec.removeClass(currentCls);$('div.topSliderTxtBox01 div.topSliderNavi01 ul.number li:last-child').addClass(currentCls);$container.stop().animate({left:-(size.width*nowPosition)},speedTime.speed,'easeOutCubic',function(){$container.css({left:$(this).find('img').innerWidth()*-6});$('li:last-child',$container).remove();$('li:last-child',$container).remove();$('li:last-child',$container).remove();$('li:last-child',$container).remove();$('li:last-child',$container).remove();$thirdChild.clone(true).prependTo($container);$secondChild.clone(true).prependTo($container);$firstChild.clone(true).prependTo($container);$lastChild.clone(true).prependTo($container);$fourthChild.clone(true).prependTo($container);$contents=$container.children();});$txtContainer.stop().animate({left:-(size.txtWidth*nowPosition)},speedTime.speed,'easeOutCubic',function(){$txtContainer.css({left:$(this).find('img').innerWidth()*-6});$('li:last-child',$txtContainer).remove();$('li:last-child',$txtContainer).remove();$('li:last-child',$txtContainer).remove();$('li:last-child',$txtContainer).remove();$('li:last-child',$txtContainer).remove();$txtThirdChild.clone(true).prependTo($txtContainer);$txtSecondChild.clone(true).prependTo($txtContainer);$txtFirstChild.clone(true).prependTo($txtContainer);$txtLastChild.clone(true).prependTo($txtContainer);$txtFourthChild.clone(true).prependTo($txtContainer);$txtContents=$txtContainer.children();}) nowPosition=5;}else if(nowPosition>=2){$numberSec.removeClass(currentCls);$('div.topSliderTxtBox01 div.topSliderNavi01 ul.number li:nth-child('+(nowPosition-1)+')').addClass(currentCls);$container.stop().animate({left:-(size.width*nowPosition)},speedTime.speed,'easeOutCubic');$txtContainer.stop().animate({left:-(size.txtContentsWidth*nowPosition)},speedTime.speed,'easeOutCubic');nowPosition--;} return false;}} function moveNext(){nowPosition=$('div.topSliderTxtBox01 div.topSliderNavi01 ul.number li.current').index()+1;if($('div.topSliderSec01 ul').is(':not(:animated)')){if(nowPosition<=4){$numberSec.removeClass(currentCls);$('div.topSliderTxtBox01 div.topSliderNavi01 ul.number li:nth-child('+(nowPosition+1)+')').addClass(currentCls);$container.stop().animate({left:-(size.width*(nowPosition+2))},speedTime.speed,'easeOutCubic');$txtContainer.stop().animate({left:-(size.txtWidth*(nowPosition+2))},speedTime.speed,'easeOutCubic') nowPosition++;}else if(nowPosition==5){$numberSec.removeClass(currentCls);$('div.topSliderTxtBox01 div.topSliderNavi01 ul.number li:first-child').addClass(currentCls);$container.stop().animate({left:-(size.width*(nowPosition+2))},speedTime.speed,'easeOutCubic',function(){$container.css({left:$(this).find('img').innerWidth()*-2});$('li:nth-child(1)',$container).remove();$('li:nth-child(1)',$container).remove();$('li:nth-child(1)',$container).remove();$('li:nth-child(1)',$container).remove();$('li:nth-child(1)',$container).remove();$thirdChild.clone(true).appendTo($container);$fourthChild.clone(true).appendTo($container);$lastChild.clone(true).appendTo($container);$firstChild.clone(true).appendTo($container);$secondChild.clone(true).appendTo($container);$contents=$container.children();});$txtContainer.stop().animate({left:-(size.txtWidth*(nowPosition+2))},speedTime.speed,'easeOutCubic',function(){$txtContainer.css({left:$(this).find('img').innerWidth()*-2});$('li:nth-child(1)',$txtContainer).remove();$('li:nth-child(1)',$txtContainer).remove();$('li:nth-child(1)',$txtContainer).remove();$('li:nth-child(1)',$txtContainer).remove();$('li:nth-child(1)',$txtContainer).remove();$txtThirdChild.clone(true).appendTo($txtContainer);$txtFourthChild.clone(true).appendTo($txtContainer);$txtLastChild.clone(true).appendTo($txtContainer);$txtFirstChild.clone(true).appendTo($txtContainer);$txtSecondChild.clone(true).appendTo($txtContainer);$txtContents=$txtContainer.children();}) nowPosition=1;} return false;}} function moveStop(){clearInterval(timerID);} function moveRestart(){timerID=setInterval(mainImageSet,speedTime.interval);} resetSize();addContent();$('div.topSliderTxtBox01 div.topSliderNavi01 ul.number li:nth-child('+count.randNumber+')').addClass(currentCls);if($(window).width()>640){timerID=setInterval(mainImageSet,speedTime.interval);} var resizeTimer=null,startWidth=null;$(window).on('resize orientationchange',function(){if(startWidth==null){startWidth=$(window).width();} if(resizeTimer!=null){clearTimeout(resizeTimer);} resizeTimer=setTimeout(function(){resize();},200);function resize(){$(function(){if($(window).width()<=640||startWidth<=640){resetSize();if($(window).width()>640){clearInterval(timerID);timerID=setInterval(mainImageSet,speedTime.interval);}else{clearInterval(timerID);}}});startWidth=$(window).width();}});$('.topSliderNavi01 ul.control li.prev a, .leftOpacity, .topSliderSec01Wrap ul.sp_control li.prev, .topSliderBtn01 li.prev, .topSliderNavi01 ul.control li.prev button').on('click',function(){movePrev();});$('.topSliderNavi01 ul.control li.next a, .rightOpacity, .topSliderSec01Wrap ul.sp_control li.next, .topSliderBtn01 li.next, .topSliderNavi01 ul.control li.next button').on('click',function(){moveNext();});$('.topSliderNavi01 ul.control').on('click','.stop',function(){moveStop();$(this).toggleClass('stop restart');});$('.topSliderNavi01 ul.control').on('click','.restart',function(){moveRestart();$(this).toggleClass('stop restart');});var startX,startY;$('.topSliderSec01').on('touchstart',function(){startX=event.changedTouches[0].pageX;startY=event.changedTouches[0].pageY;});$('.topSliderSec01').on('touchmove',function(){nowX=event.changedTouches[0].pageX;nowY=event.changedTouches[0].pageY;if(nowX>startX){moveX=nowX-startX;}else{moveX=startX-nowX;} if(nowY>startY){moveY=nowY-startY;}else{moveY=startY-nowY;} if(moveY