Bootstrap files are biggish, and it takes time for the browser to load them (if they aren't already in cache). So, sites that want to load quickly and aren't using many BootStrap features might well eschew it.
I think there are lots, though I don't have a list. The NYTimes.com is one.
Interesting. I think I still see them, but I'm only one pair of eyes. What do y'all think?
$('[name=name]').val(), $('[name=size]').val(), $('[name=crop]').val());works in the Bootstrap 4 Modal section? I'm a bit confused about what the elements are in here and why we are using the val() method
Sure! Here's a link to the complete code. The code is extracting three values from the form which we then print to the console, but could do anything with.
function flashText() { const oElem = document.getElementById("my_box"); oElem.className = oElem.className === "go" ? "stop" : "go"; }I was a bit confused by this function used by MDN in explaining setInterval(), especially the last line. It is a function used in the callback function of setInterval(), but it might be too specific to get into in class."
The first line looks up the element. The second line is fancy code that changes "go" to "stop" and "go" to "stop". It uses the ternary operator to substitute for four-line if/else
statement.
Glad to hear it!