1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8" />
- <title></title>
- <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
- <meta http-equiv="Pragma" content="no-cache" />
- <meta http-equiv="Expires" content="0" />
- <script type="text/javascript" src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
- </head>
- <body>
- <script type="text/javascript">
- var id = request("id");
- var androidUrl = "" + id;
- var iosUrl = "" + id;
- if (navigator.userAgent.match(/(iPhone|iPod|iPad)/i)) {
- openApp(iosUrl,"https://itunes.apple.com/cn/app/%E7%A2%B0%E8%AF%8D%E5%84%BF-%E5%85%A8%E8%83%BD%E7%9A%84%E5%8D%95%E8%AF%8D%E8%AE%B0%E5%BF%86%E5%8A%A9%E6%89%8B/id1353692603?mt=8")
- } else if (navigator.userAgent.match(/(android|linux)/i)) {
- var state = null;
- try {
- window.location = androidUrl;
- } catch (e) { }
- if (state) {
- window.close();
- } else {
- window.location = "http://liqucn.com/rj/1007384.wml";
- //window.location = "https://play.google.com/store/apps/details?id=com.sands.yummy";
- }
- }
- var timeout;
- function preventPopup() {
- clearTimeout(timeout);
- timeout = null;
- window.removeEventListener('pagehide', preventPopup);
- }
- function openApp(appurl,url) {
- $('<iframe />')
- .attr('src', appurl)
- .attr('style', 'display:none;')
- .appendTo('body');
- timeout = setTimeout(function () {
- document.location = url;
- }, 500);
- window.addEventListener('pagehide', preventPopup);
- }
- function request(name, url) {
- if (!url) url = window.location.href;
- name = name.replace(/[\[\]]/g, '\\$&');
- var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'),
- results = regex.exec(url);
- if (!results) return null;
- if (!results[2]) return '';
- return decodeURIComponent(results[2].replace(/\+/g, ' '));
- }
- </script>
- </body>
- </html>
|