Skip to content

Instantly share code, notes, and snippets.

View studermartin's full-sized avatar

Martin Studer studermartin

View GitHub Profile
@studermartin
studermartin / Content control basics (3).WORD.yaml
Created August 2, 2020 10:48
Inserts, updates, and retrieves content controls.
name: Content control basics (3)
description: 'Inserts, updates, and retrieves content controls.'
host: WORD
api_set: {}
script:
content: |
$("#change-controls").click(() => tryCatch(modifyContentControls));
async function modifyContentControls() {
// Adds title and colors to odd and even content controls and changes their appearance.
@studermartin
studermartin / Content control basics (3).WORD.yaml
Created August 2, 2020 10:12
Inserts, updates, and retrieves content controls.
name: Content control basics (3)
description: 'Inserts, updates, and retrieves content controls.'
host: WORD
api_set: {}
script:
content: |
$("#change-controls").click(() => tryCatch(modifyContentControls));
async function modifyContentControls() {
@studermartin
studermartin / Content control basics (3).WORD.yaml
Created August 2, 2020 10:08
Inserts, updates, and retrieves content controls.
name: Content control basics (3)
description: 'Inserts, updates, and retrieves content controls.'
host: WORD
api_set: {}
script:
content: >
$("#change-controls").click(() => tryCatch(modifyContentControls));
@studermartin
studermartin / Content control basics (3).WORD.yaml
Last active July 28, 2020 19:01
Inserts, updates, and retrieves content controls.
name: Content control basics (3)
description: 'Inserts, updates, and retrieves content controls.'
host: WORD
api_set: {}
script:
content: >
$("#change-controls").click(() => tryCatch(modifyContentControls));
@studermartin
studermartin / Content control basics (3).WORD.yaml
Created July 26, 2020 12:29
Inserts, updates, and retrieves content controls.
name: Content control basics (3)
description: 'Inserts, updates, and retrieves content controls.'
host: WORD
api_set: {}
script:
content: >
$("#change-controls").click(() => tryCatch(modifyContentControls));
@studermartin
studermartin / Content control basics.WORD.yaml
Created July 24, 2020 07:06
Inserts, updates, and retrieves content controls.
name: Content control basics
description: 'Inserts, updates, and retrieves content controls.'
host: WORD
api_set: {}
script:
content: |
$("#insert-controls").click(() => tryCatch(insertContentControls));
$("#change-controls").click(() => tryCatch(modifyContentControls));
$("#setup").click(() => tryCatch(setup));
@studermartin
studermartin / Content control basics.WORD.yaml
Created July 24, 2020 06:38
Inserts, updates, and retrieves content controls.
name: Content control basics
description: 'Inserts, updates, and retrieves content controls.'
host: WORD
api_set: {}
script:
content: |
$("#insert-controls").click(() => tryCatch(insertContentControls));
$("#change-controls").click(() => tryCatch(modifyContentControls));
$("#setup").click(() => tryCatch(setup));
@studermartin
studermartin / labels-on-page
Last active September 29, 2018 21:31
Confluence user macro to display the lables on the page.
## Macro title: Labels in
## Macro has a body: N
## Body processing: No
## Output: -
##
## Developed by: Martin Studer (martin.studer@htwchur.ch)
## Date created: 29/09/2018
## Confluence version: Version it was developed for
## Installed by: -
## Gist: https://gist.github.com/MartinStuderHTWChur/5ed9a63edf9cffd88ea365576d3b895c
@studermartin
studermartin / Prepare forms.yaml
Last active December 6, 2018 07:12
Shared with Script Lab
name: Prepare forms
description: ''
author: MartinStuderHTWChur
host: WORD
api_set: {}
script:
content: |-
// Script to form processing.
//
@studermartin
studermartin / Fix Confluence2Word export.yaml
Last active July 15, 2018 16:22
Shared with Script Lab
name: Fix Confluence2Word export
description: ''
author: MartinStuderHTWChur
host: WORD
api_set: {}
script:
content: |-
// Script to adapt formating in Microsoft Word documents exported from Atlassian Confluence.
//
// Links