<?php
    require 'assets/data.php';
    require 'assets/config.php';
?>
<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <?php
    $sseo = "SELECT content_seo, halaman_seo FROM seo_web WHERE halaman_seo = 'promosi-togel'";
    $qseo = mysqli_query($data, $sseo);

    if(mysqli_num_rows($qseo) > 0) {
        $fseo = mysqli_fetch_assoc($qseo);
        $seo = $fseo['content_seo'];
        $halaman = $fseo['halaman_seo'];

        echo $seo;
    }
    ?>

<style>
:root {
    --first-color: #000;
    --second-color: #fff;
    --third-color: #08b3f5;
    --fourth-color: #00f6c7;
    
}

button {
 border: none;   
}


 body{
    background: url("<?php echo ftab("bg_web", "web_setting", "bg_web") ?>");
    /* background-color: var(--first-color); */
    color: var(--second-color);
    background-size: cover !important;
    background-attachment: fixed !important;
    background-position-x: center !important;
    background-position-y: center !important;
    font-family: 'arial';
}

.collapsible {
    color: var(--second-color);
    cursor: pointer;
    padding: 0px;
    border: none;
    background: none;
    text-align: justify;
    outline: none;
    font-size: 5px;
    max-width: 100%;
}

.container {
    width: 45rem;
    background: var(--first-color);
    border: 2px solid var(--third-color);
    display: block;
    margin-right: auto;
    margin-left: auto;
    border-radius: 1rem;
    max-width: 100%;
}

.active {
    animation: active-animate 1s ease 0s 1 normal both;
}

@keyframes active-animate {
	0% {
		opacity: 1;
	}

	50% {
		opacity: 0.2;
	}

	100% {
		opacity: 1;
	}
}

.content {
    padding: 2px 0px;
    display: none;
    overflow: hidden;
    background-color: transparent;
    margin-left: 10px;
}

.promo-block {
    width: 41rem;
    max-width: 100%;
    display: block;
    margin-right: auto;
    margin-left: auto;
    margin-top: -0.076rem;
}

.promo-block button img {
    width: 100%;
}

.w-100 {
    width: 100%;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}
.content img {
max-width: 100%;
}

.teks-berjaalan {
    border-bottom: 1px solid var(--third-color);
    padding: 0.3rem;
    font-size: 1rem !important;
}

.teks-berjaalan h1, .teks-berjaalan h2, .teks-berjaalan h3, .teks-berjaalan h4, .teks-berjaalan h5, .teks-berjaalan h6, .teks-berjaalan p, .teks-berjaalan strong{
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.copyright {
    text-transform: uppercase;
    font-size: 0.7rem;
    text-align: center;
}

.menu {
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-item {
    list-style-type: none;
    margin: 1.2rem 0;
    padding: 0;
}

.menu-item li {
    display: inline;
    background: var(--fourth-color);
    color: var(--first-color);
     border: 1px solid var(--third-color);
    padding: 0.6rem;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 0.3rem;
    margin-right: 1rem;
}

.menu-item li:hover {
    background: var(--third-color);
    cursor: pointer;
}

.menu-item li:last-child {
    margin-right: 0;
}

/* For Mobile Portrait View */
@media screen and (max-device-width: 480px)
    and (orientation: portrait) {
        .container {
            width: 100%;
        }
        
        .copyright {
            font-size: 0.54rem;
            padding: 0.3rem 0;
        }

        .collapsible {
            width: 96%;
            display: block;
            margin-right: auto;
            margin-left: auto;
        }
        .menu-item li {
            font-size: 0.7rem;
            padding: 0.4rem;
            margin-right: 0.3rem;
        }

        .promo-block {
            width: 100%;
        }

        .promo-block button img {
            width: 100%;
        }
}
 
/* For Mobile Landscape View */
@media screen and (max-device-width: 850px)
    and (orientation: landscape) {

        .collapsible {
            width: 98%;
            display: block;
            margin-right: auto;
            margin-left: auto;
        }

}

#particles-js{
	width: 100%;
  height: 100%;
  background-size: cover;
  background-position: 50% 50%;
  position: fixed;
  top: 0px;
  z-index:-1;
}


</style>

</head>
<body>
<div id="particles-js"></div>
    <div class="container">
    <img src="<?php echo ftab("header_promosi", "web_setting", "header_promosi") ?>" class="w-100" alt="promo header ">
    <marquee class="teks-berjaalan" direction="left" scrollamount="5"><?php echo ftab("pengumuman_web", "web_setting", "pengumuman_web") ?></marquee>
        <nav class="menu">
            <ul class="menu-item">
                <li onclick="location.href='<?php echo ftab("link_prediksi", "web_setting", "link_prediksi") ?>'">Prediksi <?php echo ftab("link_masukbo", "web_setting", "link_masukbo"); ?></li>
                <li onclick="location.href='<?php echo ftab("link_daftarbo", "web_setting", "link_daftarbo") ?>'">Daftar <?php echo ftab("link_masukbo", "web_setting", "link_masukbo"); ?></li>
                <li onclick="location.href='<?php echo ftab("link_panduan", "web_setting", "link_panduan") ?>'">Cara Bermain</li>
            </ul>
        </nav>
    <?php
            $spromo = "SELECT * FROM promosi_blog ORDER BY promo_tgl DESC";
            $qpromo = mysqli_query($data, $spromo);

            $pro1 = 1;
            $pro2 = 1;
            $pro3 = 1;
            if(mysqli_num_rows($qpromo) > 0) {
                while($fpromo = mysqli_fetch_assoc($qpromo)) {
                    $imgpromo = $fpromo['gambar_promo'];
                    $promo = $fpromo['promo_content'];

                    echo '<div class="promo-block">
                    <button class="collapsible" type="img"><img src="'.$imgpromo.'"></button>
                    <div class="content">
                        '.html_entity_decode($promo).'
                    </div>
                </div>';

                }


            } else {
                echo 'Promo tidak tersedia!!';
            }

        ?>
        <p class="copyright">&copy; Copyright 2014 - <?php echo date("Y") ?> <?php echo ftab("link_masukbo", "web_setting", "link_masukbo"); ?>. All Rights Reserved.</p>
    </div>


<script src="jquery-3.7.0.min.js"></script>
<script src="particles.js"></script>
<script>
    var coll = document.getElementsByClassName("collapsible");
var i;

for (i = 0; i < coll.length; i++) {
  coll[i].addEventListener("click", function() {
    this.classList.toggle("active");
    var content = this.nextElementSibling;
    if (content.style.display === "block") {
      content.style.display = "none";
    } else {
      content.style.display = "block";
    }
  });
}
</script>
<?php echo ftab("content_script", "web_setting", "content_script")?>
</body>
</html>



<!-- TIGER DEVS COPYRIGHT -->