Wednesday, November 10, 2010

What You Missed: Tuesday Talk on the President?s Trip to Asia

This week we sat down with Jeff Bader, Senior Director for Asian Affairs, and Ben Rhodes, Deputy National Security Advisor for Strategic Communications, to talk about the President’s upcoming trip to India, Indonesia, South Korea and Japan. On WhiteHouse.gov and Facebook, you asked questions on a range of topics from outsourcing jobs to “hot button” issues surrounding China to the President’s plans for Diwali in India. Watch their responses by using the links below to jump directly to the questions that you're interested in or watch the full video of the chat. Check back for full coverage of the President’s trip on WhiteHouse.gov.

Use the links below to jump directly to a question (questions are paraphrased).
/** * This script allows for inter- and intra- page arbitrary video * time index linking and is pretty namespace safe, * keeping everything that needs to be "global" in MAK. */ var MAK = MAK || {}; // Logging and debugging functions.. MAK.log = function (message) { if (MAK.debugMode && window.console) { console.log(message); } }; // Listening functions... which may do other things.. >.< 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('#MAKhelper13056').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(); });

Source: http://www.whitehouse.gov/blog/2010/11/03/what-you-missed-tuesday-talk-president-s-trip-asia

John Edwards John Ensign John F. Kerry John Kerry John McCain

No comments:

Post a Comment