Showing
1 changed file
with
7 additions
and
7 deletions
@@ -18,7 +18,7 @@ function getQueryString(name) { | @@ -18,7 +18,7 @@ function getQueryString(name) { | ||
18 | var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i'); | 18 | var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i'); |
19 | var r = window.location.search.substr(1).match(reg); | 19 | var r = window.location.search.substr(1).match(reg); |
20 | 20 | ||
21 | - if (r != null) { | 21 | + if (r !== null) { |
22 | return window.unescape(r[2]); | 22 | return window.unescape(r[2]); |
23 | } | 23 | } |
24 | return null; | 24 | return null; |
@@ -40,7 +40,7 @@ function downLoadApp() { | @@ -40,7 +40,7 @@ function downLoadApp() { | ||
40 | }, 500); | 40 | }, 500); |
41 | } | 41 | } |
42 | 42 | ||
43 | -$('#float-layer-close').on('touchend', function(e) { | 43 | +$('#float-layer-close').on('touchend', function() { |
44 | $('#float-layer-app').hide(); | 44 | $('#float-layer-app').hide(); |
45 | window.setCookie('_float-layer-app', 'id490655927', | 45 | window.setCookie('_float-layer-app', 'id490655927', |
46 | { | 46 | { |
@@ -61,9 +61,9 @@ if ($('#float-layer-btn') && $('#float-layer-btn')[0]) { | @@ -61,9 +61,9 @@ if ($('#float-layer-btn') && $('#float-layer-btn')[0]) { | ||
61 | e.srcEvent.stopPropagation(); | 61 | e.srcEvent.stopPropagation(); |
62 | }); | 62 | }); |
63 | 63 | ||
64 | - // if (typeof window.cookie === 'function' && !window.cookie('_float-layer-app')) { | ||
65 | - // $('#float-layer-app').show(); | ||
66 | - // } else { | ||
67 | - // $('#float-layer-app').hide(); | ||
68 | - // } | 64 | + if (typeof window.cookie === 'function' && !window.cookie('_float-layer-app')) { |
65 | + $('#float-layer-app').show(); | ||
66 | + } else { | ||
67 | + $('#float-layer-app').hide(); | ||
68 | + } | ||
69 | } | 69 | } |
-
Please register or login to post a comment