From bc8f3175dcfe770f6230ad1f8a99b8d6cb135377 Mon Sep 17 00:00:00 2001 From: "cn.yimian.xyz" Date: Sun, 6 Sep 2020 11:22:48 +0800 Subject: [PATCH] lan --- index.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/index.html b/index.html index 863bb25..8cb6346 100644 --- a/index.html +++ b/index.html @@ -23,6 +23,7 @@

Email:

Tel:

Group:

+

Language:

@@ -52,6 +53,7 @@ $('#tel').html(session.get('tel')); $('#email').html(session.get('email')); $('#group').html(session.get('group')); + $('#lang').html(((session.get('lang'))?atob(session.get('lang')):'')); $('#update').show(); $('#logout').show(); }); @@ -81,6 +83,12 @@ instance.hide({ transitionOut: 'fadeOut' }, toast, 'button'); window.location.href = 'https://login.yimian.xyz/?require=email&from=https://user.yimian.xyz/'; }, true], + ['', function (instance, toast) { + instance.hide({ transitionOut: 'fadeOut' }, toast, 'button'); + session.del('lang'); + session.del('nolang'); + $('#lang').html(''); + }, true], ['', function (instance, toast) { instance.hide({ transitionOut: 'fadeOut' }, toast, 'button'); }, true],