-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploying to gh-pages from @ 2fae1c9 π
- Loading branch information
Showing
49 changed files
with
546 additions
and
87 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
/* The browsers interpretation of the CORS origin policy prevents to run | ||
webworkers from javascript files fetched from the file:// protocol. This hack | ||
is to workaround this restriction. */ | ||
function createWebWorker() { | ||
var searchs = search_urls.map((search_url) => { | ||
let parts = document.location.href.split("/"); | ||
parts[parts.length - 1] = search_url; | ||
return '"' + parts.join("/") + '"'; | ||
}); | ||
blobContents = ["importScripts(" + searchs.join(",") + ");"]; | ||
var blob = new Blob(blobContents, { type: "application/javascript" }); | ||
var blobUrl = URL.createObjectURL(blob); | ||
|
||
var worker = new Worker(blobUrl); | ||
URL.revokeObjectURL(blobUrl); | ||
|
||
return worker; | ||
} | ||
|
||
var worker; | ||
var waiting = 0; | ||
|
||
function wait() { | ||
waiting = waiting + 1; | ||
document.querySelector(".search-snake").classList.add("search-busy"); | ||
} | ||
|
||
function stop_waiting() { | ||
if (waiting > 0) waiting = waiting - 1; | ||
else waiting = 0; | ||
if (waiting == 0) { | ||
document.querySelector(".search-snake").classList.remove("search-busy"); | ||
} | ||
} | ||
|
||
document.querySelector(".search-bar").addEventListener("focus", (ev) => { | ||
if (typeof worker == "undefined") { | ||
worker = createWebWorker(); | ||
worker.onmessage = (e) => { | ||
stop_waiting(); | ||
let results = e.data; | ||
let search_results = document.querySelector(".search-result"); | ||
search_results.innerHTML = ""; | ||
let f = (entry) => { | ||
let search_result = document.createElement("a"); | ||
search_result.classList.add("search-entry"); | ||
search_result.href = base_url + entry.url; | ||
search_result.innerHTML = entry.html; | ||
search_results.appendChild(search_result); | ||
}; | ||
results.forEach(f); | ||
let search_request = document.querySelector(".search-bar").value; | ||
if (results.length == 0 && search_request != "") { | ||
let no_result = document.createElement("div"); | ||
no_result.classList.add("search-no-result"); | ||
no_result.innerText = "No result..."; | ||
search_results.appendChild(no_result); | ||
} | ||
}; | ||
} | ||
}); | ||
|
||
document.querySelector(".search-bar").addEventListener("input", (ev) => { | ||
wait(); | ||
worker.postMessage(ev.target.value); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Time_zone (timedesc-json.Timedesc_json.Time_zone)</title><link rel="stylesheet" href="../../../odoc.support/odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 2.3.1"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../odoc.support/highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> β <a href="../../index.html">timedesc-json</a> » <a href="../index.html">Timedesc_json</a> » Time_zone</nav><header class="odoc-preamble"><h1>Module <code><span>Timedesc_json.Time_zone</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec value anchored" id="val-to_json"><a href="#val-to_json" class="anchor"></a><code><span><span class="keyword">val</span> to_json : <span><a href="../../../timedesc/Timedesc/Time_zone/index.html#type-t">Timedesc.Time_zone.t</a> <span class="arrow">-></span></span> <span class="xref-unresolved">Yojson</span>.Basic.t</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-of_json"><a href="#val-of_json" class="anchor"></a><code><span><span class="keyword">val</span> of_json : <span><span class="xref-unresolved">Yojson</span>.Basic.t <span class="arrow">-></span></span> <span><a href="../../../timedesc/Timedesc/Time_zone/index.html#type-t">Timedesc.Time_zone.t</a> option</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-of_string"><a href="#val-of_string" class="anchor"></a><code><span><span class="keyword">val</span> of_string : <span>string <span class="arrow">-></span></span> <span><a href="../../../timedesc/Timedesc/Time_zone/index.html#type-t">Timedesc.Time_zone.t</a> option</span></span></code></div></div></div></body></html> | ||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Time_zone (timedesc-json.Timedesc_json.Time_zone)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../../odoc.support/odoc.css"/><meta name="generator" content="odoc 2.4.1"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../odoc.support/highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> β <a href="../../index.html">timedesc-json</a> » <a href="../index.html">Timedesc_json</a> » Time_zone</nav><header class="odoc-preamble"><h1>Module <code><span>Timedesc_json.Time_zone</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec value anchored" id="val-to_json"><a href="#val-to_json" class="anchor"></a><code><span><span class="keyword">val</span> to_json : <span><a href="../../../timedesc/Timedesc/Time_zone/index.html#type-t">Timedesc.Time_zone.t</a> <span class="arrow">-></span></span> <span class="xref-unresolved">Yojson</span>.Basic.t</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-of_json"><a href="#val-of_json" class="anchor"></a><code><span><span class="keyword">val</span> of_json : <span><span class="xref-unresolved">Yojson</span>.Basic.t <span class="arrow">-></span></span> <span><a href="../../../timedesc/Timedesc/Time_zone/index.html#type-t">Timedesc.Time_zone.t</a> option</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-of_string"><a href="#val-of_string" class="anchor"></a><code><span><span class="keyword">val</span> of_string : <span>string <span class="arrow">-></span></span> <span><a href="../../../timedesc/Timedesc/Time_zone/index.html#type-t">Timedesc.Time_zone.t</a> option</span></span></code></div></div></div></body></html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Timedesc_json (timedesc-json.Timedesc_json)</title><link rel="stylesheet" href="../../odoc.support/odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 2.3.1"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../odoc.support/highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> β <a href="../index.html">timedesc-json</a> » Timedesc_json</nav><header class="odoc-preamble"><h1>Module <code><span>Timedesc_json</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec module anchored" id="module-Time_zone"><a href="#module-Time_zone" class="anchor"></a><code><span><span class="keyword">module</span> <a href="Time_zone/index.html">Time_zone</a></span><span> : <span class="keyword">sig</span> ... <span class="keyword">end</span></span></code></div></div></div></body></html> | ||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Timedesc_json (timedesc-json.Timedesc_json)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../odoc.support/odoc.css"/><meta name="generator" content="odoc 2.4.1"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../odoc.support/highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> β <a href="../index.html">timedesc-json</a> » Timedesc_json</nav><header class="odoc-preamble"><h1>Module <code><span>Timedesc_json</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec module anchored" id="module-Time_zone"><a href="#module-Time_zone" class="anchor"></a><code><span><span class="keyword">module</span> <a href="Time_zone/index.html">Time_zone</a></span><span> : <span class="keyword">sig</span> ... <span class="keyword">end</span></span></code></div></div></div></body></html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>index (timedesc-json.index)</title><link rel="stylesheet" href="../odoc.support/odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 2.3.1"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../odoc.support/highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> β timedesc-json</nav><header class="odoc-preamble"><h1 id="timedesc-json-index"><a href="#timedesc-json-index" class="anchor"></a>timedesc-json index</h1></header><nav class="odoc-toc"><ul><li><a href="#library-timedesc-json">Library timedesc-json</a></li></ul></nav><div class="odoc-content"><h2 id="library-timedesc-json"><a href="#library-timedesc-json" class="anchor"></a>Library timedesc-json</h2><p>The entry point of this library is the module: <a href="Timedesc_json/index.html"><code>Timedesc_json</code></a>.</p></div></body></html> | ||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>index (timedesc-json.index)</title><meta charset="utf-8"/><link rel="stylesheet" href="../odoc.support/odoc.css"/><meta name="generator" content="odoc 2.4.1"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../odoc.support/highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> β timedesc-json</nav><header class="odoc-preamble"><h1 id="timedesc-json-index"><a href="#timedesc-json-index" class="anchor"></a>timedesc-json index</h1></header><nav class="odoc-toc"><ul><li><a href="#library-timedesc-json">Library timedesc-json</a></li></ul></nav><div class="odoc-content"><h2 id="library-timedesc-json"><a href="#library-timedesc-json" class="anchor"></a>Library timedesc-json</h2><p>The entry point of this library is the module: <a href="Timedesc_json/index.html"><code>Timedesc_json</code></a>.</p></div></body></html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Date (timedesc-sexp.Timedesc_sexp.Date)</title><link rel="stylesheet" href="../../../odoc.support/odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 2.3.1"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../odoc.support/highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> β <a href="../../index.html">timedesc-sexp</a> » <a href="../index.html">Timedesc_sexp</a> » Date</nav><header class="odoc-preamble"><h1>Module <code><span>Timedesc_sexp.Date</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec value anchored" id="val-to_sexp"><a href="#val-to_sexp" class="anchor"></a><code><span><span class="keyword">val</span> to_sexp : <span><a href="../../../timedesc/Timedesc/Date/index.html#type-t">Timedesc.Date.t</a> <span class="arrow">-></span></span> <span class="xref-unresolved">Sexplib</span>.Sexp.t</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-to_sexp_string"><a href="#val-to_sexp_string" class="anchor"></a><code><span><span class="keyword">val</span> to_sexp_string : <span><a href="../../../timedesc/Timedesc/Date/index.html#type-t">Timedesc.Date.t</a> <span class="arrow">-></span></span> string</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-of_sexp"><a href="#val-of_sexp" class="anchor"></a><code><span><span class="keyword">val</span> of_sexp : <span><span class="xref-unresolved">Sexplib</span>.Sexp.t <span class="arrow">-></span></span> <span><span>(<a href="../../../timedesc/Timedesc/Date/index.html#type-t">Timedesc.Date.t</a>, string)</span> <span class="xref-unresolved">Stdlib</span>.result</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-of_sexp_string"><a href="#val-of_sexp_string" class="anchor"></a><code><span><span class="keyword">val</span> of_sexp_string : <span>string <span class="arrow">-></span></span> <span><span>(<a href="../../../timedesc/Timedesc/Date/index.html#type-t">Timedesc.Date.t</a>, string)</span> <span class="xref-unresolved">Stdlib</span>.result</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-pp_sexp"><a href="#val-pp_sexp" class="anchor"></a><code><span><span class="keyword">val</span> pp_sexp : <span><span class="xref-unresolved">Stdlib</span>.Format.formatter <span class="arrow">-></span></span> <span><a href="../../../timedesc/Timedesc/Date/index.html#type-t">Timedesc.Date.t</a> <span class="arrow">-></span></span> unit</span></code></div></div></div></body></html> | ||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Date (timedesc-sexp.Timedesc_sexp.Date)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../../odoc.support/odoc.css"/><meta name="generator" content="odoc 2.4.1"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../odoc.support/highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> β <a href="../../index.html">timedesc-sexp</a> » <a href="../index.html">Timedesc_sexp</a> » Date</nav><header class="odoc-preamble"><h1>Module <code><span>Timedesc_sexp.Date</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec value anchored" id="val-to_sexp"><a href="#val-to_sexp" class="anchor"></a><code><span><span class="keyword">val</span> to_sexp : <span><a href="../../../timedesc/Timedesc/Date/index.html#type-t">Timedesc.Date.t</a> <span class="arrow">-></span></span> <span class="xref-unresolved">Sexplib</span>.Sexp.t</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-to_sexp_string"><a href="#val-to_sexp_string" class="anchor"></a><code><span><span class="keyword">val</span> to_sexp_string : <span><a href="../../../timedesc/Timedesc/Date/index.html#type-t">Timedesc.Date.t</a> <span class="arrow">-></span></span> string</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-of_sexp"><a href="#val-of_sexp" class="anchor"></a><code><span><span class="keyword">val</span> of_sexp : <span><span class="xref-unresolved">Sexplib</span>.Sexp.t <span class="arrow">-></span></span> <span><span>(<a href="../../../timedesc/Timedesc/Date/index.html#type-t">Timedesc.Date.t</a>, string)</span> <span class="xref-unresolved">Stdlib</span>.result</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-of_sexp_string"><a href="#val-of_sexp_string" class="anchor"></a><code><span><span class="keyword">val</span> of_sexp_string : <span>string <span class="arrow">-></span></span> <span><span>(<a href="../../../timedesc/Timedesc/Date/index.html#type-t">Timedesc.Date.t</a>, string)</span> <span class="xref-unresolved">Stdlib</span>.result</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-pp_sexp"><a href="#val-pp_sexp" class="anchor"></a><code><span><span class="keyword">val</span> pp_sexp : <span><span class="xref-unresolved">Stdlib</span>.Format.formatter <span class="arrow">-></span></span> <span><a href="../../../timedesc/Timedesc/Date/index.html#type-t">Timedesc.Date.t</a> <span class="arrow">-></span></span> unit</span></code></div></div></div></body></html> |
Oops, something went wrong.