2
0
Surplus_Up (2DU) 7 жил өмнө
parent
commit
124d02e5f4
3 өөрчлөгдсөн 18 нэмэгдсэн , 1 устгасан
  1. 5 1
      app.py
  2. 10 0
      route/easter_egg.py
  3. 3 0
      views/easter_egg.html

+ 5 - 1
app.py

@@ -8,7 +8,7 @@ for i_data in os.listdir("route"):
 
         exec("from route." + f_src + " import *")
 
-r_ver = 'v3.0.9-stable-07'
+r_ver = 'v3.1.0-master-01'
 c_ver = '400000'
 
 print('Version : ' + r_ver)
@@ -555,6 +555,10 @@ def api_raw(name = ''):
 def api_topic_sub(name = '', sub = '', time = ''):
     return api_topic_sub_2(conn, name, sub, time)
     
+@app.route('/views/easter_egg.html')
+def easter_egg():
+    return easter_egg_2(conn)
+
 @app.route('/views/<everything:name>')
 def views(name = None):
     return views_2(conn, name)

+ 10 - 0
route/easter_egg.py

@@ -0,0 +1,10 @@
+from .tool.func import *
+
+def easter_egg_2(conn):
+    curs = conn.cursor()
+
+    return easy_minify(flask.render_template(skin_check(), 
+        imp = ['easter_egg.html', wiki_set(), custom(), other2([0, 0])],
+        data = open('./views/easter_egg.html', 'r').read(),
+        menu = 0
+    ))

+ 3 - 0
views/easter_egg.html

@@ -0,0 +1,3 @@
+<iframe style="width: 100%; height: 500px;" src="https://jcw87.github.io/c2-sans-fight/"></iframe>
+<br>
+<a id="out_link" href="https://jcw87.github.io/c2-sans-fight/">https://jcw87.github.io/c2-sans-fight/</a>