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) { ...@@ -36,9 +36,9 @@ function toggle(toggler, open) {
continue; continue;
if (typeof open == 'undefined') if (typeof open == 'undefined')
icons[i].innerHTML = icons[i].innerHTML == '\u229e' ? '&#x229f' : '&#x229e'; icons[i].innerHTML = icons[i].innerHTML == '\u229e' ? '⊟' : '⊞';
else else
icons[i].innerHTML = open ? '&#x229f' : '&#x229e'; icons[i].innerHTML = open ? '⊟' : '⊞';
} }
} }
......
...@@ -65,11 +65,11 @@ class Toc { ...@@ -65,11 +65,11 @@ class Toc {
if ($child->isLeaf()) { if ($child->isLeaf()) {
echo '<div class="browser-item module" id="doc-' . $child->link . echo '<div class="browser-item module" id="doc-' . $child->link .
'" data-name="' . $child->link . '">' . '" data-name="' . $child->link . '">' .
$child->title . '</span></div>'; $child->title . '</div>';
} else { } else {
echo '<div class="browser-item directory toggle-container" id="doc-' . $child->link . '">' . echo '<div class="browser-item directory toggle-container" id="doc-' . $child->link . '">' .
'<span class="toggler">' . '<span class="toggler">' .
'<span class="toggle-icon">&#x229e</span>' . '<span class="toggle-icon">&#x229e;</span>' .
'<span class="title">' . $child->title . '</span></span>'; '<span class="title">' . $child->title . '</span></span>';
$child->printTree(); $child->printTree();
echo '</div>'; echo '</div>';
......
<!DOCTYPE html> <!DOCTYPE html>
<html> <html lang="en">
<head> <head>
<title>Documentation browser</title> <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="viewport" content="width=device-width, initial-scale=1"/>
<meta name="description" content="Cloogle is the unofficial Clean language search engine"/> <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"/> <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="../common.js" defer="defer"></script>
<script src="../browser.js" type="text/javascript" defer="defer"></script> <script src="../browser.js" defer="defer"></script>
<script src="doc.js" type="text/javascript" defer="defer"></script> <script src="doc.js" defer="defer"></script>
<link rel="stylesheet" href="../common.css" type="text/css"/> <link rel="stylesheet" href="../common.css" type="text/css"/>
<style type="text/css"> <style>
#viewer { #viewer {
padding: 10px; padding: 10px;
} }
......
<!DOCTYPE html> <!DOCTYPE html>
<html> <html lang="en">
<head> <head>
<!-- clean-cloogle/cloogle.org {{{COMMIT}}} --> <!-- clean-cloogle/cloogle.org {{{COMMIT}}} -->
<title>Cloogle</title> <title>Cloogle</title>
...@@ -7,9 +7,9 @@ ...@@ -7,9 +7,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1"/> <meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="description" content="Cloogle is the unofficial Clean language search engine"/> <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"/> <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="clean.js/clean.js" defer="defer"></script>
<script src="common.js" type="text/javascript" defer="defer"></script> <script src="common.js" defer="defer"></script>
<script src="api.js" type="text/javascript" defer="defer"></script> <script src="api.js" defer="defer"></script>
<link rel="stylesheet" href="common.css" type="text/css"/> <link rel="stylesheet" href="common.css" type="text/css"/>
<link rel="stylesheet" href="clean.js/clean.css" type="text/css"/> <link rel="stylesheet" href="clean.js/clean.css" type="text/css"/>
<link rel="stylesheet" href="frontend.css" type="text/css"/> <link rel="stylesheet" href="frontend.css" type="text/css"/>
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
</div> </div>
<div id="search"> <div id="search">
<form id="search-form" action="#"> <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/> <button>Search</button><br/>
<ul id="searchlinks"> <ul id="searchlinks">
<li onclick="toggleAdvanced();this.classList.toggle('active');">Advanced</li> <li onclick="toggleAdvanced();this.classList.toggle('active');">Advanced</li>
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
foreach ($groups as $group => $libs) { foreach ($groups as $group => $libs) {
echo '<div class="libraries-list">'; echo '<div class="libraries-list">';
echo '<a class="libraries-heading" title="Toggle selection" href="javascript:toggleLibSelection(\'' . make_group_id($group) . '\')">' . $group . '</a>'; 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) { foreach ($libs as $lib) {
echo '<label><input type="checkbox" class="search-libs" checked="checked" value="' . $lib['name'] . '"/> ' . $lib['name']; echo '<label><input type="checkbox" class="search-libs" checked="checked" value="' . $lib['name'] . '"/> ' . $lib['name'];
if (isset($lib['pattern_app']) && $lib['pattern_app'] == [['PWildcard']]) { if (isset($lib['pattern_app']) && $lib['pattern_app'] == [['PWildcard']]) {
......
<!DOCTYPE html> <!DOCTYPE html>
<html> <html lang="en">
<head> <head>
<title>Library browser</title> <title>Library browser</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/> <meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="description" content="Cloogle is the unofficial Clean language search engine"/> <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"/> <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="../common.js" defer="defer"></script>
<script src="../browser.js" type="text/javascript" defer="defer"></script> <script src="../browser.js" defer="defer"></script>
<script src="view.js" type="text/javascript" defer="defer"></script> <script src="view.js" defer="defer"></script>
<link rel="stylesheet" href="../common.css" type="text/css"/> <link rel="stylesheet" href="../common.css" type="text/css"/>
<link rel="stylesheet" href="view.css" type="text/css"/> <link rel="stylesheet" href="view.css" type="text/css"/>
</head> </head>
......
...@@ -63,7 +63,7 @@ function makeBrowser($dir, $basemodule) { ...@@ -63,7 +63,7 @@ function makeBrowser($dir, $basemodule) {
foreach ($elems['dirs'] as $d) { foreach ($elems['dirs'] as $d) {
echo '<div class="browser-item directory toggle-container" data-name="' . $d . '">' . echo '<div class="browser-item directory toggle-container" data-name="' . $d . '">' .
'<span class="toggler">' . '<span class="toggler">' .
'<span class="toggle-icon">&#x229e</span>' . '<span class="toggle-icon">&#x229e;</span>' .
'<span class="title">' . $d . '</span></span>'; '<span class="title">' . $d . '</span></span>';
makeBrowser($dir . '/' . $d, $basemodule . $d . '.'); makeBrowser($dir . '/' . $d, $basemodule . $d . '.');
echo '</div>'; echo '</div>';
...@@ -85,7 +85,7 @@ foreach ($groups as $group => $libs) { ...@@ -85,7 +85,7 @@ foreach ($groups as $group => $libs) {
foreach ($libs as $lib) { foreach ($libs as $lib) {
echo '<div class="browser-item directory toggle-container" data-name="' . $lib['name'] . '">' . echo '<div class="browser-item directory toggle-container" data-name="' . $lib['name'] . '">' .
'<span class="toggler">' . '<span class="toggler">' .
'<span class="toggle-icon">&#x229e</span>' . '<span class="toggle-icon">&#x229e;</span>' .
'<span class="title">' . $lib['name'] . '</span>'; '<span class="title">' . $lib['name'] . '</span>';
if (isset($lib['info_url'])) { 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>'; 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