Commit efb36222 by libai

ft活动上线

parent 56137357
...@@ -97,21 +97,25 @@ $(function(){ ...@@ -97,21 +97,25 @@ $(function(){
},60000) },60000)
//三十秒后弹窗 //三十秒后弹窗
setTimeout(function(){ setTimeout(function(){
$.ajax({ if(sessionStorage.gardenLayer==undefined||sessionStorage.gardenLayer<new Date().getTime()){
url:$ip+'/actSecretGarden/openPopup.html', sessionStorage.gardenLayer=(Number(new Date().getTime())+86400000)
data:{ $.ajax({
width:'0', url:$ip+'/actSecretGarden/openPopup.html',
popupUrl:$url + "/activeFt/garden/pop.html", data:{
height:'0.5', width:'0',
heightR:'106', popupUrl:$url + "/activeFt/garden/pop.html",
x:'0', height:'0.5',
y:'0.5', heightR:'106',
}, x:'0',
success:function(){ y:'0.5',
},
success:function(){
} }
}) })
}) }
},30000)
function getData(roomid) { function getData(roomid) {
var opts = { var opts = {
reconnectionDelay: 5000, reconnectionDelay: 5000,
......
...@@ -76,20 +76,23 @@ $(function(){ ...@@ -76,20 +76,23 @@ $(function(){
view() view()
},60000) },60000)
setTimeout(function(){ setTimeout(function(){
$.ajax({ if(sessionStorage.gardenLayer==undefined||sessionStorage.gardenLayer<new Date().getTime()){
url:$ip+'/actSecretGarden/openPopup.html', sessionStorage.gardenLayer=(Number(new Date().getTime())+86400000)
data:{ $.ajax({
width:'0', url:$ip+'/actSecretGarden/openPopup.html',
popupUrl:$url + "/activeFt/garden/pop.html", data:{
height:'0.5', width:'0',
heightR:'106', popupUrl:$url + "/activeFt/garden/pop.html",
x:'0', height:'0.5',
y:'0.5', heightR:'106',
}, x:'0',
success:function(){ y:'0.5',
},
success:function(){
} }
}) })
}
},30000) },30000)
$(".act-room-bg1").on("click",function(){ $(".act-room-bg1").on("click",function(){
var obj = { var obj = {
......
...@@ -76,20 +76,23 @@ $(function(){ ...@@ -76,20 +76,23 @@ $(function(){
view() view()
},60000) },60000)
setTimeout(function(){ setTimeout(function(){
$.ajax({ if(sessionStorage.gardenLayer==undefined||sessionStorage.gardenLayer<new Date().getTime()){
url:$ip+'/actSecretGarden/openPopup.html', sessionStorage.gardenLayer=(Number(new Date().getTime())+86400000)
data:{ $.ajax({
width:'0', url:$ip+'/actSecretGarden/openPopup.html',
popupUrl:$url + "/activeFt/garden/pop.html", data:{
height:'0.5', width:'0',
heightR:'106', popupUrl:$url + "/activeFt/garden/pop.html",
x:'0', height:'0.5',
y:'0.5', heightR:'106',
}, x:'0',
success:function(){ y:'0.5',
},
success:function(){
} }
}) })
}
},30000) },30000)
$(".act-room-bg1").on("click",function(){ $(".act-room-bg1").on("click",function(){
var obj = { var obj = {
......
...@@ -176,20 +176,23 @@ $(function(){ ...@@ -176,20 +176,23 @@ $(function(){
} }
setTimeout(function(){ setTimeout(function(){
$.ajax({ if(sessionStorage.gardenLayer==undefined||sessionStorage.gardenLayer<new Date().getTime()){
url:$ip+'/actSecretGarden/openPopup.html', sessionStorage.gardenLayer=(Number(new Date().getTime())+86400000)
data:{ $.ajax({
width:'0', url:$ip+'/actSecretGarden/openPopup.html',
popupUrl:$url + "/activeFt/garden/pop.html", data:{
height:'0.5', width:'0',
heightR:'106', popupUrl:$url + "/activeFt/garden/pop.html",
x:'0', height:'0.5',
y:'0.5', heightR:'106',
}, x:'0',
success:function(){ y:'0.5',
},
success:function(){
} }
}) })
}
},30000) },30000)
$(".act-room-bg2").on("click",function(){ $(".act-room-bg2").on("click",function(){
var obj = { var obj = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment