Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // #1
- $('#me').blue();
- // #2
- $('.wants-to-be-blue').blue();
- // #3
- $('ul li:nth-child(4)').blue();
- // #4
- $('*').contents().filter(function(){
- return this.nodeType == 8;
- }).each(function(i, e){
- if (e.nodeValue && e.nodeValue.indexOf('Make me blue') !== -1) {
- $(e.parentNode).blue();
- }
- });
- // #5
- var orders = [8, 2, 9, 6, 4, 1, 3, 7, 5];
- for (var i = 0; i < orders.length; i++){
- $('div:nth-child('+orders[i]+')').blue();
- }
- // #6
- $('div').not('.bomb').blue();
- // #7
- setTimeout(function() {
- $('section div').blue();
- }, 1100);
- // #8
- $('button').click();
- setTimeout(function() {
- $('div').blue();
- }, 20);
- // #9
- var myIds = $('#map')[0].textContent.split(' ');
- myIds.forEach(function(item) {
- $('#' + item).blue();
- });
- // #10
- setInterval(function() {
- $('div').not('.bomb').blue();
- }, 10);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement