0.4.1 • Published 3 months ago

cute-socks v0.4.1

Weekly downloads
-
License
CC-BY-4.0
Repository
-
Last release
3 months ago
const { $, $$, _ } = require('cute-socks');

// Selecting a single element and using various operations
$('selector')
$('.selector').hide();
$('.selector').show();
$('.selector').toggle();
$('.selector').on('click', () => console.log('Element clicked'));
$('#selector').addClass('new-class');
$('#selector').removeClass('old-class');
$('#selector').hasClass('some-class'); // true or false
$('#selector').attr('data-custom', 'value');
$('#selector').css('background-color', 'red');
$('selector').remove();
$('selector').scrollTo({behavior: 'smooth'});
$('#selector').id();

// console.log();
_('print this');

// Selecting multiple elements and operating on them
$$('selector')
$$('.selector').hide();
$$('.selector').show();
0.3.0

3 months ago

0.4.1

3 months ago

0.4.0

3 months ago

0.2.0

3 months ago

0.1.2

4 months ago

0.1.1

4 months ago

0.1.0

4 months ago