Closed lokonli closed 5 years ago
Just tested your PR. Was looking for a way to do this on my 7"SmartiPi Touchscreen and works great...
Good! Thanks for testing 👍
Good! Thanks for testing 👍
No Problemo... Just came across something which i personally want to see otherwise. When i click the popup it will direct me to the Buienradar website. I'm not a Java coder, but any idea how i could prevent that?
Probably that's not possible. The content is controlled by buienradar which cannot be changed I suppose.
Thx...
To change the default size of the graph popup windows add the following style blocks to your custom.css: ` .graphheight { height: 400px; }
.graphwidth { width: 400px; } `
To remove the close button of the graph popup add the following block to custom.js:
.graphclose { display: none; }
To remove the close button of the frame popup add the following block to custom.js:.frameclose { display: none; }
To set a specific width of the frame of a button add 'framewidth' and/or 'frameheight' setting to the block definition in CONFIG.js like: ` buttons.buienradar = { key: 'buienradar', width:12, isimage:true, refresh:6000, image: 'http://api.buienradar.nl/image/1.0/RadarMapNL?w=256&h=256', url:'https://gadgets.buienradar.nl/gadget/zoommap/?lat=52.06022&lng=4.39288&overname=2&zoom=13&naam=2496hx&size=5&voor=1', framewidth:580, frameheight: 520};
You can do the same for a popup window, like:
blocks[107]['openpopup'] = { url: 'http://www.nos.nl', auto_close : 500, frameheight:200};
`