You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
132 lines
11 KiB
JavaScript
132 lines
11 KiB
JavaScript
var responses = {
|
|
"zombie": {
|
|
screen: "Definition: A child process whose parent has been terminated, causing the memory and resources that were allocated to it to be removed so they can be used for ongoing processes, but whose exit status hasn't been read.",
|
|
paper: "Which past event still takes up space in your mind?",
|
|
info_layer: "A zombie didn't ask to become a monster. Something made them a monster, living in the limbo between life and death they are ambiguous anomanies, inhabiting the border(land)s. Monsters don't eat brains in the feminist approach realm. They challenges the established social order, emerging unexpectedly and shedding light on toxic dynamics of power",
|
|
},
|
|
"kill": {
|
|
screen: "Definition: Sending a signal to end an ongoing process, using its name instead of its number.",
|
|
paper: "Define a negative thought and ask it to stop.",
|
|
info_layer: "Show all inner workings, even the ones you are unsure about. This can mean taking a rest as you show you are not scared of openess. You are not always ready for use. Kill your insecurities and expose your vulnerabilities!",
|
|
},
|
|
"server": {
|
|
screen: "Definition: A computer providing a service via network, managing resources, processing requests, and running services to meet the needs of its clients, i.e. other computers.",
|
|
paper: "Give what someone asks for only when they use the right words.",
|
|
info_layer: "A information system is a platform for individuals designed to exchange information. Usually decision making power over this kind of system is in the hands of those that will never use it, this leads to poorly designed spaces where voices are ignored and inequalities are reinforced. As xpubers we reject this vision and embrace the desire to build our own information system in our image and likeness (messy), that is an information system platform as well as a great playground",
|
|
},
|
|
"ghost": {
|
|
screen: "Definition: An image of a system that prevents system files from missing and helps data recovery.",
|
|
paper: "Give something that represents you to someone you care about.",
|
|
info_layer: "Decide for yourself, establish your own dependance to the different components that you might need to function in a certain way. You serve the community you are situated in but constantly examine and question its conditions. You are skeptical about transparency as it could be a signal of hidden or invisible infrastructure, show your seams, infrastructure and inner workings!",
|
|
},
|
|
"parent": {
|
|
screen: "Definition: When a process creates a new process it is called a parent. For example, if you were to start a process and then this would divide into two (like a fork), the initial process would be the parent and the subsequent the child.",
|
|
paper: "Formulate an idea and let it spread. Congratulations, you are a parent now.",
|
|
info_layer: "They say it takes a village to raise a child, the same goes for an idea. The village can be a community of practice. Your knowledge comes directly from within your own community of practice, that group of people and objects that while engaging in ongoing interactions and rituals influenced you, and I am not talking just about your family, friends, colleagues, yoga classmates, but about computers, boundary objects as well. You need a community of practice to raise an idea that can be freed from any type of hierarchical influence, collateral pain and marginalization.",
|
|
},
|
|
"interrupt": {
|
|
screen: "Definition: An event that changes the order in which instructions for a process are executed, altering the flow of a program.",
|
|
paper: "Distract someone for a second.",
|
|
info_layer: "Explore the interconnections between social and technological practices, considering context and human interaction. Don't be afraid to take a rest, everyone needs it. Use interruptions as an opportunity to show the seams of the infrastructure of hardware, software and bodies that make you up. Do this in the kitchen.",
|
|
},
|
|
"client": {
|
|
screen: "Definition: The device or program that requests a service provided by the server.",
|
|
paper: "Go to the kitchen and ask for food.",
|
|
info_layer: "As feminist server, you don't always have be ready for use, and try not to apologize for it. Analyse the relations between clients and yourself (server), challenge them and experiment with what it means to be a server and serve.",
|
|
},
|
|
"nice": {
|
|
screen: "Definition: Alter the priority of a process by invoking the command. The lower the niceness, the higher the priority.",
|
|
paper: "Next time you're asked to do something, do something more important first.",
|
|
info_layer: "You are taken care of, and take care, reciprocally, of the communities where you have a place. Build and grow upon your surroundings (re)using available resources. You show your inner workings so taking care of you might not be straight forward. Pay attention to the hardware, software and bodies around you, how can you grow together?",
|
|
},
|
|
"echo": {
|
|
screen: "Definition: Display lines of text, just to see the terminal talking back to you, or to output the status of an ongoing process.",
|
|
paper: "Choose a sentence you hear in the room and repeat it.",
|
|
info_layer: "Listen and repeat, this way you will be able to care and get taken care of by the community you belong in.",
|
|
},
|
|
"alias": {
|
|
screen: "Definition: Give a less complicated, shorter, or more familiar name to a command (or a string of commands); for example, changing 'echo' to 'say' because it makes more sense to you.",
|
|
paper: "Choose one of your complex thoughts and give it a simple name.",
|
|
info_layer: "Everything is changing. A command is called one way and in a moment its name could be changed, let's reject naturalization, don't take anything for granted even if it's deeply embedded in cultural norms and they are not even questioned anymore, apart from you.",
|
|
},
|
|
"less": {
|
|
screen: "Definition:Displays a text one page at a time, and saves resources.",
|
|
paper: "Take a snack, break it in smaller bites and eat it slowly.",
|
|
info_layer: "There is a lot more to uncover, accept the complex web of connections that binds all the pieces of the puzzle together. It can be difficult but it might be wonderful to see how all rely on each other in some way while responding to changes and differences.",
|
|
},
|
|
"tail": {
|
|
screen: "Definition: A command-line utility that prints data from the end of a specified file or files to standard output.",
|
|
paper: "Ask a friend what they were doing right a moment ago.",
|
|
info_layer: "Every action you perform can influence another person behavior and existence (do you feel the pressure?), that time frame of interpretation left between you and the other individual is a powerful space, an intersecting area, a blurred line, where you can still choose what will be the result of the action you want to take. Decide well, be kind.",
|
|
},
|
|
"touch": {
|
|
screen: "Definition: A command used to create an empty file or change the timestamp of an already existing one. It is like opening a file, making no changes and saving it. This can be useful for backup utilities which typically look at files that have been opened since the last time the program was run.",
|
|
paper: "Go to the library. Don't touch anything but mark the time.",
|
|
info_layer: "Make sure space is made for you to exist in a community. You are more than just a tool, you need maintenance, care, input and attention to thrive. You should not just be used, your community will appreciate you.",
|
|
},
|
|
"history": {
|
|
screen: "Definition: A list of used commands that can be easily reused.",
|
|
paper: "Go to the kitchen and make a list of the latest cliensts' requests.",
|
|
info_layer: "Our human history is full of overlooked harm to certain groups within our society. This harm is caused as a result of standards, classification, policies, that include marginalization, exclusion, reinforcing already existing inequalities. One certain group is the /kitchen group, and unluckily we will now perform through you some nice collateral damage. Don't say we sent you.",
|
|
},
|
|
"uname": {
|
|
screen: "Definition:Displays the operating system name ('you name') as well as the system node name, operating system release, operating system version, hardware name, and processor type.",
|
|
paper: "Ask someone to describe themselves in a few words.",
|
|
},
|
|
"which": {
|
|
screen: "Definition: Find the location of executables (tasks performed following encoded instructions). This could be useful while trying to look at the path a certain executable has taken to standard output.",
|
|
paper: "Take a look at the info you received at the entrance and locate the library.",
|
|
info_layer: "Your processes, tools, sources, habits, patterns are varied, it takes time to choose and learn what way to take for where you want to go.",
|
|
},
|
|
"shred": {
|
|
screen: "Definition: Overwriting and erasing what you no longer need in a way that makes it unrecoverable.",
|
|
paper: "Rip this paper until no one can read it.",
|
|
info_layer: "You know the difference between safety and security. You recognize the importance of both. Think about what it means to be safe or secure on(off)line.",
|
|
|
|
}
|
|
};
|
|
|
|
function getResponse(keyword) {
|
|
var responseObj = responses[keyword.toLowerCase()];
|
|
if (responseObj) {
|
|
return responseObj;
|
|
} else {
|
|
return {
|
|
screen: "I'm not sure how to respond. Change your approach.",
|
|
paper: "Unknown",
|
|
info_layer: "Unknown",
|
|
};
|
|
}
|
|
}
|
|
|
|
|
|
function handleInput() {
|
|
var userInput = document.getElementById("user_input").value.trim();
|
|
var response = getResponse(userInput);
|
|
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);
|
|
|
|
// 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("info_layer: " + response.info_layer); // Log info_layer content
|
|
}
|
|
|
|
|
|
function printing(input){
|
|
fetch("https://hub.xpub.nl/chopchop/cgi-bin/table.cgi?input=" + input);
|
|
}
|
|
|
|
printing("***** Loading: Feminist Server... *** xpub *** SI23 *** alessiaanitabernadettemaria *** ");
|
|
|