title: ESP8266 WebServer
body: <p>I found interesting code on stack overflow, but the only thing I don't like about it is that it uses JQuery that is imported via the Internet, and I need it all to work without connecting to the Internet. Can you please tell me how this can be changed?</p>
  <p>Code:</p>
  <pre><code>void handleRoot() {
  
    snprintf ( htmlResponse, 3000,
  &quot;&lt;!DOCTYPE html&gt;\
  &lt;html lang=\&quot;en\&quot;&gt;\
    &lt;head&gt;\
      &lt;meta charset=\&quot;utf-8\&quot;&gt;\
      &lt;meta name=\&quot;viewport\&quot; content=\&quot;width=device-width, initial-scale=1\&quot;&gt;\
    &lt;/head&gt;\
    &lt;body&gt;\
            &lt;h1&gt;Time&lt;/h1&gt;\
            &lt;input type='text' name='date_hh' id='date_hh' size=2 autofocus&gt; hh \
            &lt;div&gt;\
            &lt;br&gt;&lt;button id=\&quot;save_button\&quot;&gt;Save&lt;/button&gt;\
            &lt;/div&gt;\
      &lt;script src=\&quot;https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js\&quot;&gt;&lt;/script&gt;\    
      &lt;script&gt;\
        var hh;\
        $('#save_button').click(function(e){\
          e.preventDefault();\
          hh = $('#date_hh').val();\       
          $.get('/save?hh=' + hh , function(data){\
            console.log(data);\
          });\
        });\      
      &lt;/script&gt;\
    &lt;/body&gt;\
  &lt;/html&gt;&quot;); 
        server.send ( 200, &quot;text/html&quot;, htmlResponse );  
  }
  void handleSave() {
    if (server.arg(&quot;hh&quot;)!= &quot;&quot;){
      Serial.println(&quot;Hours: &quot; + server.arg(&quot;hh&quot;));
  }
  }
  void setup() {
  
    // Start serial
    Serial.begin(115200);
    delay(10);
  
  
    WiFi.begin(ssid, password);
  
    while (WiFi.status() != WL_CONNECTED) {
      delay(500);
      Serial.print(&quot;.&quot;);
    }
    server.on ( &quot;/&quot;, handleRoot );
    server.on (&quot;/save&quot;, handleSave);
  
    server.begin();
  }
  void loop() {
    server.handleClient();
  }
  </code></pre>