Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function () {
- var newDiv = $('<div>', {class: 'panel', 'data-text': 'Magiczne turbo tajne hasło!! Hidden'});
- $('body')
- .on('mouseenter', '.panel', function () {
- $(this).text(
- $(this).data('text')
- );
- })
- .on('mouseleave', '.panel', function () {
- $(this).empty();
- });
- $('section.people').after(newDiv);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement