Sha256: bf5c918ca16c97eed554f0d313a2f7aabc09ca545dbdbb5fbee389efd24a8cb9
Contents?: true
Size: 636 Bytes
Versions: 12
Compression:
Stored size: 636 Bytes
Contents
(function($) { const COMPONENT_SELECTOR = '[data-thredded-currently-online]'; class ThreddedCurrentlyOnline { init($nodes) { $($nodes). on('mouseenter', function(e) { $(this).addClass('thredded--is-expanded'); }). on('mouseleave', function(e) { $(this).removeClass('thredded--is-expanded'); }). on('touchstart', function(e) { $(this).toggleClass('thredded--is-expanded'); }); } } $(function() { var $nodes = $(COMPONENT_SELECTOR); if ($nodes.length) { new ThreddedCurrentlyOnline().init($nodes); } }); })(jQuery);
Version data entries
12 entries across 12 versions & 1 rubygems