This file contains 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: Office Online Content Control Issue | |
description: Test an issue in Office Online. | |
host: WORD | |
api_set: {} | |
script: | |
content: | | |
$("#copy").click(() => tryCatch(copy)); | |
$("#paste").click(() => tryCatch(paste)); | |
let xmlContent = null; |
This file contains 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
/* euclidean GCD (feel free to use any other) */ | |
function gcd(a,b) {if(b>a) {temp = a; a = b; b = temp} while(b!=0) {m=a%b; a=b; b=m;} return a;} | |
/* ratio is to get the gcd and divide each component by the gcd, then return a string with the typical colon-separated value */ | |
function ratio(x,y) {c=gcd(x,y); return ""+(x/c)+":"+(y/c)} | |
/* fix it so the shortest side is always first */ | |
function rotatedRatio(x,y) {var bx=x;if(x>y){x=y;y=bx;} return ratio(x,y)} | |
/* eg: |
This file contains 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
/*! | |
* jquery-win8-deferred - jQuery $.when that understands WinJS.promise | |
* version: 0.1 | |
* author: appendTo, LLC | |
* copyright: 2012 | |
* license: MIT (http://www.opensource.org/licenses/mit-license) | |
* date: Thu, 01 Nov 2012 07:38:13 GMT | |
*/ | |
(function () { | |
var $when = $.when; |