<p>Scrolled: <b id="scrollCounter">0</b>.</p>
<div class="box">
<p class="paragraph">
Once a liar, always a liar, the old saying goes. Turns out there’s some scientific truth to that: researchers have tracked down how the brain makes lying easier as the untruths build up, providing some biological evidence for why small lies often balloon into ever larger ones.
In a study published in Nature Neuroscience, Tali Sharot from the department of experimental psychology at University College London and her colleagues devised a clever study to test people’s dishonest tendencies while scanning their brains in an fMRI machine. The 80 people in the study were shown pennies in a glass jar and given different incentives to guide whether they lied or told the truth to a fellow partner about how much money was contained in the jar. In some conditions, both the participant and the partner benefited if the participant lied; in others, just the participant benefited from his fib, or just the partner benefited (with no cost to either). In another set of scenarios, either the participant or partner benefited, but at the expense of the other if the participant lied. In each case, Sharot documented the changes in the people’s brains as they made their decisions.
</p>
</div>
var div = document.getElementsByClassName("box")[0];
var p = document.getElementsByClassName("paragraph")[0];
var scrollCounter = document.getElementById("scrollCounter");
div.onscroll = function(e) {
var scrolled = div.pageYOffset || div.scrollTop;
scrollCounter.innerHTML = scrolled;
}
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.