Home / File/ jquery.html — flask Source File

jquery.html — flask Source File

Architecture documentation for jquery.html, a html file in the flask codebase.

Entity Profile

Source Code

{% extends 'base.html' %}

{% block intro %}
  <a href="https://jquery.com/">jQuery</a> is a popular library that
  adds cross browser APIs for common tasks. However, it requires loading
  an extra library.
{% endblock %}

{% block script %}
  <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
  <script>
    function addSubmit(ev) {
      ev.preventDefault();
      $.ajax({
        method: 'POST',
        url: {{ url_for('add')|tojson }},
        data: $(this).serialize()
      }).done(addShow);
    }

    function addShow(data) {
      $('#result').text(data.result);
    }

    $('#calc').on('submit', addSubmit);
  </script>
{% endblock %}

Frequently Asked Questions

What does jquery.html do?
jquery.html is a source file in the flask codebase, written in html.
Where is jquery.html in the architecture?
jquery.html is located at examples/javascript/js_example/templates/jquery.html (directory: examples/javascript/js_example/templates).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free