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
a4b10df5
Commit
a4b10df5
authored
Nov 20, 2012
by
Taddeüs Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Example popovers now appear within the screen on non-widescreens
parent
e4f62ca1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
src/frontend/js/examples.js
src/frontend/js/examples.js
+8
-2
No files found.
src/frontend/js/examples.js
View file @
a4b10df5
...
@@ -86,6 +86,10 @@
...
@@ -86,6 +86,10 @@
current_example
.
play
();
current_example
.
play
();
});
});
function
widescreen
()
{
return
$
(
'
body
'
).
width
()
>
1400
;
}
function
clear_input
()
{
function
clear_input
()
{
$
(
'
#math-input
'
).
val
(
''
).
change
();
$
(
'
#math-input
'
).
val
(
''
).
change
();
window
.
update_math
&&
window
.
update_math
();
window
.
update_math
&&
window
.
update_math
();
...
@@ -129,11 +133,13 @@
...
@@ -129,11 +133,13 @@
}
}
function
label_input
(
description
)
{
function
label_input
(
description
)
{
return
label_elem
(
'
#math-input
'
,
'
left
'
,
description
);
return
label_elem
(
'
#math-input
'
,
widescreen
()
?
'
left
'
:
'
bottom
'
,
description
);
}
}
function
label_pretty_print
(
description
)
{
function
label_pretty_print
(
description
)
{
return
label_elem
(
'
#pretty-print
'
,
'
right
'
,
description
);
return
label_elem
(
'
#pretty-print
'
,
widescreen
()
?
'
right
'
:
'
bottom
'
,
description
);
}
}
function
click_button
(
btn
)
{
function
click_button
(
btn
)
{
...
...
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