Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions resources/views/layout/base.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@
<title>EU Code Week</title>
@endif

<!-- Start - Cookie Bot -->
<script id="Cookiebot" src="https://consent.cookiebot.com/uc.js" data-cbid="719385d2-f5d2-4806-8352-72e5ebe53996" data-blockingmode="auto" type="text/javascript"></script>
<!-- End - Cookie Bot -->
<script type="text/javascript" charset="UTF-8" src="//cdn.cookie-script.com/s/{{ env('COOKIESCRIPT_ID') }}.js"></script>

</head>

Expand Down
4 changes: 1 addition & 3 deletions resources/views/layout/new_base.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,6 @@ classList = ['scale-0', 'opacity-0', 'translate-y-1/2'];
}
</script>

<!-- Start - Cookie Bot -->
<script id="Cookiebot" src="https://consent.cookiebot.com/uc.js" data-cbid="719385d2-f5d2-4806-8352-72e5ebe53996" data-blockingmode="auto" type="text/javascript"></script>
<!-- End - Cookie Bot -->
<script type="text/javascript" charset="UTF-8" src="//cdn.cookie-script.com/s/{{ env('COOKIESCRIPT_ID') }}.js"></script>
</body>
</html>
26 changes: 5 additions & 21 deletions resources/views/static/cookie.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@
@section('content')

<section id="codeweek-privacy-page" class="bg-white">
<section class="relative flex overflow-hidden">
<div class="flex relative transition-all w-full bg-blue-gradient py-10 tablet:py-20">
<div class="w-full overflow-hidden flex flex-col md:flex-row justify-end md:items-center flex-shrink-0">
<div class="codeweek-container-lg flex flex-col">
<section class="flex overflow-hidden relative">
<div class="flex relative py-10 w-full transition-all bg-blue-gradient tablet:py-20">
<div class="flex overflow-hidden flex-col flex-shrink-0 justify-end w-full md:flex-row md:items-center">
<div class="flex flex-col codeweek-container-lg">
<h2 class="text-white font-normal text-3xl tablet:font-medium tablet:text-5xl font-['Montserrat']">
@lang('cookie_policy.title')
</h2>
Expand All @@ -115,21 +115,5 @@
@endsection

@push('scripts')
<script>
// Wait for the DOM to fully load
document.addEventListener('DOMContentLoaded', function () {
// Select the target container
const container = document.getElementById('cookie-declaration-container');

// Create the script element
const script = document.createElement('script');
script.id = 'CookieDeclaration';
script.src = 'https://consent.cookiebot.com/719385d2-f5d2-4806-8352-72e5ebe53996/cd.js';
script.type = 'text/javascript';
script.async = true;

// Append the script to the target container
container.appendChild(script);
});
</script>

@endpush
Loading