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
from lti.outcome_request import OutcomeRequest | |
outcome_request = OutcomeRequest( | |
opts={ | |
"consumer_key": "tophat-canvas", | |
"consumer_secret": "tophat123", | |
"lis_outcome_service_url": tool_provider.launch_params.get('lis_outcome_service_url'), | |
"lis_result_sourcedid": tool_provider.launch_params.get('lis_result_sourcedid'), | |
"operation": "replaceResult", | |
} | |
) |
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 diffButton = document.getElementById('diff-button'); | |
const clearButton = document.getElementById('clear-button'); | |
const text1Input = document.getElementById('diff-text1'); | |
const text2Input = document.getElementById('diff-text2'); | |
const diffOriginal = document.getElementById('diff-original'); | |
const diffModified = document.getElementById('diff-modified'); | |
diffButton.addEventListener('click', async function () { | |
diffButton.classList.add('loading'); | |
diffButton.textContent = ''; |
OlderNewer