{"id":3403,"date":"2021-03-08T14:21:59","date_gmt":"2021-03-08T14:21:59","guid":{"rendered":"https:\/\/hainaut.sudradio.net\/?p=3403"},"modified":"2021-03-22T15:14:16","modified_gmt":"2021-03-22T15:14:16","slug":"podcasts-le-gentile","status":"publish","type":"post","link":"https:\/\/hainaut.sudradio.net\/?p=3403","title":{"rendered":"PODCASTS &#8211; Le gentil\u00e9"},"content":{"rendered":"\n<div class=\"row\">\n  <div class=\"col-12 col-sm-12 col-md-12 col-lg-4 col-xl-4\">\n    <img decoding=\"async\" src=\"https:\/\/hainaut.sudradio.net\/wp-content\/uploads\/2021\/01\/SUDLOGO.png\" width=\"100%\" class=\"SUD_TABLE_IMG\">\n  <\/div>\n  <div class=\"col-12 col-sm-12 col-md-12 col-lg-8 col-xl-8\">\n    <div class=\"SUD_PODCAST_TITRE\">Les podcasts de Sud Radio\u00a0\u00bb<\/div>\n    <p class=\"SUD_PODCAST_PARAGRAPHE\">\n        Vous n&rsquo;\u00e9tiez pas \u00e0 notre \u00e9coute lors de votre \u00e9mission favorite ? Pas de soucis ! R\u00e9\u00e9coutez nos programmes gr\u00e2ce \u00e0 notre plateforme de PODCASTS !<br><br>  \n        Pour un meilleur rep\u00e9rage, nous avons segment\u00e9 les diff\u00e9rents podcasts par \u00e9missions. Dans chaque cat\u00e9gorie les podcasts sont ensuite tri\u00e9s par date d\u2019ajout, du plus r\u00e9cent au plus ancien.<br><br>\n        Bonne recherche et surtout bonne(s) d\u00e9couverte(s) !      \n    <\/p>\n  <\/div>\n<\/div>\n  \n<div id=\"PlayerBOX\">\n    <div class=\"row\">\n        <div class=\"col-12\">  \n            <div id=\"waveform\"><\/div>  \n        <\/div>\n    <\/div>\n\n    <div class=\"row\">\n        <div class=\"col-1\">  \n            Volume:\n        <\/div>\n        <div class=\"col-9\">  \n          <div class=\"volbox\">\n            <input id=\"volumeSlider\" type=\"range\" min=\"0\" max=\"1\" value=\"1\" step=\"0.01\" style=\"width: 100%; \">\n          <\/div>\n        <\/div>\n        <div class=\"col-2\">  \n            <button type=\"button\" class=\"btn btn-warning w-100\" id=\"PlayPause\">Pause<\/button>\n        <\/div>    \n    <\/div>\n<\/div>\n<br>\n<div class=\"row\">\n  <div class=\"col-12\">\n    <script>   \n    \n    $(\"#PlayerBOX\").hide();\n    \n    $(document).ready(function()\n    {\n        var wavesurfer = WaveSurfer.create({\n            container: document.querySelector('#waveform'),\n            backend: 'MediaElement',\n            waveColor: '#D9DCFF',\n            progressColor: '#4353FF',\n            cursorColor: '#4353FF',\n            barWidth: 3,\n            barRadius: 3,\n            cursorWidth: 1,\n            minPxPerSec: 5,\n            height: 200,\n            barGap: 3,            \n            pixelRatio: 1,\n            plugins: [\n                WaveSurfer.regions.create({})\n            ]            \n        });        \n        \n        PODCAST = $('#PODCAST').DataTable({\n            \"language\": { \"url\": \"\/wp-content\/themes\/SudRadio-2020\/assets\/lang\/datatable.francais.lang\" },\n            \"order\" : [[ 0 , \"desc\" ]],\n            rowId: \"path\",\n            \"ajax\": {\n                   \"url\": ajaxurl,\n                   \"type\": 'POST',\n                   \"data\": {\n                      'action':'podcast',\n                      'rubrique' : 'gentile_hnt',\n                   },\n               },       \n            columns: [\n                { data: \"dateDiffusion\"\n                    ,className: \"selectable\", responsivePriority: 5,\n                    render: function (data, type, row) {\n                        moment.locale('fr');\n                        var goodDate = moment(row.dateDiffusion,\"YYYYMMDD\").format('dddd LL','fr');\n \n                        return '<span style=\"display:none;\">' + row.dateDiffusion + '<\/span>' + goodDate\n                    }\n                },      \n                { data: \"podcast\" },      \n                {\n                    data: \"path\",\n                    className: \"center\",\n                    render: function (data, type, row) {\n                        return `<button type=\"button\" class=\"btn btn-secondary\">Ecouter !<\/button>`;                        \n                    }\n                },\n            ],\n            responsive: true,\n            columnDefs: [\n                { responsivePriority: 0 },\n                { responsivePriority: 1 },\n                { responsivePriority: 2 },\n            ],\n        });  \n        \n        $('#PODCAST').on( 'click', 'tr', function () {\n            var idSelected = PODCAST.row( this ).id();\n\n            if (idSelected !== undefined )   \n            {\n                $(\"#PlayerBOX\").show(500);\n                \n                console.log(\"Asked \" + 'https:\/\/hainaut.sudradio.net\/' + idSelected);\n                wavesurfer.load('https:\/\/hainaut.sudradio.net\/' + idSelected);\n                \n                if (wavesurfer.isPlaying()) wavesurfer.stop();\n                wavesurfer.play();\n            }\n        });    \n        \n        wavesurfer.on('ready', function () {\n            \/\/ Charge les r\u00e9gions !\n            consoles.log(\"Charge les r\u00e9gions !\");\n            fetch(\"https:\/\/hainaut.sudradio.net\/podcasts\/croissant\/20210305.json\")\n              .then(response => response.json())\n              .then(json => wavesurfer.addRegion(json));            \n        });\n        \n        wavesurfer.on('waveform-ready', function () {\n            \/\/ Charge les r\u00e9gions !\n            consoles.log(\"Charge les r\u00e9gions !!!\");\n            fetch(\"https:\/\/hainaut.sudradio.net\/podcasts\/croissant\/20210305.json\")\n              .then(response => response.json())\n              .then(json => wavesurfer.addRegion(json));            \n        });        \n        \n        $(\"#volumeSlider\").on(\"input\", function (e) {\n            wavesurfer.setVolume(e.target.value);         \n        });\n\n        $(\"#volumeSlider\").on(\"change\", function (e) {\n            wavesurfer.setVolume(e.target.value);        \n        });\n        \n        $(\"#PlayPause\").on(\"click\", function () {\n            if (wavesurfer.isPlaying()) \n            {\n                $(\"#PlayPause\").html(\"Play\");\n                wavesurfer.pause();\n            }\n            else \n            {\n                $(\"#PlayPause\").html(\"Pause\");\n                wavesurfer.play();\n            }\n        });\n    });       \n    <\/script>\n   \n    <table id=\"PODCAST\" class=\"display\" style=\"width:100%\">\n        <thead>  \n            <tr>\n                <th style=\"width:30%\">Date<\/th>\n                <th>Emission<\/th>\n                <th style=\"width:75px\">Ecouter !<\/th>\n            <\/tr>\n        <\/thead>\n        <tbody>\n        <\/tbody>\n    <\/table>      \n   \n  <\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Les podcasts de Sud Radio\u00a0\u00bb Vous n&rsquo;\u00e9tiez pas \u00e0 notre \u00e9coute lors de votre \u00e9mission favorite ? Pas de soucis ! R\u00e9\u00e9coutez nos programmes gr\u00e2ce \u00e0 notre plateforme de PODCASTS ! Pour un meilleur rep\u00e9rage, nous avons segment\u00e9 les diff\u00e9rents podcasts par \u00e9missions. Dans chaque cat\u00e9gorie les podcasts sont ensuite tri\u00e9s par date d\u2019ajout, du [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3867,"comment_status":"open","ping_status":"open","sticky":true,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,1],"tags":[],"class_list":["post-3403","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-le-gentile","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/hainaut.sudradio.net\/index.php?rest_route=\/wp\/v2\/posts\/3403","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hainaut.sudradio.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hainaut.sudradio.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hainaut.sudradio.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hainaut.sudradio.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3403"}],"version-history":[{"count":8,"href":"https:\/\/hainaut.sudradio.net\/index.php?rest_route=\/wp\/v2\/posts\/3403\/revisions"}],"predecessor-version":[{"id":3424,"href":"https:\/\/hainaut.sudradio.net\/index.php?rest_route=\/wp\/v2\/posts\/3403\/revisions\/3424"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hainaut.sudradio.net\/index.php?rest_route=\/wp\/v2\/media\/3867"}],"wp:attachment":[{"href":"https:\/\/hainaut.sudradio.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3403"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hainaut.sudradio.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3403"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hainaut.sudradio.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3403"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}