From c1e043b7ba78cee73d13ded9ef03b256202540f1 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Mon, 24 Apr 2017 10:36:10 +0300 Subject: Move STATIC_ROOT inside app directory --- .../flot/examples/ajax/data-eu-gdp-growth-1.json | 4 + .../flot/examples/ajax/data-eu-gdp-growth-2.json | 4 + .../flot/examples/ajax/data-eu-gdp-growth-3.json | 4 + .../flot/examples/ajax/data-eu-gdp-growth-4.json | 4 + .../flot/examples/ajax/data-eu-gdp-growth-5.json | 4 + .../js/flot/examples/ajax/data-eu-gdp-growth.json | 4 + .../flot/examples/ajax/data-japan-gdp-growth.json | 4 + .../js/flot/examples/ajax/data-usa-gdp-growth.json | 4 + servo/static/js/flot/examples/ajax/index.html | 173 +++++++++++++++++++++ 9 files changed, 205 insertions(+) create mode 100755 servo/static/js/flot/examples/ajax/data-eu-gdp-growth-1.json create mode 100755 servo/static/js/flot/examples/ajax/data-eu-gdp-growth-2.json create mode 100755 servo/static/js/flot/examples/ajax/data-eu-gdp-growth-3.json create mode 100755 servo/static/js/flot/examples/ajax/data-eu-gdp-growth-4.json create mode 100755 servo/static/js/flot/examples/ajax/data-eu-gdp-growth-5.json create mode 100755 servo/static/js/flot/examples/ajax/data-eu-gdp-growth.json create mode 100755 servo/static/js/flot/examples/ajax/data-japan-gdp-growth.json create mode 100755 servo/static/js/flot/examples/ajax/data-usa-gdp-growth.json create mode 100755 servo/static/js/flot/examples/ajax/index.html (limited to 'servo/static/js/flot/examples/ajax') diff --git a/servo/static/js/flot/examples/ajax/data-eu-gdp-growth-1.json b/servo/static/js/flot/examples/ajax/data-eu-gdp-growth-1.json new file mode 100755 index 0000000..51952cf --- /dev/null +++ b/servo/static/js/flot/examples/ajax/data-eu-gdp-growth-1.json @@ -0,0 +1,4 @@ +{ + "label": "Europe (EU27)", + "data": [[1999, 3.0], [2000, 3.9]] +} diff --git a/servo/static/js/flot/examples/ajax/data-eu-gdp-growth-2.json b/servo/static/js/flot/examples/ajax/data-eu-gdp-growth-2.json new file mode 100755 index 0000000..82004d6 --- /dev/null +++ b/servo/static/js/flot/examples/ajax/data-eu-gdp-growth-2.json @@ -0,0 +1,4 @@ +{ + "label": "Europe (EU27)", + "data": [[1999, 3.0], [2000, 3.9], [2001, 2.0], [2002, 1.2]] +} diff --git a/servo/static/js/flot/examples/ajax/data-eu-gdp-growth-3.json b/servo/static/js/flot/examples/ajax/data-eu-gdp-growth-3.json new file mode 100755 index 0000000..8684479 --- /dev/null +++ b/servo/static/js/flot/examples/ajax/data-eu-gdp-growth-3.json @@ -0,0 +1,4 @@ +{ + "label": "Europe (EU27)", + "data": [[1999, 3.0], [2000, 3.9], [2001, 2.0], [2002, 1.2], [2003, 1.3], [2004, 2.5]] +} diff --git a/servo/static/js/flot/examples/ajax/data-eu-gdp-growth-4.json b/servo/static/js/flot/examples/ajax/data-eu-gdp-growth-4.json new file mode 100755 index 0000000..b363578 --- /dev/null +++ b/servo/static/js/flot/examples/ajax/data-eu-gdp-growth-4.json @@ -0,0 +1,4 @@ +{ + "label": "Europe (EU27)", + "data": [[1999, 3.0], [2000, 3.9], [2001, 2.0], [2002, 1.2], [2003, 1.3], [2004, 2.5], [2005, 2.0], [2006, 3.1]] +} diff --git a/servo/static/js/flot/examples/ajax/data-eu-gdp-growth-5.json b/servo/static/js/flot/examples/ajax/data-eu-gdp-growth-5.json new file mode 100755 index 0000000..a7e1e13 --- /dev/null +++ b/servo/static/js/flot/examples/ajax/data-eu-gdp-growth-5.json @@ -0,0 +1,4 @@ +{ + "label": "Europe (EU27)", + "data": [[1999, 3.0], [2000, 3.9], [2001, 2.0], [2002, 1.2], [2003, 1.3], [2004, 2.5], [2005, 2.0], [2006, 3.1], [2007, 2.9], [2008, 0.9]] +} diff --git a/servo/static/js/flot/examples/ajax/data-eu-gdp-growth.json b/servo/static/js/flot/examples/ajax/data-eu-gdp-growth.json new file mode 100755 index 0000000..a7e1e13 --- /dev/null +++ b/servo/static/js/flot/examples/ajax/data-eu-gdp-growth.json @@ -0,0 +1,4 @@ +{ + "label": "Europe (EU27)", + "data": [[1999, 3.0], [2000, 3.9], [2001, 2.0], [2002, 1.2], [2003, 1.3], [2004, 2.5], [2005, 2.0], [2006, 3.1], [2007, 2.9], [2008, 0.9]] +} diff --git a/servo/static/js/flot/examples/ajax/data-japan-gdp-growth.json b/servo/static/js/flot/examples/ajax/data-japan-gdp-growth.json new file mode 100755 index 0000000..855477c --- /dev/null +++ b/servo/static/js/flot/examples/ajax/data-japan-gdp-growth.json @@ -0,0 +1,4 @@ +{ + "label": "Japan", + "data": [[1999, -0.1], [2000, 2.9], [2001, 0.2], [2002, 0.3], [2003, 1.4], [2004, 2.7], [2005, 1.9], [2006, 2.0], [2007, 2.3], [2008, -0.7]] +} diff --git a/servo/static/js/flot/examples/ajax/data-usa-gdp-growth.json b/servo/static/js/flot/examples/ajax/data-usa-gdp-growth.json new file mode 100755 index 0000000..33f66c6 --- /dev/null +++ b/servo/static/js/flot/examples/ajax/data-usa-gdp-growth.json @@ -0,0 +1,4 @@ +{ + "label": "USA", + "data": [[1999, 4.4], [2000, 3.7], [2001, 0.8], [2002, 1.6], [2003, 2.5], [2004, 3.6], [2005, 2.9], [2006, 2.8], [2007, 2.0], [2008, 1.1]] +} diff --git a/servo/static/js/flot/examples/ajax/index.html b/servo/static/js/flot/examples/ajax/index.html new file mode 100755 index 0000000..35ce10d --- /dev/null +++ b/servo/static/js/flot/examples/ajax/index.html @@ -0,0 +1,173 @@ + + + + + Flot Examples: AJAX + + + + + + + + + + +
+ +
+
+
+ +

Example of loading data dynamically with AJAX. Percentage change in GDP (source: Eurostat). Click the buttons below:

+ +

The data is fetched over HTTP, in this case directly from text files. Usually the URL would point to some web server handler (e.g. a PHP page or Java/.NET/Python/Ruby on Rails handler) that extracts it from a database and serializes it to JSON.

+ +

+ + [ see data ] + +

+ +

+ + [ see data ] + +

+ +

+ + [ see data ] + +

+ +

If you combine AJAX with setTimeout, you can poll the server for new data.

+ +

+ +

+ +
+ + + + + -- cgit v1.2.3