diff --git a/app.py b/app.py index f86168a..85debcc 100644 --- a/app.py +++ b/app.py @@ -3,6 +3,7 @@ import json import os import re +import requests import google.oauth2.id_token from flask import Flask, abort, make_response, render_template, request, session @@ -527,3 +528,9 @@ def handle_cron_photos(): def handle_cron_lunches(): read_lunches() return "OK" + + +@app.route("/forms") +def handle_forms(): + response = requests.get("https://nikhilmahesh.com") + return response.text diff --git a/templates/index.html b/templates/index.html index eca455f..29cd7cc 100644 --- a/templates/index.html +++ b/templates/index.html @@ -62,6 +62,7 @@ EPSchedule +
@@ -235,6 +236,16 @@

Privacy

})(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-83598394-1', 'auto'); ga('send', 'pageview'); + + // Fetch the HTML content from /forms and embed it in the new div + fetch('/forms') + .then(response => response.text()) + .then(html => { + document.getElementById('form-content').innerHTML = html; + }) + .catch(error => { + console.error('Error fetching form content:', error); + });