File tree 6 files changed +21
-5
lines changed
static/interactives/pixel-viewer
6 files changed +21
-5
lines changed Original file line number Diff line number Diff line change @@ -25,9 +25,7 @@ and can also be built from the documentation source within the `docs/` directory
25
25
## Contributing
26
26
27
27
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.
31
29
32
30
## License
33
31
Original file line number Diff line number Diff line change 1
1
"""Module for Django system configuration."""
2
2
3
- __version__ = "3.12.3 "
3
+ __version__ = "3.12.4 "
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ The interactive has the following optional parameters to configure the interacti
33
33
- ` hide-colour-code-picker ` - Hides the option to change between colour code formats.
34
34
- ` hide-config-selector ` - Hides the option to change between modes.
35
35
- ` 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.
36
37
- ` pixelmania ` - (for Pixelmania 2020) Shows a small Pixelmania logo above the title in the menu.
37
38
38
39
## Required files
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ $( document ).ready(function() {
137
137
$ ( "input[id='rgb-colour-code']" ) . prop ( 'checked' , true ) ;
138
138
}
139
139
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.
141
141
try {
142
142
image_position_top = images [ image_filename ] [ "image_position" ] [ "top" ] ;
143
143
} catch ( e ) {
@@ -158,6 +158,10 @@ $( document ).ready(function() {
158
158
$ ( '#pixel-viewer-interactive-show-pixel-fill' ) . prop ( 'checked' , false ) ;
159
159
$ ( "#pixel-viewer-interactive-loader" ) . hide ( ) ;
160
160
$ ( "#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 } ) ;
161
165
} else {
162
166
$ ( "#pixel-viewer-interactive-original-image" ) . show ( ) ;
163
167
$ ( "#pixel-viewer-interactive-original-image" ) . delay ( 1000 ) . animate (
Original file line number Diff line number Diff line change @@ -71,6 +71,8 @@ services:
71
71
- node.labels.role==apps
72
72
restart_policy :
73
73
condition : none
74
+ healthcheck :
75
+ disable : true
74
76
networks :
75
77
- backend
76
78
Original file line number Diff line number Diff line change @@ -18,6 +18,17 @@ All notable changes to this project will be documented in this file.
18
18
We have listed major changes for each release below.
19
19
`All downloads are available on GitHub <https://github.com/uccser/cs-field-guide/releases/ >`__
20
20
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
+
21
32
3.12.3
22
33
==============================================================================
23
34
You can’t perform that action at this time.
0 commit comments