|
@@ -114,7 +114,7 @@ function handleComplete(evt, comp) {
|
|
|
exportRoot.plate.hsr_icon3.alpha = 1;
|
|
|
exportRoot.plate.hsr_icon4.alpha = 1;
|
|
|
cutDishArr = hsr_iconArr;
|
|
|
- $('#poster').attr('src','./img/poster/hsr.png');
|
|
|
+ //$('#poster').attr('src','./img/poster/hsr.png');
|
|
|
}else if(dishIndex == 1){
|
|
|
exportRoot.plate.qcdf_icon1.alpha = 1;
|
|
|
exportRoot.plate.qcdf_icon2.alpha = 1;
|
|
@@ -122,19 +122,19 @@ function handleComplete(evt, comp) {
|
|
|
exportRoot.plate.qcdf_icon4.alpha = 1;
|
|
|
exportRoot.plate.qcdf_icon5.alpha = 1;
|
|
|
cutDishArr = qcdf_iconArr;
|
|
|
- $('#poster').attr('src','./img/poster/qcdf.png');
|
|
|
+ //$('#poster').attr('src','./img/poster/qcdf.png');
|
|
|
}else if(dishIndex == 2){
|
|
|
exportRoot.plate.swy_icon1.alpha = 1;
|
|
|
exportRoot.plate.swy_icon2.alpha = 1;
|
|
|
cutDishArr = swy_iconArr;
|
|
|
- $('#poster').attr('src','./img/poster/swy.png');
|
|
|
+ //$('#poster').attr('src','./img/poster/swy.png');
|
|
|
}else{
|
|
|
exportRoot.plate.ymc_icon1.alpha = 1;
|
|
|
exportRoot.plate.ymc_icon2.alpha = 1;
|
|
|
exportRoot.plate.ymc_icon3.alpha = 1;
|
|
|
exportRoot.plate.ymc_icon4.alpha = 1;
|
|
|
cutDishArr = ymc_iconArr;
|
|
|
- $('#poster').attr('src','./img/poster/ymc.png');
|
|
|
+ //$('#poster').attr('src','./img/poster/ymc.png');
|
|
|
}
|
|
|
})
|
|
|
$(".replay-btn").on("click",function(){
|
|
@@ -554,6 +554,7 @@ function handleComplete(evt, comp) {
|
|
|
exportRoot.blackboard.material1.removeAllEventListeners();
|
|
|
exportRoot.blackboard.material2.removeAllEventListeners();
|
|
|
exportRoot.blackboard.material3.removeAllEventListeners();
|
|
|
+ chooseType = 3;
|
|
|
$(".poster-mode").addClass("poster-bg3");
|
|
|
if(dishIndex == 0){
|
|
|
$('#poster').attr('src','./img/poster/hsr_lv.png');
|
|
@@ -575,6 +576,7 @@ function handleComplete(evt, comp) {
|
|
|
exportRoot.blackboard.material1.removeAllEventListeners();
|
|
|
exportRoot.blackboard.material2.removeAllEventListeners();
|
|
|
exportRoot.blackboard.material3.removeAllEventListeners();
|
|
|
+ chooseType = 2;
|
|
|
$(".poster-mode").addClass("poster-bg2");
|
|
|
if(dishIndex == 0){
|
|
|
$('#poster').attr('src','./img/poster/hsr_hei.png');
|
|
@@ -596,6 +598,7 @@ function handleComplete(evt, comp) {
|
|
|
exportRoot.blackboard.material1.removeAllEventListeners();
|
|
|
exportRoot.blackboard.material2.removeAllEventListeners();
|
|
|
exportRoot.blackboard.material3.removeAllEventListeners();
|
|
|
+ chooseType = 1;
|
|
|
$(".poster-mode").addClass("poster-bg1");
|
|
|
if(dishIndex == 0){
|
|
|
$('#poster').attr('src','./img/poster/hsr_fen.png');
|
|
@@ -666,7 +669,7 @@ function handleComplete(evt, comp) {
|
|
|
//获取加速度信息
|
|
|
//通过监听上一步获取到的x, y, z 值在一定时间范围内的变化率,进行设备是否有进行晃动的判断。
|
|
|
//而为了防止正常移动的误判,需要给该变化率设置一个合适的临界值。
|
|
|
- var SHAKE_THRESHOLD = 10000000; //阈值越大,触发摇晃事件时手机摇晃的程度越剧烈
|
|
|
+ var SHAKE_THRESHOLD = 10000; //阈值越大,触发摇晃事件时手机摇晃的程度越剧烈
|
|
|
var last_update = 0;
|
|
|
var x, y, z, last_x = 0,
|
|
|
last_y = 0,
|