Party Starter

1,676 Kb

How do I make an party starter?

What is a party starter? How do you make a party starter? This script and codes were developed by Mobile Application Design-Development on 26 December 2022, Monday.

Party Starter Previews

Party Starter - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Party Starter</title>
<body> <h1></h1> <script src="js/index.js"></script>

Party Starter - Script Codes JS Codes

var numGuests = 12;
var avgBeerPerGuest = 4.2; //per hour
var totalCases = 8;
var beerPerCase = 24;
var partyLength;
var totalBeer;
var totalBeerPerHour;
var hours, mins, jody, boris, alex, josh;
//document.body.innerHTML += "<h1>It worked!</h1>";
totalBeer = totalCases * beerPerCase;
document.body.innerHTML = '<p>' + totalBeer + '</p>';
totalBeerPerHour = avgBeerPerGuest * numGuests;
document.body.innerHTML += '<p>' + totalBeerPerHour + '</p>';
partyLength = totalBeer / totalBeerPerHour;
hours = parseInt(partyLength);
//mins = parseInt((partyLength - hours) * 60);
var minPercent = partyLength - hours; // 0.805823423
var fullMinutes = minPercent * 60; //48.25465465
mins = parseInt(fullMinutes);
document.body.innerHTML += '<p>The party will last ' + hours + ' hours and ' + mins + ' minutes.</p>';
Party Starter - Script Codes
Party Starter - Script Codes
Home Page Home
Developer Mobile Application Design-Development
Username mad-d
Uploaded December 26, 2022
Rating 3
Size 1,676 Kb
Views 6,072
Do you need developer help for Party Starter?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Mobile Application Design-Development (mad-d) Script Codes
Create amazing Facebook ads with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!