From a2718dbee629a58e6de6214ec46f24d3f83d89f0 Mon Sep 17 00:00:00 2001 From: David Schnur Date: Sat, 26 Jan 2013 17:11:26 -0500 Subject: [PATCH] Add the Flot version to each example's footer. --- examples/ajax/index.html | 4 ++++ examples/annotating/index.html | 4 ++++ examples/axes-interacting/index.html | 4 ++++ examples/axes-multiple/index.html | 3 +++ examples/axes-time-zones/index.html | 4 ++++ examples/axes-time/index.html | 3 +++ examples/basic-options/index.html | 4 ++++ examples/basic-usage/index.html | 4 ++++ examples/categories/index.html | 3 +++ examples/image/index.html | 4 ++++ examples/interacting/index.html | 4 ++++ examples/navigate/index.html | 4 ++++ examples/percentiles/index.html | 4 ++++ examples/realtime/index.html | 4 ++++ examples/resize/index.html | 4 ++++ examples/selection/index.html | 4 ++++ examples/series-errorbars/index.html | 4 ++++ examples/series-pie/index.html | 4 ++++ examples/series-toggle/index.html | 4 ++++ examples/series-types/index.html | 4 ++++ examples/stacking/index.html | 4 ++++ examples/symbols/index.html | 4 ++++ examples/threshold/index.html | 4 ++++ examples/tracking/index.html | 4 ++++ examples/visitors/index.html | 4 ++++ examples/zooming/index.html | 4 ++++ 26 files changed, 101 insertions(+) diff --git a/examples/ajax/index.html b/examples/ajax/index.html index 653e650..b2431c9 100644 --- a/examples/ajax/index.html +++ b/examples/ajax/index.html @@ -111,6 +111,10 @@ setTimeout(fetchData, 1000); }); + + // Add the Flot version string to the footer + + $("#footer").prepend("Flot " + $.plot.version + " – "); }); diff --git a/examples/annotating/index.html b/examples/annotating/index.html index 41dcb95..d8932c0 100644 --- a/examples/annotating/index.html +++ b/examples/annotating/index.html @@ -55,6 +55,10 @@ ctx.lineTo(o.left, o.top); ctx.fillStyle = "#000"; ctx.fill(); + + // Add the Flot version string to the footer + + $("#footer").prepend("Flot " + $.plot.version + " – "); }); diff --git a/examples/axes-interacting/index.html b/examples/axes-interacting/index.html index 539891a..a7977dd 100644 --- a/examples/axes-interacting/index.html +++ b/examples/axes-interacting/index.html @@ -61,6 +61,10 @@ $("#click").text("You clicked the " + axis.direction + axis.n + "axis!") }); }); + + // Add the Flot version string to the footer + + $("#footer").prepend("Flot " + $.plot.version + " – "); }); diff --git a/examples/axes-multiple/index.html b/examples/axes-multiple/index.html index fd6dba7..824a722 100644 --- a/examples/axes-multiple/index.html +++ b/examples/axes-multiple/index.html @@ -42,6 +42,9 @@ doPlot($(this).text()); }); + // Add the Flot version string to the footer + + $("#footer").prepend("Flot " + $.plot.version + " – "); }); diff --git a/examples/axes-time-zones/index.html b/examples/axes-time-zones/index.html index 7938cc1..156cd6e 100644 --- a/examples/axes-time-zones/index.html +++ b/examples/axes-time-zones/index.html @@ -73,6 +73,10 @@ timezone: "America/Chicago" } }); + + // Add the Flot version string to the footer + + $("#footer").prepend("Flot " + $.plot.version + " – "); }); diff --git a/examples/axes-time/index.html b/examples/axes-time/index.html index 87967ad..4a9a41a 100644 --- a/examples/axes-time/index.html +++ b/examples/axes-time/index.html @@ -91,6 +91,9 @@ }); }); + // Add the Flot version string to the footer + + $("#footer").prepend("Flot " + $.plot.version + " – "); }); diff --git a/examples/basic-options/index.html b/examples/basic-options/index.html index da06b9f..50f7031 100644 --- a/examples/basic-options/index.html +++ b/examples/basic-options/index.html @@ -57,6 +57,10 @@ } } }); + + // Add the Flot version string to the footer + + $("#footer").prepend("Flot " + $.plot.version + " – "); }); diff --git a/examples/basic-usage/index.html b/examples/basic-usage/index.html index ffb7bcc..1764707 100644 --- a/examples/basic-usage/index.html +++ b/examples/basic-usage/index.html @@ -23,6 +23,10 @@ var d3 = [[0, 12], [7, 12], null, [7, 2.5], [12, 2.5]]; $.plot("#placeholder", [ d1, d2, d3 ]); + + // Add the Flot version string to the footer + + $("#footer").prepend("Flot " + $.plot.version + " – "); }); diff --git a/examples/categories/index.html b/examples/categories/index.html index 6a31c28..b96e131 100644 --- a/examples/categories/index.html +++ b/examples/categories/index.html @@ -28,6 +28,9 @@ } }); + // Add the Flot version string to the footer + + $("#footer").prepend("Flot " + $.plot.version + " – "); }); diff --git a/examples/image/index.html b/examples/image/index.html index 7652298..50c2968 100644 --- a/examples/image/index.html +++ b/examples/image/index.html @@ -33,6 +33,10 @@ $.plot.image.loadDataImages(data, options, function () { $.plot("#placeholder", data, options); }); + + // Add the Flot version string to the footer + + $("#footer").prepend("Flot " + $.plot.version + " – "); }); diff --git a/examples/interacting/index.html b/examples/interacting/index.html index e9be5d9..2d61a8b 100644 --- a/examples/interacting/index.html +++ b/examples/interacting/index.html @@ -88,6 +88,10 @@ plot.highlight(item.series, item.datapoint); } }); + + // Add the Flot version string to the footer + + $("#footer").prepend("Flot " + $.plot.version + " – "); }); diff --git a/examples/navigate/index.html b/examples/navigate/index.html index c2dd51f..272dcad 100644 --- a/examples/navigate/index.html +++ b/examples/navigate/index.html @@ -117,6 +117,10 @@ addArrow("right", 25, 60, { left: 100 }); addArrow("up", 40, 45, { top: -100 }); addArrow("down", 40, 75, { top: 100 }); + + // Add the Flot version string to the footer + + $("#footer").prepend("Flot " + $.plot.version + " – "); }); diff --git a/examples/percentiles/index.html b/examples/percentiles/index.html index 1042684..cac1101 100644 --- a/examples/percentiles/index.html +++ b/examples/percentiles/index.html @@ -45,6 +45,10 @@ position: "se" } }); + + // Add the Flot version string to the footer + + $("#footer").prepend("Flot " + $.plot.version + " – "); }); diff --git a/examples/realtime/index.html b/examples/realtime/index.html index 8c3c667..e965106 100644 --- a/examples/realtime/index.html +++ b/examples/realtime/index.html @@ -88,6 +88,10 @@ } update(); + + // Add the Flot version string to the footer + + $("#footer").prepend("Flot " + $.plot.version + " – "); }); diff --git a/examples/resize/index.html b/examples/resize/index.html index f48f465..9b1884c 100644 --- a/examples/resize/index.html +++ b/examples/resize/index.html @@ -40,6 +40,10 @@ minWidth: 450, minHeight: 250, }); + + // Add the Flot version string to the footer + + $("#footer").prepend("Flot " + $.plot.version + " – "); }); diff --git a/examples/selection/index.html b/examples/selection/index.html index c6d69ac..7f20c7c 100644 --- a/examples/selection/index.html +++ b/examples/selection/index.html @@ -94,6 +94,10 @@ } }); }); + + // Add the Flot version string to the footer + + $("#footer").prepend("Flot " + $.plot.version + " – "); }); diff --git a/examples/series-errorbars/index.html b/examples/series-errorbars/index.html index ba7bc6f..41dab7f 100644 --- a/examples/series-errorbars/index.html +++ b/examples/series-errorbars/index.html @@ -118,6 +118,10 @@ interactive: true } }); + + // Add the Flot version string to the footer + + $("#footer").prepend("Flot " + $.plot.version + " – "); }); diff --git a/examples/series-pie/index.html b/examples/series-pie/index.html index 13e09b5..dc9fb07 100644 --- a/examples/series-pie/index.html +++ b/examples/series-pie/index.html @@ -659,6 +659,10 @@ // Show the initial default chart $("#example-1").click(); + + // Add the Flot version string to the footer + + $("#footer").prepend("Flot " + $.plot.version + " – "); }); // A custom label formatter used by several of the plots diff --git a/examples/series-toggle/index.html b/examples/series-toggle/index.html index f792d95..c96bcc0 100644 --- a/examples/series-toggle/index.html +++ b/examples/series-toggle/index.html @@ -86,6 +86,10 @@ } plotAccordingToChoices(); + + // Add the Flot version string to the footer + + $("#footer").prepend("Flot " + $.plot.version + " – "); }); diff --git a/examples/series-types/index.html b/examples/series-types/index.html index 424b26a..6041dfb 100644 --- a/examples/series-types/index.html +++ b/examples/series-types/index.html @@ -58,6 +58,10 @@ data: d6, lines: { show: true, steps: true } }]); + + // Add the Flot version string to the footer + + $("#footer").prepend("Flot " + $.plot.version + " – "); }); diff --git a/examples/stacking/index.html b/examples/stacking/index.html index 934a30f..ba8ddda 100644 --- a/examples/stacking/index.html +++ b/examples/stacking/index.html @@ -64,6 +64,10 @@ steps = $(this).text().indexOf("steps") != -1; plotWithOptions(); }); + + // Add the Flot version string to the footer + + $("#footer").prepend("Flot " + $.plot.version + " – "); }); diff --git a/examples/symbols/index.html b/examples/symbols/index.html index 21b2082..a02e887 100644 --- a/examples/symbols/index.html +++ b/examples/symbols/index.html @@ -44,6 +44,10 @@ hoverable: true } }); + + // Add the Flot version string to the footer + + $("#footer").prepend("Flot " + $.plot.version + " – "); }); diff --git a/examples/threshold/index.html b/examples/threshold/index.html index 967c89e..ce36d18 100644 --- a/examples/threshold/index.html +++ b/examples/threshold/index.html @@ -38,6 +38,10 @@ var t = parseFloat($(this).text().replace("Threshold at ", "")); plotWithOptions(t); }); + + // Add the Flot version string to the footer + + $("#footer").prepend("Flot " + $.plot.version + " – "); }); diff --git a/examples/tracking/index.html b/examples/tracking/index.html index f096db3..289ab05 100644 --- a/examples/tracking/index.html +++ b/examples/tracking/index.html @@ -99,6 +99,10 @@ updateLegendTimeout = setTimeout(updateLegend, 50); } }); + + // Add the Flot version string to the footer + + $("#footer").prepend("Flot " + $.plot.version + " – "); }); diff --git a/examples/visitors/index.html b/examples/visitors/index.html index d7a7e93..2efd58e 100644 --- a/examples/visitors/index.html +++ b/examples/visitors/index.html @@ -108,6 +108,10 @@ $("#overview").bind("plotselected", function (event, ranges) { plot.setSelection(ranges); }); + + // Add the Flot version string to the footer + + $("#footer").prepend("Flot " + $.plot.version + " – "); }); diff --git a/examples/zooming/index.html b/examples/zooming/index.html index 2dd3f97..0c35b92 100644 --- a/examples/zooming/index.html +++ b/examples/zooming/index.html @@ -111,6 +111,10 @@ $("#overview").bind("plotselected", function (event, ranges) { plot.setSelection(ranges); }); + + // Add the Flot version string to the footer + + $("#footer").prepend("Flot " + $.plot.version + " – "); });