This file contains hidden or 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
| // JavaScript IIIF URL Parser | |
| // Adapted from: https://github.com/NCSU-Libraries/iiif_url/blob/master/lib/iiif_url.rb | |
| // IIIF Image API: https://iiif.io/api/image/3.0/ | |
| function isNumeric(str) { | |
| if (typeof str != "string") return false | |
| return !isNaN(str) && !isNaN(parseFloat(str)) | |
| } | |
| function parse(url) { | |
| let w, h, identifier |
This file contains hidden or 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
| # Take params from the DZI syntax and turn them into an IIIF request | |
| # | |
| # Copyright (C) 2009 CodePlex Foundation | |
| # Copyright (C) 2010-2013 OpenSeadragon contributors | |
| # | |
| # Redistribution and use in source and binary forms, with or without | |
| # modification, are permitted provided that the following conditions are met: | |
| # | |
| # - Redistributions of source code must retain the above copyright notice, |
This file contains hidden or 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
| #!/bin/bash | |
| if [ $# -eq 0 ] | |
| then | |
| # change to whatever default you like | |
| IMAGE_NAME="YOUR-DOCKER-IMAGE" | |
| CONTAINER_NAME="YOUR-DOCKER-CONTAINER" | |
| REPO_NAME="YOUR-GITHUB-REPOSITORY" # NOTE: Name only; not the URL. | |
| else | |
| IMAGE_NAME="$1" |