config.js 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. //ENDPOINT SPARQL
  2. var endpoint = 'http://iperion.vm.fedcloud.eu:8890/sparql';
  3. //BASE URI
  4. var uri_base = 'http://147.213.76.182:8890';
  5. //SCREENSAVER
  6. var img_logo_bw = '<img src="img/iperionBW.png" height="auto" width="150px"/>';
  7. var txt_screensaver = $('<p class="strong"></p>').text("IPERION-HS per l'ambiente");
  8. var txt2_screensaver = $("<p></p>").text("Questa pagina è entrata in in modalità risparmio energetico. Per tornare alla navigazione muovi il mouse sullo schermo");
  9. //NAVBAR
  10. var nav_item = '<li class="nav-item"></li>';
  11. var home = '<li class="nav-item"> \
  12. <a class="nav-link" href="../index.html">Home</a> \
  13. </li>';
  14. var progetto = '<li class="nav-item"> \
  15. <a class="nav-link" href="../progetto.html">Project</a> \
  16. </li>';
  17. var ricerca = '<li class="nav-item"> \
  18. <a class="nav-link" href="../restricted/ricerca.html">Search</a> \
  19. </li>';
  20. var percorsi = '<li class="nav-item dropdown"> \
  21. <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Percorsi</a> \
  22. <div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink"> \
  23. <a class="dropdown-item" target="_blank" href="https://demo-restore.devworkbench.it/it/1/home">MOVIO</a> \
  24. </div> \
  25. </li>';
  26. var standard = '<li class="nav-item"> \
  27. <a class="nav-link" href="../standard.html">Standard</a> \
  28. </li>';
  29. var open_data = '<li class="nav-item dropdown"> \
  30. <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Open Data</a> \
  31. <div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink"> \
  32. <a class="dropdown-item" href="http://dev.restore.ovi.cnr.it:8890/sparql">Sparql Endpoint</a> \
  33. <a class="dropdown-item" href="../restricted/sparql.html">Examples</a> \
  34. </div> \
  35. </li>';
  36. var download = '<li class="nav-item"> \
  37. <a class="nav-link" href="download.html">Download</a> \
  38. </li>';
  39. var collegamenti_esterni = '<li class="nav-item dropdown"> \
  40. <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink1" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">External resources</a> \
  41. <div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink1"> \
  42. <a class="dropdown-item" href="http://iperion.vm.fedcloud.eu/lodlive/" target="_blank">LOD</a> \
  43. </div> \
  44. </li>';
  45. //FOOTER
  46. var container = $('<div class="container"></div>').append('<div class="row"></div>');
  47. var col_lg_5 = '<div class="col-lg-5 h-100 text-center my-auto"></div>';
  48. var ul_partner_list = '<ul class="partner-list list-inline mb-0"></ul>';
  49. var about = '<li class="list-inline-item"> \
  50. <a href="about.html">About</a> \
  51. </li> \
  52. <li class="list-inline-item">&sdot;</li>';
  53. var contatti = '<li class="list-inline-item"> \
  54. <a href="contatti.html">Contatti</a> \
  55. </li> \
  56. <li class="list-inline-item">&sdot;</li>';
  57. var termini = '<li class="list-inline-item"> \
  58. <a href="termini.html">Termini e Condizioni</a> \
  59. </li>';
  60. var footer_txt = '<p class="small mb-4 mb-lg-0">&copy; IPERION-HS 2022. All Rights Reserved.</p>';
  61. var partner1 = '<li class="list-inline-item mr-3"> \
  62. <a href="https://www.cnr.it/"> \
  63. <img class="img-logo" src="img/CNR.png" /> \
  64. </a> \
  65. </li>';
  66. var partner2 = '<li class="list-inline-item mr-3"> \
  67. <a href="https://europa.eu/"> \
  68. <img class="img-logo" src="img/European-Union.png" /> \
  69. </a> \
  70. </li>';
  71. var ul_list = $('<ul class="list-inline mb-2"><ul>').append(about, contatti, termini);
  72. var col_lg_7 = $('<div class="col-lg-7 h-100 text-center text-lg-left my-auto"></div>').append(ul_list, footer_txt);
  73. var row = $('<div class="row"></div>').append(col_lg_7);
  74. var footer = $('<div class="container"></div>').append(row);
  75. //BUTTONS
  76. function createHeaderButtons(uri) {
  77. var Buttons = '<button title="Go to resource" class="btn btn-default" type="button" onclick="schedaASPO(\'' + uri + '\')"> \
  78. <i class="fas fa-external-link-alt" aria-hidden="true"></i></button> \
  79. <button title="Citation" type="button" value="object" id="' + uri + '" class="cit btn btn-default" alt="scheda" title="Citazione"><i class="fa fa-quote-right"></i></button> \
  80. <button title="Permalink" type="button" value="object" id="' + uri + '" class="hyp btn btn-default" alt="scheda" title="Hyperlink"><i class="fa fa-link"></i></button> \
  81. <a href="http://iperion.vm.fedcloud.eu/lodlive/?' + uri + '" target="_blank"><button title="Browse the graph" type="button" class="btn btn-default info" alt="LOD" title="LodLive"><i class="fa fa-share-alt"></i></button></a></div></div>';
  82. $("#link_buttons").append(Buttons);
  83. }
  84. $(document).ready(function(){
  85. $("#screensaver").append(img_logo_bw, txt_screensaver, txt2_screensaver);
  86. $("#navbar_elements").append(home, ricerca, standard, open_data, collegamenti_esterni);
  87. $("#footer").append(footer);
  88. });