v0.1.1 - Updated Delete, Create

Added editPost (Not yet made)
This commit is contained in:
Anders
2021-06-08 11:23:05 +02:00
parent e2aa419efa
commit 2c89fb79f6
6 changed files with 36 additions and 13 deletions
+1 -8
View File
@@ -44,13 +44,6 @@
<div class="col-md-12 h-100" style="border-radius: 4px">
<div class="blog-slider front home" id="front">
<div class="blog-slider__wrp swiper-wrapper" id="swiper-wrapper">
<!--<div class="blog-slider__item swiper-slide">
<div class="blog-slider__content">
<span class="blog-slider__code">26 December 2019</span>
<div class="blog-slider__title">Lorem Ipsum Dolor</div>
<div class="blog-slider__text">Lorem ipsum dolor sit amet consectetur, adipisicing elit. Recusandae voluptate repellendus magni illo ea animi? </div>
</div>
</div>-->
</div>
<div class="blog-slider__pagination"></div>
</div>
@@ -96,7 +89,7 @@
data.forEach(el =>
document.getElementById('swiper-wrapper').innerHTML += ('<div class="blog-slider__item swiper-slide">'+
'<div class="blog-slider__content">'+
'<span class="blog-slider__code">'+ el.created_at +'</span>'+
'<span class="blog-slider__code">'+ new Date(el.created_at).getDate() + '/' + (new Date(el.created_at).getMonth()+1) + '-' + new Date(el.created_at).getFullYear() +'</span>'+
'<div class="blog-slider__title">'+ el.title +'</div>'+
'<div class="blog-slider__text">'+ el.description +'</div>'+
'</div>'+