Iter della Riforma sui beni confiscati

// <![CDATA[
$(document).ready(function () {
var offset_left = window.innerWidth – ((window.innerWidth – 1000) / 2);
$(".google-add").css({
left: offset_left
});
});

var hyperlinks = [{"hyperlink":"http://archiviopiolatorre.camera.it/biografia","left":50.804,"top":365.46,"width":254.592,"height":28.8},{"hyperlink":"http://www.piolatorre.it/","left":127.1,"top":212.48,"width":126,"height":126},{"hyperlink":"http://www.normattiva.it/uri-res/N2Ls?urn:nir:stato:legge:1982-09-13;646#nav","left":40.86,"top":453.44,"width":298.48,"height":145.6},{"hyperlink":"http://www.normattiva.it/uri-res/N2Ls?urn:nir:stato:legge:1982-09-13;646#nav","left":315.079,"top":565.74,"width":43.162,"height":54.6},{"hyperlink":"http://www.cgil.it/news/Default.aspx?ID=19861","left":547.7,"top":668.91,"width":126,"height":125.3},{"hyperlink":"http://www.cgil.it/news/Default.aspx?ID=19861","left":589.6427,"top":807.6,"width":259.7346,"height":58.32},{"hyperlink":"http://www.camera.it/_dati/leg17/lavori/stampati/pdf/17PDL0007980.pdf","left":36.7776,"top":970.56,"width":344.3648,"height":208},{"hyperlink":"http://www.camera.it/_dati/leg17/lavori/stampati/pdf/17PDL0007980.pdf","left":333.349,"top":1155.06,"width":43.162,"height":54.6},{"hyperlink":"https://www.youtube.com/watch?v=wTAh_KiOcW0","left":-4.2595,"top":1481.86,"width":388.719,"height":58.32},{"hyperlink":"http://www.avvisopubblico.it/home/aziende-e-beni-confiscati-il-testo-di-riforma-della-legislazione-vigente/","left":468.483,"top":1456.96,"width":342.034,"height":217.8},{"hyperlink":"https://www.youtube.com/watch?v=wTAh_KiOcW0","left":47.56,"top":1633.56,"width":322.8,"height":262.8},{"hyperlink":"http://davidemattiello.it/","left":562.78,"top":1730.18,"width":267,"height":49.84},{"hyperlink":"http://davidemattiello.it/","left":777.8984,"top":1765.8962,"width":63.2632,"height":59.0876},{"hyperlink":"https://www.youtube.com/watch?v=wTAh_KiOcW0","left":32.025,"top":1610.96,"width":344.49,"height":20},{"hyperlink":"http://www.cgil.it/news/Default.aspx?ID=19861","left":599.8327,"top":837.04,"width":259.7346,"height":19.44},{"hyperlink":"http://davidemattiello.it/","left":571.78,"top":1759.55,"width":267,"height":16.02},{"hyperlink":"http://archiviopiolatorre.camera.it/biografia","left":48.804,"top":393.66,"width":254.592,"height":22.4}];
var charts = [];
var scale = (window.innerWidth < 873) ? window.innerWidth / 873 : 1;
hyperlinks.forEach(function (point) {
var hyperlink = '‘ +

‘;
$(‘#easelly-frame’).append(hyperlink);
});
charts.forEach(function (chart, index) {
var overlayChartDiv = ‘

‘;
$(“#easelly-frame”).append(overlayChartDiv);
var previewChartCtx = document.getElementById(index).getContext(‘2d’);
setTimeout(function () {
createChart(previewChartCtx, chart.chartData, chart.chartType);
}, 1000)
});
function moveHyperlink() {
var currentWidth = $(‘#easelly-frame #thumb’).width();
var image = new Image();
image.src = $(‘#easelly-frame #thumb’).attr(‘src’);
var realWidth = image.width;
$(‘#easelly-frame a’).each(function () {
$(this).children(‘div’).css({
top: $(this).attr(‘data-top’) * currentWidth / realWidth,
left: $(this).attr(‘data-left’) * currentWidth / realWidth,
width: $(this).attr(‘data-width’) * currentWidth / realWidth,
height: $(this).attr(‘data-height’) * currentWidth / realWidth
});
});
}
function createChart(ctx, data, type) {
var info = {};
if (type.trim().toUpperCase() === ‘PIE’ || type.trim().toUpperCase() === ‘POLAR’) {
info = data;
} else {
info = {
datasets: data.data,
labels: data.labels
};
}
var config = {
animation: true,
responsive: true,
animationSteps: 120
};
var chartControl = “”;

switch (type.trim().toUpperCase()) {
case “BAR”:
config.scaleLineColor = “rgba(0,0,0,0)”;
config.scaleFontColor = “rgba(0,0,0,0)”;
chartControl = new Chart(ctx).Bar(info, config);
chartControl = ‘bars’;
break;
case “LINE”:
config.scaleLineColor = “rgba(0,0,0,0)”;
config.scaleFontColor = “rgba(0,0,0,0)”;
chartControl = new Chart(ctx).Line(info, config);
chartControl.type = ‘points’;
break;
case “PIE”:
chartControl = new Chart(ctx).Pie(info, config);
break;
case “DOUGHNUT”:
chartControl = new Chart(ctx).Doughnut(info, config);
break;
case “POLAR”:
chartControl = new Chart(ctx).PolarArea(info, config);
break;
case “RADAR”:
config.angleLineColor = “rgba(0,0,0,0)”;
config.pointLabelFontColor = “rgba(0,0,0,0)”;
chartControl = new Chart(ctx).Radar(info, config);
chartControl.type = ‘points’;
break;
default :
break;
}

return chartControl;
}
// ]]>

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *