Sha256: 319ae4027bf2e47de05585dc18fdefe33af0337c51c5f2411096e6a080cca642
Contents?: true
Size: 584 Bytes
Versions: 54
Compression:
Stored size: 584 Bytes
Contents
/** * Height calculating helper-wrapper. * * @author Htmlstream * @version 1.0 * */ ;(function ($) { 'use strict'; $.HSCore.helpers.HSHeightCalc = { /** * Rating. * * @return undefined */ init: function () { var collection = $('[data-calc-target]'); if (!collection.length) return; collection.each(function () { var $this = $(this), $target = $this.data('calc-target'); $this.css({ 'height': 'calc(100vh - ' + $($target).outerHeight() + 'px)', }); }); } }; })(jQuery);
Version data entries
54 entries across 54 versions & 1 rubygems