69 lines
		
	
	
		
			2.6 KiB
		
	
	
	
		
			HTML
		
	
	
	
			
		
		
	
	
			69 lines
		
	
	
		
			2.6 KiB
		
	
	
	
		
			HTML
		
	
	
	
| <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
 | |
| <meta content='seemore.club' name='author'>
 | |
| <script>
 | |
|     $(function () {
 | |
|         var str = window.location.href;
 | |
|         var index = str.lastIndexOf("\/");
 | |
|         str = str.substring(index + 1, str.length - 5);
 | |
| 
 | |
|         if (isMobile()) {
 | |
|             // window.location.href = '/mobile/index.html'
 | |
|         } else {
 | |
|             if (str === 'index' || 'club/' ? true : false) {
 | |
|                 window.location.href = '/index.html'
 | |
|             } else {
 | |
|                 window.location.href = '/' + str + '/' + str + '.html'
 | |
|             }
 | |
|         }
 | |
| 
 | |
|         if (str === 'index' && 'club/'? true : false) {
 | |
|             $('#menuImg').attr('src', '../img/m-menu-index.png');
 | |
|         } else if (str === 'privacy' || str === 'contactUs') {
 | |
|             $('.menuDiv').hide();
 | |
|         } else {
 | |
|             $('#menuImg').attr('src', '/img/m-menu-' + str + '.png');
 | |
|         }
 | |
|         //加载高度修复
 | |
|         $('.menuDiv').css('height', $('.menuDiv').css('height'));
 | |
|         if ($('#menuImg').css('height') === '0px') {
 | |
|             $('.menu').css('height', '77px');
 | |
|         } else {
 | |
|             $('.menu').css('height', $('#menuImg').css('height'));
 | |
|         }
 | |
| 
 | |
|         var iconEl = document.createElement('link');
 | |
|         iconEl.rel = 'shortcut icon';
 | |
|         iconEl.href = 'SeeMore.ico';
 | |
|         $('head').append(iconEl);
 | |
|     })
 | |
| 
 | |
|     function isMobile() {
 | |
|         let flag = false
 | |
|         const sUserAgent = navigator.userAgent.toLowerCase();
 | |
|         const bIsIpad = sUserAgent.match(/ipad/i) == 'ipad';
 | |
|         const bIsIphone = sUserAgent.match(/iphone os/i) == 'iphone os';
 | |
|         const bIsMidp = sUserAgent.match(/midp/i) == 'midp';
 | |
|         const bIsUc7 = sUserAgent.match(/rv:1.2.3.4/i) == 'rv:1.2.3.4';
 | |
|         const bIsUc = sUserAgent.match(/ucweb/i) == 'web';
 | |
|         const bIsCE = sUserAgent.match(/windows ce/i) == 'windows ce';
 | |
|         const bIsWM = sUserAgent.match(/windows mobile/i) == 'windows mobile';
 | |
|         const bIsAndroid = sUserAgent.match(/android/i) == 'android';
 | |
|         if (bIsIpad || bIsIphone || bIsMidp || bIsUc7 || bIsUc || bIsCE || bIsWM || bIsAndroid) {
 | |
|             flag = true
 | |
|         } else {
 | |
|             flag = false
 | |
|         }
 | |
|         return flag;
 | |
|     }
 | |
| </script>
 | |
| <div class="top-bar">
 | |
|     <a href="/mobile/index.html">
 | |
|         <div class="logo"></div>
 | |
|     </a>
 | |
| </div>
 | |
| <div class="menuDiv">
 | |
|     <img id="menuImg" src="" alt="">
 | |
|     <a class="menu" href="/mobile/partner/partner.html"></a>
 | |
|     <a class="menu" href="/mobile/locality/locality.html"></a>
 | |
|     <a class="menu" href="/mobile/diamond/diamond.html"></a>
 | |
| </div> |