41 lines
1.1 KiB
PHP
41 lines
1.1 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="csrf-token" content="{{ csrf_token() }}" />
|
|
@include('client.jupiter.partials.header')
|
|
@include('client.jupiter.partials.headerincludes')
|
|
<title>{{ env('APP_NAME') }}</title>
|
|
<script>
|
|
var APP_URL = '{{ env('
|
|
APP_URL ') }}';
|
|
</script>
|
|
@yield('css')
|
|
@stack('css')
|
|
</head>
|
|
|
|
<body>
|
|
@include("client.jupiter.nav")
|
|
@yield('content')
|
|
@include('client.jupiter.partials.footer')
|
|
@include('client.jupiter.partials.footerincludes')
|
|
@yield('js')
|
|
@stack('js')
|
|
<script>
|
|
var imgTags = document.getElementsByTagName('img');
|
|
for (var i = 0; i < imgTags.length; i++) {
|
|
var imgTag = imgTags[i];
|
|
var originalSrc = imgTag.src;
|
|
imgTag.onerror = function() {
|
|
if (this.src === originalSrc) {
|
|
console.log('Error loading image: ' + originalSrc);
|
|
this.src = '{{site_url(SITEVARS->no_image)}}';
|
|
}
|
|
};
|
|
imgTag.src = originalSrc;
|
|
}
|
|
</script>
|
|
</body>
|
|
|
|
</html> |