commit
This commit is contained in:
+3
-5
@@ -215,14 +215,12 @@
|
|||||||
const podcastDiv = document.getElementById("podcast-list");
|
const podcastDiv = document.getElementById("podcast-list");
|
||||||
|
|
||||||
var lines = data.split('\n');
|
var lines = data.split('\n');
|
||||||
for(var i = 0;i < lines.length;i++){
|
for (var i = 0;i < lines.length;i++) {
|
||||||
var podcastInfo = lines[i].split(';');
|
let podcastInfo = lines[i].split(';');
|
||||||
const podcastTitle = document.createTextNode(podcastInfo[0]);
|
|
||||||
|
|
||||||
const node = document.createElement('div');
|
const node = document.createElement('div');
|
||||||
node.classList.add('col-sm-12', 'col-lg-6', 'col-xl-4', 'my-2');
|
node.classList.add('col-sm-12', 'col-lg-6', 'col-xl-4', 'my-2');
|
||||||
node.innerHtml = "I have changed!";
|
node.innerHTML = '<div class="card"><div class="card-body"><h5 class="card-title">' + podcastInfo[0] + '</h5><p class="card-text">' + podcastInfo[1] + '</p><div class="text-center"><a href="' + podcastInfo[2] + '" class="btn btn-primary">Download</a></div></div></div>';
|
||||||
//'<div class="card"><div class="card-body"><h5 class="card-title">Thema</h5><p class="card-text">Beschreibung vom tollen Podcast</p><div class="text-center"><a href="#" class="btn btn-primary">Download</a></div></div></div>';
|
|
||||||
|
|
||||||
//node.appendChild(podcastTitle);
|
//node.appendChild(podcastTitle);
|
||||||
podcastDiv.appendChild(node);
|
podcastDiv.appendChild(node);
|
||||||
|
|||||||
Reference in New Issue
Block a user