What's new

adding link in webgui, is possible?

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

fullspam

New Around Here
Hi,

until I find a better way to do, I have debian and asteriskinstalled in my ac56u following https://hqt.ro/asterisk-voip-server-running-on-asuswrt-routers/.

The point is asterisk old-school-gui is located in 192.168.1.1:8088/asterisk/static/config/index.html , and as you can se is a little be large...
This is the reason of my question: I'm thinking in add in the header a simple div (or image itself <a hre""><img src="" style="position:absolute;top:0;right:0...) to link to this path.

Can I do it or is any problem regarding intellectual property?
where is locate the "header"? I come from pure html and a little php (at least, I see </body> in index.asp, so I can include before that :)
 
@fullspam we can't see what is on your router. :)
 
The header is largely generated by Javascript, so it's not as simple as just editing an HTML page unfortunately.
 
I'm seeing is not as simple :p... clone the git, modify and compile just for this o_O

Being generate by javascript, I asumme I can do it by document.write. Lets see...
 
I'm seeing is not as simple :p... clone the git, modify and compile just for this o_O

Being generate by javascript, I asumme I can do it by document.write. Lets see...

You can "replace" any of the web page by using a binding mount. For example:

Code:
cp /www/state.js /jffs/
mount -o bind /jffs/state.js /www/state.js

The webui will then use the writable state.js file present in /jffs/ instead of the one in read-only /www/
 

Similar threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top