Add mobile styling
This commit is contained in:
41
resources/assets/js/functions/menu.js
vendored
41
resources/assets/js/functions/menu.js
vendored
@@ -19,23 +19,52 @@
|
||||
var submenu = $('<div style="width: ' + $menuItem.outerWidth() + 'px"><a href="' + $menuItem.find('a').attr('href') + '" style="width: ' + $menuItem.outerWidth() + 'px"></a></div>').append($menuItem.children('ul.submenu').clone());
|
||||
var pos = $menuItem.offset();
|
||||
submenu.addClass('menu-submenu').css({top: pos.top, left: pos.left});
|
||||
submenu.on( "mouseleave", function(){
|
||||
submenu.on( "mouseleave", function() {
|
||||
$('.menu-submenu > ul.submenu').slideUp(400, function(){$(this).closest('.menu-submenu').remove()});
|
||||
$menuItem.removeClass('hover');
|
||||
} );
|
||||
$('body').append(submenu);
|
||||
submenu.children('ul.submenu').slideDown();
|
||||
|
||||
submenu.find('ul.submenu li.has_submenu').click(function(){
|
||||
$(this).find('ul.submenu').slideToggle();
|
||||
$(this).toggleClass('opened');
|
||||
});
|
||||
submenu.find('ul.submenu').subMenu({});
|
||||
openPlayerInNewScreen();
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {object} _options
|
||||
*/
|
||||
$.fn.subMenu = function (_options) {
|
||||
var options = {
|
||||
menuSubmenuClass: 'has_submenu'
|
||||
};
|
||||
$.extend(options, _options);
|
||||
var $container = $(this);
|
||||
|
||||
$container.find('li.' + options.menuSubmenuClass + ' > a').click(function(e) {
|
||||
e.preventDefault();
|
||||
var $li = $(this).closest('li');
|
||||
$li.children('ul.submenu').slideToggle();
|
||||
$li.toggleClass('opened');
|
||||
});
|
||||
};
|
||||
|
||||
}(jQuery));
|
||||
|
||||
$(function () {
|
||||
$('.menu, .mobile-menu').menu({});
|
||||
$('.menu').menu({});
|
||||
$('.mobile-menu').subMenu({});
|
||||
$('.mobile_menu_button a').click(function() {
|
||||
$('.mobile_menu_container').show();
|
||||
});
|
||||
$('.mobile_close_menu_button a').click(function() {
|
||||
$('.mobile_menu_container').hide();
|
||||
});
|
||||
$('.mobile_menu_container').click(function(e){
|
||||
var $target = $(e.target);
|
||||
if(!$target.closest('#mobile_menu_nav').length &&
|
||||
$('.mobile_menu_container').is(":visible")) {
|
||||
$('.mobile_menu_container').hide();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
1
resources/assets/js/functions/prettyPhoto.js
vendored
1
resources/assets/js/functions/prettyPhoto.js
vendored
@@ -1,5 +1,4 @@
|
||||
$(function () {
|
||||
console.log($(".prettyPhoto[rel^='prettyPhoto']"));
|
||||
$(".prettyPhoto[rel^='prettyPhoto']").prettyPhoto({
|
||||
show_title: false,
|
||||
slideshow: 3000,
|
||||
|
||||
54
resources/assets/js/functions/snapTo.js
vendored
Normal file
54
resources/assets/js/functions/snapTo.js
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
(function ($) {
|
||||
|
||||
/**
|
||||
* @param {object} _options
|
||||
*/
|
||||
$.fn.snapTo = function (_options) {
|
||||
var options = {
|
||||
elementClass: 'post'
|
||||
};
|
||||
$.extend(options, _options);
|
||||
var $container = $(this);
|
||||
var $elements = $container.find('.' + options.elementClass + ':visible');
|
||||
var stopSnapTo = false;
|
||||
|
||||
var snapTimeout = null;
|
||||
var snapHandler = function() {
|
||||
if (!stopSnapTo) {
|
||||
stopSnapTo = true;
|
||||
var y = $container.scrollLeft();
|
||||
$elements.each(function () {
|
||||
var offset = $(this).offset();
|
||||
if (offset.left > -(window.screen.width / 2) && offset.left < window.screen.width / 2) {
|
||||
$container.animate({
|
||||
scrollLeft: Math.round(y + offset.left) + 'px'
|
||||
}, 300);
|
||||
return false;
|
||||
}
|
||||
});
|
||||
if (snapTimeout) {
|
||||
clearTimeout(snapTimeout);
|
||||
}
|
||||
snapTimeout = setTimeout(function () {
|
||||
stopSnapTo = false;
|
||||
}, 500);
|
||||
}
|
||||
}
|
||||
var snapToHandlerTimer = null;
|
||||
var scrollHandler = function() {
|
||||
if (snapToHandlerTimer) {
|
||||
clearTimeout(snapToHandlerTimer);
|
||||
}
|
||||
snapToHandlerTimer = setTimeout(snapHandler, 300);
|
||||
};
|
||||
|
||||
$container.on( "scroll", scrollHandler);
|
||||
};
|
||||
|
||||
}(jQuery));
|
||||
|
||||
$(function () {
|
||||
$('[data-snapto]').each(function () {
|
||||
$(this).snapTo($(this).data('snapto'));
|
||||
});
|
||||
});
|
||||
2
resources/assets/sass/base/_base.scss
vendored
2
resources/assets/sass/base/_base.scss
vendored
@@ -7,6 +7,8 @@
|
||||
|
||||
@use "../layout";
|
||||
|
||||
@use "mobile";
|
||||
|
||||
.mejs__overlay-button {
|
||||
border: none;
|
||||
}
|
||||
|
||||
11
resources/assets/sass/base/_container.scss
vendored
11
resources/assets/sass/base/_container.scss
vendored
@@ -10,6 +10,9 @@ body {
|
||||
.body_container {
|
||||
@include container;
|
||||
padding: 67px 0;
|
||||
@media (max-width: 768px) {
|
||||
padding: 50px 0;
|
||||
}
|
||||
background-color: #f9f9f9;
|
||||
}
|
||||
.header_container {
|
||||
@@ -24,3 +27,11 @@ body {
|
||||
.sidebar {
|
||||
width: CALC(300px + var(--bs-gutter-x));
|
||||
}
|
||||
@media (max-width: 768px) {
|
||||
.content_container {
|
||||
padding-right: calc(var(--bs-gutter-x)* .5);
|
||||
}
|
||||
.site_container {
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
0
resources/assets/sass/base/_mobile.scss
vendored
Normal file
0
resources/assets/sass/base/_mobile.scss
vendored
Normal file
1
resources/assets/sass/components/_box.scss
vendored
1
resources/assets/sass/components/_box.scss
vendored
@@ -39,6 +39,7 @@
|
||||
.tabs {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
&.fit_content {
|
||||
width: fit-content;
|
||||
}
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
|
||||
.contact_box {
|
||||
position: relative;
|
||||
padding: 15px 23px 15px 15px;
|
||||
|
||||
.logo-whatsapp {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
@@ -29,4 +31,9 @@
|
||||
.read_more {
|
||||
@include read_more_link;
|
||||
}
|
||||
}
|
||||
}
|
||||
@media (max-width: 768px) and (min-width: 423px) {
|
||||
.contact_box p {
|
||||
width: CALC(100% - 81px);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,6 +10,9 @@
|
||||
|
||||
.footer_menu {
|
||||
background-image: linear-gradient(to right, #0102b0, #4090e3);
|
||||
@media (max-width: 768px) {
|
||||
padding: 60px 30px 30px 30px;
|
||||
}
|
||||
|
||||
.row {
|
||||
@include container;
|
||||
|
||||
37
resources/assets/sass/components/_header.scss
vendored
37
resources/assets/sass/components/_header.scss
vendored
@@ -1,10 +1,37 @@
|
||||
.header {
|
||||
height: 110px;
|
||||
.logo {
|
||||
float: left;
|
||||
margin-top: 18px;
|
||||
img {
|
||||
height: 75px;
|
||||
}
|
||||
}
|
||||
.advertisement {
|
||||
float: right;
|
||||
width: 728px;
|
||||
height: 90px;
|
||||
}
|
||||
}
|
||||
.header .logo {
|
||||
float: left;
|
||||
margin-top: 18px;
|
||||
|
||||
@media (max-width: 1170px) {
|
||||
.header {
|
||||
padding: 0 20px;
|
||||
}
|
||||
}
|
||||
.header .logo img {
|
||||
height: 75px;
|
||||
@media (max-width: 980px) {
|
||||
.header {
|
||||
height: 212px;
|
||||
.logo {
|
||||
float: none;
|
||||
}
|
||||
.advertisement {
|
||||
float: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
@media (max-width: 768px) {
|
||||
.header_container {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
31
resources/assets/sass/components/_main_news.scss
vendored
31
resources/assets/sass/components/_main_news.scss
vendored
@@ -2,6 +2,28 @@
|
||||
@use "../abstracts/variables" as *;
|
||||
|
||||
.blog_grid {
|
||||
@media (max-width: 768px) {
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
&::-webkit-scrollbar {
|
||||
height: 8px;
|
||||
}
|
||||
|
||||
/* Track */
|
||||
&::-webkit-scrollbar-track {
|
||||
border-radius: 100vw;
|
||||
background: #eee;
|
||||
}
|
||||
|
||||
/* Handle */
|
||||
&::-webkit-scrollbar-thumb {
|
||||
border-radius: 4px;
|
||||
background: linear-gradient(to right, #10229c, #64a9f2);
|
||||
}
|
||||
.grid_view {
|
||||
width: 300%;
|
||||
}
|
||||
}
|
||||
.row, .row > * {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
@@ -12,6 +34,9 @@
|
||||
.post {
|
||||
position: relative;
|
||||
height: 100%;
|
||||
@media (max-width: 768px) {
|
||||
height: 50%;
|
||||
}
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
@@ -64,6 +89,12 @@
|
||||
font-size: 16px;
|
||||
line-height: 1.17;
|
||||
}
|
||||
@media (max-width: 768px) {
|
||||
h2 a, h5 a {
|
||||
font-size: 16px;
|
||||
line-height: 1.17;
|
||||
}
|
||||
}
|
||||
.post_date {
|
||||
@include post_date;
|
||||
color: $news-banner-text-color;
|
||||
|
||||
166
resources/assets/sass/components/_menu.scss
vendored
166
resources/assets/sass/components/_menu.scss
vendored
@@ -2,9 +2,11 @@
|
||||
@use "../abstracts/mixin" as *;
|
||||
|
||||
.menu_container {
|
||||
height: 75px;
|
||||
margin-bottom: 20px;
|
||||
background-image: linear-gradient(to right, #0102b0, #4090e3);
|
||||
@media (min-width: 767px) {
|
||||
height: 75px;
|
||||
margin-bottom: 20px;
|
||||
background-image: linear-gradient(to right, #0102b0, #4090e3);
|
||||
}
|
||||
|
||||
nav {
|
||||
display: flex;
|
||||
@@ -97,11 +99,11 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
.top_menu_container {
|
||||
.top_menu_container, .menu_mobile_container {
|
||||
height: 50px;
|
||||
@include container;
|
||||
|
||||
ul {
|
||||
ul.right_menu {
|
||||
float: right;
|
||||
@include reset-list;
|
||||
|
||||
@@ -145,7 +147,7 @@
|
||||
|
||||
.search_input {
|
||||
border: 1px solid #efefef;
|
||||
border-radius: 5px;
|
||||
border-radius: 3px;
|
||||
background-color: #fff;
|
||||
height: 29px;
|
||||
font-family: Montserrat, serif;
|
||||
@@ -164,8 +166,60 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
.menu_mobile_container {
|
||||
height: 30px;
|
||||
padding: 12px 0;
|
||||
.mobile_menu_button a {
|
||||
display: block;
|
||||
width: 20px;
|
||||
height: 21px;
|
||||
padding: 4px 10px 4px 11px;
|
||||
border-top-right-radius: 3px;
|
||||
border-bottom-right-radius: 3px;
|
||||
background-color: #10229c;
|
||||
margin-right: 12px;
|
||||
i {
|
||||
color: white;
|
||||
font-size: 19px;
|
||||
}
|
||||
}
|
||||
.logo_mobile {
|
||||
height: 100%;
|
||||
img {
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
.right_menu_container {
|
||||
background-color: #10229c;
|
||||
margin-left: 12px;
|
||||
border-top-left-radius: 3px;
|
||||
border-bottom-left-radius: 3px;
|
||||
flex-grow: 1;
|
||||
ul.right_menu {
|
||||
li {
|
||||
padding: 5px 19px;
|
||||
margin: 0;
|
||||
|
||||
.menu-submenu {
|
||||
.search_form {
|
||||
height: 25px;
|
||||
.search_input {
|
||||
height: 18px;
|
||||
width: 80px;
|
||||
}
|
||||
.search_submit {
|
||||
margin: 0 6px;
|
||||
}
|
||||
}
|
||||
|
||||
.search_button {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.menu-submenu, .mobile_menu_container {
|
||||
position: absolute;
|
||||
|
||||
> a {
|
||||
@@ -222,6 +276,7 @@
|
||||
top: 15px;
|
||||
-webkit-transform: rotate(270deg);
|
||||
transform: rotate(270deg);
|
||||
transition: 0.6s ease;
|
||||
}
|
||||
&.opened:after {
|
||||
-webkit-transform: rotate(0deg);
|
||||
@@ -230,3 +285,100 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.mobile_menu_container {
|
||||
display: none;
|
||||
position: fixed;
|
||||
z-index: 15;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background-color: rgba(0, 0, 0, 0.8);
|
||||
nav {
|
||||
background: white;
|
||||
width: fit-content;
|
||||
height: 100vh;
|
||||
padding: 20px;
|
||||
min-width: 70vw;
|
||||
max-width: 100vw;
|
||||
overflow: hidden;
|
||||
|
||||
ul, li, li a {
|
||||
width: 100%;
|
||||
}
|
||||
ul > li > ul > li {
|
||||
padding-left: 20px;
|
||||
width: CALC(100% - 20px);
|
||||
}
|
||||
|
||||
.submenu {
|
||||
display: none;
|
||||
}
|
||||
|
||||
li.has_submenu {
|
||||
position: relative;
|
||||
&:after {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
display: var(--fa-display, inline-block);
|
||||
font-style: normal;
|
||||
font-variant: normal;
|
||||
line-height: 1;
|
||||
text-rendering: auto;
|
||||
font-family: "Font Awesome 6 Free";
|
||||
font-weight: 900;
|
||||
content: "\f0d7";
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 15px;
|
||||
-webkit-transform: rotate(270deg);
|
||||
transform: rotate(270deg);
|
||||
}
|
||||
&.opened:after {
|
||||
-webkit-transform: rotate(0deg);
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.logo_close_button {
|
||||
display: flex;
|
||||
height: 42px;
|
||||
margin-bottom: 37px;
|
||||
.logo {
|
||||
flex-grow: 1;
|
||||
height: 42px;
|
||||
a {
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
border-bottom: none;
|
||||
img {
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
.mobile_close_menu_button {
|
||||
height: 30px;
|
||||
width: 22.5px;
|
||||
padding: 4px;
|
||||
a {
|
||||
font-size: 30px;
|
||||
color: #1d2bb2;
|
||||
padding: 0;
|
||||
border-bottom: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
.mobile_menu_container nav li.has_submenu {
|
||||
&:after {
|
||||
content: "\f054";
|
||||
-webkit-transform: rotate(0);
|
||||
transform: rotate(0);
|
||||
transition: 0.6s ease;
|
||||
}
|
||||
|
||||
&.opened:after {
|
||||
-webkit-transform: rotate(90deg);
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
}
|
||||
|
||||
7
resources/assets/sass/components/_page.scss
vendored
7
resources/assets/sass/components/_page.scss
vendored
@@ -3,8 +3,11 @@
|
||||
.page_container {
|
||||
@include container;
|
||||
background-color: #fff;
|
||||
width: CALC(100% - 270px);
|
||||
padding: 32px 135px;
|
||||
padding: 20px;
|
||||
@media (min-width: 768px) {
|
||||
width: CALC(100% - 270px);
|
||||
padding: 32px 135px;
|
||||
}
|
||||
}
|
||||
.page_body {
|
||||
font-family: Nunito, serif;
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
.sidebar .box {
|
||||
width: CALC(100% - 38px);
|
||||
}
|
||||
@media (max-width: 768px) {
|
||||
.sidebar {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
<div class="page_body">
|
||||
<div class="row ">
|
||||
<div class="col">
|
||||
<div class="col-12 col-md">
|
||||
<h3>Contactinformatie</h3>
|
||||
|
||||
<p>Neem contact op met NH Gooi, de streekomroep voor Hilversum, Huizen, Blaricum, Eemnes en Laren.</p>
|
||||
@@ -54,7 +54,7 @@
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="col">
|
||||
<div class="col-12 col-md">
|
||||
<h3>WhatsApp de redactie / Nieuwsupdate</h3>
|
||||
<p class="intro">Elke dag het nieuws uit 't Gooi in een appje op je telefoon: dat kan met onze
|
||||
nieuwsdienst via WhatsApp.</p>
|
||||
|
||||
@@ -7,11 +7,11 @@
|
||||
|
||||
@section('content')
|
||||
<div class="clearfix">
|
||||
<div class="blog_grid">
|
||||
<div class="blog_grid" data-snapto="{}">
|
||||
{{-- Desktop --}}
|
||||
<div class="grid_view">
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<div class="col-4 col-md-6">
|
||||
@if($item = current($news))
|
||||
<div class="post large">
|
||||
<a href="{{url($item->url)}}" title="{{$item->title}}">
|
||||
@@ -49,11 +49,49 @@
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@if($item = next($news))
|
||||
<div class="post large d-block d-md-none">
|
||||
<a href="{{url($item->url)}}" title="{{$item->title}}">
|
||||
@if($item->video)
|
||||
<span class="icon video"></span>
|
||||
@elseif($item->images && count($item->images) > 1)
|
||||
<span class="icon gallery"></span>
|
||||
@endif
|
||||
<img src='{{$item->images && count($item->images) ? $imgBase . $item->images[0]->url : '/images/noimage.png'}}'
|
||||
alt='img'>
|
||||
</a>
|
||||
<div class="slider_content_box">
|
||||
<ul class="post_details simple">
|
||||
@if($item->region)
|
||||
<li class="category">
|
||||
<a title="Regio: {{$item->region->title}}"
|
||||
href="{{route('nieuws.regio', ['region' => $item->region->slug])}}"
|
||||
class="over_image">{{$item->region->title}}</a>
|
||||
</li>
|
||||
@endif
|
||||
</ul>
|
||||
<h2><a href="{{url($item->url)}}"
|
||||
title="{{$item->title}}">{!!$item->title!!}</a></h2>
|
||||
<?php
|
||||
$time = Formatter::relativeDate($item->published) . ' om ' . $item->published->format('H:i');
|
||||
if ($item->edited && ($item->edited->format('d m H i') != $item->published->format('d m H i'))) {
|
||||
$time .= ' | bijgewerkt: '
|
||||
. ($item->edited->format('d m') != $item->published->format('d m') ? strtolower(Formatter::relativeDate($item->edited)) : '')
|
||||
. ' ' . $item->edited->format('H:i') . ' uur';
|
||||
}
|
||||
?>
|
||||
<span class="post_date" title="{{$time}}">
|
||||
<i class="fa-regular fa-clock"></i> {{$time}}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<div class="col-8 col-md-6">
|
||||
<div class="row">
|
||||
@for($i = 0; ($i < 4) && ($item = next($news)); ++$i)
|
||||
<div class="post small col-6">
|
||||
@php(prev($news))
|
||||
@for($i = 0; ($i < 5) && ($item = next($news)); ++$i)
|
||||
<div class="post small col-6{{$i == 0 ? ' d-none d-md-block' : ''}}{{$i == 4 ? ' d-block d-md-none' : ''}}">
|
||||
<a href="{{url($item->url)}}" title="{{$item->title}}">
|
||||
@if($item->video)
|
||||
<span class="icon video"></span>
|
||||
@@ -99,10 +137,10 @@
|
||||
<div class="grey_background">
|
||||
<div class="body_container row">
|
||||
<div class="col-12">
|
||||
<div style="width: 100%; font-family: Nunito,serif;font-size: 12px;font-weight: 500;line-height: 3.17;text-align: center;color: #666;">
|
||||
<div class="d-none d-md-block" style="width: 100%; font-family: Nunito,serif;font-size: 12px;font-weight: 500;line-height: 3.17;text-align: center;color: #666;">
|
||||
- Advertentie -
|
||||
</div>
|
||||
<div style="width: 728px; height: 90px;margin: 11px auto 50px auto;background-color: #efefef;"></div>
|
||||
<div class="d-none d-md-block" style="width: 728px; height: 90px;margin: 11px auto 50px auto;background-color: #efefef;"></div>
|
||||
</div>
|
||||
<div class="col-12 col-md content_container">
|
||||
<div class="row">
|
||||
@@ -135,12 +173,12 @@
|
||||
<h4 class="box_header"><span>Uitgelicht</span></h4>
|
||||
<div class="box featured">
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<div class="col-12 col-md-6">
|
||||
<a href="{{$url}}" title="{{$podcast->title}}">
|
||||
<img src="{{$podcast->image && $podcast->image->url ? $imgBase . $podcast->image->url : '/images/noimage.png'}}"/>
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<div class="col-12 col-md-6">
|
||||
<h2 class="post_title"><a href="{{$url}}" title="{{$podcast->title}}">{!!$podcast->title!!}</a></h2>
|
||||
<div class="sub_title">
|
||||
@if ($podcast->program)
|
||||
|
||||
@@ -38,22 +38,4 @@
|
||||
<!--rss-->
|
||||
<link rel="alternate" type="application/rss+xml" title="Abonneren op NH Gooi Nieuws" href="{{env('API_URL')}}rss/nieuws" />
|
||||
<link rel="alternate" type="application/rss+xml" title="Abonneren op NH Gooi Fragment gemist" href="{{env('API_URL')}}rss/podcasts" />
|
||||
<script>
|
||||
refreshCSS = () => {
|
||||
let links = document.getElementsByTagName('link');
|
||||
for (let i = 0; i < links.length; i++) {
|
||||
if (links[i].getAttribute('rel') == 'stylesheet') {
|
||||
let href = links[i].getAttribute('href')
|
||||
.split('?')[0];
|
||||
if (href == '/css/style.css') {
|
||||
|
||||
let newHref = href + '?version='
|
||||
+ new Date().getMilliseconds();
|
||||
|
||||
links[i].setAttribute('href', newHref);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
<html>
|
||||
@include('layouts._head')
|
||||
<body>
|
||||
<button style="position: fixed; top: 0; left: 0;display: none;" onclick="refreshCSS()">Refresh</button>
|
||||
<!-- Google Tag Manager (noscript) -->
|
||||
|
||||
<noscript>
|
||||
@@ -19,15 +18,42 @@
|
||||
<div class="header_container small">
|
||||
<div class="header clearfix">
|
||||
<div class="logo">
|
||||
<a href="{{url('/')}}"><img src="/images/logo-NHGooi.svg" class="ri"/></a>
|
||||
<a href="{{url('/')}}"><img src="/images/logo-NHGooi.svg"/></a>
|
||||
</div>
|
||||
|
||||
<div style="float: right;width: 728px;height: 90px;margin: 11px auto 0px auto;background-color: #efefef;"></div>
|
||||
<div class="advertisement" style="margin: 11px auto 0 auto;background-color: #efefef;"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="menu_mobile_container d-flex d-md-none sticky clearfix">
|
||||
<div class="mobile_menu_button">
|
||||
<a href="javascript:void(0)"><i class="fa-solid fa-bars"></i></a>
|
||||
</div>
|
||||
<div class="logo_mobile">
|
||||
<a href="{{url('/')}}"><img src="/images/logo-NHGooi.svg"/></a>
|
||||
</div>
|
||||
<div class="right_menu_container">
|
||||
<ul class="right_menu">
|
||||
<li>
|
||||
<a href="{{url('contact')}}">Tip <i class="fa-solid fa-circle-plus"></i></a>
|
||||
</li>
|
||||
@if(isset($searchURL))
|
||||
<li>
|
||||
<form class="search_form" action="{{url($searchURL)}}">
|
||||
<input type="text" name="query" placeholder="Zoeken..."
|
||||
value="{{isset($query) ? $query : null}}" class="search_input">
|
||||
<a href="javascript:void(0)" onclick="this.form.submit()" class="search_submit"><i
|
||||
class="fa-solid fa-magnifying-glass"></i></a>
|
||||
</form>
|
||||
<a href="#" class="search_button"><i class="fa-solid fa-magnifying-glass"></i><i
|
||||
style="display: none" class="fa-solid fa-xmark"></i></a>
|
||||
</li>
|
||||
@endif
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="menu_container sticky clearfix">
|
||||
<div class="top_menu_container">
|
||||
<ul>
|
||||
<div class="top_menu_container d-none d-md-block">
|
||||
<ul class="right_menu">
|
||||
<li>
|
||||
<a href="{{url('contact')}}">Tip de redactie <i class="fa-solid fa-circle-plus"></i></a>
|
||||
</li>
|
||||
@@ -36,7 +62,8 @@
|
||||
<form class="search_form" action="{{url($searchURL)}}">
|
||||
<input type="text" name="query" placeholder="Zoeken..."
|
||||
value="{{isset($query) ? $query : null}}" class="search_input">
|
||||
<a href="javascript:void(0)" onclick="this.form.submit()" class="search_submit"><i class="fa-solid fa-magnifying-glass"></i></a>
|
||||
<a href="javascript:void(0)" onclick="this.form.submit()" class="search_submit"><i
|
||||
class="fa-solid fa-magnifying-glass"></i></a>
|
||||
</form>
|
||||
<a href="#" class="search_button"><i class="fa-solid fa-magnifying-glass"></i><i
|
||||
style="display: none" class="fa-solid fa-xmark"></i></a>
|
||||
@@ -67,7 +94,7 @@
|
||||
<div class="footer_container">
|
||||
<div class="footer_menu">
|
||||
<div class="row">
|
||||
<div class="col-3">
|
||||
<div class="col-12 col-md-3">
|
||||
<h4 class="box_header"><span>NH Gooi</span></h4>
|
||||
<p class="about">
|
||||
<b>NH Gooi</b> is de streekomroep voor het Gooi in samenwerking met NH Media.
|
||||
@@ -75,7 +102,7 @@
|
||||
<a href="{{url('frequenties')}}">Alle frequenties / kanalen.</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-3">
|
||||
<div class="col-12 col-md-3">
|
||||
<h4 class="box_header"><span>Contact</span></h4>
|
||||
<p class="buttons">
|
||||
<a href="{{url('contact')}}">Contactgegevens</a>
|
||||
@@ -85,7 +112,7 @@
|
||||
<a href="https://nhnieuws.nl/" target="_blank">NH Nieuws</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-3">
|
||||
<div class="col-12 col-md-3">
|
||||
<h4 class="box_header"><span>Kijk & luister</span></h4>
|
||||
<p class="buttons">
|
||||
<a class="player" href="{{url('luister/live')}}">Luister live</a>
|
||||
@@ -95,7 +122,7 @@
|
||||
<a href="{{url('nieuws')}}">Nieuws</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-3">
|
||||
<div class="col-12 col-md-3">
|
||||
<h4 class="box_header"><span>Radio</span></h4>
|
||||
<p class="buttons">
|
||||
<a href="{{url('gids')}}">Programmagids</a>
|
||||
@@ -113,11 +140,15 @@
|
||||
<li><a href="{{url('cookie-statement')}}">Cookie statement</a></li>
|
||||
</ul>
|
||||
<ul class="footer_social_media">
|
||||
<li><a class="facebook" title="Facebook" target="_blank" href="https://www.facebook.com/WijZijnNHGooi"><i class="fa-brands fa-facebook-f"></i></a>
|
||||
<li><a class="facebook" title="Facebook" target="_blank"
|
||||
href="https://www.facebook.com/WijZijnNHGooi"><i class="fa-brands fa-facebook-f"></i></a>
|
||||
</li>
|
||||
<li><a class="twitter-x" title="Twitter/X" target="_blank" href="https://twitter.com/nhgooi"><i class="fa-brands fa-twitter"></i></a>
|
||||
<li><a class="twitter-x" title="Twitter/X" target="_blank" href="https://twitter.com/nhgooi"><i
|
||||
class="fa-brands fa-twitter"></i></a>
|
||||
</li>
|
||||
<li><a class="youtube" title="Youtube" target="_blank" href="https://www.youtube.com/channel/UC0qLwqmXiLoL5PrLlgB6B4Q"><i class="fa-brands fa-youtube"></i></a></li>
|
||||
<li><a class="youtube" title="Youtube" target="_blank"
|
||||
href="https://www.youtube.com/channel/UC0qLwqmXiLoL5PrLlgB6B4Q"><i
|
||||
class="fa-brands fa-youtube"></i></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -6,12 +6,12 @@
|
||||
?>
|
||||
<li class="box featured">
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<div class="col-12 col-md-6">
|
||||
<a href="{{$url}}" title="{{$podcast->title}}">
|
||||
<img src="{{$podcast->image && $podcast->image->url ? $imgBase . $podcast->image->url : '/images/noimage.png'}}"/>
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<div class="col-12 col-md-6">
|
||||
<h2 class="post_title"><a href="{{$url}}" title="{{$podcast->title}}">{!!$podcast->titleWithoutProgram()!!}</a></h2>
|
||||
<div class="sub_title">
|
||||
@if ($podcast->program)
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
@if(isset($schedule[$day]) && $schedule[$day])
|
||||
@foreach($schedule[$day] as $item)
|
||||
@php($isCurrent = ($now >= $item['starttime']) && ($now <= $item['endtime']))
|
||||
<div class="col-3">
|
||||
<div class="col-12 col-md-3">
|
||||
<a class="box full-width" href="{{route('programma') . $item['program']->url}}"
|
||||
title="{{$item['program']->name . ($item['program']->tagline ? "\n" . $item['program']->tagline : "")}}">
|
||||
<div class="program-title">
|
||||
|
||||
@@ -80,7 +80,8 @@ $margin = 2;
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.30.1/moment.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/air-datepicker@3.5.0/air-datepicker.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
new AirDatepicker('#custom_date', {
|
||||
var isMobile = window.screen.width <= 768;
|
||||
var airdatepicker = new AirDatepicker('#custom_date', {
|
||||
locale: {
|
||||
days: ['zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag'],
|
||||
daysShort: ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'],
|
||||
@@ -95,6 +96,7 @@ $margin = 2;
|
||||
},
|
||||
selectedDates: [new Date()],
|
||||
autoClose: true,
|
||||
isMobile: isMobile,
|
||||
onSelect: function onSelect(fd, date, inst) {
|
||||
getCustomProgramDate();
|
||||
}
|
||||
@@ -117,5 +119,11 @@ $margin = 2;
|
||||
});
|
||||
}
|
||||
}
|
||||
jQuery(window).resize(function() {
|
||||
if ((window.screen.width <= 768) != isMobile) {
|
||||
isMobile = window.screen.width <= 768;
|
||||
airdatepicker.update({isMobile: isMobile});
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
@@ -120,7 +120,7 @@ function buildMenu($menu, $ismobile)
|
||||
return $result;
|
||||
}
|
||||
?>
|
||||
<nav>
|
||||
<nav class="d-none d-md-flex">
|
||||
<div></div>
|
||||
<ul class="menu d-none d-lg-block">
|
||||
<li class="{{isActive('/', false) ? "selected" : ""}}">
|
||||
@@ -135,26 +135,23 @@ function buildMenu($menu, $ismobile)
|
||||
</ul>
|
||||
<div></div>
|
||||
</nav>
|
||||
<div class="mobile_menu_container d-none d-sm-block d-md-none">
|
||||
<a href="#" class="mobile-menu-switch">
|
||||
<span class="line"></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"></span>
|
||||
</a>
|
||||
<div class="mobile-menu-divider"></div>
|
||||
<nav>
|
||||
<div class="mobile_menu_container">
|
||||
<nav id="mobile_menu_nav">
|
||||
<ul class="mobile-menu">
|
||||
@if($activeBlog != null)
|
||||
<li class="{{isActive($activeBlog->url, false) ? "selected" : ""}}">
|
||||
<a href="{{url($activeBlog->url)}}" title="Liveblog: {{$activeBlog->title}}">
|
||||
<b>Live-blog</b> | {{$activeBlog->title}}
|
||||
</a>
|
||||
</li>
|
||||
@endif
|
||||
<li class="submenu {{isActive($newsUrl, false) ? "selected" : ""}}">
|
||||
<a href="{{$newsUrl}}" title="Nieuws">
|
||||
Nieuws
|
||||
</a>
|
||||
<li class="logo_close_button">
|
||||
<div class="logo">
|
||||
<a href="{{url('/')}}"><img src="/images/logo-NHGooi.svg"/></a>
|
||||
</div>
|
||||
<div class="mobile_close_menu_button">
|
||||
<a href="javascript:void(0)"><i class="fa-solid fa-xmark"></i></a>
|
||||
</div>
|
||||
</li>
|
||||
<li class="{{isActive('/', false) ? "selected" : ""}}">
|
||||
<a href="/" title="Home">Home</a>
|
||||
</li>
|
||||
@php($newsUrl = '/nieuws')
|
||||
<li class="{{isActive($newsUrl, false) ? "selected" : ""}}">
|
||||
<a href="{{$newsUrl}}" title="Nieuws">Nieuws</a>
|
||||
</li>
|
||||
{!! buildMenu($menu, true) !!}
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user