var domainUrl = "http://localhost:2054"; (function (doc, win) { var u = navigator.userAgent; if (u.indexOf('Android') > -1 || u.indexOf('Linux') > -1 || u.indexOf('iPhone') > -1 || u.indexOf('iPad') > -1) { } else { return; } var style = doc.createElement("style"), resizeEvt = "orientationchange" in window ? "orientationchange" : "resize", setRemFun = function () { var pageWidth = doc.documentElement.clientWidth, htmlFontSize = "html{font-size:" + pageWidth / 40 + "px}"; style.innerHTML = htmlFontSize; document.head.appendChild(style); }; doc.addEventListener("DOMContentLoaded", setRemFun); win.addEventListener(resizeEvt, setRemFun); }(document, window)); function IsPC() { var u = navigator.userAgent; if (u.indexOf('Android') > -1 || u.indexOf('Linux') > -1 || u.indexOf('iPhone') > -1 || u.indexOf('iPad') > -1) { return false; } else { return true; } } function GetQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = window.location.search.substr(1).match(reg); if (r != null) return unescape(r[2]); return null; }; $(function () { $('.m_nav_button').click(function () { var i = $(this).index(); $('.nav').addClass('show_box'); $('body').addClass('b_overflow'); }) $('.close_nav').click(function () { var i = $(this).index(); $('.nav').removeClass('show_box'); $('body').removeClass('b_overflow'); }) $('.m_b_menu').click(function () { var i = $(this).index(); $('.business_nav').addClass('show_box'); $('body').addClass('b_overflow'); }) $('.close_nav2').click(function () { var i = $(this).index(); $('.business_nav').removeClass('show_box'); $('body').removeClass('b_overflow'); }) });