index.html 2.86 KB
Newer Older
Alejandro De Maria Antolinos's avatar
Alejandro De Maria Antolinos committed
1
2
<!DOCTYPE html>
<html>
3
4
   <head>
      <meta charset="UTF-8">
5
6
7
8
9
      <link rel="icon" href="/src/images/favicon.ico">
      
      <title> ESRF - DOI </title>
      
      <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">   
10
      <link rel="stylesheet" href="/min/output.min.css" >
11
12
13
14
   </head>
   
   <script src="/min/components.min.js"></script>
   <script src="/min/precompiled.templates.min.js"></script>
Maxime Chaillet's avatar
Maxime Chaillet committed
15
   <script src="/min/doi.min.js"></script>
16
   
17
   <script type="text/javascript">
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
     $(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();
33
     if (!doi){doi = $('#doiSearchBox').attr('placeholder')}
34
35
36
     var controller = new DOIController(new DOIView());
     controller.setOrigin("welcome-page");
     controller.getData(doi);
37
38
   };
   
39
40
41
42
   </script>
   </head>
   <body>
      <div class="container-fluid">
43
44
         <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>
45
46
47
            <div class="col"> </div>
            <div class="col-auto">
               <div class="whiteFont font-3p2rem" id="doiValue">
48
49
                 <!-- filled by the js code -->
                                 
50
               </div>
51
52
53
54
            </div>
         </div>
      </div>
      <div id='main' ></div>
55
      <div id='error' ></div>
56
57
58
59
60
61
      <div class="modal">
         <!-- nothing to write here -->
      </div>
      <footer class="footer">
         <div class="container-fluid">
            <div class="row">
62
               <div class="col-12 col-md-5" >
63
                   <p><a style='font-weight:bold;' href="http://www.esrf.eu">European Synchrotron Radiation Facility</a></p>
64
65
66
67
68
69
               </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>
               <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>
70
71
72
73
74
               </div>
            </div>
         </div>
      </footer>
   </body>
Maxime Chaillet's avatar
Maxime Chaillet committed
75
</html>