mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-03-30 20:45:49 +00:00
website: add link to old home page to menu
This commit is contained in:
@@ -312,5 +312,6 @@
|
||||
"messengers-comparison-section-list-point-3": "It appears that the usage of cryptographic signatures compromises repudiation (deniability), but it needs to be clarified.",
|
||||
"messengers-comparison-section-list-point-4": "Multi-device implementation compromises post-compromise security of Double Ratchet",
|
||||
"messengers-comparison-section-list-point-5": "2-factor key exchange is optional via security code verification.",
|
||||
"messengers-comparison-section-list-point-6": "Post-quantum key agreement is \"sparse\" — it protects only some of the ratchet steps."
|
||||
"messengers-comparison-section-list-point-6": "Post-quantum key agreement is \"sparse\" — it protects only some of the ratchet steps.",
|
||||
"navbar-old-site": "Old site"
|
||||
}
|
||||
@@ -97,6 +97,12 @@
|
||||
target="_blank">SimpleXMQ
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg>
|
||||
</a></li>
|
||||
<hr>
|
||||
<li>
|
||||
<a href="/old" class="site-switch-btn">
|
||||
<p>{{ 'navbar-old-site' | i18n({}, lang) }}</p>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
@@ -153,7 +159,7 @@
|
||||
{% for language in languages.languages %}
|
||||
{% if language.label == supportedLang %}
|
||||
<li>
|
||||
<a href="{% completeRoute {url: page.url, lang: language.label} %}" class="flag-anchor">
|
||||
<a href="{% completeRoute {url: page.url, lang: language.label} %}">
|
||||
<p>{{ language.name }}</p>
|
||||
</a>
|
||||
</li>
|
||||
@@ -164,7 +170,7 @@
|
||||
{% for language in languages.languages %}
|
||||
{% if language.enabled and (language.home or (page.url != '/' and page.url != '/' + lang + '/')) %}
|
||||
<li>
|
||||
<a href="{% completeRoute {url: page.url, lang: language.label} %}" class="flag-anchor">
|
||||
<a href="{% completeRoute {url: page.url, lang: language.label} %}">
|
||||
<p>{{ language.name }}</p>
|
||||
</a>
|
||||
</li>
|
||||
@@ -205,41 +211,40 @@ const userTheme = localStorage.getItem('theme');
|
||||
const systemTheme = window.matchMedia('(prefers-color-scheme: dark)').matches;
|
||||
const prismThemeLink = document.getElementById('prism-theme')
|
||||
|
||||
const iconToggle = () => {
|
||||
function iconToggle () {
|
||||
sunIcon.classList.toggle('hidden');
|
||||
moonIcon.classList.toggle('hidden');
|
||||
}
|
||||
|
||||
const themeCheck = () => {
|
||||
if(userTheme === 'dark' || (!userTheme && systemTheme)){
|
||||
function themeCheck() {
|
||||
if (userTheme === 'dark' || (!userTheme && systemTheme)) {
|
||||
document.documentElement.classList.add('dark');
|
||||
moonIcon.classList.add('hidden');
|
||||
if(prismThemeLink){
|
||||
if (prismThemeLink) {
|
||||
prismThemeLink.setAttribute('href','/css/prism-dark.min.css')
|
||||
}
|
||||
}
|
||||
else{
|
||||
sunIcon.classList.add('hidden');
|
||||
if(prismThemeLink){
|
||||
if (prismThemeLink) {
|
||||
prismThemeLink.setAttribute('href','/css/prism-light.min.css')
|
||||
}
|
||||
}
|
||||
}
|
||||
themeCheck();
|
||||
|
||||
const themeSwitch = () => {
|
||||
if(document.documentElement.classList.contains('dark')){
|
||||
function themeSwitch () {
|
||||
if (document.documentElement.classList.contains('dark')) {
|
||||
document.documentElement.classList.remove('dark');
|
||||
localStorage.setItem('theme','light');
|
||||
localStorage.setItem('theme', 'light');
|
||||
if(prismThemeLink){
|
||||
prismThemeLink.setAttribute('href','/css/prism-light.min.css')
|
||||
}
|
||||
iconToggle();
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
document.documentElement.classList.add('dark');
|
||||
localStorage.setItem('theme','dark');
|
||||
if(prismThemeLink){
|
||||
localStorage.setItem('theme', 'dark');
|
||||
if (prismThemeLink) {
|
||||
prismThemeLink.setAttribute('href','/css/prism-dark.min.css')
|
||||
}
|
||||
iconToggle();
|
||||
|
||||
Reference in New Issue
Block a user