diff options
| author | Markus Heiser <markus.heiser@darmarIT.de> | 2021-12-14 08:07:22 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-14 08:07:22 +0100 |
| commit | 4f22615259fc4a9fb80b47ad5b4bcd17f994bc68 (patch) | |
| tree | 15bcc625b749b3434576837414c66e7cab9d31b8 /searx/static/themes/__common__/js | |
| parent | 5c7167cd5af2c18826595bfff877766dab4b44ca (diff) | |
| parent | f287787c44956a6584f78fdd9d6bf423384d1643 (diff) | |
Merge pull request #538 from return42/eslint
SearXNG JavaScript Style Guide
Diffstat (limited to 'searx/static/themes/__common__/js')
| -rw-r--r-- | searx/static/themes/__common__/js/image_layout.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/searx/static/themes/__common__/js/image_layout.js b/searx/static/themes/__common__/js/image_layout.js index be4fe84e0..e37058dfa 100644 --- a/searx/static/themes/__common__/js/image_layout.js +++ b/searx/static/themes/__common__/js/image_layout.js @@ -22,7 +22,7 @@ (function (w, d) { - function ImageLayout(container_selector, results_selector, img_selector, verticalMargin, horizontalMargin, maxHeight) { + function ImageLayout (container_selector, results_selector, img_selector, verticalMargin, horizontalMargin, maxHeight) { this.container_selector = container_selector; this.results_selector = results_selector; this.img_selector = img_selector; @@ -57,7 +57,7 @@ } } - return (width - images.length * this.verticalMargin) / r; //have to round down because Firefox will automatically roundup value with number of decimals > 3 + return (width - images.length * this.verticalMargin) / r; // have to round down because Firefox will automatically roundup value with number of decimals > 3 }; ImageLayout.prototype._setSize = function (images, height) { @@ -147,12 +147,12 @@ var results_nodes = d.querySelectorAll(this.results_selector); var results_length = results_nodes.length; - function img_load_error(event) { + function img_load_error (event) { // console.log("ERROR can't load: " + event.originalTarget.src); event.originalTarget.src = w.searxng.static_path + w.searxng.theme.img_load_error; } - function throttleAlign() { + function throttleAlign () { if (obj.isAlignDone) { obj.isAlignDone = false; setTimeout(function () { |