This simple demo page can be further developed to add further features.
It uses GS1DigitalLinkToolkit.js to translate between GS1 element strings and GS1 Digital Link URI syntax.
It uses vue.js to update the Web page in real time, all client-side.
Input: Element string | ||
Options | Use alphabetic short names e.g. /gtin/ Omit primary key from compression e.g. /gtin/ Use optimisations Custom URI stem | |
Output: GS1 Digital Link URI | {{digitalLinkOutput.length}} | |
Output: Compressed GS1 Digital Link URI | {{compressedDigitalLinkOutput.length}} | |
Error: |
Input: Compressed GS1 Digital Link URI | |||
Input: GS1 Digital Link URI | |||
Options | Use brackets / human-readable output | ||
Output: Element string | |||
Error: |
Input: Uncompressed GS1 Digital Link URI | {{uncompressedDigitalLinkInput.length}} | ||
Output: Compressed GS1 Digital Link URI | {{compressedDigitalLink.length}} | ||
Options | Compress non-GS1 key=value pairs from URI query string | ||
Error: |
Input: Compressed GS1 Digital Link URI | {{compressedDigitalLinkInput2.length}} | |
Output: Uncompressed GS1 Digital Link URI | {{uncompressedDigitalLinkOutput.length}} | |
Output: Structured Array | ||
Error: |
Input: GS1 Digital Link URI | |
Input: GS1 element strings | |
Detected: | |
Structured output: | |
Semantic output: | |
Element strings output: | |
Error: |