Menu Hide Link
 

Hide Link

This page is to test to logic to control the hiding of hyperlinks.

At the moment I have (did have) a button the effectively hides the link. I have left the button as a reminder that the "hiding" script needs to be after the link that needs to be hidden.

The logic on this page is working in that the 2 IP addresses that I have initiated as strings do control whether the "research link" is hidden or not. However, at the time of writing this I can't seem to get this to work when a retrieve these variables programatically.

Top

There is a hidden DIV on this page that can only be seen if the banner below is clicked.

This message and header can be hidden when the hidden section is made visible - this is only really cosmetic as I don't really think that the average visitor is going to know that the hidden section exiats

Links

Link to PDF Disabled

If you require a copy please email tempusfugit.me.uk

Top

References - a note on these

  • The 2nd link that I want to either show or hide - IPs are different
  • Other links - Will have the format as all other pages

The following button is now superfluous. I have left the "hiding" code in the source to remind me what I did to get this to work. Copilot AI actually helped me here to find the error. I hard coded the IP addresses in the scripts - I still need to work out how to retrieve the stored and current IPs - the get_ip page is almost there with this although I still don't quite understand the Javascript Promise logic .