Merge branch 'master' into 'master'

Try function for podcasts

See merge request unitoo/unitoo-site!42
This commit is contained in:
Claudio Maradonna 2020-04-01 16:56:40 +00:00
commit 20f18a2d34
6 changed files with 8 additions and 16 deletions

View file

@ -44,15 +44,13 @@ lang: it-IT
<div class="input-group"> <div class="input-group">
<select id="select-podcast" class="form-control"> <select id="select-podcast" class="form-control">
<optgroup label="Spit the Dummy"></optgroup> <optgroup label="Spit the Dummy"></optgroup>
<option value="https://cloud.unitoo.pw/index.php/s/zA4eewSoPEPoLQF/download">STD 01</option> <option value="https://cloud.unitoo.pw/index.php/s/zA4eewSoPEPoLQF">STD 01</option>
</select> </select>
<div class="input-group-append"> <div class="input-group-append">
<button id="play-podcast" type="button" class="btn btn-outline-secondary">Ascolta</button> <button id="play-podcast" type="button" class="btn btn-outline-secondary">Ascolta</button>
</div> </div>
</div> </div>
<audio tabindex="0" controls="" preload="none" style="width: 100%;" id="player-podcast" class="mt-1"> <iframe class="w-100 mt-2" id="container-podcast" sandbox="allow-scripts allow-same-origin"></iframe>
<source id="source-podcast" src="" type="audio/ogg">
</audio>
</p> </p>
</p> </p>
<hr> <hr>

View file

@ -1 +1 @@
<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.8.6">Jekyll</generator><link href="https://www.unitoo.it/feed.xml" rel="self" type="application/atom+xml" /><link href="https://www.unitoo.it/" rel="alternate" type="text/html" /><updated>2020-04-01T18:51:56+02:00</updated><id>https://www.unitoo.it/feed.xml</id><title type="html">Unitoo</title><subtitle>Azienda dedicata allo sviluppo software, alla formazione dei team e alla consulenza informatica</subtitle></feed> <?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.8.6">Jekyll</generator><link href="https://www.unitoo.it/feed.xml" rel="self" type="application/atom+xml" /><link href="https://www.unitoo.it/" rel="alternate" type="text/html" /><updated>2020-04-01T18:56:02+02:00</updated><id>https://www.unitoo.it/feed.xml</id><title type="html">Unitoo</title><subtitle>Azienda dedicata allo sviluppo software, alla formazione dei team e alla consulenza informatica</subtitle></feed>

View file

@ -73,8 +73,6 @@ $(document).ready(function() {
$("#play-podcast").on("click", function(e) { $("#play-podcast").on("click", function(e) {
var link = $("#select-podcast").val(); var link = $("#select-podcast").val();
document.getElementById("source-podcast").src = link; $("#container-podcast").attr("src", link);
document.getElementById("player-podcast").load();
document.getElementById("player-podcast").play();
}); });
}); });

View file

@ -188,15 +188,13 @@
<div class="input-group"> <div class="input-group">
<select id="select-podcast" class="form-control"> <select id="select-podcast" class="form-control">
<optgroup label="Spit the Dummy"></optgroup> <optgroup label="Spit the Dummy"></optgroup>
<option value="https://cloud.unitoo.pw/index.php/s/zA4eewSoPEPoLQF/download">STD 01</option> <option value="https://cloud.unitoo.pw/index.php/s/zA4eewSoPEPoLQF">STD 01</option>
</select> </select>
<div class="input-group-append"> <div class="input-group-append">
<button id="play-podcast" type="button" class="btn btn-outline-secondary">Ascolta</button> <button id="play-podcast" type="button" class="btn btn-outline-secondary">Ascolta</button>
</div> </div>
</div> </div>
<audio tabindex="0" controls="" preload="none" style="width: 100%;" id="player-podcast" class="mt-1"> <iframe class="w-100 mt-2" id="container-podcast" sandbox="allow-scripts allow-same-origin"></iframe>
<source id="source-podcast" src="" type="audio/ogg">
</audio>
</p> </p>
</p> </p>
<hr> <hr>

View file

@ -73,8 +73,6 @@ $(document).ready(function() {
$("#play-podcast").on("click", function(e) { $("#play-podcast").on("click", function(e) {
var link = $("#select-podcast").val(); var link = $("#select-podcast").val();
document.getElementById("source-podcast").src = link; $("#container-podcast").attr("src", link);
document.getElementById("player-podcast").load();
document.getElementById("player-podcast").play();
}); });
}); });