File: D:/HostingSpaces/SBogers84/zuiderbos.nl/app/views/layouts/pages/schoolSitemap.blade.php
@extends('layouts.master', ['view' => 'page sitemap'])
@section('editable_content')
<div class="image-wrapper">
@include('layouts.partials.navigation', ['sitemap' => true])
<div class="content-placeholder">
{{-- Make extra block for the creative backgrounds in this design :p --}}
<div class="background"></div>
<div class="grey-block"></div>
<div class="grid-row">
<span class="right-icon styling"></span>
{{-- Impression block --}}
<div class="page-impression grid-col">
{{-- Image --}}
<img alt="impression image"
src="/img/zuiderbos-header.jpg"/>
<span class="left-icon styling"></span>
</div>
{{-- Main content block --}}
<div class="grid-col main">
<div class="content">
<h1>Sitemap</h1>
<ul id="school-sitemap">
@include('layouts.partials.sitemapLoop', ['sitemapItem' => $page])
</ul>
</div>
</div>
</div>
</div>
</div>
@endsection
@section('extra-js')
<script>
$(function () {
resizeMyPage();
$(window).resize(
$.throttle(100, resizeMyPage)
);
});
function resizeMyPage() {
// Main content must be at least 200px higher then the impression block
$('.content-placeholder .main').css('min-height', $('.page .page-impression').height() + 200);
// Resizing for the grey block on (default)pages
var greyHeight = $('.content-placeholder .main').height() - $('.page .page-impression').height() + 100;
var greyWidth = ($('.content-placeholder').width() - $('.page .content-placeholder>.grid-row').width()) / 2 + $('.page .page-impression').width();
$('.grey-block').height(greyHeight).width(greyWidth);
}
</script>
@endsection