From ff5d395db84278d8b0328ef5b5ff7258821f50c2 Mon Sep 17 00:00:00 2001 From: q Date: Sat, 3 Jun 2017 12:11:52 +0300 Subject: [PATCH] added reload button --- README.md | 1 + index.html | 17 ++++++++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f051fdc..070230a 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ MDLinks is a static HTML page with JS markdown parser. It creates a link portal * config.style='path_to_style.css'; * config.title='Title of page'; * config.columns=[integer]; // Split heads to this many columns + * config.narrow=[integer]; // Create one column table on windows narrower than N pixels * config.search=true; // Display link search bar * config.favicon='path_to_favicon.ico'; diff --git a/index.html b/index.html index ddfaf76..b3c8027 100644 --- a/index.html +++ b/index.html @@ -22,9 +22,12 @@ A:visited { text-decoration:none; color: #000000; } A:hover { text-decoration: underline; } A:focus { text-decoration: underline; } - #filter { width: 90%; } + #filter { width: 100%; } + #search { width: 100%; display: table; } + .search_span { display: table-cell; text-align: center; vertical-align: middle; } .head { font-size: 16px; text-align:left; padding-top: 0.2em; margin-bottom: -0.5em; } - .tickbox { z-index:99; display: block; position: absolute; top: 5px; right:5px; } + .tickbox { width: 3em; } + #reload_span { float: right; } LI.nolink:before { content:" "; padding-right: 1.0em; @@ -148,7 +151,9 @@ function print_results(hitList) { } } } - +function reload_source() { + location.href=config.source +} function get_URL(s) { if (window.XMLHttpRequest) { xmlhttp=new XMLHttpRequest(); } else { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } @@ -217,9 +222,11 @@ var config = { -