{"id":778,"date":"2024-05-09T09:36:33","date_gmt":"2024-05-09T09:36:33","guid":{"rendered":"https:\/\/worldseotool.com\/?page_id=778"},"modified":"2024-05-09T09:36:33","modified_gmt":"2024-05-09T09:36:33","slug":"pace-calculator","status":"publish","type":"page","link":"https:\/\/shoptips24.com\/tools\/pace-calculator\/","title":{"rendered":"Pace Calculator"},"content":{"rendered":"\n\n    <style>\n        .calculator {\n            max-width: 400px;\n            margin: 50px auto;\n            padding: 20px;\n            border: 1px solid #ccc;\n            border-radius: 5px;\n        }\n        \n        .form-group {\n            margin-bottom: 10px;\n        }\n        \n        button {\n            padding: 10px 20px;\n            background-color: #007bff;\n            color: #fff;\n            border: none;\n            border-radius: 5px;\n            cursor: pointer;\n        }\n        \n        button:hover {\n            background-color: #0056b3;\n        }\n        \n        #result {\n            margin-top: 20px;\n            font-weight: bold;\n        }\n    <\/style>\n<\/head>\n<body>\n    <div class=\"calculator\">\n        <h2>Pace Calculator<\/h2>\n        <div class=\"form-group\">\n            <label for=\"time\">Total Time (in minutes)<\/label>\n            <input type=\"number\" id=\"time\" name=\"time\" min=\"0\" required>\n        <\/div>\n        <div class=\"form-group\">\n            <label for=\"distance\">Total Distance (in kilometers)<\/label>\n            <input type=\"number\" id=\"distance\" name=\"distance\" min=\"0\" required>\n        <\/div>\n        <button type=\"button\" onclick=\"calculatePace()\">Calculate<\/button>\n        <div id=\"result\"><\/div>\n    <\/div>\n\n    <script>\n        function calculatePace() {\n            var time = parseFloat(document.getElementById('time').value);\n            var distance = parseFloat(document.getElementById('distance').value);\n\n            \/\/ Calculate pace (time per unit distance) in minutes per kilometer\n            var pace = time \/ distance;\n\n            var minutes = Math.floor(pace);\n            var seconds = Math.round((pace - minutes) * 60);\n\n            var result = document.getElementById('result');\n            result.innerHTML = 'Your pace is ' + minutes + ' minutes and ' + seconds + ' seconds per kilometer.';\n        }\n    <\/script>\n\n","protected":false},"excerpt":{"rendered":"<p>Pace Calculator Total Time (in minutes) Total Distance (in kilometers) Calculate<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-778","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/shoptips24.com\/tools\/wp-json\/wp\/v2\/pages\/778","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shoptips24.com\/tools\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/shoptips24.com\/tools\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/shoptips24.com\/tools\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/shoptips24.com\/tools\/wp-json\/wp\/v2\/comments?post=778"}],"version-history":[{"count":0,"href":"https:\/\/shoptips24.com\/tools\/wp-json\/wp\/v2\/pages\/778\/revisions"}],"wp:attachment":[{"href":"https:\/\/shoptips24.com\/tools\/wp-json\/wp\/v2\/media?parent=778"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}