From b44307003a29c0313faca8a43be180365ca02263 Mon Sep 17 00:00:00 2001 From: Lee-1203 <342694918@qq.com> Date: Thu, 12 May 2022 15:01:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E6=A0=B7=E5=BC=8F=E5=AE=8C?= =?UTF-8?q?=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/my-site.js | 40 +++++++++++++++++++--------------------- 1 file changed, 19 insertions(+), 21 deletions(-) diff --git a/js/my-site.js b/js/my-site.js index c424fa6..e5074bc 100644 --- a/js/my-site.js +++ b/js/my-site.js @@ -76,27 +76,6 @@ jQuery(function($){ }) } - // 提示弹窗 - function openTips(val,closeTime='1500',title,align){ - $('.nav-bg').css('display','block'); - $('.tips-box').css('display','block'); - if(title==''){ - $('.tips-box').find('span').css('margin-bottom',0); - } - $('.tips-box').css('text-align',align); - $('.tips-box').find('span').text(title); - $('.tips-box').find('p').text(val); - setTimeout(function() { - $('.nav-bg').css('display','none'); - $('.tips-box').css('display','none'); - $('.tips-box').css('text-align','left'); - $('.tips-box').find('span').text(''); - $('.tips-box').find('p').text(''); - },closeTime) - } - - - // 手机导航按钮 $('.head .head-btn').click(function() { if ($('.head .head-btn').attr('class') == 'head-btn cur') { @@ -117,3 +96,22 @@ jQuery(function($){ }); }) + +// 提示弹窗 + function openTips(val,closeTime='1500',title,align){ + $('.nav-bg').css('display','block'); + $('.tips-box').css('display','block'); + if(title==''){ + $('.tips-box').find('span').css('margin-bottom',0); + } + $('.tips-box').css('text-align',align); + $('.tips-box').find('span').text(title); + $('.tips-box').find('p').text(val); + setTimeout(function() { + $('.nav-bg').css('display','none'); + $('.tips-box').css('display','none'); + $('.tips-box').css('text-align','left'); + $('.tips-box').find('span').text(''); + $('.tips-box').find('p').text(''); + },closeTime) + }