White House

Tech Leaders Share Ideas on Job Creation and Innovation

 
 

.<
MAK.listener = {};
MAK.listener.loaded = function (obj) {
MAK.log(‘media loaded’);
};
MAK.listener.state = function (obj) {
if ((obj.newstate === ‘PLAYING’) && (MAK.seek.flag)) {
MAK.seek.flag = false;
setTimeout(function () {
MAK.player.sendEvent(‘SEEK’, MAK.seek.index);}, 100);
}
MAK.oldState = obj.oldstate;
MAK.currentState = obj.newstate;
MAK.log(‘state: ‘ + MAK.oldState + ‘ -> ‘ + MAK.currentState);
};
MAK.listener.time = function (obj) {
MAK.currentTime = obj.position;
MAK.duration = obj.duration;
};
MAK.addListeners = function () {
if (MAK.player.addModelListener) {
MAK.log(‘adding listeners’);
MAK.player.addModelListener(‘LOADED’, ‘MAK.listener.loaded’);
MAK.player.addModelListener(‘STATE’, ‘MAK.listener.state’);
MAK.player.addModelListener(‘TIME’, ‘MAK.listener.time’);
} else {
setTimeout(function () {
MAK.addListeners();}, 100);
}
};

// Play functions..
MAK.seek = function (seconds) {
MAK.seek.index = parseInt(seconds, 10);
if (MAK.currentState === ‘PLAYING’) {
MAK.log(‘seek: currentState is “PLAYING”.. sending SEEK to ‘ + MAK.seek.index);
MAK.player.sendEvent(‘SEEK’, MAK.seek.index);
} else {
MAK.log(‘seek: currentState is not “PLAYING”.. sending PLAY event’);
MAK.seek.flag = true;
MAK.player.sendEvent(‘PLAY’, true);
}

// Move to view the video player.
jQuery(‘html,body’).animate({scrollTop: jQuery(MAK.player).offset().top-75}, 500);
};
MAK.startCheck = function () {
// If the current URL video indexes, make it happen.
var startMatch, startTime;
startMatch = String(document.location).match(/#vseek(\d+)$/);
MAK.log(startMatch);
if (startMatch) {
startTime = Number(startMatch[1]);
MAK.log(startTime);
if (startTime) {
setTimeout(function () {
MAK.seek(startTime);}, 200);
}
}
};

// Ready function..
MAK.playerInit = function () {
MAK.player = jQuery(‘#MAKhelper13057’).siblings(‘div.embed’).find(‘.swftools-wrapper object’)[0];
// See if the player is fully loaded yet.
if (!MAK.player || !MAK.player.addModelListener) {
setTimeout(function () {
MAK.playerInit();}, 100);
} else {
MAK.addListeners();
//MAK.startCheck();
}
};

// Link setup function..
MAK.linkSetup = function () {
jQuery(‘a[href*=#vseek]’).click(function(e) {
e.preventDefault();
var match, seconds;
match = this.getAttribute(“href”, 2).match(/#vseek(\d+)$/);
if (match) {
seconds = Number(match[1]);
if (seconds) {
MAK.seek(seconds);
}
}
});
};

jQuery(function () {
// Action..
//MAK.debugMode = true;
MAK.playerInit();

// Setup links.
MAK.linkSetup();
});
//–>.<
MAK.listener = {};
MAK.listener.loaded = function (obj) {
MAK.log(‘media loaded’);
};
MAK.listener.state = function (obj) {
if ((obj.newstate === ‘PLAYING’) && (MAK.seek.flag)) {
MAK.seek.flag = false;
setTimeout(function () {
MAK.player.sendEvent(‘SEEK’, MAK.seek.index);}, 100);
}
MAK.oldState = obj.oldstate;
MAK.currentState = obj.newstate;
MAK.log(‘state: ‘ + MAK.oldState + ‘ -> ‘ + MAK.currentState);
};
MAK.listener.time = function (obj) {
MAK.currentTime = obj.position;
MAK.duration = obj.duration;
};
MAK.addListeners = function () {
if (MAK.player.addModelListener) {
MAK.log(‘adding listeners’);
MAK.player.addModelListener(‘LOADED’, ‘MAK.listener.loaded’);
MAK.player.addModelListener(‘STATE’, ‘MAK.listener.state’);
MAK.player.addModelListener(‘TIME’, ‘MAK.listener.time’);
} else {
setTimeout(function () {
MAK.addListeners();}, 100);
}
};

// Play functions..
MAK.seek = function (seconds) {
MAK.seek.index = parseInt(seconds, 10);
if (MAK.currentState === ‘PLAYING’) {
MAK.log(‘seek: currentState is “PLAYING”.. sending SEEK to ‘ + MAK.seek.index);
MAK.player.sendEvent(‘SEEK’, MAK.seek.index);
} else {
MAK.log(‘seek: currentState is not “PLAYING”.. sending PLAY event’);
MAK.seek.flag = true;
MAK.player.sendEvent(‘PLAY’, true);
}

// Move to view the video player.
jQuery(‘html,body’).animate({scrollTop: jQuery(MAK.player).offset().top-75}, 500);
};
MAK.startCheck = function () {
// If the current URL video indexes, make it happen.
var startMatch, startTime;
startMatch = String(document.location).match(/#vseek(\d+)$/);
MAK.log(startMatch);
if (startMatch) {
startTime = Number(startMatch[1]);
MAK.log(startTime);
if (startTime) {
setTimeout(function () {
MAK.seek(startTime);}, 200);
}
}
};

// Ready function..
MAK.playerInit = function () {
MAK.player = jQuery(‘#MAKhelper13057’).siblings(‘div.embed’).find(‘.swftools-wrapper object’)[0];
// See if the player is fully loaded yet.
if (!MAK.player || !MAK.player.addModelListener) {
setTimeout(function () {
MAK.playerInit();}, 100);
} else {
MAK.addListeners();
//MAK.startCheck();
}
};

// Link setup function..
MAK.linkSetup = function () {
jQuery(‘a[href*=#vseek]’).click(function(e) {
e.preventDefault();
var match, seconds;
match = this.getAttribute(“href”, 2).match(/#vseek(\d+)$/);
if (match) {
seconds = Number(match[1]);
if (seconds) {
MAK.seek(seconds);
}
}
});
};

jQuery(function () {
// Action..
//MAK.debugMode = true;
MAK.playerInit();

// Setup links.
MAK.linkSetup();
});
//–>

Fonte: White House

Como citar e referenciar este artigo:
NOTÍCIAS,. Tech Leaders Share Ideas on Job Creation and Innovation. Florianópolis: Portal Jurídico Investidura, 2011. Disponível em: https://investidura.com.br/noticias-internacionais/white-house/tech-leaders-share-ideas-on-job-creation-and-innovation/ Acesso em: 23 fev. 2026