Commit 256c656b authored by Maxime Chaillet's avatar Maxime Chaillet

Merge branch 'issue71' into 'master'

remove useless </head> It fixes #71.

Closes #71

See merge request !83
parents a68a0c93 8d6edfd8
Pipeline #10301 passed with stages
in 1 minute and 30 seconds
...@@ -11,35 +11,34 @@ ...@@ -11,35 +11,34 @@
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"> <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"> <link rel="stylesheet" href="/min/output.min.css">
</head>
<script src="/min/components.min.js"></script> <script src="/min/components.min.js"></script>
<script src="/min/precompiled.templates.min.js"></script> <script src="/min/precompiled.templates.min.js"></script>
<script src="/min/doi.min.js"></script> <script src="/min/doi.min.js"></script>
<script type="text/javascript"> <script type="text/javascript">
$(document).ready(function () { $(document).ready(function () {
var doi = document.location.pathname.substring(1, document.location.pathname.length); var doi = document.location.pathname.substring(1, document.location.pathname.length);
var controller = new DOIController(new DOIView()); var controller = new DOIController(new DOIView());
if (doi != "") { if (doi != "") {
controller.setOrigin("index"); controller.setOrigin("index");
} }
else { else {
controller.setOrigin("welcome-page"); controller.setOrigin("welcome-page");
} }
controller.displayMainContent(doi); controller.displayMainContent(doi);
}); });
// search the doi entered in the search box // search the doi entered in the search box
function searchDOI() { function searchDOI() {
var doi = $('#doiSearchBox').val(); var doi = $('#doiSearchBox').val();
if (!doi) { doi = $('#doiSearchBox').attr('placeholder') } if (!doi) { doi = $('#doiSearchBox').attr('placeholder') }
var controller = new DOIController(new DOIView()); var controller = new DOIController(new DOIView());
controller.setOrigin("welcome-page"); controller.setOrigin("welcome-page");
controller.getData(doi); controller.getData(doi);
}; };
</script> </script>
</head> </head>
<body> <body>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment