Skip to content

Commit

Permalink
JS beautify
Browse files Browse the repository at this point in the history
  • Loading branch information
Penguint committed Apr 16, 2017
1 parent 3880e4e commit 5eeae5e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
8 changes: 4 additions & 4 deletions 3d/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ var uMin, uMax, vMin, vMax;
function update() {
state = calculator.getState();
explist = state.expressions.list;

uMin = explist[15].latex;
uMax = explist[16].latex;
vMin = explist[20].latex;
vMax = explist[21].latex;

calculator.setExpression({
id: 'border.u',
domain: {
Expand All @@ -39,7 +39,7 @@ function loadini() {
$.getJSON('./inistate.json', function(state) {
calculator.setDefaultState(state);
calculator.setState(state);

$('.loading-container').hide();
isLoaded = true;
});
Expand All @@ -48,7 +48,7 @@ function loadini() {
window.onload = function() {
if (!isLoaded) {
loadini();

calculator.observeEvent('change', function() {
if (isLoaded) {
update();
Expand Down
9 changes: 7 additions & 2 deletions saver/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@ var state;
var stateString;

var elt = document.getElementById('calculator');
var calculator = Desmos.GraphingCalculator(elt, {border: false});
calculator.setExpression({id: 'graph1', latex: 'y=x^2'});
var calculator = Desmos.GraphingCalculator(elt, {
border: false
});
calculator.setExpression({
id: 'graph1',
latex: 'y=x^2'
});

var box = document.getElementById('print-box-textarea');

Expand Down

0 comments on commit 5eeae5e

Please sign in to comment.