123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- <!DOCTYPE html>
- <html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="chrome=1,IE=edge">
- {{-- 默认使用谷歌浏览器内核--}}
- <meta name="renderer" content="webkit">
- <meta name="viewport" content="width=device-width,initial-scale=1.0">
- <title>@if(! empty($header)){{ $header }} | @endif {{ Dcat\Admin\Admin::title() }}</title>
- @if(! config('admin.disable_no_referrer_meta'))
- <meta name="referrer" content="no-referrer"/>
- @endif
- @if(! empty($favicon = Dcat\Admin\Admin::favicon()))
- <link rel="shortcut icon" href="{{ $favicon }}">
- @endif
- {!! admin_section(Dcat\Admin\Admin::SECTION['HEAD']) !!}
- {!! Dcat\Admin\Admin::asset()->headerJsToHtml() !!}
- {!! Dcat\Admin\Admin::asset()->cssToHtml() !!}
- </head>
- <body
- class="dcat-admin-body sidebar-mini layout-fixed {{ $configData['body_class']}} {{ $configData['sidebar_class'] }}
- {{ $configData['navbar_class'] === 'fixed-top' ? 'navbar-fixed-top' : '' }} " >
- <script>
- var Dcat = CreateDcat({!! Dcat\Admin\Admin::jsVariables() !!});
- </script>
- {!! admin_section(Dcat\Admin\Admin::SECTION['BODY_INNER_BEFORE']) !!}
- <div class="container-fluid">
- @yield('app')
- </div>
- {!! admin_section(Dcat\Admin\Admin::SECTION['BODY_INNER_AFTER']) !!}
- {!! Dcat\Admin\Admin::asset()->jsToHtml() !!}
- <script>
- Dcat.ready(function () {
- var clipboard = new ClipboardJS('.copy');
- clipboard.on('success', function(e) {
- e.clearSelection();
- layer.msg('已复制');
- });
- clipboard.on('error', function(e) {
- e.clearSelection();
- layer.msg('复制内容失败');
- });
- /**
- * 全屏
- */
- $('body').on('click', '[data-check-screen]', function () {
- var check = $(this).attr('data-check-screen');
- if (check == 'full') {
- openFullscreen();
- $(this).attr('data-check-screen', 'exit');
- $(this).html('<i class="feather icon-minimize"</i>');
- } else {
- closeFullscreen();
- $(this).attr('data-check-screen', 'full');
- $(this).html('<i class="feather icon-maximize"></i>');
- }
- });
- // 进入全屏
- function openFullscreen() {
- var elem = document.documentElement;
- if (elem.requestFullscreen) {
- elem.requestFullscreen();
- } else if (elem.mozRequestFullScreen) { /* Firefox */
- elem.mozRequestFullScreen();
- } else if (elem.webkitRequestFullscreen) { /* Chrome, Safari and Opera */
- elem.webkitRequestFullscreen();
- } else if (elem.msRequestFullscreen) { /* IE/Edge */
- elem.msRequestFullscreen();
- }
- }
- // 退出全屏
- function closeFullscreen() {
- if (document.exitFullscreen) {
- document.exitFullscreen();
- } else if (document.mozCancelFullScreen) { /* Firefox */
- document.mozCancelFullScreen();
- } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
- document.webkitExitFullscreen();
- } else if (document.msExitFullscreen) { /* IE/Edge */
- document.msExitFullscreen();
- }
- }
- })
- Dcat.boot();
- </script>
- </body>
- </html>
|