Spaces:
Sleeping
Sleeping
english_header_init btn_js
Browse files
app.py
CHANGED
@@ -1960,65 +1960,49 @@ CSS = """
|
|
1960 |
}
|
1961 |
"""
|
1962 |
|
1963 |
-
|
1964 |
-
|
1965 |
-
document.getElementById("english_grapragh_practice_row").style.display = "block";
|
1966 |
document.getElementById("english_grapragh_evaluate_row").style.display = "none";
|
1967 |
document.getElementById("english_exam_practice_row").style.display = "none";
|
1968 |
document.getElementById("english_logs_row").style.display = "none";
|
1969 |
-
document.getElementById("english_grapragh_practice_button").classList.
|
1970 |
document.getElementById("english_grapragh_evaluate_button").classList.remove("primary");
|
1971 |
document.getElementById("english_exam_practice_tab_button").classList.remove("primary");
|
1972 |
document.getElementById("english_logs_tab_button").classList.remove("primary");
|
1973 |
-
|
1974 |
-
return true;
|
1975 |
-
}
|
1976 |
"""
|
1977 |
-
|
1978 |
-
|
1979 |
-
|
1980 |
-
document.getElementById("english_grapragh_practice_row").style.display = "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1981 |
document.getElementById("english_grapragh_evaluate_row").style.display = "block";
|
1982 |
-
document.getElementById("english_exam_practice_row").style.display = "none";
|
1983 |
-
document.getElementById("english_logs_row").style.display = "none";
|
1984 |
-
document.getElementById("english_grapragh_practice_button").classList.remove("primary");
|
1985 |
document.getElementById("english_grapragh_evaluate_button").classList.add("primary");
|
1986 |
-
document.getElementById("english_exam_practice_tab_button").classList.remove("primary");
|
1987 |
-
document.getElementById("english_logs_tab_button").classList.remove("primary");
|
1988 |
-
|
1989 |
return true;
|
1990 |
-
}
|
1991 |
"""
|
1992 |
-
|
1993 |
-
|
1994 |
-
|
1995 |
-
document.getElementById("english_grapragh_practice_row").style.display = "none";
|
1996 |
-
document.getElementById("english_grapragh_evaluate_row").style.display = "none";
|
1997 |
document.getElementById("english_exam_practice_row").style.display = "block";
|
1998 |
-
document.getElementById("english_logs_row").style.display = "none";
|
1999 |
-
document.getElementById("english_grapragh_practice_button").classList.remove("primary");
|
2000 |
-
document.getElementById("english_grapragh_evaluate_button").classList.remove("primary");
|
2001 |
document.getElementById("english_exam_practice_tab_button").classList.add("primary");
|
2002 |
-
document.getElementById("english_logs_tab_button").classList.remove("primary");
|
2003 |
-
|
2004 |
return true;
|
2005 |
-
}
|
2006 |
"""
|
2007 |
-
|
2008 |
-
|
2009 |
-
|
2010 |
-
document.getElementById("english_grapragh_practice_row").style.display = "none";
|
2011 |
-
document.getElementById("english_grapragh_evaluate_row").style.display = "none";
|
2012 |
-
document.getElementById("english_exam_practice_row").style.display = "none";
|
2013 |
document.getElementById("english_logs_row").style.display = "block";
|
2014 |
-
document.getElementById("english_grapragh_practice_button").classList.remove("primary");
|
2015 |
-
document.getElementById("english_grapragh_evaluate_button").classList.remove("primary");
|
2016 |
-
document.getElementById("english_exam_practice_tab_button").classList.remove("primary");
|
2017 |
document.getElementById("english_logs_tab_button").classList.add("primary");
|
2018 |
-
|
2019 |
return true;
|
2020 |
-
}
|
2021 |
"""
|
|
|
2022 |
THEME = gr.themes.Glass(
|
2023 |
primary_hue=gr.themes.colors.blue,
|
2024 |
secondary_hue=gr.themes.colors.orange,
|
|
|
1960 |
}
|
1961 |
"""
|
1962 |
|
1963 |
+
english_header_init_btn_js = """
|
1964 |
+
document.getElementById("english_grapragh_practice_row").style.display = "none";
|
|
|
1965 |
document.getElementById("english_grapragh_evaluate_row").style.display = "none";
|
1966 |
document.getElementById("english_exam_practice_row").style.display = "none";
|
1967 |
document.getElementById("english_logs_row").style.display = "none";
|
1968 |
+
document.getElementById("english_grapragh_practice_button").classList.remove("primary");
|
1969 |
document.getElementById("english_grapragh_evaluate_button").classList.remove("primary");
|
1970 |
document.getElementById("english_exam_practice_tab_button").classList.remove("primary");
|
1971 |
document.getElementById("english_logs_tab_button").classList.remove("primary");
|
|
|
|
|
|
|
1972 |
"""
|
1973 |
+
english_grapragh_practice_button_js = f"""
|
1974 |
+
function english_grapragh_practice_button_click() {{
|
1975 |
+
{english_header_init_btn_js}
|
1976 |
+
document.getElementById("english_grapragh_practice_row").style.display = "block";
|
1977 |
+
document.getElementById("english_grapragh_practice_button").classList.add("primary");
|
1978 |
+
return true;
|
1979 |
+
}}
|
1980 |
+
"""
|
1981 |
+
english_grapragh_evaluate_button_js = f"""
|
1982 |
+
function english_grapragh_evaluate_button_click() {{
|
1983 |
+
{english_header_init_btn_js}
|
1984 |
document.getElementById("english_grapragh_evaluate_row").style.display = "block";
|
|
|
|
|
|
|
1985 |
document.getElementById("english_grapragh_evaluate_button").classList.add("primary");
|
|
|
|
|
|
|
1986 |
return true;
|
1987 |
+
}}
|
1988 |
"""
|
1989 |
+
english_exam_practice_tab_button_js = f"""
|
1990 |
+
function english_exam_practice_tab_button_click() {{
|
1991 |
+
{english_header_init_btn_js}
|
|
|
|
|
1992 |
document.getElementById("english_exam_practice_row").style.display = "block";
|
|
|
|
|
|
|
1993 |
document.getElementById("english_exam_practice_tab_button").classList.add("primary");
|
|
|
|
|
1994 |
return true;
|
1995 |
+
}}
|
1996 |
"""
|
1997 |
+
english_logs_tab_button_js = f"""
|
1998 |
+
function english_logs_tab_button_click() {{
|
1999 |
+
{english_header_init_btn_js}
|
|
|
|
|
|
|
2000 |
document.getElementById("english_logs_row").style.display = "block";
|
|
|
|
|
|
|
2001 |
document.getElementById("english_logs_tab_button").classList.add("primary");
|
|
|
2002 |
return true;
|
2003 |
+
}}
|
2004 |
"""
|
2005 |
+
|
2006 |
THEME = gr.themes.Glass(
|
2007 |
primary_hue=gr.themes.colors.blue,
|
2008 |
secondary_hue=gr.themes.colors.orange,
|