| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?php if(strpos($_SERVER['HTTP_USER_AGENT'], 'xuanxuan') != false): ?>
- <style>
- body {scrollbar-gutter: stable both-edges;}
- #mainContent .detail + .detail {padding-top: 0;}
- ::-webkit-scrollbar-thumb {border-radius: 5px;}
- ::-webkit-scrollbar {width: 10px; height: 10px;}
- ::-webkit-scrollbar-thumb:vertical {box-shadow: inset 1px 1px 0 rgb(0 0 0 / 10%), inset 0 -1px 0 rgb(0 0 0 / 7%); background-color: rgba(0, 0, 0, 0.2); border-radius: 10px; opacity: 0; transition: opacity 0.1s;}
- ::-webkit-scrollbar,
- ::-webkit-scrollbar-button,
- ::-webkit-scrollbar-track,
- ::-webkit-scrollbar-thumb {visibility: hidden;opacity: 0;}
- :hover ::-webkit-scrollbar,
- :hover ::-webkit-scrollbar-button,
- :hover ::-webkit-scrollbar-track,
- :hover ::-webkit-scrollbar-thumb {visibility: visible;opacity: 1;}
- #navbar {display: flex; align-items: center; justify-content: center;}
- #navbar .nav {display: flex; align-items: center; height: 50px;}
- #navbar .nav > li {float: none;}
- #navbar .nav > li > a {padding-top: 3px!important; padding-bottom: 3px!important; border-radius: 4px;}
- </style>
- <script>
- $(function()
- {
- const logoutElement = $('#userNav .has-avatar .pull-right li > a[href*="logout"]');
- logoutElement.parent().addClass('hide');
- if(logoutElement.parent().prev().hasClass('divider')) logoutElement.parent().prev().addClass('hide');
- if(window.parent === window || window.parent.appHeaderStyleUpdated) return;
- const mainHeader = document.getElementById('mainHeader');
- if(!mainHeader) return;
- const style = window.getComputedStyle(mainHeader, null);
- const color = window.getComputedStyle(document.querySelector('#navbar .nav>li:not(.active)>a, #userMenu .nav>li:not(.active)>a'), null).color;
- const clientHeaderStyle = {windowControlBtnColor: color, background: style.background, color: color};
- window.parent.appHeaderStyleUpdated = true;
- window.open('xxc://setAppHeaderStyle/zentao-integrated/' + encodeURIComponent(JSON.stringify(clientHeaderStyle)), '_blank');
- });
- setTimeout(function() // Override confirm, prompt and alert methods.
- {
- window.confirm = function() {
- console.warn('\"window.confirm\" is disabled in webview.');
- return true;
- };
- window.prompt = function() {
- console.warn('\"window.prompt\" is disabled in webview.');
- };
- window.alert = function(msg) {
- const win = window.parent ? window.parent : window;
- win.open(`xxc://webview/alert/${encodeURIComponent(msg)}`, '_blank');
- };
- });
- </script>
- <?php if($this->app->moduleName =='user' && $this->app->methodName == 'deny'): ?>
- <script>
- $(function()
- {
- $('.m-user-deny .modal-footer').addClass('hide');
- });
- </script>
- <?php endif; ?>
- <?php endif; ?>
|