<?php
/**
 * The template for displaying the footer
 *
 * Contains the closing of the #content div and all content after.
 *
 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
 *
 * @package o66FsWp
 */

?>
<?php get_template_part( 'template-parts/common/header-root-wrapper-end' ); ?>
<?php get_template_part( 'template-parts/common/footer-content' ); ?>


<style>
    /* COOKIE NOTICE BERFORE LOAD STYLE ADJUST */
    .cookie-notice-container {padding-top: 15px}
    #cn-notice-text {font-family: sans-serif!important;
        font-size: 16px;
        padding: 10px}
</style>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-131167139-1"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'UA-131167139-1');
</script>
<?php //load css if no script;?>
    <noscript id="deferred-styles">
        <link rel="stylesheet" type="text/css"
              href="<?php echo get_stylesheet_directory_uri(); ?>/styles/site.min.css"/>
    </noscript>
<?php //load js webpack;?>
    <script src="<?php echo get_stylesheet_directory_uri(); ?>/js/site.min.js" type="text/javascript" defer></script>
<?php
//wp_enqueue_style( 'site-css', get_template_directory_uri() . '/styles/site.min.css',false,'0.0.4','all');

wp_footer();

?>
    <script>
        // var loadDeferredStyles = function() {
        //     var addStylesNode = document.getElementById("deferred-styles");
        //     var replacement = document.createElement("div");
        //     replacement.innerHTML = addStylesNode.textContent;
        //     document.body.appendChild(replacement)
        //     addStylesNode.parentElement.removeChild(addStylesNode);
        // };
        // var raf = window.requestAnimationFrame || window.mozRequestAnimationFrame ||
        //     window.webkitRequestAnimationFrame || window.msRequestAnimationFrame;
        // if (raf) raf(function() { window.setTimeout(loadDeferredStyles, 0); });
        // else window.addEventListener('load', loadDeferredStyles);
    </script>
<?php get_template_part( 'template-parts/common/footer-html-end' ); ?>