Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
data-networks-web
lab-exercises
Commits
92d5259d
Commit
92d5259d
authored
Nov 07, 2017
by
Sorrel Harriet
Browse files
ongoing work on lab 5 resources
parent
32b903b2
Changes
2
Hide whitespace changes
Inline
Side-by-side
lab-5/cgi-bin/splash.py
0 → 100644
View file @
92d5259d
import
random
images
=
[
"image_1"
,
"image_2"
,
"image_3"
,
"image_4"
]
i
=
random
.
randint
(
0
,
len
(
images
))
print
(
"""<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Hello Caflucks</title>
</head>
<body>
<h1>Welcome to Catflucks</h1>
<p>You are viewing {}</p>
</body>
</html>"""
.
format
(
images
[
i
]))
lab-5/index.html
View file @
92d5259d
<!DOCTYPE html>
<html
lang=
"en
g
"
>
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
>
<title>
Hello Catflucks
</title>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment