added dinamic div

This commit is contained in:
ilpibens 2021-06-10 18:16:37 +02:00
parent 3e5ad12f70
commit 8bc02a60e3
2 changed files with 21 additions and 5 deletions

View File

@ -6,13 +6,21 @@
<link rel="stylesheet" href="css/style.css"> <link rel="stylesheet" href="css/style.css">
<script type="text/javascript" src="js/utils.js"></script> <script type="text/javascript" src="js/utils.js"></script>
<script type="text/javascript" src="https://bundle.run/sparqljs@3.4.1"></script> <script type="text/javascript" src="https://bundle.run/sparqljs@3.4.1"></script>
<script type="text/javascript">
function mostra() {
document.getElementById("divContentId").style.display="block";
}
function nascondi() {
document.getElementById("divContentId").style.display="none";
}
</script>
</head> </head>
<body>
<!-- partial:index.partial.html --> <!-- partial:index.partial.html -->
<body> <body onLoad="javascript:nascondi()">
<h2>Linking Dante Search</h2> <h2>Linking Dante Search</h2>
<!-- form --> <!-- form -->
<form id='myform' onsubmit="return false"> <form id='myform' onsubmit="return false">
<table border="0" cellspacing="0" cellpadding="5px" class='queryform'> <table border="0" cellspacing="0" cellpadding="5px" class='queryform'>
@ -75,7 +83,15 @@
</td> </td>
<td> <td>
<a href="javascript:popupCategoria('0');" title="Configurazione categoria"><small>Categoria</small></a> <!-- <input type=”button” value=”Mostra” onclick="javascript:mostra()" />
<input type=”button” value=”Nascondi” onclick="javascript:nascondi()" />-->
<a href="#nomeancora" onclick="javascript:mostra()"><small>Categoria</small></a>
<a name="nomeancora"> </a>
<div id="divContentId">
<small>tanato per fare una prova</small>
</div>
<!-- <a href="javascript:popupCategoria('0');" title="Configurazione categoria"><small>Categoria</small></a>
<div>tanto per fare una prova</div> -->
</td> </td>
@ -85,6 +101,8 @@
<input type="hidden" name="catg0" value=".+" readonly="readonly"> <input type="hidden" name="catg0" value=".+" readonly="readonly">
</td> </td>
</tr> </tr>

View File

@ -99,8 +99,6 @@ function gimmespqfromjson(form){
} }
data21 = `{"verbovolgare": {"subject": {"termType": "Variable", "value":"form"}, "predicate": {"termType":"NamedNode", "value": "http://www.w3.org/1999/02/22-rdf-syntax-ns#type"}, "object": {"termType": "NamedNode", "value": "http://dantenetwork.it/resource/ontology/ORL/FormaVerboVolgare"}}, data21 = `{"verbovolgare": {"subject": {"termType": "Variable", "value":"form"}, "predicate": {"termType":"NamedNode", "value": "http://www.w3.org/1999/02/22-rdf-syntax-ns#type"}, "object": {"termType": "NamedNode", "value": "http://dantenetwork.it/resource/ontology/ORL/FormaVerboVolgare"}},
"sostantivovolgare": {"subject": {"termType": "Variable", "value":"form"}, "predicate": {"termType":"NamedNode", "value": "http://www.w3.org/1999/02/22-rdf-syntax-ns#type"}, "object": {"termType": "NamedNode", "value": "http://dantenetwork.it/resource/ontology/ORL/FormaSostantivoVolgare"}}, "sostantivovolgare": {"subject": {"termType": "Variable", "value":"form"}, "predicate": {"termType":"NamedNode", "value": "http://www.w3.org/1999/02/22-rdf-syntax-ns#type"}, "object": {"termType": "NamedNode", "value": "http://dantenetwork.it/resource/ontology/ORL/FormaSostantivoVolgare"}},
"aggettivovolgare": {"subject": {"termType": "Variable", "value":"form"}, "predicate": {"termType":"NamedNode", "value": "http://www.w3.org/1999/02/22-rdf-syntax-ns#type"}, "object": {"termType": "NamedNode", "value": "http://dantenetwork.it/resource/ontology/ORL/FormaAggettivoVolgare"}}, "aggettivovolgare": {"subject": {"termType": "Variable", "value":"form"}, "predicate": {"termType":"NamedNode", "value": "http://www.w3.org/1999/02/22-rdf-syntax-ns#type"}, "object": {"termType": "NamedNode", "value": "http://dantenetwork.it/resource/ontology/ORL/FormaAggettivoVolgare"}},