×
" +
url + "
");
});
$(document).on("click", ".cit", function (ev) {
var author ="RESTORE. smart access to digital heritage and memory"
var year = new Date().getFullYear()
var today = new Date();
var dd = String(today.getDate()).padStart(2, '0');
var mm = String(today.getMonth() + 1).padStart(2, '0'); //January is 0!
var yyyy = today.getFullYear();
today = dd + '/' + mm + '/' + yyyy;
var baseurl = window.location.origin+window.location.pathname;
let slash = baseurl.lastIndexOf("/");
var type = $(this).val() + '.html';
var link = this.id;
var url = baseurl.substr(0, slash+1) + type + "?link="+link;
//alert(nome_autore);
//$('#myModal').text("");
$("#myModal").empty();
$("#myModal").css("display", "block");
$('#myModal').append("
×
" +
author + " " + year + ", accesso effettuato: " + today + ", <" + url + ">
");
});
function copyToClipboard(text) {
var sampleTextarea = document.createElement("textarea");
document.body.appendChild(sampleTextarea);
sampleTextarea.value = text; //save main text in it
sampleTextarea.select(); //select textarea contenrs
document.execCommand("copy");
document.body.removeChild(sampleTextarea);
}
function myFunction(){
var copy = document.getElementById("myInput");
copyText = copy.textContent;
copyToClipboard(copyText);
//copyToClipboard(copyText.value);
}
$(document).on("click", ".luogo", function (ev) {
var link = this.id;
//alert(nome_autore);
//$('#myModal').text("");
window.open("Luogo.html?link="+this.id);
});
$(document).on("click", ".persona", function (ev) {
var link = this.id;
window.open("Persona.html?link="+this.id);
});
$(document).on("click", ".lettera", function (ev) {
var link = this.id;
//alert(nome_autore);
//$('#myModal').text("");
window.open("lettera.html?link="+this.id);
});
$(document).on("click", ".object", function (ev) {
var link = this.id;
//alert(nome_autore);
//$('#myModal').text("");
window.open("object.html?link="+this.id);
});