summaryrefslogtreecommitdiffstats
path: root/usecaseui-monitor/src/main/webapp/static/fusion/js/templatemo_script.js
diff options
context:
space:
mode:
Diffstat (limited to 'usecaseui-monitor/src/main/webapp/static/fusion/js/templatemo_script.js')
-rw-r--r--usecaseui-monitor/src/main/webapp/static/fusion/js/templatemo_script.js31
1 files changed, 31 insertions, 0 deletions
diff --git a/usecaseui-monitor/src/main/webapp/static/fusion/js/templatemo_script.js b/usecaseui-monitor/src/main/webapp/static/fusion/js/templatemo_script.js
new file mode 100644
index 00000000..6280e94c
--- /dev/null
+++ b/usecaseui-monitor/src/main/webapp/static/fusion/js/templatemo_script.js
@@ -0,0 +1,31 @@
+
+
+$(document).ready( function() {
+ // sidebar menu click
+ $('.templatemo-sidebar-menu li.sub a').click(function(){
+ if($(this).parent().hasClass('open')) {
+ $(this).parent().removeClass('open');
+ } else {
+ $(this).parent().addClass('open');
+ }
+ }); // sidebar menu click
+
+ $("#list>li:gt(2)").hide();
+
+ $(".more").click(
+ e=>{if($(e.target).html()=="more"){
+ $("#list>li:gt(2)")
+ .siblings()
+ .show();
+ $(e.target).html("close")
+ }else{
+ $("#list>li:gt(2)")
+ .hide();
+ $(e.target).html("more")
+ };
+ });
+$("#bb").click(function(){
+ //点击图片后发送跳转到指定页面的事件。
+ window.location.href="data-visualization.html"
+})
+}); // document.ready