aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--index.php1
-rw-r--r--static/select.js10
2 files changed, 11 insertions, 0 deletions
diff --git a/index.php b/index.php
index 3f9874ce..6eaab428 100644
--- a/index.php
+++ b/index.php
@@ -213,6 +213,7 @@ $formats = Format::searchInformation();
<title>RSS-Bridge</title>
<link href="static/style.css" rel="stylesheet">
<script src="static/search.js"></script>
+ <script src="static/select.js"></script>
<noscript>
<style>
.searchbar {
diff --git a/static/select.js b/static/select.js
new file mode 100644
index 00000000..792b92de
--- /dev/null
+++ b/static/select.js
@@ -0,0 +1,10 @@
+function select(){
+ var fragment = window.location.hash.substr(1);
+ var bridge = document.getElementById(fragment);
+
+ if(bridge !== null) {
+ bridge.getElementsByClassName('showmore-box')[0].checked = true;
+ }
+}
+
+document.addEventListener('DOMContentLoaded', select); \ No newline at end of file