forked from blallo/rss-bridge
cd012e115b
Loading the page with an URL fragement (#bridge-*) should result in the bridge showing all parameters by default. Unfortunately this is not possible using PHP, which is why a new JavaScript function is needed (select.js) That way, when returning from a bridge ('back to rss-bridge') will keep the selected bridge active (only works for HTML format).
10 lines
No EOL
267 B
JavaScript
10 lines
No EOL
267 B
JavaScript
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); |