Skip to content
Snippets Groups Projects
Commit 421adf3a authored by Stephen D's avatar Stephen D
Browse files

it's a cat :3

parent 7dd92398
No related branches found
No related tags found
No related merge requests found
......@@ -101,7 +101,7 @@ async fn root_inner(state: &AppState, k: String) -> anyhow::Result<Html<String>>
let preamble = r#"<h1>Who's Linking to Me?</h1><p>This site uses <a href="https://commoncrawl.org/">Common Crawl</a> data to find all hosts that link to a site (and all sites linked to by that site). Wildcards are supported at the beginning of domain names, e.g. '*.scd31.com'. Only 1 000 maximum wildcard matches are shown, and a maximum of 10 000 edges (5 000 in either direction)."#;
let html = format!(
r#"<!DOCTYPE html><head><style>.table-container{{display: flex;justify-content: space-around;}}tr:nth-of-type(odd){{ background-color:#ccc;}}td{{padding:0px 8px;}}</style></head><body>{preamble}<form><label for="k">Domain: </label><input name="k" id="k" value="{inner_k}" /><input type="submit" value="Find" /></form><br>{results}</body></html>"#
r#"<!DOCTYPE html><head><style>.table-container{{display: flex;justify-content: space-around;}}tr:nth-of-type(odd){{ background-color:#ccc;}}td{{padding:0px 8px;}}</style></head><body>{preamble}<form><label for="k">Domain: </label><input name="k" id="k" value="{inner_k}" /><input type="submit" value="Find" /></form><br>{results}<p style="margin: 0 auto; width: min-content">:3</p></body></html>"#
);
Ok(Html::from(html.to_string()))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment