<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* frontend/javascript.html.twig */
class __TwigTemplate_b88ed01d0ffe74448c8cde57c6144b61310075a381ac23955d35cd7322b435bc extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "frontend/javascript.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "frontend/javascript.html.twig"));
// line 1
echo "<script src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("frontend/js/jquery.min.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 2
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("frontend/js/bootstrap.min.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 3
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("frontend/js/main.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 4
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("frontend/slick/slick.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 5
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("frontend/select2/select2.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 6
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("frontend/sweetalert2/sweetalert2.all.min.js"), "html", null, true);
echo "\"></script>
<script src=\"https://kit.fontawesome.com/8031cd8b80.js\" crossorigin=\"anonymous\"></script>
<script>
\$(function (){
Src.Init();
})
</script>
<script>
\$('.slider').slick({
slidesToShow: 3,
slidesToScroll: 1,
autoplay: true,
autoplaySpeed: 2000,
responsive: [
{
breakpoint: 768,
settings: {
arrows: false,
centerMode: true,
centerPadding: '40px',
slidesToShow: 1
}
},
{
breakpoint: 480,
settings: {
arrows: false,
centerMode: true,
centerPadding: '40px',
slidesToShow: 1
}
}],
prevArrow:\"<button type='button' class='slick-prev pull-left'><i class='fa fa-angle-left' aria-hidden='true'></i></button>\",
nextArrow:\"<button type='button' class='slick-next pull-right'><i class='fa fa-angle-right' aria-hidden='true'></i></button>\"
});
</script>
<script>
\$('.slider-notplay').slick({
infinite: true,
slidesToShow: 1,
slidesToScroll: 1,
responsive: [
{
breakpoint: 768,
settings: {
arrows: false,
centerMode: true,
centerPadding: '40px',
slidesToShow: 1
}
},
{
breakpoint: 480,
settings: {
arrows: false,
centerMode: true,
centerPadding: '40px',
slidesToShow: 1
}
}],
prevArrow:\"<button type='button' class='slick-prev pull-left'><i class='fa fa-angle-left' aria-hidden='true'></i></button>\",
nextArrow:\"<button type='button' class='slick-next pull-right'><i class='fa fa-angle-right' aria-hidden='true'></i></button>\"
});
</script>
<script>
\$('.slider-notplay3').slick({
infinite: true,
slidesToShow: 3,
slidesToScroll: 1,
responsive: [
{
breakpoint: 768,
settings: {
arrows: false,
centerMode: true,
centerPadding: '40px',
slidesToShow: 1
}
},
{
breakpoint: 480,
settings: {
arrows: false,
centerMode: true,
centerPadding: '40px',
slidesToShow: 1
}
}],
prevArrow:\"<button type='button' class='slick-prev pull-left'><i class='fa fa-angle-left' aria-hidden='true'></i></button>\",
nextArrow:\"<button type='button' class='slick-next pull-right'><i class='fa fa-angle-right' aria-hidden='true'></i></button>\"
});
</script>
<script>
\$(document).ready(function() {\t\t\t
\$(\".select21\").select2();
});
</script>
<script>
\$(document).ready(function() {\t\t\t
\$(\".select2\").select2({
allowClear: true,
});
});
</script>
<script type=\"text/javascript\">
\$(function(){
\$('body').on('show.bs.modal', '.modal', function(event) {
\$(this).find(\".modal-content\").load(event.relatedTarget.href);
});
\$('body').on('hidden.bs.modal', '.modal', function(event) {
\$(this).find(\".modal-content\").html('<div style=\"text-align: center\"><img src=\"";
// line 125
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/greenadmin/img/loading.gif"), "html", null, true);
echo "\" style=\"width: 20px\"/></div>');
});
});
</script>
<script>
function openCity(evt, cityName) {
var i, tabcontent, tablinks;
tabcontent = document.getElementsByClassName(\"tabcontent\");
for (i = 0; i < tabcontent.length; i++) {
tabcontent[i].style.display = \"none\";
}
tablinks = document.getElementsByClassName(\"tablinks\");
for (i = 0; i < tablinks.length; i++) {
tablinks[i].className = tablinks[i].className.replace(\" active\", \"\");
}
document.getElementById(cityName).style.display = \"block\";
evt.currentTarget.className += \" active\";
}
// Get the element with id=\"defaultOpen\" and click on it
// document.getElementById(\"defaultOpen\").click();
</script>
<script>
/* When the user clicks on the button,
toggle between hiding and showing the dropdown content */
function dropDown() {
document.getElementById(\"myDropdown\").classList.toggle(\"show\");
}
// Close the dropdown if the user clicks outside of it
window.onclick = function(event) {
if (!event.target.matches('.dropbtn')) {
var dropdowns = document.getElementsByClassName(\"dropdown-content\");
var i;
for (i = 0; i < dropdowns.length; i++) {
var openDropdown = dropdowns[i];
if (openDropdown.classList.contains('show')) {
openDropdown.classList.remove('show');
}
}
}
}
</script>
<script>
\t";
// line 172
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 172, $this->source); })()), "flashes", ["notice"], "method", false, false, false, 172));
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
// line 173
echo "\t\t\$( document ).ready(function() {
\t\t\tSwal.fire({
\t\t\t\ticon: 'success',
\t\t\t\ttitle: 'Berhasil Dikirim',
\t\t\t\ttext: 'Terima Kasih',
\t\t\t\tshowConfirmButton: false,
\t\t\t\ttimer: 2000
\t\t\t});
\t\t});
\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 183
echo "</script>";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "frontend/javascript.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 255 => 183, 240 => 173, 236 => 172, 186 => 125, 64 => 6, 60 => 5, 56 => 4, 52 => 3, 48 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("<script src=\"{{ asset('frontend/js/jquery.min.js') }}\"></script>
<script src=\"{{ asset('frontend/js/bootstrap.min.js') }}\"></script>
<script src=\"{{ asset('frontend/js/main.js') }}\"></script>
<script src=\"{{ asset('frontend/slick/slick.js') }}\"></script>
<script src=\"{{ asset('frontend/select2/select2.js') }}\"></script>
<script src=\"{{ asset('frontend/sweetalert2/sweetalert2.all.min.js') }}\"></script>
<script src=\"https://kit.fontawesome.com/8031cd8b80.js\" crossorigin=\"anonymous\"></script>
<script>
\$(function (){
Src.Init();
})
</script>
<script>
\$('.slider').slick({
slidesToShow: 3,
slidesToScroll: 1,
autoplay: true,
autoplaySpeed: 2000,
responsive: [
{
breakpoint: 768,
settings: {
arrows: false,
centerMode: true,
centerPadding: '40px',
slidesToShow: 1
}
},
{
breakpoint: 480,
settings: {
arrows: false,
centerMode: true,
centerPadding: '40px',
slidesToShow: 1
}
}],
prevArrow:\"<button type='button' class='slick-prev pull-left'><i class='fa fa-angle-left' aria-hidden='true'></i></button>\",
nextArrow:\"<button type='button' class='slick-next pull-right'><i class='fa fa-angle-right' aria-hidden='true'></i></button>\"
});
</script>
<script>
\$('.slider-notplay').slick({
infinite: true,
slidesToShow: 1,
slidesToScroll: 1,
responsive: [
{
breakpoint: 768,
settings: {
arrows: false,
centerMode: true,
centerPadding: '40px',
slidesToShow: 1
}
},
{
breakpoint: 480,
settings: {
arrows: false,
centerMode: true,
centerPadding: '40px',
slidesToShow: 1
}
}],
prevArrow:\"<button type='button' class='slick-prev pull-left'><i class='fa fa-angle-left' aria-hidden='true'></i></button>\",
nextArrow:\"<button type='button' class='slick-next pull-right'><i class='fa fa-angle-right' aria-hidden='true'></i></button>\"
});
</script>
<script>
\$('.slider-notplay3').slick({
infinite: true,
slidesToShow: 3,
slidesToScroll: 1,
responsive: [
{
breakpoint: 768,
settings: {
arrows: false,
centerMode: true,
centerPadding: '40px',
slidesToShow: 1
}
},
{
breakpoint: 480,
settings: {
arrows: false,
centerMode: true,
centerPadding: '40px',
slidesToShow: 1
}
}],
prevArrow:\"<button type='button' class='slick-prev pull-left'><i class='fa fa-angle-left' aria-hidden='true'></i></button>\",
nextArrow:\"<button type='button' class='slick-next pull-right'><i class='fa fa-angle-right' aria-hidden='true'></i></button>\"
});
</script>
<script>
\$(document).ready(function() {\t\t\t
\$(\".select21\").select2();
});
</script>
<script>
\$(document).ready(function() {\t\t\t
\$(\".select2\").select2({
allowClear: true,
});
});
</script>
<script type=\"text/javascript\">
\$(function(){
\$('body').on('show.bs.modal', '.modal', function(event) {
\$(this).find(\".modal-content\").load(event.relatedTarget.href);
});
\$('body').on('hidden.bs.modal', '.modal', function(event) {
\$(this).find(\".modal-content\").html('<div style=\"text-align: center\"><img src=\"{{ asset('bundles/greenadmin/img/loading.gif') }}\" style=\"width: 20px\"/></div>');
});
});
</script>
<script>
function openCity(evt, cityName) {
var i, tabcontent, tablinks;
tabcontent = document.getElementsByClassName(\"tabcontent\");
for (i = 0; i < tabcontent.length; i++) {
tabcontent[i].style.display = \"none\";
}
tablinks = document.getElementsByClassName(\"tablinks\");
for (i = 0; i < tablinks.length; i++) {
tablinks[i].className = tablinks[i].className.replace(\" active\", \"\");
}
document.getElementById(cityName).style.display = \"block\";
evt.currentTarget.className += \" active\";
}
// Get the element with id=\"defaultOpen\" and click on it
// document.getElementById(\"defaultOpen\").click();
</script>
<script>
/* When the user clicks on the button,
toggle between hiding and showing the dropdown content */
function dropDown() {
document.getElementById(\"myDropdown\").classList.toggle(\"show\");
}
// Close the dropdown if the user clicks outside of it
window.onclick = function(event) {
if (!event.target.matches('.dropbtn')) {
var dropdowns = document.getElementsByClassName(\"dropdown-content\");
var i;
for (i = 0; i < dropdowns.length; i++) {
var openDropdown = dropdowns[i];
if (openDropdown.classList.contains('show')) {
openDropdown.classList.remove('show');
}
}
}
}
</script>
<script>
\t{% for message in app.flashes('notice') %}
\t\t\$( document ).ready(function() {
\t\t\tSwal.fire({
\t\t\t\ticon: 'success',
\t\t\t\ttitle: 'Berhasil Dikirim',
\t\t\t\ttext: 'Terima Kasih',
\t\t\t\tshowConfirmButton: false,
\t\t\t\ttimer: 2000
\t\t\t});
\t\t});
\t{% endfor %}
</script>", "frontend/javascript.html.twig", "/var/www/html/open_data/templates/frontend/javascript.html.twig");
}
}