« first day (1185 days earlier)      last day (2603 days later) » 

12:18 AM
@joshhunt thanks that work , didnt know it exist
 
 
1 hour later…
1:29 AM
@anatp_123 clear is important to know if you are gonna use float :-)
@joshhunt how should I pass parameters into a function I want to call in an onclick attribute?
Should I be using an event listener instead?
 
either is fine. The downside of onclick is that you can only have one function at a time (per element). To pass arguments I think the best way it just to use an extra anonymous function
 
onclick="collectionContains(filterList, 'religion') doesn't work
is that OK syntax?
 
onclick="function(){collectionContains(filterList, 'religion')}"
 
        function display(dis){
             var y = "";
    	y += "<ul>";
    	for(var i=0;i< menu_items.length;i++){
    	     y +="<li><a href='#'>"+menu_items[i]+"</a></li>";
    	}
    	y += "</ul>";
    	return y;
        }

    jQuery(function(){
			var menu_items = ["Home", "About", "Gallery", "Services", "FAQ", "Contact Us"];
			select();
			jQuery(".container").html(select());
		});
why the menu_items in display was undefined?
 
@TylerH does that make sense?
 
1:37 AM
@joshhunt sort of, you're writing it just like you would in a JS file
 
what do you mean?
 
the function(){ function }
if I just wanted to run a function, I'd do onclick="function()" and it'd work fine
but adding the parameters inside collectionContains()'s parentheses throws it off
the event listener works but that onclick syntax still doesn't. Check it out: jsfiddle.net/oqxprbze/3
oh maybe I wasn't escaping it right
nope, still nothing
I'll just use an event listener, probably better practice anyway
 
@TylerH sorry, phone. onclick="(function(){console.log('test')})()" is the proper html, buy you are right, I would recommend having everything in your js
 
1:54 AM
ah the wrapping everything in parens is what it was missing
 
2:26 AM
jsfiddle.net/oqxprbze/5 now to pull content from a text area into an array
 
2:38 AM
jsfiddle.net/oqxprbze/6 Got that part working. Now I need to figure out how to get it to work when the array has more than one value in it
 
3:17 AM
hmm, function.prototype.apply() looks like what I'm looking for
well I'm not so sure
 
3:48 AM
> The reason that we didn't give a whole ton of guidance on what to create and how to organize it is because you, as the largest group of developers on Planet Earth are a lot better at figuring that out together
36
A: Can Documentation go back to private beta?

Tim PostIt's extremely bad to 'flicker' like that, and I'll explain why. This is going to be a little long-winded, so if you're short on time: tl;dr: Docs would be an inferior product compared to what it could have been if we did this; it's much better to deal with some cleanup as needed. By 'flick...

 
@BoltClock oy, do you know javascript
 
That really, really isn't the case for CSS, at all
@TylerH I get by
 
hmm
 
I'm focusing on its deranged cousin ActionScript for the time being. Always that time of year
 
@BoltClock i.imgur.com/MKDs1ao.png before I post this do you see an obvious answer?
 
3:56 AM
@TylerH You're calling String#indexOf and passing searchText while it's an array
 
hmm
so innertext is not a property of an array?
 
innerText is a string. String#indexOf expects a string as the search term, so when you pass an array, that array gets stringified
['foo'] becomes 'foo', and ['foo','bar'] becomes 'foo,bar'
 
I'm confused since there's a String.prototype.indexOf and an array.prototype.indexOf
@BoltClock that makes sense, but then wouldn't that work anyway in my case? It's already matching partial words... e.g. it picks up religions if I use the string literal 'religion'
 
@TylerH That's why it works when the array has only one element, but not when it has more
 
If I post that question do you want to post the answer? I will give you time to write up one before I post
not sure of its use to others
 
4:01 AM
I don't mind
 
Okay, I'll post it then
 
Writing my answer now
 
0
Q: Comparing my array works until the array has multiple values in it

TylerHI'm trying to pass an array of multiple values to a function that will check if the values exist in a list of divs, and if so, mark them with a red background. My code works when I pass an arbitrary string as a parameter, and it works when I have an array with only one value in it. However, once...

@BoltClock ta
for a second I thought you had coded that extra table down there showing the console logs
then I remembered that's part of Stack Snippets
 
4:22 AM
stackoverflow.com/documentation/proposed/changes/62331 That's super pedantic (and correct)
ok I don't know about the word "describe". I'd use "represent"
 
I'd also use represent
but describe I feel like has been used a lot in programming
for that context
 
The tag wiki for directly quotes the spec
 
or at least in web technologies
@BoltClock hey use your mod flagging power to tell the staff to delete that already pls
oh wait not the tag wiki
but the Documentation tag for it
 
Hey, look at that! The Documentation points to CSS
 
@BoltClock If you approve a doc edit, is it auto accepted like on Q&A?
 
4:25 AM
@ZachSaucier Yes, mod votes are binding
 
I have enjoyed reading meta about the docs, lol
 
I want to like Documentation but it invites people to mess up
16 hours ago, by BoltClock
Imagine if MDN were as messed up as this
 
lol
that should be the motto
 
@BoltClock hah, I sniped your comment
 
@TylerH I thought so, but then I realized we're talking about slightly different things
So that makes two problems
 
4:33 AM
true
I almost made my comment about partial matching but decided to focus elsewhere with it
 
He downvoted my answer, ho hum (look at his rep)
 
huh, someone has already downvoted your answer 0.o
 
that's annoying
 
yeah I hate that
especially when it's a revenge downvote across a different question thread
like one time a guy got mad at me for explaining my downvote on his JS answer to a CSS only question and so he went and downvoted my (in need of updating) shadowdom answer
stackoverflow.com/help/badges/5853/knowledgeable nice, one of my rarest badges now
 
How long until your question gets flagged as offensive btw?
 
4:37 AM
@BoltClock me? what question
 
@TylerH "your mom" "anything with religions in it is screwed!" bound to rustle someone's jimmies
 
oh
meh
 
@TylerH "Can someone please explain why they downvoted my answer so I can improve so I know who to downvote in revenge?"
 
too true
 
I ain't falling for that anymore
1
Q: How to earn the Documentation Pioneer badge?

Ralf17It says that you have to have 3+ substantive contribution during the first month of Documentation to earn the Documentation Pioneer Badge. I find "substantive" to be tricky word. What does it mean here? How do I earn the badge?

127
Q: Our words are too complicated. Let's make them simpler!

Undo TL;DR: Our wording is complex, and hard for people from other languages to read. Let's make it simpler. Seriously, though, at least read my example at the bottom. For a long time, I've noticed a trend: People from certain countries (which I will refer to, collectively, as Elbonia) seem ...

 
4:44 AM
To be fair it's not like he doesn't know what substantive's definition is
the problem is the site is using a non-absolute-value word to describe an absolute value
 
That's kind of the point though isn't it?
 
The point of using substantive instead of an actual value is... what, exactly?
 
I got the Documentation Pioneer badge easily and I didn't worry for a second that I was pumping too few characters into a change
 
Right, so did I, but the poster isn't worried that he won't be able to get it
 
(I'm not sure if SE meant to use substantive or substantial there)
 
4:46 AM
He's just curious about the formula
anyway, time for bed
thanks again for the help and the answer
 
np
gnite
@TylerH the guy just edited his answer, rewriting his code and... completely stripping out the prose
Now it's a code-only answer
But hey at least the code works...
 
 
4 hours later…
8:26 AM
o/
 
 
3 hours later…
11:56 AM
posted on July 28, 2016 by Mary Lou

A landing page template with a featured content section and background sounds that change according to the view. Above & Beneath: Featured Content Layout Effect was written by Mary Lou and published on Codrops.

 
 
1 hour later…
1:08 PM
@BoltClock odd, I didn't get a notification... I thought I would if an answer on my question was edited
I guess not
"you will have one more less global variable" well that's a mixed signal :-)
 
@TylerH YESSSS! I'll join in as soon as I finish my work tasks for the day.
@TylerH have you seen this? socialfixer.com idk how good it is
 
@zsawaf btw stackoverflow.com/questions/38626926/… the code as of Boltclock's answer is about where I am
feel free to start from there
 
 
3 hours later…
3:54 PM
@zsawaf damn them
we can do it better
because we're us
 
 
2 hours later…
5:32 PM
@TylerH haha hells yeah!
Almost done my tasks
Today is surprisingly busy
Question, does anyone know of a good polyfill for flexbox? (i.e so I can get flexbox working with IE9)
 
6:20 PM
works great
 
 
5 hours later…
10:54 PM
there should be a hashtag for how bad this docs process has been. Something like #SOmuchfail
 
lol
 

« first day (1185 days earlier)      last day (2603 days later) »