Sha256: eb25948cf449c0357c9f7346c902ed69df1c1475db3d994dea8c4e8675b2fa84
Contents?: true
Size: 819 Bytes
Versions: 1
Compression:
Stored size: 819 Bytes
Contents
window.Materialize = {}; // Unique ID Materialize.guid = (function() { function s4() { return Math.floor((1 + Math.random()) * 0x10000) .toString(16) .substring(1); } return function() { return s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4(); }; })(); Materialize.elementOrParentIsFixed = function(element) { var $element = $(element); var $checkElements = $element.add($element.parents()); var isFixed = false; $checkElements.each(function(){ if ($(this).css("position") === "fixed") { isFixed = true; return false; } }); return isFixed; }; // Velocity has conflicts when loaded with jQuery, this will check for it var Vel; if ($) { Vel = $.Velocity; } else { Vel = Velocity; }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
materialize-sass-0.97.1 | app/assets/javascripts/materialize/global.js |