Professional Documents
Culture Documents
php file
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Birthday Girl/Boy</title> <!-- Can edit birthday title and it will become the domain for the
url link -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jI
W3" crossorigin="anonymous">
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wrapper">
<div id="page-wrap">
<form class='post-form' action='' method='post'>
<div class="form-group">
<label class="col-md-3 control label">Insert your full name: </label> <!-- Can edit the insert
bla bla name -->
<input type="text" name="teka" placeholder="e.g: Rokiah binti Ali" class="form-control"
value=""></input> <!-- Can edit the rokiah binti ali -->
|</div>
<div>
<input class="submit" type="submit" name="submit" value="Submit"></input>
<br><br>
<a href="display.php" class="btn btn-success" type="submit">Bila saya suruh tekan baru
awak tekan butang ni!</a> <!-- Can edit bila saya suruh bla bla ni! -->
</div>
</form>
<?php
if (isset($_POST['submit'])) {
$teka = $_POST['teka'];
if ($teka == "Your birthday girl/boy name"){ //Insert your birthda girl/boy name here to give
🤩
access to them only
🤔
echo "<script>alert ('Hye Name! ')</script>"; //Can edit this one
🧐
echo "<script>alert ('Text text text ')</script>"; //Can edit this one
echo "<script>alert ('Text text text ')</script>"; //Can edit this one
😝
echo "<script>alert ('Text text text ')</script>"; //Can edit this one
🧐
echo "<script>alert ('Text text text')</script>"; //Can edit this one
🥰
echo "<script>alert ('Text text text ')</script>"; //Can edit this one
echo "<script>alert ('Text text text ')</script>"; //Can edit this one
echo "<script>alert ('Your warm wishes')</script>"; //Can edit this one
}
</div>
</div>
</body>
</html>
Display.php file
<html>
<body>
<canvas id="confetti"></canvas>
<script src="confetti.js"></script>
<div id="header">
<h1>HAPPY BIRTHDAY YANG KE-!</h1> <!-- Can edit this heading 1-->
<h2>Wishes <3</h2> <!-- Can edit this heading 2 -->
<style>
#header {
text-align: center;
background-color: #E0AB98;
padding: 30px;
}
#header h1 {
color: #fff;
font-size: 40px;
font-style: italic;
font-weight: 700;
text-transform: uppercase;
margin: 10;
}
#header h2 {
color: black;
font-size: 20px;
font-style: normal;
font-weight: 500;
text-transform: normal;
margin: 0;
}
</style>
</div>
<br>
<img src="https://drive.google.com/uc?id=1mK0g_94Nf1IOZgEzHWyRjjiZlm-ke"
class="center"> <!-- If use the google image can just insert the google image link here https://
bla bla, but if u want to insery ur own picture, need to upload at google drive first and use this
domain link https://drive.google.com/uc?id=put link google drive here-->
<style>
.center {
display: block;
margin-left: auto;
margin-right: auto;
width: 50%;
}
</style>
<?php
echo '<body style="background-color:pink">'; // Can change the colour to pink or blue or any
hex code color
?>
Style.css file
body {
font: 16px arial;
margin: 0;
padding: 0;
background: #F4C2C2
}
#header {
text-align: center;
background-color: #E0AB98;
padding: 30px;
}
#header h1 {
color: #fff;
font-size: 40px;
font-style: italic;
font-weight: 700;
text-transform: uppercase;
margin: 10;
}
#wrapper {
width: 500px;
margin: 50px auto 0;
background-color: #fff;
}
#page-wrap {
padding: 25px;
min-height: 100px;
}
#page-wrap .post-form {
width: 100%;
padding: 50px;
margin: 0 auto;
background-color: #F8E4DF
border-radius: 15px;
}
Confetti.js file
function randomColor () {
let colors = ['#f00', '#0f0', '#00f', '#0ff', '#f0f', '#ff0'];
return colors[Math.floor(Math.random() * colors.length)];
}
function update () {
let now = Date.now(),
dt = now - lastUpdateTime;
lastUpdateTime = now;
setTimeout(update, 1);
}
function draw () {
ctx.clearRect(0, 0, canvas.width, canvas.height);
pieces.forEach(function (p) {
ctx.save();
ctx.fillStyle = p.color;
ctx.restore();
});
requestAnimationFrame(draw);
}
update();
draw();