]> git.proxmox.com Git - pve-docs.git/blobdiff - doc-debian/pvedocs-include.php
pvedocs-include.php: add noscript tag
[pve-docs.git] / doc-debian / pvedocs-include.php
index f039a3c0dfa9ac04283c3cd4078d3db1cb0e5854..5fc53784a0b00341491ea97b3d7540b40578964e 100644 (file)
@@ -49,6 +49,12 @@ function efPvedocsParserFunction_Render($parser, $param1 = '', $param2 = '') {
 
        $content = file_get_contents("/usr/share/pve-docs/$param1");
 
+    $output = "<noscript><div><p>" .
+        "This page requires java-script. To view " .
+        "this page without java-script goto " .
+        "<a href='/pve-docs/$param1'>$param1</a>" .
+        "</div></noscript>\n";
+
        # hack to inject html without modifications my mediawiki parser
        $encHtml = encodeURI($content);
        $output .= "<div id='pve_embed_data'></div>";