Sha256: 395833de476ec79218c614a72ad5b2aac2cb9fb64885e5f645f46746d49d07e8
Contents?: true
Size: 593 Bytes
Versions: 20
Compression:
Stored size: 593 Bytes
Contents
//= require <prototype> // LOAD PAGE EVENT Event.observe(window, 'load', function() { setContentHeight(); }); // RESIZE PAGE EVENT window.onresize = function () { setContentHeight(); } // Set the height of div content from back end function setContentHeight() { // SPROCKETIZED if(contents = $('contenuti')) { // Height of the whole window var windowHeight = document.viewport.getDimensions().height; // Top position of div content var contentPosY = $('contenuti').cumulativeOffset().top; contents.style.height = ( windowHeight - contentPosY ) + "px"; } }
Version data entries
20 entries across 20 versions & 1 rubygems