Spaces:
Sleeping
Sleeping
Update templates/index.html
Browse files- templates/index.html +55 -0
templates/index.html
CHANGED
|
@@ -1283,6 +1283,9 @@
|
|
| 1283 |
document.getElementById('analyticsPanel').style.display = 'block';
|
| 1284 |
document.getElementById('studyPlannerPanel').style.display = 'block';
|
| 1285 |
|
|
|
|
|
|
|
|
|
|
| 1286 |
// Load analytics and study plan
|
| 1287 |
loadAnalytics();
|
| 1288 |
loadCurrentStudyPlan();
|
|
@@ -1305,6 +1308,9 @@
|
|
| 1305 |
document.getElementById('analyticsPanel').style.display = 'none';
|
| 1306 |
document.getElementById('studyPlannerPanel').style.display = 'none';
|
| 1307 |
|
|
|
|
|
|
|
|
|
|
| 1308 |
currentUser = null;
|
| 1309 |
}
|
| 1310 |
|
|
@@ -1954,6 +1960,55 @@
|
|
| 1954 |
});
|
| 1955 |
</script>
|
| 1956 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1957 |
</body>
|
| 1958 |
</html>
|
| 1959 |
|
|
|
|
| 1283 |
document.getElementById('analyticsPanel').style.display = 'block';
|
| 1284 |
document.getElementById('studyPlannerPanel').style.display = 'block';
|
| 1285 |
|
| 1286 |
+
// Show footer user actions
|
| 1287 |
+
document.getElementById('footerUserActions').style.display = 'block';
|
| 1288 |
+
|
| 1289 |
// Load analytics and study plan
|
| 1290 |
loadAnalytics();
|
| 1291 |
loadCurrentStudyPlan();
|
|
|
|
| 1308 |
document.getElementById('analyticsPanel').style.display = 'none';
|
| 1309 |
document.getElementById('studyPlannerPanel').style.display = 'none';
|
| 1310 |
|
| 1311 |
+
// Hide footer user actions
|
| 1312 |
+
document.getElementById('footerUserActions').style.display = 'none';
|
| 1313 |
+
|
| 1314 |
currentUser = null;
|
| 1315 |
}
|
| 1316 |
|
|
|
|
| 1960 |
});
|
| 1961 |
</script>
|
| 1962 |
|
| 1963 |
+
<!-- Footer -->
|
| 1964 |
+
<footer class="mt-16 py-8 bg-gray-100 border-t border-gray-200">
|
| 1965 |
+
<div class="container mx-auto max-w-5xl px-4">
|
| 1966 |
+
<div class="flex flex-col md:flex-row justify-between items-center gap-4">
|
| 1967 |
+
<div class="text-sm text-gray-600">
|
| 1968 |
+
<p>© 2024 Dynamic English Study Studio - AI Learning Platform</p>
|
| 1969 |
+
<p class="text-xs text-gray-500 mt-1">Powered by AI for enhanced English learning</p>
|
| 1970 |
+
</div>
|
| 1971 |
+
|
| 1972 |
+
<div class="flex items-center gap-4">
|
| 1973 |
+
<!-- System Links -->
|
| 1974 |
+
<div class="flex items-center gap-2 text-sm">
|
| 1975 |
+
<span class="text-gray-500">System:</span>
|
| 1976 |
+
<a href="/admin" class="text-indigo-600 hover:text-indigo-800 font-medium" title="Admin Panel">
|
| 1977 |
+
π€ Admin
|
| 1978 |
+
</a>
|
| 1979 |
+
<span class="text-gray-300">|</span>
|
| 1980 |
+
<a href="/auth/check" class="text-green-600 hover:text-green-800 font-medium" title="System Status" target="_blank">
|
| 1981 |
+
βοΈ Status
|
| 1982 |
+
</a>
|
| 1983 |
+
<span class="text-gray-300">|</span>
|
| 1984 |
+
<a href="/proxy/7860" class="text-purple-600 hover:text-purple-800 font-medium" title="Gradio Dashboard" target="_blank">
|
| 1985 |
+
π Dashboard
|
| 1986 |
+
</a>
|
| 1987 |
+
</div>
|
| 1988 |
+
|
| 1989 |
+
<!-- Version Info -->
|
| 1990 |
+
<div class="text-xs text-gray-400 border-l border-gray-300 pl-4">
|
| 1991 |
+
<div>v2.0.0</div>
|
| 1992 |
+
<div>Flask + Gradio</div>
|
| 1993 |
+
</div>
|
| 1994 |
+
</div>
|
| 1995 |
+
</div>
|
| 1996 |
+
|
| 1997 |
+
<!-- Quick Actions for Logged Users -->
|
| 1998 |
+
<div id="footerUserActions" class="mt-4 pt-4 border-t border-gray-200" style="display: none;">
|
| 1999 |
+
<div class="flex flex-wrap justify-center gap-2 text-xs">
|
| 2000 |
+
<button onclick="loadAnalytics()" class="text-blue-600 hover:text-blue-800">π Refresh Analytics</button>
|
| 2001 |
+
<span class="text-gray-300">β’</span>
|
| 2002 |
+
<button onclick="showUserFlashcards()" class="text-green-600 hover:text-green-800">π Load Flashcards</button>
|
| 2003 |
+
<span class="text-gray-300">β’</span>
|
| 2004 |
+
<button onclick="generateStudyPlan()" class="text-purple-600 hover:text-purple-800">π― New Study Plan</button>
|
| 2005 |
+
<span class="text-gray-300">β’</span>
|
| 2006 |
+
<button onclick="showUserSettings()" class="text-gray-600 hover:text-gray-800">βοΈ Settings</button>
|
| 2007 |
+
</div>
|
| 2008 |
+
</div>
|
| 2009 |
+
</div>
|
| 2010 |
+
</footer>
|
| 2011 |
+
|
| 2012 |
</body>
|
| 2013 |
</html>
|
| 2014 |
|