{"id":217,"date":"2020-11-27T11:17:13","date_gmt":"2020-11-27T11:17:13","guid":{"rendered":"https:\/\/audiosample.de\/?page_id=217"},"modified":"2024-11-08T14:35:38","modified_gmt":"2024-11-08T14:35:38","slug":"bath-audio-recorder","status":"publish","type":"page","link":"https:\/\/audiosample.de\/index.php\/bath-audio-recorder\/","title":{"rendered":"Bath Audio-recorder"},"content":{"rendered":"\r\n<div class=\"mmr_form\">\r\n    <div class=\"\">\r\n        <input name=\"post_id\" id=\"post_id\" type=\"hidden\" \/>\r\n        <input name=\"project\" id=\"project\" type=\"hidden\" value=\"219\" \/>\r\n        <input name=\"form_url\" id=\"form_url\" type=\"hidden\" value=\"\/index.php\/wp-json\/wp\/v2\/pages\/217\" \/>\r\n        <input name=\"page_name\" id=\"page_name\" type=\"hidden\" value=\"Bath Audio-recorder\" \/>\r\n        <!-- mmr_fields{\"type\":[\"text\",\"recording\",\"text\"],\"label\":[\"What is your Prolific ID?\",\"Please press record when ready and discuss the current time, day, and month\",\"\"],\"label_de\":[\"\",\"\",\"\"],\"placeholder\":[\"\",\"\",\"\"],\"default\":[\"\",\"\",\"\"],\"audio\":[\"https:\\\/\\\/audiosample.de\\\/wp-content\\\/uploads\\\/2021\\\/06\\\/file_example_WAV_1MG.wav\",\"\",\"\"],\"options\":[\"\",\"\",\"\"]}--><div class=\"mmr-form-section\">\n    <label>What is your Prolific ID?<\/label>\n    <input  class=\"mmr_field\" \n        mmr_label=\"What is your Prolific ID?\" \n        type=\"text\" \n        value=\"\" \n        placeholder=\"\" \n        id=\"mmr_input_0\"\n        onchange=\"mmrUpdatePost()\" onkeyup=\"mmrUpdatePost()\" \/>\n<\/div><div class=\"mmr-form-section\">\n    <label>Please press record when ready and discuss the current time, day, and month<\/label>\n    <div class=\"recorder_div\">\n        <input name=\"recording_path[1]\" id=\"recording_path_1\" type=\"hidden\"  \/>\n        <button onclick=\"startStopRecording(1)\" id=\"mmr_start_1\" source-id='1' class=\"mmr_btn mmr_rec_btn\">Start Recording<\/button>        \n        <br>\n        <span style=\"font-size: x-small;\" class=\"mmr_disabled_msg\">Enter information to enable recording<\/span>\n    <\/div>\n    <div id=\"mm_dynamic_1\">\n        <span class=\"loading_holder\" id='loading_holder_1'>\n            Loading...        <\/span>\n        <audio id=\"playback_holder_1\" class=\"playback_holder\" controls >\n            <source id=\"playback_1\" src=\"\" type=\"audio\/x-wav\">\n        <\/audio>\n    <\/div>\n<\/div>    <\/div>\r\n<\/div>\r\n<script>\r\n    var has_terms = \"\";\r\n<\/script>\r\n<div style=\"display:none\">\r\n    <div id=\"mm_recording_terms\" title=\"Terms & Conditions\">\r\n        I confirm that I have read both the <a target=\"_blank\" class=\"highlighted\" href=\"https:\/\/audiosample.de\/index.php\/bath-audio-recorder\/\">Bath Audio-recorder<\/a> and the <a target=\"_blank\" class=\"highlighted\" href=\"https:\/\/audiosample.de\/index.php\/bath-audio-recorder\/\">Bath Audio-recorder<\/a> and agree to those terms    <\/div>\r\n<\/div>\r\n<script>\r\n    var current_recorder = 0;\r\n    var recording_keys = [\n    1\n];\r\n    const mm_upload_url = 'https:\/\/audiosample.de\/?save_rec';\r\n    const mmr_stop = \"Stop recording\";\r\n    const mmr_saving = \"Saving...\";\r\n    const mmr_stopping = \"stopping...\";\r\n    const mmr_saved = \"Saved\";\r\n    const mmr_required = [\n    \"mmr_input_0\"\n];\r\n    \/\/ distinguish calls\r\n    var unique = Math.floor(100000 + Math.random() * 900000);\r\n            jQuery('#mmr_input_0').on(\"change\", function() {\r\n            check_recording_active();\r\n        });\r\n        jQuery('#mmr_input_0').on(\"keyup\", function() {\r\n            check_recording_active();\r\n        });\r\n    \r\n    function check_recording_active() {\r\n        console.log('checking...');\r\n        var active = true;\r\n        for (l of mmr_required) {\r\n            if (jQuery('#' + l).val() == '') {\r\n                active = false;\r\n            }\r\n        }\r\n        console.log('active::', active);\r\n        if (active) {\r\n            \/\/jQuery('.mmr_rec_btn').removeAttr(\"disabled\");\r\n            setActiveRecorder();\r\n            jQuery('.mmr_disabled_msg').hide();\r\n        } else {\r\n            \/\/jQuery('.mmr_rec_btn').attr(\"disabled\", true);\r\n            jQuery('.mmr_disabled_msg').show();\r\n        }\r\n    }\r\n    jQuery(document).ready(function($) {\r\n        check_recording_active();\r\n    });\r\n<\/script>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-217","page","type-page","status-publish","hentry"],"translation":{"provider":"WPGlobus","version":"2.10.6","language":"gb","enabled_languages":["gb"],"languages":{"gb":{"title":true,"content":true,"excerpt":false}}},"_links":{"self":[{"href":"https:\/\/audiosample.de\/index.php\/wp-json\/wp\/v2\/pages\/217","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/audiosample.de\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/audiosample.de\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/audiosample.de\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/audiosample.de\/index.php\/wp-json\/wp\/v2\/comments?post=217"}],"version-history":[{"count":5,"href":"https:\/\/audiosample.de\/index.php\/wp-json\/wp\/v2\/pages\/217\/revisions"}],"predecessor-version":[{"id":7407,"href":"https:\/\/audiosample.de\/index.php\/wp-json\/wp\/v2\/pages\/217\/revisions\/7407"}],"wp:attachment":[{"href":"https:\/\/audiosample.de\/index.php\/wp-json\/wp\/v2\/media?parent=217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}