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.target.partials.header')
|
|
@include('client.target.partials.headerincludes')
|
|
<title>{{ env('APP_NAME') }}</title>
|
|
<script>
|
|
var APP_URL = '{{ env('
|
|
APP_URL ') }}';
|
|
</script>
|
|
@yield('css')
|
|
@stack('css')
|
|
</head>
|
|
|
|
<body>
|
|
@include("client.target.nav")
|
|
@yield('content')
|
|
@include('client.target.partials.footer')
|
|
@include('client.target.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> |