{% extends 'frontend/base.html.twig' %}
{% block body %}
{% set current_route = app.request.attributes.get('_route') %}
<section class="home-hero {{ current_route == 'homepage' ? 'is-homepage' : '' }}" style="background-image: url({{ asset('/assets/background/simpang_gumul.png') }})">
<div class="container h-100">
<div class="row h-100 justify-content-center">
<div class="col-md-12 content">
<div class="title text-center">
OPEN DATA KEDIRI
</div>
<div
class="search-global">
{# <form autocomplete="off" action="#" class="search-global-inner"> #}
<div
class="search-global-inner">
{# <div class=""> #}
<div class="input-group autocomplete-box">
<input id="gsearch" name="gsearch" type="text" class="form-control input-search search-input-text" placeholder="Masukkan Kata Pencarian">
<i class="fa fa-search" style="margin-top: auto; margin-bottom: auto; margin-right: 10px; color: #b5b6b7;"></i>
{# <button class="btn btn-danger">
</button> #}
</div>
{# </div> #}
</div>
{# </form> #}
</div>
</div>
<div class="col-3 col-md-3">
<div class="text-center">
<svg class="icon-dashboard" width="60" height="60" viewbox="0 0 79 76" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M35.1111 76H8.77778C6.36389 76 4.29672 75.1739 2.57628 73.5216C0.858759 71.8664 0 69.8778 0 67.5556V8.44444C0 6.12222 0.858759 4.13355 2.57628 2.47844C4.29672 0.826148 6.36389 0 8.77778 0H35.1111V76ZM43.8889 33.7778V0H70.2222C72.6361 0 74.7033 0.826148 76.4237 2.47844C78.1412 4.13355 79 6.12222 79 8.44444V33.7778H43.8889ZM43.8889 76V42.2222H79V67.5556C79 69.8778 78.1412 71.8664 76.4237 73.5216C74.7033 75.1739 72.6361 76 70.2222 76H43.8889Z" fill="white"/>
</svg>
<p class="lh-sm total-data mb-0">
<span class="count">{{ total_sektoral }}</span>
</p>
<p class="mb-0">Sektoral</p>
</div>
</div>
<div class="col-3 col-md-3">
<div class="text-center">
<svg class="icon-dashboard" width="60" height="60" viewbox="0 0 79 76" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M35.55 27.2001C31.8265 26.3592 28.5815 24.3594 26.4231 21.5755C24.2648 18.7917 23.3414 15.4149 23.8259 12.0781C24.3105 8.74139 26.1698 5.67375 29.0553 3.45024C31.9408 1.22673 35.6544 0 39.5 0C43.3456 0 47.0592 1.22673 49.9447 3.45024C52.8302 5.67375 54.6895 8.74139 55.1741 12.0781C55.6586 15.4149 54.7352 18.7917 52.5769 21.5755C50.4185 24.3594 47.1735 26.3592 43.45 27.2001V34.5451H59.25C61.3452 34.5451 63.3546 35.2731 64.8361 36.569C66.3177 37.8648 67.15 39.6223 67.15 41.4549V48.7999C70.8735 49.6408 74.1185 51.6406 76.2768 54.4245C78.4352 57.2083 79.3586 60.5851 78.874 63.9219C78.3895 67.2586 76.5302 70.3262 73.6447 72.5498C70.7592 74.7733 67.0456 76 63.2 76C59.3544 76 55.6408 74.7733 52.7553 72.5498C49.8698 70.3262 48.0105 67.2586 47.5259 63.9219C47.0414 60.5851 47.9648 57.2083 50.1231 54.4245C52.2814 51.6406 55.5265 49.6408 59.25 48.7999V41.4549H19.75V48.7999C23.4735 49.6408 26.7186 51.6406 28.8769 54.4245C31.0352 57.2083 31.9586 60.5851 31.4741 63.9219C30.9895 67.2586 29.1302 70.3262 26.2447 72.5498C23.3592 74.7733 19.6456 76 15.8 76C11.9544 76 8.24081 74.7733 5.35531 72.5498C2.46982 70.3262 0.610533 67.2586 0.125969 63.9219C-0.358595 60.5851 0.564832 57.2083 2.72316 54.4245C4.88148 51.6406 8.12653 49.6408 11.85 48.7999V41.4549C11.85 39.6223 12.6823 37.8648 14.1639 36.569C15.6454 35.2731 17.6548 34.5451 19.75 34.5451H35.55V27.2001Z" fill="white"/>
</svg>
<p class="lh-sm total-data mb-0">
<span class="count">{{ total_div }}</span>
</p>
<p class="mb-0">Organisasi</p>
</div>
</div>
<div class="col-3 col-md-3">
<div class="text-center">
<svg class="icon-dashboard" width="60" height="60" viewbox="0 0 76 79" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M29.8571 0C27.6975 0 25.6263 0.780299 24.0993 2.16924C22.5722 3.55818 21.7143 5.44199 21.7143 7.40625V12.3438C21.7143 14.308 22.5722 16.1918 24.0993 17.5808C25.6263 18.9697 27.6975 19.75 29.8571 19.75H46.1428C48.3025 19.75 50.3736 18.9697 51.9007 17.5808C53.4278 16.1918 54.2857 14.308 54.2857 12.3438V7.40625C54.2857 5.44199 53.4278 3.55818 51.9007 2.16924C50.3736 0.780299 48.3025 0 46.1428 0L29.8571 0ZM46.1428 4.9375C46.8627 4.9375 47.5531 5.1976 48.0621 5.66058C48.5712 6.12356 48.8571 6.7515 48.8571 7.40625V12.3438C48.8571 12.9985 48.5712 13.6264 48.0621 14.0894C47.5531 14.5524 46.8627 14.8125 46.1428 14.8125H29.8571C29.1372 14.8125 28.4469 14.5524 27.9378 14.0894C27.4288 13.6264 27.1428 12.9985 27.1428 12.3438V7.40625C27.1428 6.7515 27.4288 6.12356 27.9378 5.66058C28.4469 5.1976 29.1372 4.9375 29.8571 4.9375H46.1428Z" fill="white"/>
<path d="M16.2857 7.40625H10.8571C7.97765 7.40625 5.21609 8.44665 3.17998 10.2986C1.14387 12.1505 0 14.6622 0 17.2812V69.125C0 71.744 1.14387 74.2558 3.17998 76.1077C5.21609 77.9596 7.97765 79 10.8571 79H65.1429C68.0223 79 70.7839 77.9596 72.82 76.1077C74.8561 74.2558 76 71.744 76 69.125V17.2812C76 14.6622 74.8561 12.1505 72.82 10.2986C70.7839 8.44665 68.0223 7.40625 65.1429 7.40625H59.7143V12.3438C59.7143 13.9648 59.3633 15.5699 58.6812 17.0675C57.9992 18.5651 56.9995 19.9259 55.7393 21.0721C54.4791 22.2183 52.983 23.1276 51.3364 23.7479C49.6899 24.3682 47.9251 24.6875 46.1429 24.6875H29.8571C26.2578 24.6875 22.8058 23.387 20.2607 21.0721C17.7156 18.7572 16.2857 15.6175 16.2857 12.3438V7.40625ZM48.8571 39.5C48.8571 38.1905 49.4291 36.9346 50.4471 36.0087C51.4652 35.0827 52.846 34.5625 54.2857 34.5625C55.7255 34.5625 57.1062 35.0827 58.1243 36.0087C59.1423 36.9346 59.7143 38.1905 59.7143 39.5V64.1875C59.7143 65.497 59.1423 66.7529 58.1243 67.6788C57.1062 68.6048 55.7255 69.125 54.2857 69.125C52.846 69.125 51.4652 68.6048 50.4471 67.6788C49.4291 66.7529 48.8571 65.497 48.8571 64.1875V39.5ZM16.2857 59.25C16.2857 57.9405 16.8577 56.6846 17.8757 55.7587C18.8938 54.8327 20.2745 54.3125 21.7143 54.3125C23.154 54.3125 24.5348 54.8327 25.5529 55.7587C26.5709 56.6846 27.1429 57.9405 27.1429 59.25V64.1875C27.1429 65.497 26.5709 66.7529 25.5529 67.6788C24.5348 68.6048 23.154 69.125 21.7143 69.125C20.2745 69.125 18.8938 68.6048 17.8757 67.6788C16.8577 66.7529 16.2857 65.497 16.2857 64.1875V59.25ZM38 44.4375C39.4397 44.4375 40.8205 44.9577 41.8386 45.8837C42.8566 46.8096 43.4286 48.0655 43.4286 49.375V64.1875C43.4286 65.497 42.8566 66.7529 41.8386 67.6788C40.8205 68.6048 39.4397 69.125 38 69.125C36.5603 69.125 35.1795 68.6048 34.1614 67.6788C33.1434 66.7529 32.5714 65.497 32.5714 64.1875V49.375C32.5714 48.0655 33.1434 46.8096 34.1614 45.8837C35.1795 44.9577 36.5603 44.4375 38 44.4375Z" fill="white"/>
</svg>
<p class="lh-sm total-data mb-0">
<span class="count">{{ total_pub }}</span>
</p>
<p class="mb-0">Dataset</p>
</div>
</div>
</div>
</div>
</div>
</section>
<div class="footer-second" style="background-color: white;">
<div class="container">
<div class="inner-footer">
<p class="text-light fw-400">©
{{ parameter('app_name') }}
{{ ''|date('Y') }}
<a href="{{ path('kmj_user_login')}}" target="_blank" class="text-light pull-right">
<i class="bi-box-arrow-in-right mr-2 fs-6"></i>Login</a>
</p>
</div>
</div>
</div>
{# <p id="flash"></p> #}{# <main>
<section id="blog" class="blog-grid section-padding">
<div class="container">
<div class="section-head text-center">
<div class="row justify-content-center">
<div class="col-lg-6 col-md-8 col-sm-10">
<h4>Highlight Data</h4>
</div>
</div>
</div>
<div class="slider">
{% for hl in highlight %}
<div class="slick-wrapper slick-initialized slick-slider slick-dotted">
<div class="slick-list draggable">
<div class="slick-track">
<div class="slick-slide">
<div class="slick-slide-in" style="width: 100%; display: inline-block;">
<div class="item">
<div class="post-img">
<div class="img">
{% if hl.icon %}
<img style="width:unset!important;" src="{{asset('uploads/' ~ hl.icon) }}">
{% else %}
<img style="width:unset!important;" src="{{asset(parameter('open_data_icon')) }}">
{% endif %}
</div>
</div>
<div class="cont">
<div class="info">
<a>{{ hl.tanggal | date('d F Y') }}</a>
</div>
<h5>
<a class="max-lines" data-placement="top" data-toggle="tooltip" title="{{ hl.judul }}">{{ hl.judul }}</a>
</h5>
<a class="more" href="{{ path( hl.link, {id:hl.id} )}}">
<span>{{ hl.tipe }}</span>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{% endfor %}
</div>
</section>
<section id="services" class="services section-padding bg-gray">
<div class="container">
<div class="section-head text-center">
<div class="row justify-content-center">
<div class="col-lg-6 col-md-8 col-sm-10">
<h4>Statistik
{{ parameter('app_name') }}
{{ parameter('client_shortname') }}</h4>
</div>
</div>
</div>
<div class="row bg-img" style="background-image: url({{asset('frontend/img/c2.jpg')}});">
<div class="col-lg-3 col-md-6 item-box">
<h2 class="numb">{{ total_sektoral }}</h2>
<h6 class="mb-20">Total Sektoral</h6>
<p>Kumpulan data berupa tabel yang bisa diolah lebih lanjut.</p>
<a href="{{ path('sektoral') }}" class="more mt-30">Selengkapnya</a>
</div>
<div class="col-lg-3 col-md-6 item-box">
<h2 class="numb">{{ total_pub }}</h2>
<h6 class="mb-20">Total Dataset</h6>
<p>Kumpulan data-data mentah berupa tabel yang dapat diolah lebih lanjut.</p>
<a href="{{ path('dataset') }}" class="more mt-30">Selengkapnya</a>
</div>
<div class="col-lg-3 col-md-6 item-box">
<h2 class="numb">{{ total_infografik }}</h2>
<h6 class="mb-20">Total Infografik</h6>
<p>Informasi yang disajikan dalam bentuk grafik agar lebih mudah dipahami.</p>
<a href="{{ path('infografik') }}" class="more mt-30">Selengkapnya</a>
</div>
<div class="col-lg-3 col-md-6 item-box">
<h2 class="numb">{{ total_div }}</h2>
<h6 class="mb-20">Total Perangkat Daerah</h6>
<p>Organisasi Perangkat Daerah yang publikasi datanya tampil di
{{ parameter('app_name') }}
{{ parameter('client_shortname') }}.</p>
<a href="{{ path('pd') }}" class="more mt-30">Selengkapnya</a>
</div>
</div>
</div>
</section>
</main> #}{% endblock %}{% block javascripts %}
<script>
jQuery(document).ready(function ($) {
$('.search-input-text').on('keyup click', function () {
var value = $('.search-input-text').val();
if ($('.autocomplete-items').length || ! value) {
$('.autocomplete-items').remove();
}
if (value) {
$.ajax({
type: "GET",
url: '{{ path('gsearch') }}' + '?key=' + value,
success: function (r) {
if ($('.autocomplete-items').length) {
$('.autocomplete-items').remove();
}
var data = r;
// alert(data.length);
$('.autocomplete-box').append('<div id="autocomplete-list" class="autocomplete-items"></div>');
if (data.length == 0) {
var url = "{{ path('dataset_form') }}";
$('#autocomplete-list').append('<div><a href="' + url + '" class="text-primary">-- Permohonan Data --</a></div>');
} else {
$.each(data, function (index, element) {
var url = '';
if (element.tipe == 'INFOGRAFIK') {
url = "{{ path('infografik') }}" + '?judul=' + element.judulx;
} else {
url = "{{ path('dataset') }}" + '?judul=' + element.judulx;
} $('#autocomplete-list').append('<div><a href="' + url + '">' + element.judul + '</a></div>');
});
}
}
});
// alert(value);
}
});
});
</script>
<script>
$('.count').each(function () {
$(this).prop('Counter', 0).animate({
Counter: $(this).text()
}, {
duration: 4000,
easing: 'swing',
step: function (now) {
$(this).text(Math.ceil(now));
}
});
});
</script>{% endblock %}