From d74b495736f0c04522ec54274b70fed0ded2878d Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Tue, 27 Jun 2023 11:30:06 +0800
Subject: [PATCH] 任务新增导出
---
public/map/js/script.js | 77 ++++++++++++++++++++++++++++++++++++++
1 files changed, 77 insertions(+), 0 deletions(-)
diff --git a/public/map/js/script.js b/public/map/js/script.js
new file mode 100644
index 0000000..f44e77d
--- /dev/null
+++ b/public/map/js/script.js
@@ -0,0 +1,77 @@
+window.onload = function() {
+ var oDiv = document.getElementById("tab");
+ var oLi = oDiv.getElementsByTagName("div")[0].getElementsByTagName("li");
+ var aCon = oDiv.getElementsByTagName("div")[1].getElementsByTagName("div");
+ var timer = null;
+ for (var i = 0; i < oLi.length; i++) {
+ oLi[i].index = i;
+ oLi[i].onclick = function() {
+ show(this.index);
+ }
+ }
+ function show(a) {
+ index = a;
+ var alpha = 0;
+ for (var j = 0; j < oLi.length; j++) {
+ oLi[j].className = "";
+ aCon[j].className = "";
+ aCon[j].style.opacity = 0;
+ aCon[j].style.filter = "alpha(opacity=0)";
+ }
+ oLi[index].className = "cur";
+ clearInterval(timer);
+ timer = setInterval(function() {
+ alpha += 2;
+ alpha > 100 && (alpha = 100);
+ aCon[index].style.opacity = alpha / 100;
+ aCon[index].style.filter = "alpha(opacity=" + alpha + ")";
+ alpha == 100 && clearInterval(timer);
+ },
+ 5)
+ }
+}
+
+function addlayerdiv_hide2(){
+ $('#customExtent').fadeOut();
+ $('#leftbottom').val('');
+ $('#righttop').val('');
+}
+function projectExtentclose(){
+ $('#projectExtent').fadeOut();
+}
+function num_change(){
+ var num=$('#range_num').val();
+ $("#num").html(num+"级");
+}
+function qie(can){
+ if(can==1){
+ $("#qie2").removeClass("shezhi_check");
+ $("#qie1").addClass("shezhi_check");
+ $("#tabCon2").css({"display":"none"});
+ $("#tabCon1").css({"display":"block"});
+ }else{
+ $("#qie1").removeClass("shezhi_check");
+ $("#qie2").addClass("shezhi_check");
+ $("#tabCon1").css({"display":"none"});
+ $("#tabCon2").css({"display":"block"});
+ }
+}
+
+jQuery.divselect = function(divselectid,inputselectid) {
+ var inputselect = $(inputselectid);
+ $(divselectid+" cite").click(function(){
+ var ul = $(divselectid+" ul");
+ if(ul.css("display")=="none"){
+ ul.slideDown("fast");
+ }else{
+ ul.slideUp("fast");
+ }
+ });
+ $(divselectid+" ul li a").click(function(){
+ var txt = $(this).html();
+ $(divselectid+" cite").html(txt);
+ var value = $(this).attr("selectid");
+ inputselect.val(value);
+ $(divselectid+" ul").hide();
+ });
+};
\ No newline at end of file
--
Gitblit v1.9.3