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
# When using System.IO.Compression.ZipFile.CreateFromDirectory in PowerShell, it still uses backslashes in the zip paths | |
# despite this https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/mitigation-ziparchiveentry-fullname-path-separator | |
# Based upon post by Seth Jackson https://sethjackson.github.io/2016/12/17/path-separators/ | |
# | |
# PowerShell 5 (WMF5) & 6 | |
# Using class Keyword https://msdn.microsoft.com/powershell/reference/5.1/Microsoft.PowerShell.Core/about/about_Classes | |
# |
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
Annotator.Plugin.Example = function (element, options) { | |
var myPlugin = {}; | |
myPlugin.pluginInit = function () { | |
// This annotator instance | |
this.annotator | |
// LOADING | |
.subscribe("annotationsLoaded", function (annotations) { | |
console.log("annotationsLoaded called when the annotations have been loaded."); | |
console.log(annotations); |
OlderNewer