forked from unitoo/website
Merge branch 'master' into 'master'
Try function for podcasts See merge request unitoo/unitoo-site!42
This commit is contained in:
commit
20f18a2d34
6 changed files with 8 additions and 16 deletions
|
@ -44,15 +44,13 @@ lang: it-IT
|
|||
<div class="input-group">
|
||||
<select id="select-podcast" class="form-control">
|
||||
<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>
|
||||
<div class="input-group-append">
|
||||
<button id="play-podcast" type="button" class="btn btn-outline-secondary">Ascolta</button>
|
||||
</div>
|
||||
</div>
|
||||
<audio tabindex="0" controls="" preload="none" style="width: 100%;" id="player-podcast" class="mt-1">
|
||||
<source id="source-podcast" src="" type="audio/ogg">
|
||||
</audio>
|
||||
<iframe class="w-100 mt-2" id="container-podcast" sandbox="allow-scripts allow-same-origin"></iframe>
|
||||
</p>
|
||||
</p>
|
||||
<hr>
|
||||
|
|
|
@ -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>
|
|
@ -73,8 +73,6 @@ $(document).ready(function() {
|
|||
$("#play-podcast").on("click", function(e) {
|
||||
var link = $("#select-podcast").val();
|
||||
|
||||
document.getElementById("source-podcast").src = link;
|
||||
document.getElementById("player-podcast").load();
|
||||
document.getElementById("player-podcast").play();
|
||||
$("#container-podcast").attr("src", link);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -188,15 +188,13 @@
|
|||
<div class="input-group">
|
||||
<select id="select-podcast" class="form-control">
|
||||
<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>
|
||||
<div class="input-group-append">
|
||||
<button id="play-podcast" type="button" class="btn btn-outline-secondary">Ascolta</button>
|
||||
</div>
|
||||
</div>
|
||||
<audio tabindex="0" controls="" preload="none" style="width: 100%;" id="player-podcast" class="mt-1">
|
||||
<source id="source-podcast" src="" type="audio/ogg">
|
||||
</audio>
|
||||
<iframe class="w-100 mt-2" id="container-podcast" sandbox="allow-scripts allow-same-origin"></iframe>
|
||||
</p>
|
||||
</p>
|
||||
<hr>
|
||||
|
|
|
@ -73,8 +73,6 @@ $(document).ready(function() {
|
|||
$("#play-podcast").on("click", function(e) {
|
||||
var link = $("#select-podcast").val();
|
||||
|
||||
document.getElementById("source-podcast").src = link;
|
||||
document.getElementById("player-podcast").load();
|
||||
document.getElementById("player-podcast").play();
|
||||
$("#container-podcast").attr("src", link);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue