https://github.com/dzsquared/cs6750-randomimage
https://github.com/dzsquared/cs6750-randomimage
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dzsquared/cs6750-randomimage
- Owner: dzsquared
- License: mit
- Created: 2021-11-26T15:57:15.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-26T19:12:36.000Z (over 4 years ago)
- Last Synced: 2024-12-27T17:20:34.708Z (over 1 year ago)
- Language: C#
- Size: 824 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Image order "Randomizer"
Display images in an alternating order based on a querystring ID. Used in randomizing the order in which prototypes are presented to survey participants.
The Azure Function returns the image content, replacing the image link in the PeerSurvey interface:

## Environment Overview
### Storage Account
Create a storage account and a blob storage container. Upload your prototype images to the container.
### Azure Function
2 environment variables (app settings) are required:
- AZURE_STORAGE_CONNECTION_STRING": connection string with storage account access key (eg "DefaultEndpointsProtocol=https;AccountName=omscs;AccountKey=thisreallylongstringwithcharactersandnumbersandstuffbutreallysuperlong;EndpointSuffix=core.windows.net")
- "AZURE_STORAGE_CONTAINER_NAME": string name of container with images in it (eg "carplay")
## Example Use
The 2 images below will switch places every minute.
The image URL is the function URL + a querystring for the image placement. For example the first one is https://image-selector.azurewebsites.net/api/GetImage?imageID=1.
Image 1:

Image 2:
