page.ssjs 469 B

12345678910111213141516171819
  1. print = conn.write || print
  2. // send a header
  3. print('HTTP/1.0 200 OK\r\n');
  4. print('Content-Type: text/html\r\n');
  5. print('\r\n');
  6. print("<html><body>\n");
  7. print("<p>This example page is generated by the ");
  8. print('<a href="https://github.com/civetweb/civetweb">CivetWeb web server</a>');
  9. print(" with server side javascript.</p>\n");
  10. var d = new Date();
  11. var n = d.toString();
  12. print("<p>Server time: " + n + "</p>\n");
  13. print("</body></html>\n");