Skip to content
GitLab
Menu
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
256c656b
Commit
256c656b
authored
Apr 15, 2019
by
Maxime Chaillet
Browse files
Merge branch 'issue71' into 'master'
remove useless </head> It fixes
#71
. Closes
#71
See merge request
!83
parents
a68a0c93
8d6edfd8
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/index.html
View file @
256c656b
...
...
@@ -11,35 +11,34 @@
<link
href=
"https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"
rel=
"stylesheet"
>
<link
rel=
"stylesheet"
href=
"/min/output.min.css"
>
</head>
<script
src=
"/min/components.min.js"
></script>
<script
src=
"/min/precompiled.templates.min.js"
></script>
<script
src=
"/min/doi.min.js"
></script>
<script
src=
"/min/components.min.js"
></script>
<script
src=
"/min/precompiled.templates.min.js"
></script>
<script
src=
"/min/doi.min.js"
></script>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
var
doi
=
document
.
location
.
pathname
.
substring
(
1
,
document
.
location
.
pathname
.
length
);
var
controller
=
new
DOIController
(
new
DOIView
());
if
(
doi
!=
""
)
{
controller
.
setOrigin
(
"
index
"
);
}
else
{
controller
.
setOrigin
(
"
welcome-page
"
);
}
controller
.
displayMainContent
(
doi
);
});
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
var
doi
=
document
.
location
.
pathname
.
substring
(
1
,
document
.
location
.
pathname
.
length
);
var
controller
=
new
DOIController
(
new
DOIView
());
if
(
doi
!=
""
)
{
controller
.
setOrigin
(
"
index
"
);
}
else
{
controller
.
setOrigin
(
"
welcome-page
"
);
}
controller
.
displayMainContent
(
doi
);
});
// search the doi entered in the search box
function
searchDOI
()
{
var
doi
=
$
(
'
#doiSearchBox
'
).
val
();
if
(
!
doi
)
{
doi
=
$
(
'
#doiSearchBox
'
).
attr
(
'
placeholder
'
)
}
var
controller
=
new
DOIController
(
new
DOIView
());
controller
.
setOrigin
(
"
welcome-page
"
);
controller
.
getData
(
doi
);
};
// search the doi entered in the search box
function
searchDOI
()
{
var
doi
=
$
(
'
#doiSearchBox
'
).
val
();
if
(
!
doi
)
{
doi
=
$
(
'
#doiSearchBox
'
).
attr
(
'
placeholder
'
)
}
var
controller
=
new
DOIController
(
new
DOIView
());
controller
.
setOrigin
(
"
welcome-page
"
);
controller
.
getData
(
doi
);
};
</script>
</script>
</head>
<body>
...
...
Write
Preview
Supports
Markdown
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