-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* changed some comments * removed water mark, removed double and tripple loading * more changes; can't test because PyPi is down * added vendor submodule * vendor gets fail * added jinja2 * broken build * loading juxtapose locally * fixed CSS * using pathlib Co-authored-by: Jan-Hendrik Müller <44469195+kolibril13@users.noreply.github.com> * importing pathlib Co-authored-by: Jan-Hendrik Müller <44469195+kolibril13@users.noreply.github.com> * adding four pixels Co-authored-by: Jan-Hendrik Müller <44469195+kolibril13@users.noreply.github.com> * Developer Installation in readme * small fixes * Update README.md Co-authored-by: Jan-Hendrik Müller <44469195+kolibril13@users.noreply.github.com> Co-authored-by: Jan-Hendrik Müller <44469195+kolibril13@users.noreply.github.com>
- Loading branch information
1 parent
e0ca31b
commit 850efc7
Showing
8 changed files
with
520 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "vendor/juxtapose"] | ||
path = vendor/juxtapose | ||
url = https://github.com/NUKnightLab/juxtapose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<div id="splitview_wrapper_{{ cell_id }}"> | ||
<div id="splitview_{{ cell_id }}"></div> | ||
</div> | ||
|
||
<script> | ||
slider = new juxtapose.JXSlider("#splitview_{{ cell_id }}", | ||
[ | ||
{ | ||
src: "{{ image_data_urls[0] }}", | ||
}, | ||
{ | ||
src: "{{ image_data_urls[1] }}", | ||
} | ||
], | ||
{ | ||
animate: true, | ||
showLabels: false, | ||
showCredits: false, | ||
startingPosition: "{{ slider_position }}", | ||
makeResponsive: true, | ||
// undocumented shit | ||
callback: (jx_slider) => { | ||
// remove juxtapose.js link and logo in bottom left corner | ||
jx_slider.slider.removeChild(jx_slider.labCredit); | ||
}, | ||
}); | ||
</script> | ||
|
||
<style> | ||
#splitview_wrapper_{{ cell_id }} { | ||
position: relative; | ||
padding-top: {{ wrapper_height }}px; | ||
} | ||
|
||
#splitview_{{ cell_id }} { | ||
height: {{ height }}px; | ||
width: auto; | ||
top: 1%; | ||
left: 1%; | ||
position: absolute; | ||
} | ||
</style> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters