Skip to content

Commit 5029e92

Browse files
committed
Merge branch 'release/3.12.4'
2 parents 9a2b5a8 + f11ab72 commit 5029e92

File tree

6 files changed

+21
-5
lines changed

6 files changed

+21
-5
lines changed

README.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ and can also be built from the documentation source within the `docs/` directory
2525
## Contributing
2626

2727
We would love your help to make this guide the best it can be!
28-
Please read our
29-
[contribution guide](http://cs-field-guide.readthedocs.io/en/latest/getting_started/contributing_guide.html)
30-
to get started.
28+
Please read the [documentation](http://cs-field-guide.readthedocs.io/en/latest/) to get started.
3129

3230
## License
3331

csfieldguide/config/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Module for Django system configuration."""
22

3-
__version__ = "3.12.3"
3+
__version__ = "3.12.4"

csfieldguide/static/interactives/pixel-viewer/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ The interactive has the following optional parameters to configure the interacti
3333
- `hide-colour-code-picker` - Hides the option to change between colour code formats.
3434
- `hide-config-selector` - Hides the option to change between modes.
3535
- `no-pixel-fill` - Displays pixels without background fill from start (also doesn't show initial image with transition).
36+
- `preset-zoom` - Sets the initial zoom of the interactive, skipping the establishing zoom animation. Must be a value between 0.01 and 4.
3637
- `pixelmania` - (for Pixelmania 2020) Shows a small Pixelmania logo above the title in the menu.
3738

3839
## Required files

csfieldguide/static/interactives/pixel-viewer/js/pixel-viewer.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ $( document ).ready(function() {
137137
$("input[id='rgb-colour-code']").prop('checked', true);
138138
}
139139

140-
// Check if custom zoom parameters are given, otherwise default to 0,0.
140+
// Check if custom zoom position parameters are given, otherwise default to 0,0.
141141
try {
142142
image_position_top = images[image_filename]["image_position"]["top"];
143143
} catch (e) {
@@ -158,6 +158,10 @@ $( document ).ready(function() {
158158
$('#pixel-viewer-interactive-show-pixel-fill').prop('checked', false);
159159
$("#pixel-viewer-interactive-loader").hide();
160160
$("#pixel-viewer-interactive-buttons").css({opacity: 1});
161+
} else if (searchParameters.has('preset-zoom')){
162+
scroller.zoomTo(searchParameters.get('preset-zoom'));
163+
$("#pixel-viewer-interactive-loader").hide();
164+
$("#pixel-viewer-interactive-buttons").css({opacity: 1});
161165
} else {
162166
$("#pixel-viewer-interactive-original-image").show();
163167
$("#pixel-viewer-interactive-original-image").delay(1000).animate(

docker-compose.prod.yml

+2
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ services:
7171
- node.labels.role==apps
7272
restart_policy:
7373
condition: none
74+
healthcheck:
75+
disable: true
7476
networks:
7577
- backend
7678

docs/changelog.rst

+11
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,17 @@ All notable changes to this project will be documented in this file.
1818
We have listed major changes for each release below.
1919
`All downloads are available on GitHub <https://github.com/uccser/cs-field-guide/releases/>`__
2020

21+
3.12.4
22+
==============================================================================
23+
24+
**Release date:** 31st October 2022
25+
26+
**Changelog:**
27+
28+
- Add abiltiy to set initial zoom level in pixel-viewer interactive via URL parameter.
29+
- Remove broken documentation link.
30+
- Disable healthcheck on Docker task service to prevent deletion while running.
31+
2132
3.12.3
2233
==============================================================================
2334

0 commit comments

Comments
 (0)