-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
511c611
commit 34dde3f
Showing
8 changed files
with
83 additions
and
57 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
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
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,4 @@ | ||
|
||
function cssAcceptedId(str) { | ||
return str.replaceAll(":", "-"); | ||
} |
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,22 @@ | ||
|
||
var googleDriveBaseUri = "https://drive.google.com" | ||
|
||
var fullPhotoBaseUri = `${googleDriveBaseUri}/uc` | ||
|
||
function fullPhoto(googleDriveId) { | ||
return `${fullPhotoBaseUri}?id=${googleDriveId}&export=view`; | ||
} | ||
|
||
function fullPhotoForDownload(googleDriveId) { | ||
return `${fullPhotoBaseUri}?id=${googleDriveId}&export=download`; | ||
} | ||
|
||
var thumbnailBaseUri = `${googleDriveBaseUri}/thumbnail` | ||
|
||
function thumbnailForWidth(googleDriveId, width) { | ||
return `${thumbnailBaseUri}?id=${googleDriveId}&export=download&sz=w${width}`; | ||
} | ||
|
||
function thumbnailForHeight(googleDriveId, height) { | ||
return `${thumbnailBaseUri}?id=${googleDriveId}&export=download&sz=h${height}`; | ||
} |
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