{"id":2,"date":"2025-03-29T11:52:47","date_gmt":"2025-03-29T11:52:47","guid":{"rendered":"https:\/\/bartongolf.dotstage.net\/?page_id=2"},"modified":"2025-03-29T11:56:37","modified_gmt":"2025-03-29T11:56:37","slug":"sample-page","status":"publish","type":"page","link":"https:\/\/bartongolf.dotstage.net\/","title":{"rendered":"Classifica pubblica"},"content":{"rendered":"\n\n<div id=\"barton-cup-leaderboard\" class=\"barton-cup-leaderboard\" data-display=\"full\">\n    <div class=\"leaderboard-header\">\n        <h2>Barton Cup - Classifica<\/h2>\n        \n        <div class=\"leaderboard-controls\">\n            <a href=\"\/index.php\/wp-json\/wp\/v2\/pages\/2?_nocache=1780154106\" class=\"refresh-button\">\n                <span class=\"dashicons dashicons-update\"><\/span> Aggiorna\n            <\/a>\n            \n                            <a href=\"\/index.php\/wp-json\/wp\/v2\/pages\/2?display=compact\" class=\"view-toggle-button\">\n                    Vista Compatta\n                <\/a>\n                    <\/div>\n    <\/div>\n    \n    <div class=\"leaderboard-container\">\n        <div class=\"leaderboard-table\">\n                            <table>\n                   <thead>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<th>Pos<\/th>\n\t\t\t\t\t\t\t<th>Giocatore<\/th>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th>Tee<\/th><!-- Cambiato da \"Team\" a \"Tee\" -->\n\t\t\t\t\t\t\t\t<th>HCP<\/th>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t<th>Buche<\/th>\n                            \n                                                            <th>Gross<\/th>\n                                <th>Net<\/th>\n                                                        \n                            <th>Punti<\/th>\n                        <\/tr>\n                    <\/thead>\n                    <tbody>\n                                                    <tr class=\"top-position\">\n                                <td class=\"position\">1<\/td>\n                                <td class=\"player-name\">GIOCATORE 3<\/td>\n                                \n                                                                    <td>1<\/td>\n                                    <td>36<\/td>\n                                                                \n                                <td>18\/18<\/td>\n                                \n                                                                    <td>72<\/td>\n                                    <td>36<\/td>\n                                                                \n                                <td class=\"points\">72<\/td>\n                            <\/tr>\n                                                    <tr class=\"top-position\">\n                                <td class=\"position\">2<\/td>\n                                <td class=\"player-name\">GIOCATORE 1<\/td>\n                                \n                                                                    <td>1<\/td>\n                                    <td>18<\/td>\n                                                                \n                                <td>18\/18<\/td>\n                                \n                                                                    <td>72<\/td>\n                                    <td>54<\/td>\n                                                                \n                                <td class=\"points\">54<\/td>\n                            <\/tr>\n                                                    <tr class=\"top-position\">\n                                <td class=\"position\">2<\/td>\n                                <td class=\"player-name\">GIOCATORE 4<\/td>\n                                \n                                                                    <td>1<\/td>\n                                    <td>18<\/td>\n                                                                \n                                <td>18\/18<\/td>\n                                \n                                                                    <td>72<\/td>\n                                    <td>54<\/td>\n                                                                \n                                <td class=\"points\">54<\/td>\n                            <\/tr>\n                                                    <tr class=\"\">\n                                <td class=\"position\">4<\/td>\n                                <td class=\"player-name\">GIOCATORE 102<\/td>\n                                \n                                                                    <td>16<\/td>\n                                    <td>0<\/td>\n                                                                \n                                <td>18\/18<\/td>\n                                \n                                                                    <td>69<\/td>\n                                    <td>69<\/td>\n                                                                \n                                <td class=\"points\">39<\/td>\n                            <\/tr>\n                                                    <tr class=\"\">\n                                <td class=\"position\">5<\/td>\n                                <td class=\"player-name\">GIOCATORE 100<\/td>\n                                \n                                                                    <td>15 BIS<\/td>\n                                    <td>0<\/td>\n                                                                \n                                <td>18\/18<\/td>\n                                \n                                                                    <td>72<\/td>\n                                    <td>72<\/td>\n                                                                \n                                <td class=\"points\">36<\/td>\n                            <\/tr>\n                                                    <tr class=\"\">\n                                <td class=\"position\">5<\/td>\n                                <td class=\"player-name\">GIOCATORE 106<\/td>\n                                \n                                                                    <td>17<\/td>\n                                    <td>54<\/td>\n                                                                \n                                <td>18\/18<\/td>\n                                \n                                                                    <td>126<\/td>\n                                    <td>72<\/td>\n                                                                \n                                <td class=\"points\">36<\/td>\n                            <\/tr>\n                                                    <tr class=\"\">\n                                <td class=\"position\">5<\/td>\n                                <td class=\"player-name\">GIOCATORE 2<\/td>\n                                \n                                                                    <td>1<\/td>\n                                    <td>0<\/td>\n                                                                \n                                <td>18\/18<\/td>\n                                \n                                                                    <td>72<\/td>\n                                    <td>72<\/td>\n                                                                \n                                <td class=\"points\">36<\/td>\n                            <\/tr>\n                                                    <tr class=\"\">\n                                <td class=\"position\">8<\/td>\n                                <td class=\"player-name\">GIOCATORE 101<\/td>\n                                \n                                                                    <td>16<\/td>\n                                    <td>0<\/td>\n                                                                \n                                <td>18\/18<\/td>\n                                \n                                                                    <td>75<\/td>\n                                    <td>75<\/td>\n                                                                \n                                <td class=\"points\">33<\/td>\n                            <\/tr>\n                                                    <tr class=\"\">\n                                <td class=\"position\">9<\/td>\n                                <td class=\"player-name\">GIOCATORE 104<\/td>\n                                \n                                                                    <td>16<\/td>\n                                    <td>0<\/td>\n                                                                \n                                <td>18\/18<\/td>\n                                \n                                                                    <td>84<\/td>\n                                    <td>84<\/td>\n                                                                \n                                <td class=\"points\">31<\/td>\n                            <\/tr>\n                                                    <tr class=\"\">\n                                <td class=\"position\">10<\/td>\n                                <td class=\"player-name\">GIOCATORE 107<\/td>\n                                \n                                                                    <td>17<\/td>\n                                    <td>18<\/td>\n                                                                \n                                <td>1\/18<\/td>\n                                \n                                                                    <td>2<\/td>\n                                    <td>1<\/td>\n                                                                \n                                <td class=\"points\">5<\/td>\n                            <\/tr>\n                                                    <tr class=\"\">\n                                <td class=\"position\">10<\/td>\n                                <td class=\"player-name\">GIOCATORE 108<\/td>\n                                \n                                                                    <td>17<\/td>\n                                    <td>18<\/td>\n                                                                \n                                <td>1\/18<\/td>\n                                \n                                                                    <td>3<\/td>\n                                    <td>2<\/td>\n                                                                \n                                <td class=\"points\">5<\/td>\n                            <\/tr>\n                                                    <tr class=\"\">\n                                <td class=\"position\">10<\/td>\n                                <td class=\"player-name\">GIOCATORE 109<\/td>\n                                \n                                                                    <td>17 BIS<\/td>\n                                    <td>18<\/td>\n                                                                \n                                <td>1\/18<\/td>\n                                \n                                                                    <td>2<\/td>\n                                    <td>1<\/td>\n                                                                \n                                <td class=\"points\">5<\/td>\n                            <\/tr>\n                                                    <tr class=\"\">\n                                <td class=\"position\">13<\/td>\n                                <td class=\"player-name\">GIOCATORE 105<\/td>\n                                \n                                                                    <td>17<\/td>\n                                    <td>0<\/td>\n                                                                \n                                <td>1\/18<\/td>\n                                \n                                                                    <td>20<\/td>\n                                    <td>20<\/td>\n                                                                \n                                <td class=\"points\">0<\/td>\n                            <\/tr>\n                                            <\/tbody>\n                <\/table>\n                    <\/div>\n        \n        <div class=\"leaderboard-footer\">\n            <span id=\"last-updated\">Ultimo aggiornamento: 15:15:06<\/span>\n                            <span class=\"auto-refresh\">La pagina si aggiorner\u00e0 automaticamente ogni 60 secondi<\/span>\n                <script>\n                    setTimeout(function() {\n                        window.location.reload();\n                    }, 60000);\n                <\/script>\n                    <\/div>\n    <\/div>\n<\/div>\n\n<style>\n    \/* Lo stesso CSS del template originale *\/\n    .barton-cup-leaderboard {\n        font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\n        max-width: 100%;\n        margin: 0 auto;\n        background: #fff;\n        border-radius: 8px;\n        box-shadow: 0 2px 10px rgba(0,0,0,0.1);\n        overflow: hidden;\n    }\n    \n    .leaderboard-header {\n        padding: 15px 20px;\n        background: #f7f7f7;\n        border-bottom: 1px solid #e0e0e0;\n        display: flex;\n        justify-content: space-between;\n        align-items: center;\n    }\n    \n    .leaderboard-header h2 {\n        margin: 0;\n        font-size: 1.4em;\n        color: #333;\n    }\n    \n    .leaderboard-controls {\n        display: flex;\n        gap: 10px;\n    }\n    \n    .leaderboard-controls a {\n        padding: 6px 12px;\n        background: #f0f0f0;\n        border: 1px solid #ddd;\n        border-radius: 4px;\n        cursor: pointer;\n        font-size: 14px;\n        display: flex;\n        align-items: center;\n        gap: 5px;\n        text-decoration: none;\n        color: #333;\n    }\n    \n    .leaderboard-controls a:hover {\n        background: #e8e8e8;\n        text-decoration: none;\n        color: #333;\n    }\n    \n    .leaderboard-container {\n        padding: 20px;\n        position: relative;\n    }\n    \n    .leaderboard-table table {\n        width: 100%;\n        border-collapse: collapse;\n        margin-bottom: 15px;\n    }\n    \n    .leaderboard-table th, \n    .leaderboard-table td {\n        padding: 10px;\n        text-align: center;\n        border-bottom: 1px solid #eee;\n    }\n    \n    .leaderboard-table th {\n        background: #f3f4f6;\n        font-weight: 600;\n        position: sticky;\n        top: 0;\n    }\n    \n    .leaderboard-table tr:hover {\n        background: #f9f9f9;\n    }\n    \n    .leaderboard-table .position {\n        font-weight: bold;\n        width: 40px;\n    }\n    \n    .leaderboard-table .player-name {\n        text-align: left;\n        font-weight: 500;\n    }\n    \n    .leaderboard-table .points {\n        font-weight: bold;\n        color: #2c5282;\n    }\n    \n    .leaderboard-table .top-position {\n        background-color: #f0f9ff;\n    }\n    \n    .leaderboard-table tr.top-position:nth-child(1) {\n        background-color: #fdf2f8;\n    }\n    \n    .leaderboard-table tr.top-position:nth-child(2) {\n        background-color: #f3f4f6;\n    }\n    \n    .leaderboard-table tr.top-position:nth-child(3) {\n        background-color: #fff7ed;\n    }\n    \n    .leaderboard-footer {\n        margin-top: 15px;\n        display: flex;\n        justify-content: space-between;\n        font-size: 0.85em;\n        color: #666;\n    }\n    \n    .no-data {\n        text-align: center;\n        padding: 30px;\n        color: #666;\n    }\n    \n    \/* Supporto Dashicons *\/\n    .dashicons {\n        font-family: dashicons;\n        display: inline-block;\n        line-height: 1;\n        font-weight: 400;\n        font-style: normal;\n        speak: none;\n        text-decoration: inherit;\n        text-transform: none;\n        text-rendering: auto;\n        -webkit-font-smoothing: antialiased;\n        -moz-osx-font-smoothing: grayscale;\n        width: 20px;\n        height: 20px;\n        font-size: 20px;\n        vertical-align: top;\n        text-align: center;\n        transition: color .1s ease-in;\n    }\n    \n    .dashicons-update:before {\n        content: \"\\f463\";\n    }\n    \n    \/* Layout responsive *\/\n    @media (max-width: 768px) {\n        .leaderboard-header {\n            flex-direction: column;\n            gap: 10px;\n            align-items: flex-start;\n        }\n        \n        .leaderboard-controls {\n            width: 100%;\n            justify-content: space-between;\n        }\n        \n        .leaderboard-table {\n            overflow-x: auto;\n        }\n        \n        .leaderboard-table th,\n        .leaderboard-table td {\n            padding: 8px 5px;\n            font-size: 0.9em;\n        }\n        \n        .leaderboard-footer {\n            flex-direction: column;\n            gap: 5px;\n        }\n    }\n<\/style>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-2","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/bartongolf.dotstage.net\/index.php\/wp-json\/wp\/v2\/pages\/2","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bartongolf.dotstage.net\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/bartongolf.dotstage.net\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/bartongolf.dotstage.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bartongolf.dotstage.net\/index.php\/wp-json\/wp\/v2\/comments?post=2"}],"version-history":[{"count":2,"href":"https:\/\/bartongolf.dotstage.net\/index.php\/wp-json\/wp\/v2\/pages\/2\/revisions"}],"predecessor-version":[{"id":13,"href":"https:\/\/bartongolf.dotstage.net\/index.php\/wp-json\/wp\/v2\/pages\/2\/revisions\/13"}],"wp:attachment":[{"href":"https:\/\/bartongolf.dotstage.net\/index.php\/wp-json\/wp\/v2\/media?parent=2"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}