Description of JavaScript scripts in my web pages¶
About this page¶
This page describes some JavaScript scripts stored in this git repository web-sphinx-scripts.
But it also describes some features implemented in JavaScript for some pages in this website.
List of usage of JavaScript here¶
Smart embedding of Google Analytics (one single script for pages hosted on different servers),
To have
alert
windows in gnuplot.html, ocaml.en.html or python.html,To embed a graphic on transifex.en.html and transifex.fr.html,
To embed a file hosted on Bitbucket in bitbucket-features.en.html,
To experiment some things in avoir.html,
Pour les terminaux in try-ocaml.html, skulpt.html, python.html, gnuplot.html and gnuplot_embed.html.
To display the current air quality in Paris in plume-air-paris.en.html,
I removed these old features in December 2017 to adopt a lighter style.
(removed) To know which webserver was used (and adapt the image in the footer, to show the NGinx or Apache HTTPD logo) en bas,
(removed) To embed SquirtFR, with keyboard shortcut « q »,
(removed) To allow a change in the website style, with keyboard shortcut « s », to change between colors (purple, orange, or green),
List of scripts¶
Not mine¶
jQuery, The famous JS library. It is included by default by Sphinx (to handle the sidebar and other things).
ace, a nice text editor in JS, used for the consoles for Python (python.html and skulpt.html) or for a demo (ace.html).
gnuplot.js and gnuplot_api.js for the embedded GNUPlot console.
skulpt.js and python.js for the embeded Python consoles (skulpt.html and python.html).
toplevel.js and try-ocaml for the embeded OCaml consoles (ocaml.en.html and try-ocaml.en.html).
(removed) mousetrap.min.js to easily define keyboard shortcuts (Go on, try it ! Hit “h” or “i” or “→” or “←” or “n” or “p”, or “u” for instance).
jQuery plugins¶
jquery.scrollUp.min.js adds a button to go to the top of the page, in the side bar (bottom left !),
jquery.smooth-scroll.min.js allows a smooth scroll when clicking an internal link in a page (to a header),
(removed) jquery.timeago.js to display the date of the last change on this website, with keyboard shortcut « u ».
Not my scripts but adapted¶
horloge.js for time.html (in French),
(removed) simpleimagetrail.js (disabled),
(removed) nprogress.js and nprogress.ccs to display a slick progress bar when loading the next page (in cyan),
(removed) forkit.js (the banner « On Bitbucket? » which was moving on top right corner, disabled) and fokus.min.js come from hakim.se. Thanks to him!
My scripts¶
(removed) referrer.js was used to display nicer information messages on the error pages (404.html or 403.html),
(used for folder views) StrapDown.js is an awesome Markdown > HTML compiler,
(used for folder views) SquirtFR is a bookmarklet to read very quickly a webpage.