Part 7 Prototype Modules Codes
Part 7 Prototype Modules Codes
Part 7 Prototype Modules Codes
Python:
app = Flask(__name__)
@app.route('/')
def index():
return render_template('index.html')
@app.route('/upload', methods=['POST'])
def upload():
urls = request.form.get('urls').split('\n')
if __name__ == '__main__':
app.run(debug=True)
HTML:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
<div class="container">
<button type="submit">Upload</button>
</form>
</div>
</body>
</html>
CSS:
/* CSS (styles.css) */
.container {
max-width: 600px;
margin: 0 auto;
padding: 20px;
}
textarea {
width: 100%;
margin-bottom: 10px;
button {
background-color: #007bff;
color: #fff;
border: none;
cursor: pointer;
button:hover {
background-color: #0056b3;
HTML Code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
<div class="container">
</div>
<script src="script.js"></script>
</body>
</html>
CSS Code
.container {
max-width: 600px;
margin: 0 auto;
padding: 20px;
button {
background-color: #007bff;
color: #fff;
border: none;
cursor: pointer;
button:hover {
background-color: #0056b3;
Javascript
document.getElementById('runScriptButton').addEventListener('click', function() {
});