Let see first example which is not W3C compatible. We will use PF v7 output handling functions (in second exaple, too). Create new panel, paste below code, save panel, enable it:
add_to_head("<noscript><meta http-equiv='refresh' content='0,URL='js.html' /></noscript>");
Because this code will redirect us to new page (called js.html), we need to create and upload this too root of our site. From this moment every user which entering our site and hasn't JS enabled in browser will see this page. Example message in this page may look like below:
And now example compatible with W3C but which need some theme modyfications. part of (or all of?) DIV based themes in PF v7 contain main DIV:
If users should have JS enabled then:
1) In styles.css file of your theme modify/add line to #container class:
so if your theme not contain #container class add below lines:
2) After #container DIV closing tag add next DIV with example text:
Next we nedd to create new panel with code:
When user has no JS enabled then will se above message in other case will se our site content.
Next article soon ;)
PS: thanks to Pieka from Polish PF Support for article formatting.