/*---------------------------------------------------------------------------------------------------------------*/ $(function(){ /*---------------------------------------------------------------------------------------------------------------*/ //download $(document).on("click",".dlbutton", function(){ button=$(this).attr("class"); if ( button.match(/_sub/)) { dl = new Array(); dl[0] = "roomdl01"; n = Math.floor(Math.random()*dl.length); }else if( button.match(/_all/)) { dl = new Array(); dl[0] = "roomdl01"; n = Math.floor(Math.random()*dl.length); }else if( button.match(/part1/)) { dl = new Array(); dl[0] = "roomdl01"; n = Math.floor(Math.random()*dl.length); }else if( button.match(/part2/)) { dl = new Array(); dl[0] = "roomdl01"; n = Math.floor(Math.random()*dl.length); }else if( button.match(/part3/)) { dl = new Array(); dl[0] = "roomdl01"; n = Math.floor(Math.random()*dl.length); }else if( button.match(/part4/)) { dl = new Array(); dl[0] = "roomdl01"; n = Math.floor(Math.random()*dl.length); }else if( button.match(/part5/)) { dl = new Array(); dl[0] = "roomdl01"; n = Math.floor(Math.random()*dl.length); }else if( button.match(/upchara/)) { dl = new Array(); dl[0] = "roomdl01"; n = Math.floor(Math.random()*dl.length); } else { dl = new Array(); dl[0] = "roomdl01"; n = Math.floor(Math.random()*dl.length); } dlfile = $(this).data("dlid"); //alert('https://'+dl[n]+'.illusion.rip/download/dl3.cgi?dlname='+ dlfile +'&count='+ dlfile +'_'+dl[n]) location.href ='https://'+dl[n]+'.illusion.rip/download/dlexe/'+ dlfile; }); /*---------------------------------------------------------------------------------------------------------------*/ }); /*---------------------------------------------------------------------------------------------------------------*/