Compare commits

..

No commits in common. '739f6e3468b6146759bc2f967471d7e32c03a2e8' and '50eabad03804f0087c2dd9004afb3a00f0cc7d22' have entirely different histories.

@ -116,9 +116,6 @@ body {
} }
.flip-card { .flip-card {
opacity: 0;
visibility: hidden;
transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
width: 30%; width: 30%;
align-items: center; align-items: center;
text-align: center; text-align: center;
@ -126,21 +123,17 @@ body {
margin-top: -90px; margin-top: -90px;
} }
.flip-card.visible {
opacity: 1;
visibility: visible;
}
.tendrils { .tendrils {
padding-top: 15px; padding-top: 15px;
width: 100%; width: 100%;
} }
.info_layer { .info-layer {
padding-top: 15px; padding-top: 15px;
padding-bottom: 20px; padding-bottom: 20px;
} }
.flip-card-inner { .flip-card-inner {
position: relative; position: relative;
width: 100%; width: 100%;
@ -166,14 +159,13 @@ body {
} }
.flip-card-front { .flip-card-front {
background-color: #bbb;
background-color: #d4d1d0;
border-radius: 30px; border-radius: 30px;
color: black; color: black;
} }
.flip-card-back { .flip-card-back {
background-color: #d4d1d0; background-color: #bbb;
color: black; color: black;
border-radius: 30px; border-radius: 30px;
transform: rotateY(180deg); transform: rotateY(180deg);

@ -94,35 +94,21 @@ function getResponse(keyword) {
return { return {
screen: "I'm not sure how to respond. Change your approach.", screen: "I'm not sure how to respond. Change your approach.",
paper: "Unknown", paper: "Unknown",
info_layer: "Unknown",
}; };
} }
} }
function handleInput() { function handleInput() {
var userInput = document.getElementById("user_input").value.trim(); var userInput = document.getElementById("user_input").value.trim();
var response = getResponse(userInput); var response = getResponse(userInput);
document.getElementById("output").innerText = response.screen; document.getElementById("output").innerText = response.screen;
document.querySelector(".info_layer").innerText = response.info_layer; // Update info_layer content
document.querySelector("h1").innerText = userInput; // Update h1 text to user input
document.querySelector("h1").className = "response-heading"; // Assign suitable class to h1
printing(response.paper); printing(response.paper);
// Toggle flip-card visibility
var flipCard = document.querySelector(".flip-card");
if (userInput) {
flipCard.classList.add("visible");
} else {
flipCard.classList.remove("visible");
}
console.log("Paper: " + userInput); console.log("Paper: " + userInput);
console.log("info_layer: " + response.info_layer); // Log info_layer content console.log("info_layer" + userInput);
} }
function printing(input){ function printing(input){
fetch("https://hub.xpub.nl/chopchop/cgi-bin/table.cgi?input=" + input); fetch("https://hub.xpub.nl/chopchop/cgi-bin/table.cgi?input=" + input);
} }

@ -41,11 +41,12 @@
<div class="flip-card-inner"> <div class="flip-card-inner">
<div class="flip-card-front"> <div class="flip-card-front">
<img class="tendrils" src="assets/img/tendrils.svg"></img> <img class="tendrils" src="assets/img/tendrils.svg"></img>
<h1></h1> <h2>monster</h2>
<p class="info-layer">a site of tension, ambiguity, anomaly that challenges the established social order. A moster doesn't fit, emerges unexpectedly shedding light on toxic dynamics of power and on the invisible suffering of those who inhabits the border(land)s, the "other".</p>
<img class="tendrils" src="assets/img/tendrils.svg"></img> <img class="tendrils" src="assets/img/tendrils.svg"></img>
</div> </div>
<div class="flip-card-back"> <div class="flip-card-back">
<p class="info_layer"></p> <h2>Back of the card</h2>
</div> </div>
</div> </div>
</div> </div>

Loading…
Cancel
Save