Name –Swapnil Dilip Navale
Roll – 307B037
Class – TE B
Code -
[Link]
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Basic To-Do List</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 40px;
}
h1 {
color: #333;
}
input[type="text"] {
padding: 8px;
width: 300px;
margin-right: 10px;
}
button {
padding: 8px 12px;
}
ul {
list-style: none;
padding: 0;
}
li {
margin: 8px 0;
}
[Link] {
text-decoration: line-through;
color: gray;
}
</style>
</head>
<body>
📝
<h1> To-Do List</h1>
<input type="text" id="taskInput" placeholder="Enter a new task">
<button onclick="addTask()">Add</button>
<ul id="taskList"></ul>
<script>
function addTask() {
const input = [Link]("taskInput");
const taskText = [Link]();
if (taskText === "") return;
const li = [Link]("li");
[Link] = taskText;
[Link] = () => [Link]("done");
❌
const deleteBtn = [Link]("button");
[Link] = " ";
[Link] = "10px";
[Link] = (e) => {
[Link]();
[Link]();
};
[Link](deleteBtn);
[Link]("taskList").appendChild(li);
[Link] = "";
}
</script>
</body>
</html>
[Link]
runtime: python310
entrypoint: gunicorn -b :$PORT main:app
instance_class: F1
automatic_scaling:
target_cpu_utilization: 0.65
min_instances: 1
max_instances: 2
handlers:
- url: /.*
script: auto
[Link]
from flask import Flask, render_template
app = Flask(__name__)
@[Link]('/')
def home():
return render_template('[Link]')
if __name__ == '__main__':
[Link](host='[Link]', port=8082)