8000 Added extra section; updated section10 to include improved acceptance… · ciguler/testing-python-apps@1c09997 · GitHub
Skip to content

Commit 1c09997

Browse files
committed
Added extra section; updated section10 to include improved acceptance test code.
1 parent 56d16b7 commit 1c09997

File tree

49 files changed

+400
-90
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+400
-90
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1+
starter_code.zip
12
.idea/
23
.DS_Store
34
__pycache__/
45
*.pyc
56
exports/
67
presentations/
78
videos/
9+
new_videos/
810
.vscode/
911
venv/
1012
testing-python-apps.txt
1113
theme.key
12-
data.db
14+
data.db

section10/video_code.zip

8.03 KB
Binary file not shown.
File renamed without changes.
File renamed without changes.

section9/video_code/templates/blog.html renamed to section10/video_code/templates/blog.html

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4+
<script>
5+
window.onload = function() {
6+
setTimeout(function() {
7+
document.getElementById('posts').style.display = 'block';
8+
}, 3000);
9+
};
410

11+
</script>
512
</head>
613
<body>
714
<h1>This is the blog page</h1>
@@ -10,9 +17,9 @@ <h1>This is the blog page</h1>
1017
<a href="{{ url_for('add_post') }}" class="nav-link" id="add-post-link">Create post</a>
1118

1219
{% if posts|length > 0 %}
13-
<ol>
20+
<ol id="posts" style="display: none">
1421
{% for post in posts %}
15-
<li><a href="{{ url_for('see_post', title=post['title']) }}">{{ post['title'] }}</a></li>
22+
<li class="post"><a href="{{ url_for('see_post', title=post['title']) }}" class="post-link">{{ post['title'] }}</a></li>
1623
{% endfor %}
1724
</ol>
1825
{% endif %}

0 commit comments

Comments
 (0)
0