Update various brand instances in code

This commit is contained in:
J. Ryan Stinnett 2020-07-13 17:32:17 +01:00
parent 0667ede7b7
commit ffab08bd60
9 changed files with 21 additions and 21 deletions

View file

@ -162,7 +162,7 @@ body {
</g>
</svg>
</span>
<p>Set up Riot on iOS or Android</p>
<p>Set up Element on iOS or Android</p>
</div>
<div class="mx_HomePage_col">
<div class="mx_HomePage_row">
@ -330,7 +330,7 @@ body {
<div class="mx_HomePage_row">
<div>
<h2>2: Configure your app</h2>
<a class="mx_Button" id="configure_riot_button" href="#">Configure</a>
<a class="mx_Button" id="configure_element_button" href="#">Configure</a>
<p class="mx_Subtext mx_SubtextTop">Tap the button above, or manually enable <em>Use custom server</em> and enter:</p>
<p class="mx_Subtext">Homeserver: <em id="hs_url"></em></p>
<p class="mx_Subtext" id="custom_is">Identity Server: <em id="is_url"></em></p>
@ -339,7 +339,7 @@ body {
</div>
<div class="mx_HomePage_row mx_Center mx_Spacer">
<p class="mx_Spacer">
<a id="back_to_riot_button" href="#" class="mx_FooterLink">
<a id="back_to_element_button" href="#" class="mx_FooterLink">
Go to Desktop Site
</a>
</p>

View file

@ -1,8 +1,8 @@
import {getVectorConfig} from '../getconfig';
function onBackToRiotClick() {
function onBackToElementClick() {
// Cookie should expire in 4 hours
document.cookie = 'riot_mobile_redirect_to_guide=false;path=/;max-age=14400';
document.cookie = 'element_mobile_redirect_to_guide=false;path=/;max-age=14400';
window.location.href = '../';
}
@ -10,7 +10,7 @@ function onBackToRiotClick() {
function renderConfigError(message) {
const contactMsg = "If this is unexpected, please contact your system administrator " +
"or technical support representative.";
message = `<h2>Error loading Riot</h2><p>${message}</p><p>${contactMsg}</p>`;
message = `<h2>Error loading Element</h2><p>${message}</p><p>${contactMsg}</p>`;
const toHide = document.getElementsByClassName("mx_HomePage_container");
const errorContainers = document.getElementsByClassName("mx_HomePage_errorContainer");
@ -27,7 +27,7 @@ function renderConfigError(message) {
}
async function initPage() {
document.getElementById('back_to_riot_button').onclick = onBackToRiotClick;
document.getElementById('back_to_element_button').onclick = onBackToElementClick;
let config = await getVectorConfig('..');
@ -92,7 +92,7 @@ async function initPage() {
if (isUrl && !isUrl.endsWith('/')) isUrl += '/';
if (hsUrl !== 'https://matrix.org/') {
document.getElementById('configure_riot_button').href =
document.getElementById('configure_element_button').href =
"https://app.element.io/config/config?hs_url=" + encodeURIComponent(hsUrl) +
"&is_url=" + encodeURIComponent(isUrl);
document.getElementById('step1_heading').innerHTML= '1: Install the app';