mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 01:55:21 +02:00
refactor: extract index.php to RssBridge.php (#2961)
* refactor: extract entry point into class * refactor: js * refactor: extract frontpage action
This commit is contained in:
parent
372eccd7b2
commit
0de1694371
5 changed files with 116 additions and 171 deletions
|
@ -38,3 +38,12 @@ function rssbridge_list_search() {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
function rssbridge_toggle_bridge(){
|
||||
var fragment = window.location.hash.substr(1);
|
||||
var bridge = document.getElementById(fragment);
|
||||
|
||||
if(bridge !== null) {
|
||||
bridge.getElementsByClassName('showmore-box')[0].checked = true;
|
||||
}
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
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);
|
Loading…
Add table
Add a link
Reference in a new issue