Skip to content
This repository has been archived by the owner on Jun 30, 2024. It is now read-only.

RSE 0002

Brad Miller edited this page May 7, 2015 · 3 revisions

Common API functions for Runestone Components

bookfuncs.js

  • function showChange(ed,b) -- called when activecode edited --- to activecode.js

  • function pyStr(x) --- to activecode.js

  • function outf(text) --- to activecode.js

  • JSoutput = function(a) --- to activecode.js

  • write = function(str) --- to activecode.js

  • writeln = function(str) --- to activecode.js

  • function createEditors() --- to activecode.js

  • function builtinRead(x) --- to activecode.js

  • function createActiveCode(divid,suppliedSource,sid,language) --- to activecode.js

  • function runit(myDiv, theButton, includes, suffix) --- to activecode.js

  • function addErrorMessage(err, myDiv) --- to activecode.js

  • function logBookEvent(eventInfo) {

  • function logRunEvent(eventInfo) {

  • function saveSuccess(data, status, whatever) {

  • function saveEditor(divName) {

  • function requestCode(divName, sid) {

  • function loadEditor(data, status, whatever) {

  • function disableAcOpt() {

  • function comment(blockid) {

  • function sendGrade(grade, sid, acid, id) {

  • function sendComment(comment, sid, acid, id) {

  • function gotUser(data, status, whatever) {

  • function timedRefresh() {

  • function shouldLogin() {

  • function isLoggedIn() {

  • function addUserToFooter() {

  • function addNavbarLoginLink() {

  • function attachLoggers(codelens, divid) { -- codelens

  • function redrawAllVisualizerArrows() {

  • function getNumUsers() {

  • function getOnlineUsers() {

  • function setOnlineUsers(data) {

  • function setNumUsers(data) {

  • function instructorMchoiceModal(data) {

  • function compareModal(data, status, whatever) {

  • function compareAnswers(div_id) {

  • function compareFITB(data, status, whatever) {

  • function compareFITBAnswers(div_id) {

  • function styleUnittestResults() {

  • function createScratchActivecode() {

  • function toggleScratchActivecode() {

  • function showGradeSummary(data, status, whatever) {

  • function createGradeSummary(div_id) {

  • function hideCodelens(button, div_id) {

  • function injectCodelens(button, div_id) {

  • function injectCodeCoach(div_id) {

user-highlights.js

  • function enableUserHighlights(){
  • function findHighlightClass(classList){
  • function toggleHighlightOptionBox(event, highlightOptionName){
  • function saveSelection(sel) {
  • function saveHighlight(parentSelectorClass,serializedRange,saveMethod) {
  • function deleteHighlight(uniqueId) {
  • function updateHighlightBox() {
  • function restoreSelection() {
  • function processPageState(completionFlag){
Clone this wiki locally