From: Danilo Bargen Date: Sun, 8 Sep 2019 13:06:00 +0000 (+0200) Subject: Docs: Add JavaScript filename example X-Git-Tag: 0.8.0~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfcd7d124a232bdc1c898f6ad205da8157d24190;p=thirdparty%2Fbulma.git Docs: Add JavaScript filename example Embedding it directly into the docs is better than an external jsfiddle, especially since the code snippet is so simple. --- diff --git a/docs/documentation/form/file.html b/docs/documentation/form/file.html index 466594612..b7dafc792 100644 --- a/docs/documentation/form/file.html +++ b/docs/documentation/form/file.html @@ -459,6 +459,35 @@ meta: {% endcapture %} +{% capture file_javascript %} +
+ +
+ + +{% endcapture %} + {% capture file_sizes_boxed_name %}
@@ -725,9 +754,9 @@ meta:

A file upload input requires JavaScript to retrieve the selected file name. -
- User @chintanbanugaria on GitHub has provided a simple solution on JSFiddle. + Here is an example of how this could be done:

+ {% include elements/snippet.html content=file_javascript %}
{% include elements/variables.html