@prepend('stylesheets')
-@if ($variant === 'MICHSCI')
- <link href="{{ mix('css/michsci.css') }}" rel="stylesheet">
-@else
- <link href="{{ mix('css/app.css') }}" rel="stylesheet">
-@endif
+ @if ($variant === 'MICHSCI')
+ <link href="{{ mix('css/michsci.css') }}" rel="stylesheet">
+ @else
+ <link href="{{ mix('css/app.css') }}" rel="stylesheet">
+ @endif
-<link href="https://fonts.googleapis.com/css?family=Barlow:400,500,600|Muli:400,700&display=swap" rel="stylesheet">
+ <link href="https://fonts.googleapis.com/css?family=Barlow:400,500,600|Muli:400,700&display=swap" rel="stylesheet">
@endprepend
@prepend('scripts')
{{-- Automatic polyfills --}}
- <script crossorigin="anonymous" src="https://polyfill.io/v3/polyfill.min.js?flags=gated&features=String.prototype.normalize%2Ces6"></script>
+ <script crossorigin="anonymous"
+ src="https://polyfill.io/v3/polyfill.min.js?flags=gated&features=String.prototype.normalize%2Ces6"></script>
{{-- MMenu polyfills --}}
<script src="https://cdnjs.cloudflare.com/ajax/libs/dom4/2.0.0/dom4.js"></script>
// Also hide chat box circle when closing it (only use side-menu for opening)
$crisp.push(["on", "chat:closed", () => window.$crisp.push(["do", "chat:hide"])]);
- (function(){d=document;s=d.createElement("script");s.src="https://client.crisp.chat/l.js";s.async=1;d.getElementsByTagName("head")[0].appendChild(s);})();
+ // Show the chat box when a message is received
+ $crisp.push(["on", "message:received", () => window.$crisp.push(["do", "chat:show"])]);
+
+ (function () {
+ d = document;
+ s = d.createElement("script");
+ s.src = "https://client.crisp.chat/l.js";
+ s.async = 1;
+ d.getElementsByTagName("head")[0].appendChild(s);
+ })();
</script>
@endisset
@endprepend