diff --git a/stage1/Zhangruihan/requirements.txt b/stage1/Zhangruihan/requirements.txt new file mode 100644 index 0000000..2581d33 --- /dev/null +++ b/stage1/Zhangruihan/requirements.txt @@ -0,0 +1,7 @@ +click==6.6 +itsdangerous==0.24 +Jinja2==2.8 +MarkupSafe==0.23 +requests==2.11.1 +virtualenv==15.1.0 +Werkzeug==0.11.11 diff --git a/stage1/Zhangruihan/static/hust.jpg b/stage1/Zhangruihan/static/hust.jpg new file mode 100644 index 0000000..cf9f0d3 Binary files /dev/null and b/stage1/Zhangruihan/static/hust.jpg differ diff --git a/stage1/Zhangruihan/static/plus.css b/stage1/Zhangruihan/static/plus.css new file mode 100644 index 0000000..881811e --- /dev/null +++ b/stage1/Zhangruihan/static/plus.css @@ -0,0 +1 @@ +p {font-size:300%;color:red;} \ No newline at end of file diff --git a/stage1/Zhangruihan/static/step2.js b/stage1/Zhangruihan/static/step2.js new file mode 100644 index 0000000..7275160 --- /dev/null +++ b/stage1/Zhangruihan/static/step2.js @@ -0,0 +1,5 @@ +document.getElementById("target").onclick=function(){click()}; +function click() +{ +alert("hello dalao"); +} \ No newline at end of file diff --git a/stage1/Zhangruihan/task.py b/stage1/Zhangruihan/task.py new file mode 100644 index 0000000..dc77018 --- /dev/null +++ b/stage1/Zhangruihan/task.py @@ -0,0 +1,19 @@ +from flask import Flask,render_template +app = Flask(__name__) + +@app.route('/step1') +def step1(): + return 'Hello, World!' + +@app.route('/step2') +def step2(): + return render_template('hello_world.html') + +@app.route('/step3/
hello world
+
+
+
+
+
\ No newline at end of file
diff --git a/stage1/Zhangruihan/templates/step3.html b/stage1/Zhangruihan/templates/step3.html
new file mode 100644
index 0000000..7efdc41
--- /dev/null
+++ b/stage1/Zhangruihan/templates/step3.html
@@ -0,0 +1,20 @@
+{% extends "base.html" %}
+
+{% block step3_hello %}
+Hello, {{name}}! You are {{title}}.
+{% endblock %} + +{% block step3_other %} +{% for rank in list %} + {% if rank==title %} +