turkmentv/resources/views/web/layouts/app.blade.php

139 lines
5.6 KiB
PHP

<!Doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>{{ $title }}</title>
<meta name='keywords' content='{{ $keywords }}' />
<meta name='description' content='{{ $meta_description }}' />
<link rel="shortcut icon" href="https://user12658.clients-cdnnow.ru/assets/favicon.ico">
<link rel="stylesheet" href="https://user12658.clients-cdnnow.ru/assets/css/bootstrap.css">
<link rel="stylesheet" href="https://user12658.clients-cdnnow.ru/assets/css/font-awesome.min.css">
<link rel="stylesheet" href="https://user12658.clients-cdnnow.ru/assets/libs/slick-slider/slick.css">
<link rel="stylesheet" href="https://user12658.clients-cdnnow.ru/assets/libs/slick-slider/slick-theme.css">
@yield('after_styles')
<link rel="stylesheet" href="https://user12658.clients-cdnnow.ru/assets/css/style.css">
<link rel="stylesheet" href="https://user12658.clients-cdnnow.ru/assets/css/media.css">
<link rel="stylesheet" href="https://user12658.clients-cdnnow.ru/assets/css/menu.css">
<link rel="stylesheet" href="https://user12658.clients-cdnnow.ru/assets/css/menumedia.css">
</head>
<body>
@include('web.layouts.headerMenu')
@yield('content')
@yield('content2')
@yield('content3')
@include('web.layouts.footerMenu')
<script src="https://user12658.clients-cdnnow.ru/assets/js/jquery-2.1.4.min.js"></script>
<script src="https://user12658.clients-cdnnow.ru/assets/js/bootstrap.min.js"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script>
////// scroll button
window.onscroll = function() {scrollFunction()};
function scrollFunction() {
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
document.getElementById("myBtn").style.display = "block";
} else {
document.getElementById("myBtn").style.display = "none";
}
}
function topFunction() {
document.body.scrollTop = 0;
document.documentElement.scrollTop = 0;
}
//////drop down
/* When the user clicks on the button,
toggle between hiding and showing the dropdown content */
function myDropdownFunc() {
document.getElementById("myDropdown").classList.toggle("show");
}
// Close the dropdown if the user clicks outside of it
window.onclick = function(e) {
if (!e.target.matches('.dropbtn')) {
var myDropdown = document.getElementById("myDropdown");
if(myDropdown != null){
if (myDropdown.classList.contains('show')) {
myDropdown.classList.remove('show');
}
}
}
}
jQuery(document).ready(function (e) {
function t(t) {
e(t).bind("click", function (t) {
t.preventDefault();
e(this).parent().fadeOut()
})
}
e(".dropdown-toggle").click(function () {
var t = e(this).parents(".button-dropdown").children(".dropdown-menu").is(":hidden");
e(".button-dropdown .dropdown-menu").hide();
e(".button-dropdown .dropdown-toggle").removeClass("activee");
e(".button-dropdown").css('background-color', '#187f7e');
e(".button-dropdown .dropdown-toggle *").css('color', '#ffffff');
if (t) {
e(this).parents(".button-dropdown").children(".dropdown-menu").toggle().parents(".button-dropdown").children(".dropdown-toggle").addClass("activee");
e(this).parents(".button-dropdown").children(".dropdown-menu").toggle().parents(".button-dropdown").css('background-color', '#ffffff');
e(this).parents(".button-dropdown").children(".dropdown-menu").toggle().parents(".button-dropdown").children(".dropdown-toggle").children("*").css('color', '#187f7e');
}
});
e(document).bind("click", function (t) {
var n = e(t.target);
if (!n.parents().hasClass("button-dropdown")) e(".button-dropdown .dropdown-menu").hide();
});
e(document).bind("click", function (t) {
var n = e(t.target);
if (!n.parents().hasClass("button-dropdown")) {
e(".button-dropdown .dropdown-toggle").removeClass("activee");
e(".button-dropdown").css('background-color', '#187f7e');
e(".button-dropdown .dropdown-toggle *").css('color', '#ffffff');
}
})
});
///// google
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-145040878-1');
//////search
$(document).ready(function () {
$('#searchId').click(function () {
$('#searchContentId').toggleClass('visible');
});
});
$(function () {
$('[data-toggle="tooltip"]').tooltip()
});
// $(document).ready(function() {
// $('.carousel').carousel();
// });
$(document).ready(function() {
$('.slider').slick({
centerMode: true,
centerPadding: '40px',
slidesToShow: 1,
arrows:false,
dots:false
});
});
</script>
{{--Bukjalar uchin script--}}
<script src="https://user12658.clients-cdnnow.ru/assets/js/mahabat_scripts.js"></script>
<script src="https://user12658.clients-cdnnow.ru/assets/libs/slick-slider/slick.min.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-145040878-1"></script>
@yield('after_scripts')
<script>
</script>
</body>
</html>