Commit 8cd378cc authored by Maxime Chaillet's avatar Maxime Chaillet
Browse files

clean and minify the code. IT fixes icat/doi-landing-page#66

parent 52484207
<!DOCTYPE html>
<html>
<head>
<head>
<meta charset="UTF-8">
<title> ESRF - DOI </title>
<link rel="icon" href="/src/images/favicon.ico">
......@@ -33,6 +32,7 @@
<script src="src/jsonextractor.js"></script>
<script src="src/metadataTableHelper.js"></script>
<!-- bower:css -->
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css" />
<!-- endbower -->
......@@ -40,24 +40,22 @@
<!-- Using grunt-include-source, the proper all dustjs templates files (not minified are included below -->
<script src="min/precompiled.templates.min.js"></script>
<link rel="stylesheet" href="/min/output.min.css">
<link rel="stylesheet" href="/min/output.min.css" >
<script type="text/javascript">
$(document).ready(function () {
$(document).ready(function() {
var doi = document.location.search.substring(5);
if (doi === "") {
alert("Please use dev.html page as follow .../dev.html?DOI=prefix/suffix");
if (doi==="") {
alert ("Please use dev.html page as follow .../dev.html?DOI=prefix/suffix");
} else {
new DOIController(new DOIView()).getData(doi);
}
});
</script>
</head>
<body>
</head>
<body>
<div class="container-fluid">
<div class="row align-items-center blueBackground">
<div class="col-12 col-sm-4"> <img id="logo" style="height:80px;" src="/src/images/esrflogo.png" alt="the ESRF logo">
</img> </div>
<div class="col-12 col-sm-4" > <img id="logo" style="height:80px;" src="/src/images/esrflogo.png" alt="the ESRF logo"> </img> </div>
<div class="col"> </div>
<div class="col-auto">
<div class="whiteFont font-3p2rem" id="doiValue">
......@@ -68,7 +66,7 @@
</div>
<div id="main"></div>
<div id='error'></div>
<div id='error' ></div>
<div class="modal">
<!-- nothing to write here -->
......@@ -76,21 +74,17 @@
<footer class="footer">
<div class="container-fluid">
<div class="row">
<div class="col-12 col-md-5">
<div class="col-12 col-md-5" >
<p><a style='font-weight:bold;' href="http://www.esrf.eu">European Synchrotron Radiation Facility</a></p>
</div>
<div class="col-12 col-md-2">
<a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License"
style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/88x31.png" /></a>
<div class="col-12 col-md-2" >
<a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/88x31.png" /></a>
</div>
<div class="col-12 col-md-5">
<p class="float-right" style="font-size:12px;display:block;"> Access to data is governed by the <a
href="http://www.esrf.eu/files/live/sites/www/files/about/organisation/ESRF%20data%20policy-web.pdf"
target="_blank">ESRF data policy</a>.</p>
<p class="float-right" style="font-size:12px;display:block;" > Access to data is governed by the <a href="http://www.esrf.eu/files/live/sites/www/files/about/organisation/ESRF%20data%20policy-web.pdf" target="_blank">ESRF data policy</a>.</p>
</div>
</div>
</div>
</footer>
</body>
</body>
</html>
This diff is collapsed.
......@@ -175,7 +175,6 @@ DOIController.prototype.getDataForGoogleSearch = function (doi) {
url: 'https://data.datacite.org/' + doi,
//dataType: 'text', // don't convert JSON to Javascript object
success: function (data) {
debugger;
if (data) {
// Here we add the documentation field in the recieved object because 'name' and 'documentation' fileds are required by google dataset search.
if (data.name) {
......
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