Skip to content
This repository was archived by the owner on Mar 16, 2025. It is now read-only.

Blink Homework #52

Open
wants to merge 3 commits into
base: gh-pages
Choose a base branch
from

Conversation

bluemittens505
Copy link

Both versions of the code are included. Version V2 is at the top of blink.js. Version V1 is commented out. I changed index.html so I could test appropriately.

Make plugin work for selectors that correspond to a single element
Make plugin work for selectors that correspond to multiple elements.
function blinkit(obj) {
var value = obj.css('visibility') === 'visible' ? 'hidden' : 'visible';
obj.css('visibility',value);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would probably put this after line 7 so that you aren't creating any global variables/functions.

@afeld
Copy link
Member

afeld commented Mar 3, 2016

Nice work!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants