I am looking at a circuit diagram like this:







simulate this circuit &ndash; Schematic created using CircuitLab

Switch 1 and switch 2 never are on at the same time (they alternate)
I turn on S2 and shut off S1, then after a while, I turn on S1 and shut off S2. At that point I think I can redraw the circuit like this:







simulate this circuit

But if I do that, I think the current through the switch would then be zero? And then the switch would be considered "off?" Or maybe I could arbitrarily define the current through the switch as being from either the left or right hand side circuits? But that seems to be not possible because originally the switch was shared between both of the circuits.

Can someone figure out what is wrong with my reasoning? What should the current through the circuit be in the "on" position?

Note: ignore the values of the circuit elements, they are not important.


Question: How to correctly format multiline html using the .after function jQuery?
Answer: You can continue a string literal on a subsequent line with a backslash:

$(document).ready(function() {
    $('#content-main-cell h1').addClass('index-title');
        $('.index-title').after(
            '&lt;div class="mds-logo"&gt;\
            &lt;img src="http://marines.mil/unit/marforres/4thMarDiv/23rdMar/1stBn/img/battalion-logo.jpg"/&gt;&lt;/div&gt;'
        );
});


This is defined by Section 7.8.4 ("String Literals") of the spec. I don't know that I'd trust all parsers to get it right, not least because it was just introduced in the 5th edition specification, but it appears that the spec was codifying previous standard practice as even IE6 understands it. (As do&nbsp;&mdash; in my tests&nbsp;&mdash; IE7, IE9, Chrome, Firefox, Opera, and Safari.) Of course the whitespace at the beginning of the next line is part of the string, which probably isn't what you want.

Alternately, just use string concatenation:

$(document).ready(function() {
    $('#content-main-cell h1').addClass('index-title');
        $('.index-title').after(
            '&lt;div class="mds-logo"&gt;' +
            '&lt;img src="http://marines.mil/unit/marforres/4thMarDiv/23rdMar/1stBn/img/battalion-logo.jpg"/&gt;&lt;/div&gt;'
        );
});


You're not in a tight loop, so even if the parser doesn't concatenate on the fly (and a good one will), having the concat operation occur when you call after won't do any real harm.