var imgPointer = null; function init(){ imgPointer = document.getElementById('pointer'); imgPointer.style.position = 'absolute'; imgPointer.style.top = '64px'; imgPointer.style.left = '-300px'; imgPointer.style.visibility = 'hidden'; } function getPos(e) { x = e.offsetX?(e.offsetX):e.pageX-document.getElementById("brightnessPlot").offsetLeft; y = e.offsetY?(e.offsetY):e.pageY-document.getElementById("brightnessPlot").offsetTop; width=document.getElementById('brightnessPlot').clientWidth; plotWidth = Math.floor(width * 0.84); ignorePixels = Math.floor(width * 0.08 + 0.5); cx = Math.max(0, x - ignorePixels); cx = Math.min(1, cx / plotWidth); numImages = 0; preImages = 0; idx = Math.floor(cx * (numImages-1) + 0.5) + preImages + 1; // idx = Math.floor((Math.random()*10)+1); document.moveJPEG.src = my_images[idx]; document.getElementById('displayArea').innerHTML = "Time: " + arr_hour[idx] + " (UTC), brightness: " + arr_brightness[idx] + " DN/s"; if ((x > ignorePixels) && (x < (plotWidth + ignorePixels))) { imgPointer.style.visibility = 'visible'; imgPointer.style.left = e.clientX-1; } } function anim_img(x) { if (idx_img > 0) { idx_img = 1; } var src_of_image = my_images[idx_img]; document.myJPEGs.src = src_of_image; idx_img++; } t = setInterval("anim_img(idx_img)", 200); window.onload = function() {init();};
The research leading to these results has received funding from the European Commission's Seventh Framework Programme (FP7/2007-2013) under the grant agreement nr. 263506 [AFFECTS], and grant agreement nr. 263252 [COMESEP]
Solar Demon is still under construction.