").html(page.content).text(); content = page.content.match(regexp); } } catch (e) { feedback("search", e.message); } if (title || content) { let result = [`${page.title} `]; if (content) { let [min, max] = [content.index - 100, content.index + 100]; let [prefix, suffix] = ["...", "..."]; if (min < 0) { prefix = ""; min = 0; } if (max > page.content.length) { suffix = ""; max = page.content.length; } result.push(`
${prefix}${slice(page.content ,min, max)}${suffix}
`); } results.push(`${result.join("")} `); } } if (results.length > 0 && text.length > 0) { $("#search-results ul.search").html(results.join("")); $("#search-results p.search-summary").html("Search finished, found # page(s) matching the search query.".replace("#", results.length)); } else { $("#search-results ul.search").empty(); $("#search-results p.search-summary").html("Your search did not match any documents, please make sure that all words are spelled correctly!"); } $("#rtd-search-form [name='q']").val(text); $("#search-results h2").html("Search Results"); } function reset() { const link = $(".wy-menu-vertical").find(`[href="${location.pathname}"]`); if (link.length > 0) { $(".wy-menu-vertical .current").removeClass("current"); link.addClass("current"); link.closest("li.toctree-l1").parent().addClass("current"); link.closest("li.toctree-l1").addClass("current"); link.closest("li.toctree-l2").addClass("current"); link.closest("li.toctree-l3").addClass("current"); link.closest("li.toctree-l4").addClass("current"); link.closest("li.toctree-l5").addClass("current"); } } function admonition() { const items = { note: "Note", tip: "Tip", warning: "Warning", danger: "Danger" }; for (let item in items) { let content = $(`.language-${item}`).html(); $(`.language-${item}`).replaceWith(``); } } $(document).ready(function() { if (location.pathname == "/search.html") { $.ajax({ dataType: "json", url: "/pages.json" }) .done(search) .fail((xhr, message) => feedback("search", message)); } admonition(); anchors.add(); highlight(); SphinxRtdTheme.Navigation.reset = reset; SphinxRtdTheme.Navigation.enable(true); }); Shadorealm Shadorealm, the kingdom for shadows of light! Hello! Welcome to my site! Here i cover some cool topics in my blog, and also hope to grow this site to be much more as well!
My Blog Check out my GitHub
Getting started This site shouldnt be too complicated to navigate. Click the button above or the menu on the side named My Blog
to get to my blog. Other things will come, some ideas are down below! My contact info is at the bottom of About
Site Ideas Host a CTF on here, or atleast challenges! Discussion Forum Coding competitions? And some more to come…