{% load static %}
<!DOCTYPE html>
<html lang="en"> <!--begin::Head-->

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Dashboard</title><!--begin::Primary Meta Tags-->
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="title" content="AdminLTE | Dashboard v2">
    <meta name="author" content="ColorlibHQ">
    <meta name="description"
        content="AdminLTE is a Free Bootstrap 5 Admin Dashboard, 30 example pages using Vanilla JS.">
    <meta name="keywords"
        content="bootstrap 5, bootstrap, bootstrap 5 admin dashboard, bootstrap 5 dashboard, bootstrap 5 charts, bootstrap 5 calendar, bootstrap 5 datepicker, bootstrap 5 tables, bootstrap 5 datatable, vanilla js datatable, colorlibhq, colorlibhq dashboard, colorlibhq admin dashboard">
    <!--end::Primary Meta Tags--><!--begin::Fonts-->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource/source-sans-3@5.0.12/index.css"
        integrity="sha256-tXJfXfp6Ewt1ilPzLDtQnJV4hclT9XuaZUKyUvmyr+Q=" crossorigin="anonymous">
    <!--end::Fonts--><!--begin::Third Party Plugin(OverlayScrollbars)-->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/overlayscrollbars@2.3.0/styles/overlayscrollbars.min.css"
        integrity="sha256-dSokZseQNT08wYEWiz5iLI8QPlKxG+TswNRD8k35cpg=" crossorigin="anonymous">
    <!--end::Third Party Plugin(OverlayScrollbars)--><!--begin::Third Party Plugin(Bootstrap Icons)-->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.0/font/bootstrap-icons.min.css"
        integrity="sha256-Qsx5lrStHZyR9REqhUF8iQt73X06c8LGIUPzpOhwRrI=" crossorigin="anonymous">
    <!--end::Third Party Plugin(Bootstrap Icons)--><!--begin::Required Plugin(AdminLTE)-->
    <link rel="stylesheet" href="{% static './css/adminlte.css' %}"><!--end::Required Plugin(AdminLTE)--><!-- apexcharts -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/apexcharts@3.37.1/dist/apexcharts.css"
        integrity="sha256-4MX+61mt9NVvvuPjUWdUdyfZfxSB1/Rf9WtqRHgG5S0=" crossorigin="anonymous">
    <!-- <link rel="stylesheet" href="{% static 'dist/WOW-master/css/libs/animate.css' %}"> -->
    <link rel="stylesheet" href="{% static 'css/custom.css' %}">
    <style>
        #full-page-loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.6); /* semi-transparent black */
            z-index: 9999;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .loader-overlay .spinner-border {
            width: 3rem;
            height: 3rem;
        }

    </style>
    <style>
    .card {
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        overflow: hidden;
        background-color: #fff;
        transition: box-shadow 0.3s ease;
    }

    .card:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    }
/* 
    .card-img-top {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-bottom: 1px solid #e0e0e0;
    } */

    .card-block {
        display: block;
        width: 100%;
    }

    .card-title, .card-text {
        display: block;
        width: 100%;
        /* margin: 0; */
        padding: 10px;
        margin: 10px;
    }

    .card-title {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
        font-weight: 600;
        color: #333;
    }

    .card-text {
        font-size: 0.95rem;
        color: #555;
        line-height: 1.5;
    }


    .card-footer {
        padding: 10px 16px;
        font-size: 0.85rem;
        background-color: #f8f9fa;
        border-top: 1px solid #e0e0e0;
        color: #666;
    }

    .card-header {
        background-color: #f1f1f1;
        padding: 10px 16px;
        font-weight: 600;
        font-size: 0.95rem;
        color: #333;
        border-bottom: 1px solid #ddd;
    }

    .table.projects {
        margin: 0;
    }

    .table td, .table th {
        padding: 8px;
        font-size: 0.9rem;
        vertical-align: middle;
    }

    .attribute-label {
        font-weight: 600;
        color: #333;
        margin-right: 4px;
    }

    .card-body input.dial {
        margin-bottom: 10px;
    }

    .after_score {
        animation: fadeIn 0.3s ease-in-out;
    }

    .row.mb-4 {
        margin-bottom: 2rem !important;
    }

    .table-striped tbody tr:nth-of-type(odd) {
        background-color: #fafafa;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    @media (max-width: 768px) {
        .col-md-4 {
            flex: 0 0 100%;
            max-width: 100%;
            margin-bottom: 1rem;
        }

        .card-img-top {
            height: 180px;
        }
    }
</style>

</head>

<body class="layout-fixed sidebar-expand-lg sidebar-mini app-loaded sidebar-collapse"> <!--begin::App Wrapper-->
    <div class="app-wrapper"> <!--begin::Header-->
        <nav class="app-header navbar navbar-expand bg-body"> <!--begin::Container-->
            <div class="container-fluid"> <!--begin::Start Navbar Links-->
                <ul class="navbar-nav">
                    <li class="nav-item"> <a class="nav-link" data-lte-toggle="sidebar" href="#" role="button"> <i
                                class="bi bi-list"></i> </a> </li>
                    <li class="nav-item d-none d-md-block"> <a  href="{% url 'file-upload' %}" class="nav-link">Home</a> </li>
                    <!-- <li class="nav-item d-none d-md-block"> <a href="#" class="nav-link">Contact</a> </li> -->
                </ul> <!--end::Start Navbar Links--> <!--begin::End Navbar Links-->
                <ul class="navbar-nav ms-auto"> <!--begin::Navbar Search-->
                    <!-- <li class="nav-item"> <a class="nav-link" data-widget="navbar-search" href="search.html"
                            role="button"> <i class="bi bi-search"></i> </a> </li> 

                    <li class="nav-item dropdown"> <a class="nav-link" data-bs-toggle="dropdown" href="#"> <i
                                class="bi bi-bell-fill"></i> <span class="navbar-badge badge text-bg-warning">15</span>
                        </a>
                        <div class="dropdown-menu dropdown-menu-lg dropdown-menu-end"> <span
                                class="dropdown-item dropdown-header">3 Notifications</span>
                            <div class="dropdown-divider"></div> <a href="#" class="dropdown-item"> <i
                                    class="bi bi-people-fill me-2"></i> filename_22_09_2024.xml is ready for review.
                                <span class="float-end text-secondary fs-7">1 hours</span> </a>
                            <div class="dropdown-divider"></div> <a href="#" class="dropdown-item"> <i
                                    class="bi bi-people-fill me-2"></i> filename_22_09_2024.xml is uploaded
                                successfully.
                                <span class="float-end text-secondary fs-7">12 hours</span> </a>
                            <div class="dropdown-divider"></div> <a href="#" class="dropdown-item"> <i
                                    class="bi bi-file-earmark-fill me-2"></i> filename_12_09_2024.xml is uploaded
                                successfully.
                                <span class="float-end text-secondary fs-7">2 days</span> </a>
                            <div class="dropdown-divider"></div> <a href="#" class="dropdown-item dropdown-footer">
                                See All Notifications
                            </a>
                        </div>
                    </li>  -->
                    <li class="nav-item"> <a class="nav-link" href="#" data-lte-toggle="fullscreen"> <i
                                data-lte-icon="maximize" class="bi bi-arrows-fullscreen"></i> <i
                                data-lte-icon="minimize" class="bi bi-fullscreen-exit" style="display: none;"></i> </a>
                    </li> <!--end::Fullscreen Toggle--> <!--begin::User Menu Dropdown-->
                    <li class="nav-item dropdown user-menu"> <a href="#" class="nav-link dropdown-toggle"
                            data-bs-toggle="dropdown"> <img src="{% static './images/user2-160x160.jpg' %}"
                                class="user-image rounded-circle shadow" alt="User Image"> <span
                                class="d-none d-md-inline">Arun Devar</span> </a>
                        <ul class="dropdown-menu dropdown-menu-lg dropdown-menu-end"> <!--begin::User Image-->
                            <li class="user-header text-bg-secondary"> <img src="{% static './images/user2-160x160.jpg' %}"
                                    class="rounded-circle shadow" alt="User Image">
                                <p>
                                    Arun Devar - Senior Manager
                                    <small>Since Nov. 2023</small>
                                </p>
                            </li> <!--end::User Image--> <!--begin::Menu Body-->

                            <li class="user-footer"> <a href="#" class="btn btn-default btn-flat">Profile</a> <a
                                    href="{% url 'logout' %}" class="btn btn-default btn-flat float-end">Sign out</a> </li>
                            <!--end::Menu Footer-->
                        </ul>
                    </li> <!--end::User Menu Dropdown-->
                </ul> <!--end::End Navbar Links-->
            </div> <!--end::Container-->
        </nav> <!--end::Header--> <!--begin::Sidebar-->
        <aside class="app-sidebar shadow"> <!--begin::Sidebar Brand-->
            <div class="sidebar-brand"> <!--begin::Brand Link--> <a href="{% url 'file-upload' %}" class="brand-link">
                    <!--begin::Brand Image--> <img src="{% static './images/logo-mini.png' %}" alt="Lumina Datamatics"
                        class="brand-image logo-mini"> <!--end::Brand Image--> <!--begin::Brand Text--> <span
                        class="brand-text fw-light"><img style="position:relative; left: -40px;"
                            src="{% static './images/logo.png' %}" alt="Lumina Datamatics" class="brand-image"></span>
                    <!--end::Brand Text--> </a>
            </div> <!--end::Sidebar Brand--> <!--begin::Sidebar Wrapper-->
            <div class="sidebar-wrapper">
                <nav class="mt-2"> <!--begin::Sidebar Menu-->
                    <ul class="nav sidebar-menu flex-column" data-lte-toggle="treeview" role="menu"
                        data-accordion="false">

                        <li class="nav-item"> <a href="{% url 'file-upload' %}" class="nav-link"> <i
                                    class="nav-icon bi bi-upload"></i>
                                <p>Upload</p>
                            </a> </li>
                        <li class="nav-item"> <a href="{% url 'tool-check' %}" class="nav-link active"> <i
                                    class="nav-icon bi bi-house"></i>
                                <p>Home</p>
                            </a> </li>    
                        

                    </ul> <!--end::Sidebar Menu-->
                </nav>
            </div> <!--end::Sidebar Wrapper-->
        </aside> <!--end::Sidebar--> <!--begin::App Main-->
        <main class="app-main"> <!--begin::App Content Header-->
            <div class="app-content-header"> <!--begin::Container-->
                <div class="container-fluid"> <!--begin::Row-->
                    <div class="row">
                        <div class="col-sm-6">
                            <h3 class="mb-0">Dashboard</h3>
                        </div>
                        <div class="col-sm-6">
                            <ol class="breadcrumb float-sm-end">
                                <li class="breadcrumb-item"><a href="./upload.html">Upload</a></li>
                                <li class="breadcrumb-item active" aria-current="page">
                                    Dashboard
                                </li>
                            </ol>
                        </div>
                    </div> <!--end::Row-->
                </div> <!--end::Container-->
            </div>
            <div class="app-content"> <!--begin::Container-->
                <div class="container-fluid"> <!-- Info boxes -->
                <!-- Full Page Loader -->
                <div id="full-page-loader" style="display: none;">
                    <div class="loader-overlay">
                        <div class="spinner-border text-light" role="status">
                            <!-- <span class="sr-only">Loading...</span> -->
                        </div>
                    </div>
                </div>
                    <div id="html"></div>
                    <div class="row mt-5 ai-fix-issues-button"  style="display: none;">
                        <div class="col-sm-12 text-center">
                            <button class="btn btn-primary wow lightSpeedIn" data-wow-delay="1s"
                                onclick="$(this).hide();$('.after_score').removeClass('d-none');">AI
                                Fix Issues</button>
                        </div>
                    </div>
                </div> <!--end::Row--> <!--begin::Row-->
                <!-- Loader (initially hidden) -->
                <!-- <div id="ai-loader" class="spinner-border text-primary mt-3" role="status" style="display: none;">
                    <span class="sr-only">Loading...</span>
                </div> -->

            </div> <!--end::Container-->
        </main> <!--end::App Main--> <!--begin::Footer-->
        <footer class="app-footer"> <!--begin::To the end-->
            <!-- <div class="float-end d-none d-sm-inline">Anything you want</div>--> <!--end::To the end-->
            <!--begin::Copyright--> <strong>
                Copyright &copy; 2014-2024&nbsp;
                <a href="https://www.luminadatamatics.com/" target="_blank" class="text-decoration-none">Lumina
                    Datamatics
                    LTD</a>.
            </strong>
            All rights reserved.
            <!--end::Copyright-->
        </footer> <!--end::Footer-->
    </div> <!--end::App Wrapper--> <!--begin::Script--> <!--begin::Third Party Plugin(OverlayScrollbars)-->
    <script src="https://code.jquery.com/jquery-3.7.1.min.js"
        integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/overlayscrollbars@2.3.0/browser/overlayscrollbars.browser.es6.min.js"
        integrity="sha256-H2VM7BKda+v2Z4+DRy69uknwxjyDRhszjXFhsL4gD3w=" crossorigin="anonymous"></script>
    <!--end::Third Party Plugin(OverlayScrollbars)--><!--begin::Required Plugin(popperjs for Bootstrap 5)-->
    <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.8/dist/umd/popper.min.js"
        integrity="sha256-whL0tQWoY1Ku1iskqPFvmZ+CHsvmRWx/PIoEvIeWh4I=" crossorigin="anonymous"></script>
    <!--end::Required Plugin(popperjs for Bootstrap 5)--><!--begin::Required Plugin(Bootstrap 5)-->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.min.js"
        integrity="sha256-YMa+wAM6QkVyz999odX7lPRxkoYAan8suedu4k2Zur8=" crossorigin="anonymous"></script>
    <!--end::Required Plugin(Bootstrap 5)--><!--begin::Required Plugin(AdminLTE)-->
    <script src="{% static './js/adminlte.js' %}"></script>
    <!--end::Required Plugin(AdminLTE)--><!--begin::OverlayScrollbars Configure-->
    <script>
        const SELECTOR_SIDEBAR_WRAPPER = ".sidebar-wrapper";
        const Default = {
            scrollbarTheme: "os-theme-light",
            scrollbarAutoHide: "leave",
            scrollbarClickScroll: true,
        };
        document.addEventListener("DOMContentLoaded", function () {
            const sidebarWrapper = document.querySelector(SELECTOR_SIDEBAR_WRAPPER);
            if (
                sidebarWrapper &&
                typeof OverlayScrollbarsGlobal?.OverlayScrollbars !== "undefined"
            ) {
                OverlayScrollbarsGlobal.OverlayScrollbars(sidebarWrapper, {
                    scrollbars: {
                        theme: Default.scrollbarTheme,
                        autoHide: Default.scrollbarAutoHide,
                        clickScroll: Default.scrollbarClickScroll,
                    },
                });
            }
        });
    </script> <!--end::OverlayScrollbars Configure--> <!-- OPTIONAL SCRIPTS --> <!-- apexcharts -->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jQuery-Knob/1.2.13/jquery.knob.min.js"
        integrity="sha512-NhRZzPdzMOMf005Xmd4JonwPftz4Pe99mRVcFeRDcdCtfjv46zPIi/7ZKScbpHD/V0HB1Eb+ZWigMqw94VUVaw=="
        crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <!-- <script src="{% static 'dist/WOW-master/dist/wow.js' %}"></script> -->
     <script>
        const mediaUrl = "./../media/";
        console.log("mediaUrl",mediaUrl);
        document.addEventListener('DOMContentLoaded', function () {
            // const responseDiv = document.getElementById('batchScoreMessage');
            // Show loader
            $('#full-page-loader').show();
            fetch('/core/api/batch-score/', {
                method: 'GET', // or 'POST' if your API expects POST
                headers: {
                    'X-CSRFToken': document.querySelector('[name=csrfmiddlewaretoken]')?.value || ''
                }
            })
            .then(response => response.json())
            .then(data => {
                if (data.success) {
                    var html = '';
                    data.results.forEach(element => {
                        // console.log(element.final_score);
                        var initial_score = '';
                        var after_score = ''
                        var base_keys = { 'Title': 'title_quality', 'Description': 'description_quality', 'Image': 'image_score', 'Attributes': 'attributes' }



                        Object.entries(base_keys).forEach(([key, value]) => {
                            let name = key;
                            key = key.toLowerCase();
                            console.log(element.breakdown[value], value);
                            var per = 0
                            if (element.breakdown[value]) {
                                per = element.breakdown[value];
                            }
                            var intial_desc = '';
                            if (element.categorized_feedback[key]) {
                                // console.log(element.categorized_feedback[key].issues);
                                intial_desc = element.categorized_feedback[key].issues.join(', ');
                            }
                            

                            initial_score += `<tr>
                                                    <td class="wow bounceInLeft">
                                                        <a>
                                                            `+ name + `
                                                        </a>
                                                    </td>

                                                    <td class="project_progress wow bounceInRight">
                                                        <div class="progress progress-sm">
                                                            <div class="progress-bar bg-green" role="progressbar"
                                                                aria-valuenow="`+ per + `" aria-valuemin="0" aria-valuemax="100"
                                                                style="width: `+ per + `%">
                                                            </div>
                                                        </div>
                                                        <small>
                                                            `+ per + `%
                                                        </small>
                                                    </td>

                                                </tr>
                                                <tr>
                                                <td class="wow bounceInLeft" colspan='2' data-wow-delay="0.2s">
                                                    <div style='max-height:100px;overflow-y:auto;'>  
                                                    <small>
                                                        `+ intial_desc + `
                                                    </small>
                                                    </div>
                                                    </td>
                                                </tr>`;
                        })

                        Object.keys(base_keys).forEach(k => {
                            let name = k;
                            k = k.toLowerCase();
                            var ik = 'improved_' + k
                            console.log("ik",ik);
                            var after_desc = '';
                            if (element.ai_suggestions.content[ik]) {
                                console.log(element.ai_suggestions.content);
                                after_desc = element.ai_suggestions.content[ik];
                            }

                            let missing_attributes = '';
                            if(k == "attributes"){
                                if(element?.ai_suggestions?.content?.missing_attributes){
                                    Object.entries(element?.ai_suggestions?.content?.missing_attributes).forEach(([key, value]) => {     
                                        missing_attributes += `<li><span class="attribute-label">${key}:</span> ${value}</li>`         
                                    });
                                }
                            }


                            if(k == "image"){
                                after_score += `<tr>
                                        <td class="wow bounceInLeft">
                                            <a>
                                                `+ name + ` Note
                                            </a>
                                        </td>
                                    </tr>
                                    <tr>
                                    <td class="wow bounceInLeft" colspan='2'  data-wow-delay="0.2s">
                                        <div style='max-height:100px;overflow-y:auto;'>  
                                        <small>
                                              ${element?.ai_suggestions?.image?.note ? element.ai_suggestions.image.note : 'No notes available'}
                                        </small>
                                        </div>
                                        </td>
                                    </tr>`;
                            }else if(k == "attributes"){
                                after_score += `<tr>
                                    <td class="wow bounceInLeft">
                                        <a>
                                           Missing `+ name + `
                                        </a>
                                    </td>
                                </tr>
                                <tr>
                                <td class="wow bounceInLeft" colspan='2'  data-wow-delay="0.2s">
                                    <div style='max-height:100px;overflow-y:auto;'>  
                                    <small> <ul>
                                        `+ missing_attributes + `
                                    </ul></small>
                                    </div>
                                    </td>
                                </tr>`;
                            }else{
                                after_score += `<tr>
                                    <td class="wow bounceInLeft">
                                        <a>
                                            `+ name + `
                                        </a>
                                    </td>
                                </tr>
                                <tr>
                                <td class="wow bounceInLeft" colspan='2'  data-wow-delay="0.2s">
                                    <div style='max-height:100px;overflow-y:auto;'>  
                                    <small>
                                        `+ after_desc + `
                                    </small>
                                    </div>
                                    </td>
                                </tr>`;
                            }                    
                        })


                        html += `<div class="row mb-4" >
                                <div class="col-md-4">
                                    <div class="card">
                                        <img class="card-img-top wow pulse" data-wow-iteration="2"
                                            src="`+mediaUrl+element.image_path+`">
                                        
                                        <div class="card-block">
                                            <h4 class="card-title wow bounceInLeft d-block w-100" data-wow-delay="0.1s">` 
                                                + element.title + 
                                                `&nbsp; 
                                                <a href="` + element?.product_link + `" target="_blank" class="text-decoration-none text-dark">
                                                    <i class="bi bi-box-arrow-up-right ms-2" title="Open Product"></i>
                                                </a>
                                            </h4>
                                            <p class="card-text wow bounceInLeft d-block w-100" data-wow-delay="0.2s">` + element.description + `</p>
                                        </div>

                                        <div class="card-footer wow bounceInLeft" data-wow-delay="0.3s">
                                            <small>`+element.created_at+`</small>
                                        </div>
                                    </div>
                                </div>

                                <div class="col-md-4">
                                    <div class="card">
                                        <div class="card-header py-2">
                                            <div class="text-sm mb-0">Initial Score</div>
                                        </div>
                                        <div class="card-body text-center wow bounceInDown" data-wow-iteration="0.5">
                                            <input type="text" class="dial" value="`+ element.final_score + `" data-width="120" data-height="120"
                                                data-readOnly='true' data-fgColor="#3c8dbc" data-bgColor="#e8e8e8"
                                                data-thickness=".2">
                                            <div class="mt-2">Overall Score</div>
                                        </div>
                                        <table class="table table-striped projects mb-0 table-sm">
                                            <tbody>
                                                `+ initial_score + `
                                            </tbody>
                                        </table>
                                    </div>

                                </div>
                                <div class="col-md-4 after_score d-none">
                                    <div class="card">
                                        <div class="card-header py-2">
                                            <div class="text-sm mb-0">Forecasted Score</div>
                                        </div>
                                        <div class="card-body text-center wow bounceInDown" data-wow-iteration="0.5">
                                            <input type="text" class="dial" value="`+ element.ai_suggestions.content.quality_score_prediction + `" data-width="120" data-height="120"
                                                data-readOnly='true' data-fgColor="#198754" data-bgColor="#e8e8e8"
                                                data-thickness=".2">
                                            <div class="mt-2">Overall Score</div>
                                        </div>
                                        <table class="table table-striped projects mb-0 table-sm">
                                            <tbody>
                                                `+ after_score + `
                                            </tbody>
                                        </table>
                                    </div>
                                    
                                </div>
                            </div > `;
                        // console.log('werrrrrrrrrrrrrrrrrrr', html);

                    });

                    $('#html').html(html);
                    $('.dial').knob();
                    
                    document.querySelector('.ai-fix-issues-button').style.display = 'block';
                    $('#full-page-loader').hide();
                    // });
                    new WOW().init();

                    // responseDiv.innerHTML = `<div class="alert alert-success">✅ ${data.message}</div>`;
                } else {
                    // responseDiv.innerHTML = `<div class="alert alert-danger">❌ ${data.error}</div>`;
                }

                // Remove message after 5 seconds
                // setTimeout(() => {
                //     responseDiv.innerHTML = '';
                // }, 5000);
            })
            .catch(error => {
                // responseDiv.innerHTML = `<div class="alert alert-danger">❌ API call failed: ${error}</div>`;
                // setTimeout(() => {
                //     responseDiv.innerHTML = '';
                // }, 5000);
            });
        });
        </script>
    
</body><!--end::Body-->

</html>