else
var moduleDivString = “”;
var elementId = “drr-mod-“+moduleCounter;
moduleDivString = “”;
modules.push(elementId);
placementDiff = applyInsert($(this), moduleDivString);
if (debug)
console.log(“Simply positioned a module and the placementDiff is: ” + placementDiff);
// Avoid placing Elements too soon because of non-Huge figures inflating the cumulative Height
if ($(this).is(“Figure”) && !$(this).is(“Figure.Large”))
cumulativeHeight += grafHeight;
// clone Related Stories module to return in after eighth para in article body for Cell breakpoint display
var $relatedStories = $(‘.Related-promo-wrapper’);
if ($relatedStories.size)
var $relatedStoriesClone = $relatedStories.clone();
$relatedStoriesClone.insertAfter( “#drr-container > p:eq(7)”);
// For Mobile Simplest, Position Ad after 2nd paragraph.
if (firstMobileAdHtml)
$(firstMobileAdHtml).insertAfter(“#drr-container > p:eq(1)”);
var $insiderPromo = $(‘.insider-promo-wrapper’);
if ($insiderPromo.size)
var $insiderPromoClone = $insiderPromo.clone();
$insiderPromoClone.insertAfter( “#drr-container > p:eq(1)”);
//Position left side Element
cumulativeHeight = 0;
var leftPlacementTarget = tagHeight = leftPlacementTarget)
if (debug)
console.log(“congratulations… we have now handed the preliminary Begin level”);
if (leftPlacementIndex == null)
//it’s Not just right enough to Not be a left Steer Clear Of – it additionally will not be a
with an straight away preceding small or medium picture left Avoid.
if (!isLeftAvoid($(this)) && noPrevFigures($(this)) )
leftPlacementIndex = $(this).index();
$leftPlacementElement = $(this);
leftPlacementLookaheadStart = cumulativeHeight;
if (debug)
console.log(“shouldn’t be a left Keep Away From and no prev figures. ########## set placementIndex (“+leftPlacementIndex+”) and lookaheadStart (“+leftPlacementLookaheadStart+”) ##########”);
else
if (debug)
console.log(“is a left Steer Clear Of or has previous figures. continue”);
else
if (debug)
console.log(“#### leftPlacementIndex already set to “+leftPlacementIndex+”. looking IN ADVANCE…”);
//Now Not null; has been set
if ((cumulativeHeight – leftPlacementLookaheadStart) > leftIntervalHeight)
if (debug)
console.log(“###### THRESHOLD REACHED. LOOKAHEAD COMPLETE. End ###### (cumulativeHeight – leftPlacementLookaheadStart) (“+(cumulativeHeight-leftPlacementLookaheadStart)+”) > leftIntervalHeight (“+leftIntervalHeight+”).”);
return false;
else
if (debug)
);
if (leftPlacementIndex != null && elementNotNearEnd($leftPlacementElement, leftPixelWindow))
if (debug)
console.log(” insert into index “+leftPlacementIndex);
// Add Proper rail module content material
for (var i=0; i” + adString + “
“;
operate getEpoParams() document.referrer.indexOf(“yahoo”) >= Zero
/**
* @param jqo Authentic jquery object Target
* @param divString The div to be inserted.
* @return Distinction in Top between Authentic placement Goal and ultimate Goal.
* Checks first 6 Elements for an allowable placement (600 pixel window).
* If none, Test nearby for Elements that are not Right avoids.
* If none, Position Component before present Goal.
*/
perform applyInsert(jqo, divString)
if (debug)
console.log(“applyInsert at high and jqo index is: ” + jqo.index());
for (var i=0; i 0)
youngsters = $(“#drr-container”).youngsters().slice(jqo.index(), allowElement.index() );
if (kids != null)
kids.EACH AND EVERY(perform(i)
if (debug)
console.log(“About so as to add this Component’s Top to heigh diff offset”);
console.log($(this));
Peak += $(this).Height() + grafHeight;
);
if (offset 300)
if (debug)
console.log(“isRightAvoid: discovered pre. return actual”);
return real;
if (jqo.is(“Determine”) && jqo.hasClass(‘Huge’))
if (debug)
console.log(“isRightAvoid: discovered Determine.Massive return proper”);
return true;
if (jqo.is(“Figure”) && jqo.hasClass(‘medium’) && jqo.hasClass(‘inline’))
if (debug)
console.log(“isRightAvoid: found Determine has Class medium and inline.”);
return authentic;
if (jqo.is(‘div’) && jqo.hasClass(‘Table-wrapper’))
if (debug)
console.log(“isRightAvoid: found div with Class Table-wrapper”);
return genuine;
if (jqo.is(‘aside’))
if (jqo.hasClass(‘sidebar’) && !jqo.hasClass(‘medium’))
if (debug)
console.log(“isRightAvoid: discovered aside with Type sidebar, without Type medium”);
return true;
if (jqo.hasClass(‘statsTable’))
if (debug)
console.log(“isRightAvoid: found aside with Category statsTable”);
return actual;
if (jqo.hasClass(‘obtain-asset’))
if (debug)
console.log(“isRightAvoid: found Type download-asset return authentic”);
return genuine;
if (jqo.hasClass(‘tableLarge’))
if (debug)
console.log(“isRightAvoid: discovered Class tableLarge return actual”);
return real;
if (jqo.hasClass(‘reject’))
if (debug)
console.log(“isRightAvoid: found Type reject. return proper”);
return genuine;
if (jqo.is(‘Desk’) && jqo.hasClass(‘scorecard’))
if (debug)
console.log(“isRightAvoid: discovered div with Classification scorecard”);
return true;
return false;
// Return genuine if Component has Type ‘reject’: will not Position drr modules/advertisements subsequent to those Components
function isRightReject(jqo)
console.log(“in isRightReject”);
if (jqo != null)
if (jqo.hasClass(“reject”))
if (debug)
console.log(“isRightReject: found ‘reject’ Category”);
return real;
return false;
return false;
// Returns actual if Top of all Components after this one is greater than 500; false otherwise
function elementNotNearEnd(Element, pixelWindow)
if (pixelWindow == null)
pixelWindow = 500;
if (Element == null)
return false;
var remainingHeight = 0;
var kids = $(“#drr-container”).kids().slice(Element.index());
if (kids == null)
return false;
else
if (debug)
console.log(“Element too close to End. Ultimate Height is: ” + remainingHeight + ” and window is ” + pixelWindow);
return false;
/**
* Return actual if wish to Steer Clear Of this Component when putting left module.
*/
perform isLeftAvoid(jqo)
if (jqo.is(“Figure”))
if (debug)
console.log(“isLeftAvoid: found Figure. return authentic”);
return genuine;
if (jqo.is(“aside.pullquote”))
if (debug)
console.log(“isLeftAvoid: discovered pullquote. return proper”);
return true;
if (jqo.is(“pre”))
if (debug)
console.log(“isLeftAvoid: discovered pre. return genuine”);
return genuine;
if (jqo.is(“div.gist”))
if (debug)
console.log(“isLeftAvoid: discovered github code block. return real”);
return true;
if (jqo.is(“apart”) && jqo.hasClass(“sidebar”) && jqo.hasClass(“medium”))
if (debug)
console.log(“isLeftAvoid: found medium sidebar. return actual”);
return authentic;
if (jqo.hasClass(“statsTable”))
if (debug)
console.log(“isLeftAvoid: discovered Class statsTable. return genuine”);
return actual;
return false;
/**
* return proper if there are no figures ahead of the Goal placement that may bleed down into placement Part
*/
operate noPrevFigures($originalTarget)
var targetIndex = $originalTarget.index();
var numElementsLookBack = 5;
var figureIndex = null;
var figureHeight = null;
var startIndex = targetIndex – numElementsLookBack
Closing month Microsoft launched a blitz of Floor Book and Floor Pro Four updates that solved many of the problems plaguing customers. But there have been lingering complaints: For some folks the Home Windows Hello Digicam would not change on prior to login, and others had problems with the sleep state turning everlasting.
The Day Prior To This Microsoft released every other big bunch of patches, However they were extra narrowly centered. The respectable Floor Ebook and Surface Professional Four logs express the May 9 Update primarily contains fixes for Intel drivers.
The Brand New drivers namely stated as Intel drivers are the AVStream Digital Camera 2500, Control Logic, CSI2 Host Controller, Imaging Sign Processor 2500, Microsoft Digital Camera Entrance, Microsoft Digicam Rear, and Microsoft IR Digital Camera Front. Simplest the skin Digicam drivers set (v30.10586.7035.1976, driver date Four/21/2016) is just not from Intel.
If you don’t see your Update, the same old admonition applies:
When Floor updates are equipped by means of the Windows Update service, they’re delivered in levels to Surface clients. In Consequence, No Longer each Surface will receive the Replace at the comparable time, However The Replace will likely be dropped at all devices. You Probably Have No Longer got the Update then please manually Check Home Windows Replace later.
Up To Now I’ve viewed few experiences of issues with the May 9 patches. Check Windows Update and let me recognize, both right here within the comments or over on AskWoody.com, for those who come upon any issues. Microsoft has a common troubleshooting page if the rest untoward will have to happen.
You must be logged in to post a comment Login