diff --git a/demo.html b/demo.html index a826cf6..9582d1c 100644 --- a/demo.html +++ b/demo.html @@ -117,38 +117,26 @@
- +
- +
- +
- +
- -
-
- -
-
- -
-
- -
-
- +
@@ -1430,7 +1418,7 @@ } }] }; - init("西藏") + // init("西藏") myChartGraph.on('click', function(params) { if (params.dataType === "node") { const node = nodeMap[params.data.name]; @@ -1451,7 +1439,8 @@ else { name = "西藏" } - $("img").each(function(index){ + // alert(1) + $(".picture").each(function(index){ newPath = "./image/"+name+"/"+(index+1)+".jpg" $(this).attr("src", newPath) // alert(index) @@ -1459,7 +1448,7 @@ }); } // 点击省份加载视频 -function loadVideo(name) { + function loadVideo(name) { if (name == "西藏" || name == "新疆" || name == "青海") { temp = 1 } @@ -1468,14 +1457,12 @@ function loadVideo(name) { } $("video").remove(); var newPath = "./image/"+name+"/1.mp4" - var newSource = "
"+ - ""+ - "
" - $(".div-c").prepend(newSource) + var newSource = "" + $(".div-video").prepend(newSource) }