Home / Technology / Swatch readies smartwatch to face off opposite Apple Watch

Swatch readies smartwatch to face off opposite Apple Watch

‘);$(‘#’ + IDG.GPT.getIMUSlotName()).responsiveAd({screenSize:’971 1115′, scriptTags: []});//–”;
var adDivString = “”;
placementDiff = applyInsert($(this), adDivString);
if (debug) {
console.log(“Just placed an ad and a placementDiff is: ” + placementDiff);
}
placementTarget = cumulativeHeight + placementDiff + interModuleHeight + adHeightBuffer;
}
else {
var moduleDivString = “”;
var elementId = “drr-mod-”+moduleCounter;
moduleDivString = “”;
modules.push(elementId);

placementDiff = applyInsert($(this), moduleDivString);
if (debug) {
console.log(“Just placed a procedure and a placementDiff is: ” + placementDiff);
}
placementTarget = cumulativeHeight + placementDiff + interModuleHeight + moduleHeightBuffer;
moduleCounter++;
}
loopCounter++;
}
// Avoid fixation elements too shortly due to non-large total inflating a accumulative height
if ($(this).is(“figure”) !$(this).is(“figure.large”)) {
cumulativeHeight += grafHeight;
}
else {
cumulativeHeight += $(this).height() + grafHeight;
}
}
});

// counterpart Related Stories procedure m-15 to come in after 2nd para in essay physique for mobile breakpoint display
var $relatedStories = $(‘.related-promo-wrapper’);
if ($relatedStories.length) {
var $relatedStoriesClone = $relatedStories.clone();
$relatedStoriesClone.insertAfter( “#drr-container p:eq(1)”);
}

var $insiderPromo = $(‘.insider-promo-wrapper’);
if ($insiderPromo.length) {
var $insiderPromoClone = $insiderPromo.clone();
$insiderPromoClone.insertAfter( “#drr-container p:eq(1)”);
}

//place left side element
cumulativeHeight = 0;
var leftPlacementTarget = tagHeight = leftPlacementTarget) {
if (debug) {
console.log(“congratulations… we’ve upheld a initial start point”);
}
if (leftPlacementIndex == null) {
//it’s not good adequate to not be a left equivocate – it also shouldn’t be a

with an immediately preceding tiny or middle picture left avoid.
if (!isLeftAvoid($(this)) noPrevFigures($(this)) ) {
leftPlacementIndex = $(this).index();
$leftPlacementElement = $(this);
leftPlacementLookaheadStart = cumulativeHeight;
if (debug) {
console.log(“is not a left equivocate and no prev figures. ########## set placementIndex (“+leftPlacementIndex+”) and lookaheadStart (“+leftPlacementLookaheadStart+”) ##########”);
}
} else {
if (debug) {
console.log(“is a left equivocate or has prior figures. continue”);
}
}
} else {
if (debug) {
console.log(“#### leftPlacementIndex already set to “+leftPlacementIndex+”. looking ahead…”);
}
//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) {
console.log(“threshold not reached: (cumulativeHeight – leftPlacementLookaheadStart) (“+(cumulativeHeight-leftPlacementLookaheadStart)+”) tags
if (!(isLeftAvoid($(this)) ($(this).hasClass(‘small’) || $(this).hasClass(‘inline-small’) || $(this).hasClass(‘medium’) || $(this).hasClass(‘inline-medium’) || $(this).hasClass(‘apart’) ))) {
cumulativeHeight += $(this).height() + grafHeight;
}
if (debug) {
console.log(“——————– set cumulativeHeight(“+cumulativeHeight+”) —————”);
console.log(“”);
}
}
});
}

if (leftPlacementIndex != nothing elementNotNearEnd($leftPlacementElement, leftPixelWindow)) {
if (debug) {
console.log(” insert into index “+leftPlacementIndex);
}
$(“#drr-container”).children().eq(leftPlacementIndex).before(“

“);
}

IDG.GPT.trackOmniture();

// Add Right rail procedure content
for (var i=0; i= 0) {
var a = document.createElement(‘a’);
a.href = document.referrer;
var uriParts = a.pathname.split(‘/’);
a = ”;
if (typeof uriParts[3] == ‘undefined’) {
epoParams += “typeId=” + defaultTypeId + “referrer=home”; // default is ‘home’ behavior
}
else {
var refCatSlug = uriParts[3];
epoParams += “catSlug=” + refCatSlug + “referrer=article”;
}
}
// From SEARCH: Show essay with catId same as stream article
else if (document.referrer.indexOf(“google”) = 0 || document.referrer.indexOf(“yahoo”) = 0 || document.referrer.indexOf(“bing”) = 0) {
var categories = [3336, 3445, 3891, 3664, 3665];
if (categories instanceof Array categories.length 0) {
var primaryCatId = categories[0];
epoParams += “catId=” + primaryCatId + “referrer=search”;
}
else {
epoParams += “typeId=” + defaultTypeId + “referrer=home”; // default is ‘home’ behavior
}
}
// Default is to uncover like entrance from homepage
else {

epoParams += “displayId=11referrer=home”;

// default is ‘home’ behavior
}
return epoParams;
}

/**
* @param jqo Original jquery intent target
* @param divString The div to be inserted.
* @return Difference in tallness between strange chain aim and final target.
* Checks initial 6 elements for an acceptable chain (600 pixel window).
* If none, check circuitously for elements that are not right avoids.
* If none, place component before stream target.
*/
function applyInsert(jqo, divString) {
if (debug) {
console.log(“applyInsert during tip and jqo index is: ” + jqo.index());
}

for (var i=0; i 0) {
children = $(“#drr-container”).children().slice(jqo.index(), allowElement.index() );
}
else {
children = $(“#drr-container”).children().slice(allowElement.index(), jqo.index());

}
if (children != null) {
children.each(function(i) {
if (debug) {
console.log(“About to supplement this element’s tallness to heigh diff offset”);
console.log($(this));
}
height += $(this).height() + grafHeight;
});
}
if (offset 300) {
if (debug) {
console.log(“isRightAvoid: found pre. lapse true”);
}
return true;
}
if (jqo.is(“figure”) jqo.hasClass(‘large’)) {
if (debug) {
console.log(“isRightAvoid: found figure.large lapse true”);
}
return true;
}
if (jqo.is(“figure”) jqo.hasClass(‘medium’) jqo.hasClass(‘inline’)) {
if (debug) {
console.log(“isRightAvoid: found figure has category middle and inline.”);
}
return true;
}

if (jqo.is(‘div’) jqo.hasClass(‘table-wrapper’)) {
if (debug) {
console.log(“isRightAvoid: found div with category table-wrapper”);
}
return true;
}
if (jqo.is(‘aside’)) {
if (jqo.hasClass(‘sidebar’) !jqo.hasClass(‘medium’)) {
if (debug) {
console.log(“isRightAvoid: found aside with category sidebar, though category medium”);
}
return true;
}
if (jqo.hasClass(‘statsTable’)) {
if (debug) {
console.log(“isRightAvoid: found aside with category statsTable”);
}
return true;
}
}
if (jqo.hasClass(‘download-asset’)) {
if (debug) {
console.log(“isRightAvoid: found category download-asset lapse true”);
}
return true;
}
if (jqo.hasClass(‘tableLarge’)) {
if (debug) {
console.log(“isRightAvoid: found category tableLarge lapse true”);
}
return true;
}
if (jqo.hasClass(‘reject’)) {
if (debug) {
console.log(“isRightAvoid: found category reject. lapse true”);
}
return true;
}
if (jqo.is(‘table’) jqo.hasClass(‘scorecard’)) {
if (debug) {
console.log(“isRightAvoid: found div with category scorecard”);
}
return true;
}
}
return false;
}

// Return loyal if component has category ‘reject’: will not place drr modules/ads subsequent to these elements
function isRightReject(jqo) {
console.log(“in isRightReject”);
if (jqo != null) {
if (jqo.hasClass(“reject”)) {
if (debug) {
console.log(“isRightReject: found ‘reject’ class”);
}
return true;
}
return false;
}
return false;
}

// Returns loyal if tallness of all elements after this one is some-more than 500; fake otherwise
function elementNotNearEnd(element, pixelWindow) {
if (pixelWindow == null) {
pixelWindow = 500;
}
if (element == null) {
return false;
}
var remainingHeight = 0;
var children = $(“#drr-container”).children().slice(element.index());
if (children == null) {
return false;
}
children.each(function(i){
remainingHeight += $(this).height();
});
if ( remainingHeight pixelWindow) {
return true;
}
else {
if (debug) {
console.log(“Element too tighten to end. Remaining tallness is: ” + remainingHeight + ” and window is ” + pixelWindow);
}
return false;
}
}

/**
* Return loyal if need to equivocate this component when fixation left module.
*/
function isLeftAvoid(jqo) {
if (jqo.is(“figure”)) {
if (debug) {
console.log(“isLeftAvoid: found figure. lapse true”);
}
return true;
}
if (jqo.is(“aside.pullquote”)) {
if (debug) {
console.log(“isLeftAvoid: found pullquote. lapse true”);
}
return true;
}
if (jqo.is(“pre”)) {
if (debug) {
console.log(“isLeftAvoid: found pre. lapse true”);
}
return true;
}
if (jqo.is(“div.gist”)) {
if (debug) {
console.log(“isLeftAvoid: found github formula block. lapse true”);
}
return true;
}

if (jqo.is(“aside”) jqo.hasClass(“sidebar”) jqo.hasClass(“medium”)) {
if (debug) {
console.log(“isLeftAvoid: found middle sidebar. lapse true”);
}
return true;
}

if (jqo.hasClass(“statsTable”)) {
if (debug) {
console.log(“isLeftAvoid: found category statsTable. lapse true”);
}
return true;
}
return false;
}

/**
* lapse loyal if there are no total before a aim chain that competence drain down into chain element
*/
function noPrevFigures($originalTarget) {
var targetIndex = $originalTarget.index();
var numElementsLookBack = 5;
var figureIndex = null;
var figureHeight = null;
var startIndex = targetIndex – numElementsLookBack

The smartwatch marketplace could turn a bit some-more colorful in a entrance months.

Swatch, a Swiss association know for formulating timepieces with colourful hues, skeleton to launch a smartwatch in a subsequent 3 months. The Internet-connected device will work with Android and Windows program and concede users to make mobile payments, Swatch CEO Nick Hayek told Bloomberg Business on Thursday.

Hayek didn’t offer additional sum such as how most it will cost and how a device will interface with Android and Windows software. Swatch didn’t immediately respond to a ask for comment.

Swatch’s entrance into a wearable and mobile remuneration marketplace comes as Apple prepares to launch a initial smartwatch and expands a mobile wallet product. The Apple Watch, that will entrance in April, will have fitness-tracking facilities and offer applications for content messaging, emails and removing directions. Apple entered a mobile remuneration space in Oct with Apple Pay.

Swatch’s preference to rise a smartwatch indicates that Hayek has finished an about-face on wearables. Two years ago, he downplayed a impact smartwatches would have on a watch industry, observant they wouldn’t be as insubordinate as predicted. Last year, he pronounced Swatch wouldn’t rise such inclination since of consumer reluctance. He had questioned how tiny watch screens could be used for communicating and a volume of charging smartwatches would require.

Hayek told Bloomberg that some of a products Swatch skeleton to launch this year will simulate a record series of obvious applications it filed in 2014. Some of those patents cover batteries that use materials that can boost performance, Hayek said. The Swatch smartwatch will bond to a Internet “without carrying to be charged,” he told Bloomberg.

Switzerland’s dual largest retailers will let business make payments with Swatch’s smartwatch and a association is articulate to other retailers about regulating a remuneration system.

Another normal watchmaker removing into a wearables space is TAG Heuer, that is looking to recover a smartwatch this year that facilities GPS and health monitoring functions. High-end consumer product association Montblanc sells a intelligent watchband for a timepieces that marks activities, among other features, and uses Bluetooth to bond to mobile inclination using iOS and Android.

Fred O’Connor writes about IT careers and health IT for The IDG News Service. Follow Fred on Twitter during @fredjoconnor. Fred’s e-mail residence is fred_o’[email protected]



The Voice of Business Technology




+


Article source: http://www.computerworld.com/article/2880657/swatch-readies-smartwatch-to-face-off-against-apple-watch.html

Scroll To Top