`;
var storytext = document.getElementById(`storytext`);
var heightToSkip = 0;
function resetValues()
{
totalHeight = 0;
targetChildElement = null;
}
// Check if story is in the blacklist of articles to remove smartassets
// [2017.27] Results of a one-off request from r.barbieri
if(BLACKLIST[location.pathname] === true) {
return
}
if(storytext == null)
{
console.log("Error finding storytext element for SA embed");
return;
}
for ( i = 0; i 0)
{
heightToSkip -= storytext.clientHeight;
resetValues();
}
else if(heightToSkip minHeight && targetChildElement != null)
{
//console.log("total height = " + totalHeight);
//console.log("childNode = " + targetChildElement);
storytext.insertAdjacentHTML(`afterend`, smartAssetDiv);
smartasset = document.getElementById(`smartasset-article`);
smartasset.float = `left`; // allows module to have text float to right
smartasset.marginRight =`20px`;
smartasset.marginBottom =`25px`;
//console.childNodes[targetChildElement]);
//SMARTASSET.setDivIndex(targetChildElement);
SMARTASSET.setSmartAssetScript();
/* bail out since we`re done */
break;
}
}
/* div with id="smartassetcontainer". Sanity check to only embed once */
else if (storytext.toLowerCase() === `div` && storytext.id !== "undefined" && storytext.id === "smartassetcontainer") {
break;
}
/* div with id="ie_column" */
else if (storytext.toLowerCase() === `div` && storytext.id !== "undefined" && storytext.id === "ie_column") {
resetValues();
}
/* embeds from twitter, facebook, youtube */
else if (storytext.toLowerCase() === `div` && storytext.contains(`embed`)) {
resetValues();
}
/* cnn video player */
else if (storytext.toLowerCase() === `div` && storytext.contains(`cnnplayer`)) {
resetValues();
}
/* images */
else if (storytext.toLowerCase() === `img`)
{
resetValues();
}
/* images stored in figure tags */
else if (storytext.toLowerCase() === `figure`)
{
if(storytext.clientWidth
"The reasons have shifted in the past few years," said Greg McBride, chief financial analyst for BankRate. "But the current top reason for limiting spending is the need to save more money and this was particularly evident among Millennials."
The youngest Millennials -- people 18-26 -- are placing an even higher priority on saving, with 74% of them setting money aside for the future.
"This is not a fluke by the way," said McBride. "Study after study has revealed that Millennials do place a higher priority on savings and a lot of that stems from having a front row seat for the financial crisis and, for the older Millennials, they were witness to the dot-com bust, too."
Related: Millennials aren`t opening credit cards. That`s a mistake
Worries about stagnating income was the second most common reason for stashing cash, followed by paying off debt.
"Credit card debt is starting to come back up," said McBride, "and car loan debt is back up and student loans are in the mix too."
The economy isn`t keeping people up at night like it used to, with only 10% citing worries about the economy as the reason they`re keeping a lid on spending. That`s the lowest seen in the five years of this study, and half of what it was in 2013.
Up until last year, the biggest reason for limiting spending was stagnant income.
"Now that people are seeing some income growth, people are following through on the promise they made to themselves to save," McBride said.
Dramelin
DeveloperCras justo odio, dapibus ac facilisis in, egestas eget quam. Curabitur blandit tempus porttitor. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.
0 comments:
Post a Comment