web/lib/embed.js
// so the following implements simple dialog boxes for showing the code.
so the following implements simple dialog boxes for showing the code.
so the following implements simple dialog boxes for showing the code .
function openDialog(id) {
  logEvent("dialog", "open", id, "");
  var code = document.getElementById(id + "-code").innerHTML;
  editor.setValue(code);
  lastId = id;
  document.getElementById("thegamma-update").onclick = function() {
    setSourceLookup[id](editor.getValue(), true);
    closeDialog();
    return false;
  }
  document.getElementById("thegamma-dialog").style.display="block";
  setTimeout(function() {
    document.getElementById("thegamma-dialog").style.opacity=1;
    document.getElementById("thegamma-dialog-window").style.top="0px";
  },1);
}
function openDialog ( id ) { logEvent ( "dialog" , "open" , id , "" ) ; var code = document . getElementById ( id + "-code" ) . innerHTML ; editor . setValue ( code ) ; lastId = id ; document . getElementById ( "thegamma-update" ) . onclick = function ( ) { setSourceLookup [ id ] ( editor . getValue ( ) , true ) ; closeDialog ( ) ; return false ; } document . getElementById ( "thegamma-dialog" ) . style . display = "block" ; setTimeout ( function ( ) { document . getElementById ( "thegamma-dialog" ) . style . opacity = 1 ; document . getElementById ( "thegamma-dialog-window" ) . style . top = "0px" ; } , 1 ) ; }
so the following implements simple dialog boxes for showing the code.
so the following implements simple dialog boxes for showing the code .