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) + }