作者:欧欧 来源:风者信息科技 发布时间:2022-07-01
/* //禁止上下拖动 在edge.1.0.0.min.js删掉这一句 f[0].style.webkitTransform="translateZ(0)" */ document.addEventListener("touchmove",function(e){ if(event.touches.length<2){ $("#Stage").attr("style","");$("#Stage").attr("class",""); e.preventDefault(); } },false); document.write(''); var fullStr="januviaEda0102-full.jpg"; if(window.localStorage.getItem("lampBo")=="true"){ fullStr="januviaEda0102-full-2.jpg"; document.write(''); }else{ document.write(''); } var ooMySet=setInterval(function(){ loadResources(aLoader, doDelayLoad); clearInterval(ooMySet); },500); /*body{ background:#ffffff url(images/bg2.jpg);} { load: "edge_includes/iscroll.js"}, */ preContent={ dom: [ { id:'januviaEda0102-full', type:'image', tag:'img', rect:['0px','0px','1024px','768px','auto','auto'], fill:["rgba(0,0,0,0)",fullStr,'0px','0px'] }]};//simpleContent sym.$("bg"+i).bind("touchmove",function(e){ var touchs=e.originalEvent.touches||e.originalEvent.changedTouches; var touch = touchs[0] var currDragX=touch.clientX; }); document.write(sym.$("part6_3_1").css("left")+" "+sym.$("part6_3_1").css("top")); sym.$("p4_p"+1).css('-webkit-transform',"matrix(1, 0, 0, 1, -161, -7)"); sym.$("p4_p"+1).css({"left":"222px","top":"214px"}); sym.$("p4_p"+1).css('-webkit-transition',""); sym.$("reStart").click(function(){ window.location.href="index.html"; }); //上一级播放 sym.stop(); sym.getParentSymbol().play(); var ooMySet=setInterval(function(){ loadResources(aLoader, doDelayLoad); clearInterval(ooMySet); },500); //添加滚动条 /* body{ background:#0949aa url(januviaEda0101-full.jpg) no-repeat; } { load: "edge_includes/iscroll.js"},var myScroll = new iScroll('Stage_info_mc_content_mc',{checkDOMChanges: true,hideScrollbar:true,bounce:true,snap:false}); aLoader = [ { load: "edge_includes/jquery-1.7.1.min.js"}, { load: "edge_includes/jquery.easing.1.3.js"}, { load: "edge_includes/edge.1.0.0.min.js"}, { load: "edge_includes/iscroll.js"}, {test: !hasJSON, yep:"edge_includes/json2_min.js"}, { load: "januviaEda0101_edge.js"}, { load: "januviaEda0101_edgeActions.js"}]; var ooMySet=setInterval(function(){ loadResources(aLoader, doDelayLoad); clearInterval(ooMySet); },500); */ //保存变量 window.localStorage.setItem("lampBo","true"); //上一步 sym.$("prev_btn").unbind(); sym.$("prev_btn").click(function(){ sym.play(10000); sym.$("continue_btn").hide(); sym.$("prev_btn").unbind(); sym.$("prev_btn").hide(); }); //旋转 $("#drag_btn").css("-webkit-transform","rotate(180deg)"); sym.stop(); sym.$("continue_btn").unbind(); sym.$("continue_btn").click(function(){ sym.$("Rectangle2").show(); sym.$("Rectangle2").html(''); }); for(var i=1;i<=4;i++){ sym.$("p5-"+i).click(function(){ for(var i=1;i<=4;i++){ sym.$("p5-"+i).hide(); } $(this).show(); $(this).animate({left:100,top:260}); $(this).css('-webkit-transform',"matrix(2, 0, 0, 2,200, -110)"); $(this).css('-webkit-transition',"-webkit-transform 0.5s ease-in-out"); Symbol.showContinueBtn(); }); } //取消所有事件 sym.$("p1_b"+i).unbind(); //点击播放 var playB=false; Symbol.player=function(){ if(playB==false){ playB=true; sym.getSymbol("Symbol_8").play(1); } } sym.stop(); sym.$("btn").click(function(){ sym.play(); sym.$("btn").fadeOut(); }); //禁止拖动代码 sym.stop(); document.addEventListener("touchmove",function(e){ e.preventDefault(); },false); //点击放大代码 sym.stop(); var t1Show=false var t2Show=false; var t3Show=false; sym.$("text1").click(function(){ sym.$("tip1").hide(); if(t1Show==false){ showImg(1); t1Show=true; }else{ showImg(0); t1Show=false; } }); sym.$("tip1").click(function(){ sym.$("tip1").hide(); if(t1Show==false){ showImg(1); t1Show=true; }else{ showImg(0); t1Show=false; } }); sym.$("text2").click(function(){ //document.write(sym.$("text2").css('-webkit-transform')); sym.$("tip2").hide(); if(t2Show==false){ showImg(2); t2Show=true; }else{ showImg(0); t2Show=false; } }); sym.$("tip2").click(function(){ sym.$("tip2").hide(); if(t2Show==false){ showImg(2); t2Show=true; }else{ showImg(0); t2Show=false; } }); sym.$("text3").click(function(){ //document.write(sym.$("text3").css('-webkit-transform')); sym.$("tip3").hide(); if(t3Show==false){ showImg(3); t3Show=true; }else{ showImg(0); t3Show=false; } }); sym.$("tip3").click(function(){ sym.$("tip3").hide(); if(t3Show==false){ showImg(3); t3Show=true; }else{ showImg(0); t3Show=false; } }); function showImg(val){ for(var i=1;i<=3;i++){ if(val==i){ switch(i){ case 1: sym.$("text"+i).css('-webkit-transform',"matrix(1, 0, 0,1, -219, -66)"); sym.$("text"+i).css('-webkit-transition',"-webkit-transform 0.5s ease-in-out"); break; case 2: sym.$("text"+i).css('-webkit-transform',"matrix(1, 0, 0,1, -321, -118)"); sym.$("text"+i).css('-webkit-transition',"-webkit-transform 0.5s ease-in-out"); sym.$("text"+i).animate({opacity:1}); break; case 3: sym.$("text"+i).css('-webkit-transform',"matrix(1, 0, 0,1, -221, 119)"); sym.$("text"+i).css('-webkit-transition',"-webkit-transform 0.5s ease-in-out"); break; } }else{ switch(i){ case 1: if(t1Show==true){ t1Show=false; sym.$("text"+i).css('-webkit-transform',"matrix(0.666, 0, 0, 0.666, -219, -66)"); sym.$("text"+i).css('-webkit-transition',"-webkit-transform 0.5s ease-in-out"); } break; case 2: if(t2Show==true){ t2Show=false; sym.$("text"+i).css('-webkit-transform',"matrix(0.578, 0, 0, 0.578, -321, -118)"); sym.$("text"+i).css('-webkit-transition',"-webkit-transform 0.5s ease-in-out"); sym.$("text"+i).animate({opacity:0}); } break; case 3: if(t3Show==true){ t3Show=false; sym.$("text"+i).css('-webkit-transform',"matrix(0.666, 0, 0,0.666, -221, 119)"); sym.$("text"+i).css('-webkit-transition',"-webkit-transform 0.5s ease-in-out"); } break; } } } }