We planned to upgrade GitLab and Mattermost to the latest version this Friday morning (early). You may experience some downtime!

Verified Commit 09380215 authored by Camil Staps's avatar Camil Staps 🚀

Fix HTML errors and warnings

parent 31e47fe1
......@@ -36,9 +36,9 @@ function toggle(toggler, open) {
continue;
if (typeof open == 'undefined')
icons[i].innerHTML = icons[i].innerHTML == '\u229e' ? '&#x229f' : '&#x229e';
icons[i].innerHTML = icons[i].innerHTML == '\u229e' ? '⊟' : '⊞';
else
icons[i].innerHTML = open ? '&#x229f' : '&#x229e';
icons[i].innerHTML = open ? '⊟' : '⊞';
}
}
......
......@@ -65,11 +65,11 @@ class Toc {
if ($child->isLeaf()) {
echo '<div class="browser-item module" id="doc-' . $child->link .
'" data-name="' . $child->link . '">' .
$child->title . '</span></div>';
$child->title . '</div>';
} else {
echo '<div class="browser-item directory toggle-container" id="doc-' . $child->link . '">' .
'<span class="toggler">' .
'<span class="toggle-icon">&#x229e</span>' .
'<span class="toggle-icon">&#x229e;</span>' .
'<span class="title">' . $child->title . '</span></span>';
$child->printTree();
echo '</div>';
......
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>Documentation browser</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="description" content="Cloogle is the unofficial Clean language search engine"/>
<meta name="keywords" content="Clean,Clean language,Concurrent Clean,search,functions,search engine,programming language,clean platform,iTasks,cloogle,hoogle"/>
<script src="../common.js" type="text/javascript" defer="defer"></script>
<script src="../browser.js" type="text/javascript" defer="defer"></script>
<script src="doc.js" type="text/javascript" defer="defer"></script>
<script src="../common.js" defer="defer"></script>
<script src="../browser.js" defer="defer"></script>
<script src="doc.js" defer="defer"></script>
<link rel="stylesheet" href="../common.css" type="text/css"/>
<style type="text/css">
<style>
#viewer {
padding: 10px;
}
......
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<!-- clean-cloogle/cloogle.org {{{COMMIT}}} -->
<title>Cloogle</title>
......@@ -7,9 +7,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="description" content="Cloogle is the unofficial Clean language search engine"/>
<meta name="keywords" content="Clean,Clean language,Concurrent Clean,search,functions,search engine,programming language,clean platform,iTasks,cloogle,hoogle"/>
<script src="clean.js/clean.js" type="text/javascript" defer="defer"></script>
<script src="common.js" type="text/javascript" defer="defer"></script>
<script src="api.js" type="text/javascript" defer="defer"></script>
<script src="clean.js/clean.js" defer="defer"></script>
<script src="common.js" defer="defer"></script>
<script src="api.js" defer="defer"></script>
<link rel="stylesheet" href="common.css" type="text/css"/>
<link rel="stylesheet" href="clean.js/clean.css" type="text/css"/>
<link rel="stylesheet" href="frontend.css" type="text/css"/>
......@@ -23,7 +23,7 @@
</div>
<div id="search">
<form id="search-form" action="#">
<input id="search-str" spellcheck="false" autocapitalize="none" autocorrect="off" autocomplete="off"/>
<input id="search-str" spellcheck="false" autocapitalize="none" autocomplete="off"/>
<button>Search</button><br/>
<ul id="searchlinks">
<li onclick="toggleAdvanced();this.classList.toggle('active');">Advanced</li>
......@@ -53,7 +53,7 @@
foreach ($groups as $group => $libs) {
echo '<div class="libraries-list">';
echo '<a class="libraries-heading" title="Toggle selection" href="javascript:toggleLibSelection(\'' . make_group_id($group) . '\')">' . $group . '</a>';
echo '<div clsas="libraries-list-content" id="' . make_group_id($group) . '">';
echo '<div class="libraries-list-content" id="' . make_group_id($group) . '">';
foreach ($libs as $lib) {
echo '<label><input type="checkbox" class="search-libs" checked="checked" value="' . $lib['name'] . '"/> ' . $lib['name'];
if (isset($lib['pattern_app']) && $lib['pattern_app'] == [['PWildcard']]) {
......
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>Library browser</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="description" content="Cloogle is the unofficial Clean language search engine"/>
<meta name="keywords" content="Clean,Clean language,Concurrent Clean,search,functions,search engine,programming language,clean platform,iTasks,cloogle,hoogle"/>
<script src="../common.js" type="text/javascript" defer="defer"></script>
<script src="../browser.js" type="text/javascript" defer="defer"></script>
<script src="view.js" type="text/javascript" defer="defer"></script>
<script src="../common.js" defer="defer"></script>
<script src="../browser.js" defer="defer"></script>
<script src="view.js" defer="defer"></script>
<link rel="stylesheet" href="../common.css" type="text/css"/>
<link rel="stylesheet" href="view.css" type="text/css"/>
</head>
......
......@@ -63,7 +63,7 @@ function makeBrowser($dir, $basemodule) {
foreach ($elems['dirs'] as $d) {
echo '<div class="browser-item directory toggle-container" data-name="' . $d . '">' .
'<span class="toggler">' .
'<span class="toggle-icon">&#x229e</span>' .
'<span class="toggle-icon">&#x229e;</span>' .
'<span class="title">' . $d . '</span></span>';
makeBrowser($dir . '/' . $d, $basemodule . $d . '.');
echo '</div>';
......@@ -85,7 +85,7 @@ foreach ($groups as $group => $libs) {
foreach ($libs as $lib) {
echo '<div class="browser-item directory toggle-container" data-name="' . $lib['name'] . '">' .
'<span class="toggler">' .
'<span class="toggle-icon">&#x229e</span>' .
'<span class="toggle-icon">&#x229e;</span>' .
'<span class="title">' . $lib['name'] . '</span>';
if (isset($lib['info_url'])) {
echo '<a class="more-info" href="' . $lib['info_url'] . '" target="_blank" title="More information" onclick="arguments[0].stopPropagation();">&#x2197;</a>';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment