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
name: Smz-CustomXml-v2 | |
description: '' | |
host: WORD | |
api_set: {} | |
script: | |
content: | | |
$("#get-xml").click(() => | |
tryCatch(() => { | |
getCustomJson(); | |
}) |
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
name: Smz CustomXml | |
description: '' | |
host: WORD | |
api_set: {} | |
script: | |
content: | | |
$("#get-xml").click(() => | |
tryCatch(() => { | |
getCustomJson(); | |
}) |
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
name: Read SmzCustomXml | |
description: '' | |
host: WORD | |
api_set: {} | |
script: | |
content: | | |
$("#get-xml").click(() => | |
tryCatch(() => { | |
getCustomJson(); | |
}) |
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
name: Search | |
description: Shows basic and advanced search capabilities. | |
host: WORD | |
api_set: {} | |
script: | |
content: | | |
$("#setup").click(() => tryCatch(setup)); | |
$("#basic-search").click(() => tryCatch(basicSearch)); | |
$("#wildcard-search").click(() => tryCatch(wildcardSearch)); |
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
name: Save and Load CustomXMLParts | |
description: '' | |
host: WORD | |
api_set: {} | |
script: | |
content: > | |
$("#set-xml").click(() => tryCatch(setCustomJson)); | |
$("#get-all-xml").click(() => tryCatch(getAllCustomJson)); |
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
import { getAssetFromKV, mapRequestToAsset } from "@cloudflare/kv-asset-handler"; | |
addEventListener("fetch", (event) => { | |
event.respondWith(handleEvent(event)); | |
}); | |
async function handleEvent(event) { | |
try { |
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
name: Content control basics | |
description: Shows a bug with getSelection content controls | |
host: WORD | |
api_set: {} | |
script: | |
content: > | |
$("#output-paragraph-controls").click(() => | |
tryCatch(outputParagraphContentControls)); | |
$("#output-selection-controls").click(() => |
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
name: Content control basics | |
description: 'Inserts, updates, and retrieves content controls.' | |
host: WORD | |
api_set: {} | |
script: | |
content: > | |
$("#output-paragraph-controls").click(() => | |
tryCatch(outputParagraphContentControls)); | |
$("#output-selection-controls").click(() => |
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
const cspConfig = { | |
"default-src": [ | |
"'self'", | |
"blob:", | |
], | |
"script-src": [ | |
"'self'", | |
"{{cspNonce}}", | |
], | |
"style-src": [ |
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
--------------------------------------------------------------- | |
-- Copyright (C) Microsoft Corporation. All rights reserved. | |
-- Updated by R. Somerfield (hopefully without causing issues for Microsoft's rights). | |
--------------------------------------------------------------- | |
-- the following two properties are persisted across different runs of this TerminalHelper script | |
-- they are used to reuse the same terminal across invocations | |
property lastTty : missing value | |
property lastWindowID : missing value |