Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Maxime Chaillet
doi-landing-page
Commits
a9df75cf
Commit
a9df75cf
authored
Jan 18, 2019
by
Alejandro De Maria Antolinos
Browse files
It is minified now
parent
23c2094d
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
www/min/components.min.js
View file @
a9df75cf
This diff is collapsed.
Click to expand it.
www/min/doi.min.js
View file @
a9df75cf
This diff is collapsed.
Click to expand it.
www/min/output.min.css
View file @
a9df75cf
This source diff could not be displayed because it is too large. You can
view the blob
instead.
www/src/experimentalreportcontroller.js
View file @
a9df75cf
...
...
@@ -8,17 +8,18 @@ function ExperimentalReportController() {
ExperimentalReportController
.
prototype
.
normalizeProposalName
=
function
(
proposalName
)
{
try
{
// extract the proposal LetterCode (before the hyphen) and the digits (after the hyphen)
var
aroundHyphenRegExp
=
new
RegExp
(
/^
(
.*
)
-
(
.*
)
/
);
return
{
categoryCode
:
aroundHyphenRegExp
.
exec
(
proposalName
)[
1
],
categoryCounter
:
aroundHyphenRegExp
.
exec
(
proposalName
)[
2
]
};
var
aroundHyphenRegExp
;
try
{
// extract the proposal LetterCode (before the hyphen) and the digits (after the hyphen)
aroundHyphenRegExp
=
new
RegExp
(
/^
(
.*
)
-
(
.*
)
/
);
return
{
categoryCode
:
aroundHyphenRegExp
.
exec
(
proposalName
)[
1
],
categoryCounter
:
aroundHyphenRegExp
.
exec
(
proposalName
)[
2
]
};
}
catch
(
e
)
{
/** It is most likely that symbol '-' is not present in the proposal name then we use /\d+$/ */
var
aroundHyphenRegExp
=
new
RegExp
(
/
\d
+$/
);
aroundHyphenRegExp
=
new
RegExp
(
/
\d
+$/
);
/** This will get all numbers at the end of the string
* Example: input=mx3030 then output[0]=3030
*/
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment