Prechádzať zdrojové kódy

Update link on marks

Alessia 1 rok pred
rodič
commit
340e1fd8c0
2 zmenil súbory, kde vykonal 6 pridanie a 2 odobranie
  1. 5 1
      js/people.js
  2. 1 1
      js/query/managerQuery.js

+ 5 - 1
js/people.js

@@ -744,8 +744,11 @@ function handle_Compagnia(json) {
 
 function handle_Contrassegni(json) {
 
+  console.log(json);
+
   var id_image = "";
   var name_image = "";
+  var uri = "";
 
   $.each(
     json['results']['bindings'],
@@ -757,10 +760,11 @@ function handle_Contrassegni(json) {
       if (value.hasOwnProperty('contrassegno')) {
         name_image = value['contrassegno']['value'];
       }
+      uri = value['uri_image']['value'];
 
   });
   
-  var Image = '<img style="width:100%;" src="img/contrassegni/' + id_image + '" />'
+  var Image = '<div id="' + uri + '" style="cursor:pointer;" class="object"><img style="width:100%;" src="img/contrassegni/' + id_image + '" /></div>'
 
   document.getElementById("contrassegno").innerHTML = Image;
   document.getElementById("nome_contrassegno").innerHTML = titleCase(name_image);

+ 1 - 1
js/query/managerQuery.js

@@ -558,7 +558,7 @@ var queryManager = {
             } \
             }",
 
-            queryContrassegni : " SELECT DISTINCT ?contrassegno ?image \
+            queryContrassegni : " SELECT DISTINCT ?uri ?uri_image ?contrassegno ?image \
             WHERE { \
             VALUES ?uri {<{URI}>} \
             ?event crm:P141_assigned ?uri ; \