[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
[s4s] - Sh*t 4chan Says

Name
Spoiler?[]
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File[]
  • Please read the Rules and FAQ before posting.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: 1420238627879.png (19 KB, 676x707)
19 KB
19 KB PNG
guice go to this website and replace all the code with this new code

https://www.w3schools.com/tryit/tryit.asp?filename=tryhtml_hello

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Random Food Condition</title>
</head>
<body>
<h1>Random Food Condition Generator</h1>
<button id="generateBtn">Generate</button>
<p id="result">Click the button to see a random food condition!</p>

<script>
// Arrays
const conditions = [
"Fresh", "Ripe", "Overripe", "Rotten", "Spoiled", "Moldy", "Stale",
"Frozen", "Thawed", "Chilled", "Warm", "Hot", "Cold", "Raw", "Cooked",
"Burnt", "Fermented", "Dried", "Soft", "Tough"
];

const foods = [
"Apple", "Banana", "Bread", "Cheese", "Carrot", "Chicken", "Egg",
"Fish", "Lettuce", "Milk", "Orange", "Potato", "Rice", "Tomato",
"Yogurt", "Beef", "Pasta", "Strawberry", "Cucumber", "Butter"
];

// Function to generate random item from an array
function getRandomItem(array) {
const index = Math.floor(Math.random() * array.length);
return array[index];
}

// Button click event
const button = document.getElementById("generateBtn");
const result = document.getElementById("result");

button.addEventListener("click", () => {
const randomCondition = getRandomItem(conditions);
const randomFood = getRandomItem(foods);
result.textContent = `${randomCondition} ${randomFood}`;
});
</script>
</body>
</html>
>>
no
>>
File: OverripeMilk.jpg (121 KB, 467x357)
121 KB
121 KB JPG
>>12701077
Nice dubs
>>
Don't do this it installs propaganda



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.