This commit is contained in:
tangjiang 2019-12-11 15:20:03 +08:00
commit fb41f0d23f
17 changed files with 53 additions and 38 deletions

3
.gitignore vendored
View File

@ -4,4 +4,7 @@
# precompiled files
.precomp
lib/.precomp
image/青海/1.mp4
image/西藏/1.mp4
image/新疆/1.mp4

View File

@ -33,38 +33,26 @@
<!-- <div class="div-c">
<div class="div-video">
<video width="100%" height="100%" controls>
<source src="movie.mp4" type="video/mp4">
<source class="video" src="./image/西藏/1.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
Your browser does not support the video tag.
</video>
</div>
<div class="slider slider_one_big_picture">
<div>
<img src="./image/1.jpg" />
<img class="picture1" style="width: 320px;height: 180px;" src="./image/西藏/1.jpg" />
</div>
<div>
<img src="./image/2.jpg" />
<img class="picture2" style="width: 320px;height: 180px;" src="./image/西藏/2.jpg" />
</div>
<div>
<img src="./image/3.jpg" />
<img class="picture3" style="width: 320px;height: 180px;" src="./image/西藏/3.jpg" />
</div>
<div>
<img src="./image/4.jpg" />
<img class="picture4" style="width: 320px;height: 180px;" src="./image/西藏/4.jpg" />
</div>
<div>
<img src="./image/5.jpg" />
</div>
<div>
<img src="./image/6.jpg" />
</div>
<div>
<img src="./image/7.jpg" />
</div>
<div>
<img src="./image/8.jpg" />
</div>
<div>
<img src="./image/9.jpg" />
<img class="picture5" style="width: 320px;height: 180px;" src="./image/西藏/5.jpg" />
</div>
<div class="next_button"></div>
<div class="prev_button"></div>
@ -126,38 +114,26 @@
<div class="video_img">
<div class="div-video">
<video width="100%" height="100%" controls>
<source src="movie.mp4" type="video/mp4">
<source class="video" src="./image/西藏/1.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
Your browser does not support the video tag.
</video>
</div>
<div class="slider slider_one_big_picture">
<div>
<img src="./image/1.jpg" />
<img class="picture" style="width: 320px;height: 180px;" src="./image/西藏/1.jpg" />
</div>
<div>
<img src="./image/2.jpg" />
<img class="picture" style="width: 320px;height: 180px;" src="./image/西藏/2.jpg" />
</div>
<div>
<img src="./image/3.jpg" />
<img class="picture" style="width: 320px;height: 180px;" src="./image/西藏/3.jpg" />
</div>
<div>
<img src="./image/4.jpg" />
<img class="picture" style="width: 320px;height: 180px;" src="./image/西藏/4.jpg" />
</div>
<div>
<img src="./image/5.jpg" />
</div>
<div>
<img src="./image/6.jpg" />
</div>
<div>
<img src="./image/7.jpg" />
</div>
<div>
<img src="./image/8.jpg" />
</div>
<div>
<img src="./image/9.jpg" />
<img class="picture" style="width: 320px;height: 180px;" src="./image/西藏/5.jpg" />
</div>
<div class="next_button"></div>
<div class="prev_button"></div>
@ -1186,6 +1162,8 @@
category = 1
symbolSize = 40
init(city)
loadPic(city)
loadVideo(city)
});
myChart.setOption(option);
@ -1361,7 +1339,7 @@
optionGraph.series[0].links = Object.values(currentGraph.links);
myChartGraph.setOption(optionGraph);
}
const optionGraph = {
title: {
title:'知识图谱',
@ -1442,8 +1420,8 @@
}
}]
};
// init("西藏")
myChartGraph.on('click', function(params) {
if (params.dataType === "node") {
const node = nodeMap[params.data.name];
@ -1478,6 +1456,40 @@
}
redrawGraph();
});
// 点击省份加载图片
function loadPic(name) {
if (name == "西藏" || name == "新疆" || name == "青海") {
temp = 1
}
else {
name = "西藏"
}
// alert(1)
$(".picture").each(function(index){
newPath = "./image/"+name+"/"+(index+1)+".jpg"
$(this).attr("src", newPath)
// alert(index)
});
}
// 点击省份加载视频
function loadVideo(name) {
if (name == "西藏" || name == "新疆" || name == "青海") {
temp = 1
}
else {
name = "西藏"
}
$("video").remove();
var newPath = "./image/"+name+"/1.mp4"
var newSource = "<video width=\"100%\" height=\"100%\" controls>"+
"<source class=\"video\" src="+newPath+" type=\"video/mp4\">"+
"<source src=\"movie.ogg\" type=\"video/ogg\">"+
"Your browser does not support the video tag."+
"</video>"
$(".div-video").prepend(newSource)
}
</script>
<script type="text/javascript">

BIN
image/新疆/1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

BIN
image/新疆/2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

BIN
image/新疆/3.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
image/新疆/4.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
image/新疆/5.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

BIN
image/西藏/1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

BIN
image/西藏/2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 536 KiB

BIN
image/西藏/3.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
image/西藏/4.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

BIN
image/西藏/5.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

BIN
image/青海/1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

BIN
image/青海/2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

BIN
image/青海/3.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

BIN
image/青海/4.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

BIN
image/青海/5.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB