Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -1276,6 +1276,7 @@ article.post-card.post.tag-type.tag-words:first-child .post-card-image-link img
margin-top: 0;
}

#loadMore,
.loadmore a {
color: #D14962;
font-size: 1.125rem;
Expand Down Expand Up @@ -1732,10 +1733,10 @@ article.post-card.post.tag-type.tag-words:first-child .post-card-image-link img
}

#loadMore{
width: 120px;
width: auto;
padding: 8px 10px;
background-color: #ededed;
color: #111112;
background-color: transparent;
font-family: 'knockouthtf51-middleweight';
text-align: center;
margin: 20px auto 50px;
-webkit-transition: all .3s ease;
Expand All @@ -1746,10 +1747,10 @@ article.post-card.post.tag-type.tag-words:first-child .post-card-image-link img
display: none;
}

.loadmore a:hover,
#loadMore:hover,
.paradoxes-list .item .link button:hover{
background-color: #D14962;
color: #FFFFFF;
opacity: .7;
}

.paradoxes-list .item .link button:active,
Expand Down Expand Up @@ -1823,8 +1824,8 @@ article.post-card.post.tag-type.tag-words:first-child .post-card-image-link img
}


.paradoxes-list .item:not(.Channel):before,
.paradoxes-list .item:not(.Channel):after{
.paradoxes-list .item:not(.Block):before,
.paradoxes-list .item:not(.Block):after{
content: "";
width: 100%;
height: 100%;
Expand All @@ -1839,7 +1840,7 @@ article.post-card.post.tag-type.tag-words:first-child .post-card-image-link img
border-radius: 6.68px;
}

.paradoxes-list .item:not(.Channel):before{
.paradoxes-list .item:not(.Block):before{
transform: rotate(10.25deg);
}

Expand All @@ -1862,6 +1863,8 @@ article.post-card.post.tag-type.tag-words:first-child .post-card-image-link img
font-size: 14px;
color: rgba(16, 17, 17, 0.8);
text-align: center;
font-family: 'knockouthtf51-middleweight';
font-size: 14px;
}


Expand Down
21 changes: 12 additions & 9 deletions assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,17 @@
let link = item.source ? item.source.url : '';
let className = item.base_class;

// var original = title;
// var convertedTitle = original.substr(original.indexOf(" ") + 1); // removing first word from string

listWrappper.append(`
<div class="item ${className}">
${img ? `<img src="${img}">` : ''}
${className === "Channel" ? `<h3>${title}</h3>` : ''}
<h6>${user}</h6>
${item.source ? `<a class="link" href="${link}">
<button>Connect →</button>
</a>` : ''}
<a class="link" target="_blank" href="https://www.are.na/block/9269117"> <button>Connect →</button></a>
</div>
`)
`);
})

}
Expand Down Expand Up @@ -128,11 +129,13 @@ window.addEventListener("DOMContentLoaded", function () {

// handle the form submission event

form.addEventListener("submit", function (ev) {
ev.preventDefault();
var data = new FormData(form);
ajax(form.method, form.action, data, success, error);
});
if(form){
form.addEventListener("submit", function (ev) {
ev.preventDefault();
var data = new FormData(form);
ajax(form.method, form.action, data, success, error);
});
}
});

// helper function for sending an AJAX request
Expand Down