Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
trs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Taddeüs Kroes
trs
Commits
ff2b297b
Commit
ff2b297b
authored
12 years ago
by
Sander Mathijs van Veen
Browse files
Options
Downloads
Patches
Plain Diff
Removed old, disabled code from the frontend.
parent
dbc158eb
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/frontend/js/editor.js
+0
-18
0 additions, 18 deletions
src/frontend/js/editor.js
with
0 additions
and
18 deletions
src/frontend/js/editor.js
+
0
−
18
View file @
ff2b297b
...
...
@@ -2,36 +2,18 @@
var
QUEUE
=
MathJax
.
Hub
.
queue
;
// shorthand for the queue
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
;
//// 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
'
);
input_textarea
.
change
(
function
(){
trigger_update
=
true
;
})
.
keyup
(
function
(){
trigger_update
=
true
;
});
$
(
'
#input
'
).
click
(
function
(){
//input_box.focus();
input_textarea
.
focus
();
});
// Get the element jax when MathJax has produced it.
QUEUE
.
Push
(
function
()
{
//math = MathJax.Hub.getAllJax('MathOutput')[0];
//box = document.getElementById('box');
//show_box();
// The onchange event handler that typesets the math entered
// 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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment