1
0
Fork 1

SEO improvements

pull/29/head
gravel 3 years ago
parent dfd2d463af
commit 3fdd0b7325
Signed by: gravel
SSH Key Fingerprint: SHA256:p4HP49CCk4YQMkJpWJ09L8peEPQWjERtdCRAFxPfbOY

@ -11,7 +11,8 @@
global $TABLE_COLUMNS;
$column = $TABLE_COLUMNS[$colno];
if (!column_sortable($column['id'])) return "";
return " onclick='sortTable($colno)' title='Click to sort this column'";
$name = $column['name'];
return " onclick='sortTable($colno)' title='Click to sort by $name'";
}
$TABLE_COLUMNS = [
@ -88,8 +89,8 @@
</td>
<td class="td_join_url">
<div class="join_url_container" data-url="<?=$room->join_link?>">
<a class="join_url show-from-w5" title="<?=$room->join_link?>"
><?=truncate($room->join_link, 32)?></a>
<span class="join_url show-from-w5" title="<?=$room->join_link?>"
><?=truncate($room->join_link, 32)?></span>
<a class="noscript" href="<?=$room->join_link?>"
>Copy link</a>
</div>

@ -16,6 +16,11 @@
<link rel="stylesheet" href="styles2.css">
<script type="module" src="main.js"></script>
<title>Self-updating list of active Session communities</title>
<meta name="description" content="
Directory of Session Open Groups — public chatrooms within Session Messenger.
Copy these Communities into the Session app
and talk anonymously about Privacy, Security, or Cryptocurrency.
">
</head>
<body onload="onLoad(<?php echo $timestamp ?>)">
<header>
@ -65,8 +70,13 @@
only available with JS enabled.
</p>
<p>
<label for="toggle-show-room-ids" class="clickable anchorstyle">
Toggle room identifier display
<label
for="toggle-show-room-ids"
class="clickable anchorstyle"
tabindex="0"
title="Shows a column with community identifiers
for developers or language data contributors.">
Toggle room identifier display
</label>
</p>
<nav>

@ -1,6 +1,7 @@
<?php
include_once "+getenv.php";
$instruction_files = glob("+instructions/*.txt");
function filename($file) { return pathinfo($file)['filename']; }
?>
<!DOCTYPE html>
<html>
@ -16,6 +17,14 @@
}
<?php endforeach; ?>
</style>
<meta name="description" content="
Discover how to use the sessioncommunities.online website
to help you join Session Open Groups; available in <?php
// Print languages instructions are available in.
$languages = array_map('filename', array_slice($instruction_files, 0, 10));
echo(join(", ", $languages));
?>. In short: Use the Copy button or scan the QR code!
">
</head>
<body>
<header>
@ -35,7 +44,7 @@
<?=
// Name of the language
// Can be later parsed from i.e. first line of file
pathinfo($file)['filename']
filename($file);
?>
</label>
<?php endforeach; ?>