config.js 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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">Standards</a> \
  28. </li>';
  29. var manuscript = '<li class="nav-item"> \
  30. <a class="nav-link" href="../manuscript.html">Test Page</a> \
  31. </li>';
  32. var open_data = '<li class="nav-item dropdown"> \
  33. <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Open Data</a> \
  34. <div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink"> \
  35. <a class="dropdown-item" href="http://dev.restore.ovi.cnr.it:8890/sparql">Sparql Endpoint</a> \
  36. <a class="dropdown-item" href="../restricted/sparql.html">Examples</a> \
  37. </div> \
  38. </li>';
  39. var download = '<li class="nav-item"> \
  40. <a class="nav-link" href="download.html">Download</a> \
  41. </li>';
  42. var collegamenti_esterni = '<li class="nav-item dropdown"> \
  43. <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink1" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">External resources</a> \
  44. <div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink1"> \
  45. <a class="dropdown-item" href="http://iperion.vm.fedcloud.eu/lodlive/" target="_blank">LOD</a> \
  46. </div> \
  47. </li>';
  48. //FOOTER
  49. var container = $('<div class="container"></div>').append('<div class="row"></div>');
  50. var col_lg_5 = '<div class="col-lg-5 h-100 text-center my-auto"></div>';
  51. var ul_partner_list = '<ul class="partner-list list-inline mb-0"></ul>';
  52. var about = '<li class="list-inline-item"> \
  53. <a href="about.html">About</a> \
  54. </li> \
  55. <li class="list-inline-item">&sdot;</li>';
  56. var contatti = '<li class="list-inline-item"> \
  57. <a href="contatti.html">Contatti</a> \
  58. </li> \
  59. <li class="list-inline-item">&sdot;</li>';
  60. var termini = '<li class="list-inline-item"> \
  61. <a href="termini.html">Termini e Condizioni</a> \
  62. </li>';
  63. var footer_txt = '<p class="small mb-4 mb-lg-0">&copy; IPERION-HS 2022. All Rights Reserved.</p>';
  64. var partner1 = '<li class="list-inline-item mr-3"> \
  65. <a href="https://www.cnr.it/"> \
  66. <img class="img-logo" src="img/CNR.png" /> \
  67. </a> \
  68. </li>';
  69. var partner2 = '<li class="list-inline-item mr-3"> \
  70. <a href="https://europa.eu/"> \
  71. <img class="img-logo" src="img/European-Union.png" /> \
  72. </a> \
  73. </li>';
  74. var ul_list = $('<ul class="list-inline mb-2"><ul>').append(about, contatti, termini);
  75. var col_lg_7 = $('<div class="col-lg-7 h-100 text-center text-lg-left my-auto"></div>').append(ul_list, footer_txt);
  76. var row = $('<div class="row"></div>').append(col_lg_7);
  77. var footer = $('<div class="container"></div>').append(row);
  78. //BUTTONS
  79. function createHeaderButtons(uri) {
  80. var Buttons = '<button title="Go to resource" class="btn btn-default" type="button" onclick="schedaASPO(\'' + uri + '\')"> \
  81. <i class="fas fa-external-link-alt" aria-hidden="true"></i></button> \
  82. <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> \
  83. <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> \
  84. <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>';
  85. $("#link_buttons").append(Buttons);
  86. }
  87. $(document).ready(function(){
  88. $("#screensaver").append(img_logo_bw, txt_screensaver, txt2_screensaver);
  89. // $("#navbar_elements").append(home, ricerca, standard, open_data, collegamenti_esterni);
  90. $("#navbar_elements").append(home, manuscript, standard);
  91. $("#footer").append(footer);
  92. });