Quick question. Can i somehow access javascript variable inside script and then use it to make python graphs?
i got javascript script running on my website, i need to "export" variables inside script after leaving website, then use it in python script running somewhere else. My site is basic html page collecting data about its usage.
window.onload = function(){
var heatmapInstance = h337.create({
container: document.querySelector('.heatmap'),
radius: 90
});
document.querySelector('.heatmap').onmousemove = function(ev) {
heatmapInstance.addData({
x: ev.layerX,
y: ev.layerY,
value: 1
});
};
}
function getHeatMap() {
var currentData = heatmapInstance.getData();
return currentData;
}