Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doi-landing-page
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
4
Issues
4
List
Boards
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ICAT
doi-landing-page
Commits
3b917310
Commit
3b917310
authored
Apr 30, 2018
by
Maxime Chaillet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean the code
parent
b2ee65fc
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
38 additions
and
57 deletions
+38
-57
www/css/doi.css
www/css/doi.css
+35
-42
www/min/output.min.css
www/min/output.min.css
+1
-1
www/min/precompiled.templates.min.js
www/min/precompiled.templates.min.js
+1
-1
www/src/doicontroller.js
www/src/doicontroller.js
+0
-1
www/src/doiview.js
www/src/doiview.js
+0
-12
www/templates/landingpage_tpl.js
www/templates/landingpage_tpl.js
+1
-0
No files found.
www/css/doi.css
View file @
3b917310
...
...
@@ -11,6 +11,19 @@ body {
font-size
:
1.6rem
;
}
hr
{
margin-top
:
15px
;
margin-bottom
:
15px
;
}
label
{
margin-bottom
:
0px
;
font-weight
:
bold
;
}
/* ########################################### */
/* override bootstrap specific classes */
/* ########################################### */
.footer
{
position
:
absolute
;
bottom
:
0
;
...
...
@@ -20,20 +33,21 @@ body {
background-color
:
#f4f4f4
;
}
/* Custom page CSS
-------------------------------------------------- */
/* Not required for template or sticky footer method. */
.card-header
{
background-color
:
#CFD1D2
;
}
.card-footer
{
background-color
:
#FFFFFF
;
border
:
0
;
}
.container
{
width
:
auto
;
max-width
:
680px
;
padding
:
0
15px
;
}
/* sets the display of the element to flex */
.flex
{
display
:
flex
;
}
/* ########################################### */
/* the backgrounds */
/* ########################################### */
...
...
@@ -51,6 +65,9 @@ body {
background-color
:
#dcdee2
;
}
.whiteBackground
{
background-color
:
#ffffff
;
}
/* ########################################### */
/* the fonts */
...
...
@@ -81,7 +98,6 @@ body {
/* ########################################### */
/* the padding */
/* ########################################### */
.padding-top-15
{
padding-top
:
15px
;
}
...
...
@@ -125,7 +141,6 @@ body {
/* ########################################### */
/* the margin */
/* ########################################### */
.marging-right-10
{
marging-right
:
10px
;
}
...
...
@@ -138,7 +153,9 @@ body {
margin-right
:
0px
;
}
/* ######################## For DOI badge ################ */
/* ########################################### */
/* the DOI badge */
/* ########################################### */
.borderRadius-5
{
border-radius
:
5px
;
}
...
...
@@ -173,20 +190,6 @@ span.doiBadge a {
padding-left
:
10px
;
}
.card-footer
{
background-color
:
#FFFFFF
;
border
:
0
;
}
hr
{
margin-top
:
15px
;
margin-bottom
:
15px
;
}
label
{
margin-bottom
:
0px
;
}
.scroll-box
{
overflow-y
:
auto
;
overflow-x
:
hidden
;
...
...
@@ -195,17 +198,10 @@ label {
/* ######################## For welcome page ############# */
.whiteBackground
{
background-color
:
#ffffff
;
}
.welcomeBanner
{
heigth
:
100px
;
}
.flexCentered
{
display
:
flex
;
justify-content
:
center
;
/* align horizontal */
...
...
@@ -219,7 +215,6 @@ label {
/* ########################################### */
/* the form elements */
/* ########################################### */
/* make all button's text to wrap to a new line */
.form-control
{
font-size
:
1.6rem
;
}
...
...
@@ -249,21 +244,13 @@ label {
opacity
:
.50
}
/* ############## end the buttons ############## */
/*sets all labels to bold */
label
{
font-weight
:
bold
;
}
/* ################# esrf logo ############### */
#logo
{
height
:
50px
;
}
/* ############### right side metadata ##########*/
.card-header
{
background-color
:
#CFD1D2
;
}
/* ######################################################### */
/* ## the please-wait-loading-animation ## */
...
...
@@ -298,3 +285,9 @@ body.loading .modal {
}
/* ######################################################### */
/* sets the display of the element to flex */
.flex
{
display
:
flex
;
}
www/min/output.min.css
View file @
3b917310
This source diff could not be displayed because it is too large. You can
view the blob
instead.
www/min/precompiled.templates.min.js
View file @
3b917310
This diff is collapsed.
Click to expand it.
www/src/doicontroller.js
View file @
3b917310
...
...
@@ -38,7 +38,6 @@ DOIController.prototype.isValidDOIData = function(doiData) {
DOIController
.
prototype
.
getData
=
function
(
doi
)
{
var
_this
=
this
;
this
.
view
.
setDOIInTopBanner
(
doi
);
//this.view.setDOILink(_this.doiServer + doi);
if
(
this
.
hasAcceptedPrefix
(
doi
))
{
$
.
ajax
({
...
...
www/src/doiview.js
View file @
3b917310
...
...
@@ -24,20 +24,8 @@ DOIView.prototype.setLoading = function( message ) {
*/
DOIView
.
prototype
.
setDOIInTopBanner
=
function
(
doiCode
)
{
$
(
"
#doiValue
"
).
text
(
"
DOI >
"
+
doiCode
.
toUpperCase
()
);
// $( "#doiBadge" ).html(
// "<span class='doiBadge borderRadius-5 fontSize-20'> <a id='doiLink' href=''>" +
// doiCode.toUpperCase() +
// "</a> </span>" );
};
/**
* Set the doi http link in the doi landing page. It is the http address at datacite server which will redirect to the DOI landing page.
*
*/
//DOIView.prototype.setDOILink = function( doiLink ) {
// $( "#doiLink" ).attr( "href", doiLink.toUpperCase() );
//};
/**
* Render experimental Report data
*
...
...
www/templates/landingpage_tpl.js
View file @
3b917310
...
...
@@ -22,6 +22,7 @@
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"
padding-top-15
"
><
/div
>
<
/div
>
<
div
class
=
"
col-12 col-md-3
"
>
<
div
class
=
"
card
"
>
...
...
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