Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-qtype_stack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle-qtype_stack
Commits
3c1c60fd
Commit
3c1c60fd
authored
1 year ago
by
smmercuri
Browse files
Options
Downloads
Patches
Plain Diff
Remove cdnjs mathjax function
parent
dc30f8e2
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
stack/cas/castext2/blocks/parsons.block.php
+1
-1
1 addition, 1 deletion
stack/cas/castext2/blocks/parsons.block.php
vle_specific.php
+0
-4
0 additions, 4 deletions
vle_specific.php
with
1 addition
and
5 deletions
stack/cas/castext2/blocks/parsons.block.php
+
1
−
1
View file @
3c1c60fd
...
...
@@ -101,7 +101,7 @@ class stack_cas_castext2_parsons extends stack_cas_castext2_block {
$r
->
items
[]
=
new
MP_String
(
json_encode
(
$xpars
));
// Plug in some style and scripts.
$mathjax
=
(
$mathjaxversion
===
"2"
)
?
stack_get_mathjax
2
_url
_cdnjs
()
:
stack_get_mathjax3_url
();
$mathjax
=
(
$mathjaxversion
===
"2"
)
?
stack_get_mathjax_url
()
:
stack_get_mathjax3_url
();
$r
->
items
[]
=
new
MP_List
([
new
MP_String
(
'script'
),
new
MP_String
(
json_encode
([
'type'
=>
'text/javascript'
,
'src'
=>
$mathjax
]))]);
...
...
This diff is collapsed.
Click to expand it.
vle_specific.php
+
0
−
4
View file @
3c1c60fd
...
...
@@ -193,10 +193,6 @@ function stack_get_mathjax_url(): string {
return
'https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'
;
}
function
stack_get_mathjax2_url_cdnjs
()
{
return
'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML'
;
}
/*
* Gets the url for MathJax 3.
*/
...
...
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