Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
trs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
trs
Commits
ff2b297b
Commit
ff2b297b
authored
May 19, 2012
by
Sander Mathijs van Veen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed old, disabled code from the frontend.
parent
dbc158eb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
18 deletions
+0
-18
src/frontend/js/editor.js
src/frontend/js/editor.js
+0
-18
No files found.
src/frontend/js/editor.js
View file @
ff2b297b
...
@@ -2,36 +2,18 @@
...
@@ -2,36 +2,18 @@
var
QUEUE
=
MathJax
.
Hub
.
queue
;
// shorthand for the queue
var
QUEUE
=
MathJax
.
Hub
.
queue
;
// shorthand for the queue
var
math
=
null
;
// the element jax for the math output
var
math
=
null
;
// the element jax for the math output
// Hide and show the box (so it doesn't flicker as much)
//var hide_box = function () {box.style.visibility = 'hidden'}
//var show_box = function () {box.style.visibility = 'visible'}
var
trigger_update
=
true
;
var
trigger_update
=
true
;
//// Initialise codemirror environment
//var input_textarea = document.getElementById('MathInput'),
// input_box = CodeMirror.fromTextArea(input_textarea, {
// value: '',
// mode: 'r',
// matchBrackets: true,
// onChange: function(f) { trigger_update = true; }
// });
var
input_textarea
=
$
(
'
#MathInput
'
);
var
input_textarea
=
$
(
'
#MathInput
'
);
input_textarea
.
change
(
function
(){
trigger_update
=
true
;
})
input_textarea
.
change
(
function
(){
trigger_update
=
true
;
})
.
keyup
(
function
(){
trigger_update
=
true
;
});
.
keyup
(
function
(){
trigger_update
=
true
;
});
$
(
'
#input
'
).
click
(
function
(){
$
(
'
#input
'
).
click
(
function
(){
//input_box.focus();
input_textarea
.
focus
();
input_textarea
.
focus
();
});
});
// Get the element jax when MathJax has produced it.
// Get the element jax when MathJax has produced it.
QUEUE
.
Push
(
function
()
{
QUEUE
.
Push
(
function
()
{
//math = MathJax.Hub.getAllJax('MathOutput')[0];
//box = document.getElementById('box');
//show_box();
// The onchange event handler that typesets the math entered
// The onchange event handler that typesets the math entered
// by the user. Hide the box, then typeset, then show it again
// by the user. Hide the box, then typeset, then show it again
// so we don't see a flash as the math is cleared and replaced.
// so we don't see a flash as the math is cleared and replaced.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment