YAHOO.namespace("Sports.scoreShare");
YUI({
'modules' : {
'gallery-fb-connect' : {
'fullpath' : 'http://l.yimg.com/a/i/us/sp/js/fb-connect-min.js',
'requires' : ['gallery-fb-connect-css']
},
'gallery-fb-connect-css' : {
'fullpath' : 'http://l.yimg.com/a/lib/sp/fn/css/gallery_fb_connect.css',
'type' : 'css'
}
}
}, {
FB: {
init : {
appId : '111580892213144',
logging : true,
status : true,
cookie : false,
xfbml : true
},
YuiIo : {
transportCfg : {
src : '/static/versioned_asset/v7/swf/editorial/swf/io.r144990.swf'
}
}
}
}).use('gallery-fb-connect', 'attribute', 'node', 'io-base', function(Y) {
YAHOO.Sports.scoreShare = function () {
var cNode = this;
FB.getLoginStatus(function(response) {
var fb_status = null,
fb_me_data = null,
fb_profile_id = null,
fb_profile_img = 'http://static.ak.fbcdn.net/rsrc.php/z5HB7/hash/ecyu2wwn.gif',
required_perms = 'publish_stream,offline_access,email,user_birthday,user_likes,user_interests,user_location,read_friendlists',
shareClick,
updateProfileImg,
updateFBProfileData,
getRequiredPerms,
hasValidPerms,
oFBUIData = {
method: 'stream.publish',
message: '',
attachment: {
name: '',
description: '',
href: document.location.href // TODO: maybe change this to a PHP set so you have full control over the url
}
};
// refreshes the FB profile image url based on current FB status data
updateProfileImg = function() {
var imgNode = null;
if (fb_profile_id) {
fb_profile_img = 'http://graph.facebook.com/' + fb_profile_id + '/picture';
imgNode = cNode.one('img#facebook-image');
// if the profile image node is present in the UI, update it
if (imgNode) {
imgNode.set('src', fb_profile_img);
}
}
};
// refreshes the basic FB data object and variables based on an FB status object
updateFBProfileData = function(status) {
fb_status = status;
if (status.status === 'connected') {
FB.api('/me', function(ro) {
fb_me_data = ro;
fb_profile_id = ro.id;
updateProfileImg();
});
}
};
// creates an object literal of the required params string for easier comparison operations
getRequiredPerms = function() {
var oPerms = {},
aPerms = [];
if (Y.Lang.isString(required_perms)) {
aPerms = required_perms.split(',');
Y.each(oPerms, function(v,i,a) {
oPerms[v] = true;
});
}
return oPerms;
};
// compares the user's current allowed FB permissions with this widget's required permissions
hasValidPerms = function(perms) {
var reqPerms = getRequiredPerms(),
aUserPerms = [],
oUserPerms = {};
if (Y.Lang.isString(perms)) {
aUserPerms = perms.split(',');
Y.each(aUserPerms, function(v,i,a) {
oUserPerms[v] = true;
});
Y.each(reqPerms, function(v,k,o) {
if (Y.Lang.isUndefined(oUserPerms[v])) {
return false;
}
});
return true;
}
return false;
};
// set the FB profile data based on the initial check for login status
updateFBProfileData(response);
// if the login status changes at any time (like after login), update the FB profile data with the new status object
FB.Event.subscribe('auth.statusChange', updateFBProfileData);
// when a user clicks the share button, determine if we can show the FB publish dialog and show/no show it
shareClick = function(e) {
// find the current score
var awayTeamName = Y.one('#ysp-reg-box-line_score .away h6').get('innerHTML'),
awayTeamScore = Y.one('#ysp-reg-box-line_score .away em').get('innerHTML'),
homeTeamName = Y.one('#ysp-reg-box-line_score .home h6').get('innerHTML'),
homeTeamScore = Y.one('#ysp-reg-box-line_score .home em').get('innerHTML');
if (awayTeamScore > homeTeamScore) {
oFBUIData.attachment.name = awayTeamName + ' ' + awayTeamScore + ' - ' + homeTeamName + ' ' + homeTeamScore;
}
else if (homeTeamScore > awayTeamScore){
oFBUIData.attachment.name = homeTeamName + ' ' + homeTeamScore + ' - ' + awayTeamName + ' ' + awayTeamScore;
}
else {
oFBUIData.attachment.name = awayTeamName + ' ' + awayTeamScore + ' - ' + homeTeamName + ' ' + homeTeamScore;
}
oFBUIData.attachment.href = 'http://sports.yahoo.com/nba/recap?gid=2010102602';
oFBUIData.attachment.description = '';
oFBUIData.attachment.caption = Y.one('#ysp-reg-box-line_score .board span').get('title');
oFBUIData.attachment.media = [{ 'type': 'image', 'src': 'http://l.yimg.com/a/i/us/sp/ysp-mod/boxscore/presented/yahoo2.jpg', href: 'http://sports.yahoo.com/nba/recap?gid=2010102602' }];
oFBUIData.attachment.caption = Y.one('#ysp-reg-box-line_score .board span').get('title');
// set the message to whatever they typed in the input
oFBUIData.message = cNode.one('input#fb-game-preview-share-text').get('value');
e.halt();
// Fire the Rapid Beacon [안내]태그제한으로등록되지않습니다-xxonClick
if(YAHOO.Sports.Rapid) {
YAHOO.Sports.Rapid.beac[안내]태그제한으로등록되지않습니다-xxonClick("ysp-fb-share_the_score", "Share the Score", 1); //Leave as 1 for now since this is the primary link we track
}
if (Y.UA.ie > 0) {
oFBUIData.display = 'popup';
}
// if they're not connected with our app or they haven't given us sufficient permissions, prompt for login
if (fb_status.status !== 'connected'
|| (!Y.Lang.isUndefined(fb_status.perms) && !hasValidPerms(fb_status.perms))) {
FB.login(function(response) {
if (response.session) {
updateFBProfileData(response);
FB.ui(oFBUIData, function(response) {
if (response && response.post_id) {
// Y.log('post was published');
} else {
// Y.log('post was not published');
}
});
} else {
//Y.log('user cancelled login');
}
}, {perms:'publish_stream,offline_access,email,user_birthday,user_likes,user_interests,user_location,read_friendlists'});
// if they're connected with our app and have given us sufficient permissions, show the publish dialog
} else {
FB.ui(oFBUIData);
}
};
// post-load content, as it requires JS
Y.one('#ysp-reg-box-share_the_score .bd').set('innerHTML', '
Enter your own message: Share the score');
// bind the ui
Y.on('focus', function() { Y.one('#fb-game-preview-share-text').addClass('active'); Y.one('#fb-game-preview-share-text').set('value', ''); }, '#fb-game-preview-share-text');
Y.on('click', shareClick, '.bd em.fb_share a');
});
};
Y.on('contentready', YAHOO.Sports.scoreShare, '#ysp-reg-box-share_the_score');
});
80
Miami Heat
0-1
Final
Miami Heat @ Boston Celtics
| Team |
1 |
2 |
3 |
4 |
Total |
| MIA |
9 |
21 |
27 |
23 |
80 |
| BOS |
16 |
29 |
18 |
25 |
88 |
88
Boston Celtics
1-0
Team Statistics: Starters for Miami Heat
| Starters |
Pos |
Min |
FG |
3Pt |
FT |
+/- |
Off |
Reb |
Ast |
TO |
Stl |
BS |
BA |
PF |
Pts |
| D. Wade(notes) |
G |
36:41 |
4-16 |
1-3 |
4-6 |
-18 |
0 |
4 |
6 |
6 |
3 |
0 |
2 |
3 |
13 |
| C. Arroyo(notes) |
G |
12:33 |
1-3 |
0-0 |
1-1 |
-5 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
3 |
| J. Anthony(notes) |
C |
16:41 |
1-1 |
0-0 |
0-0 |
-12 |
3 |
7 |
1 |
0 |
0 |
1 |
0 |
2 |
2 |
| L. James(notes) |
F |
42:39 |
10-21 |
3-6 |
8-12 |
+1 |
0 |
4 |
3 |
8 |
1 |
2 |
0 |
0 |
31 |
| C. Bosh(notes) |
F |
37:37 |
3-11 |
0-0 |
2-2 |
-17 |
2 |
8 |
2 |
1 |
1 |
1 |
1 |
3 |
8 |
Team Statistics: Starters for Boston Celtics
| Starters |
Pos |
Min |
FG |
3Pt |
FT |
+/- |
Off |
Reb |
Ast |
TO |
Stl |
BS |
BA |
PF |
Pts |
| R. Rondo(notes) |
G |
41:29 |
2-9 |
0-0 |
0-0 |
+4 |
1 |
5 |
17 |
3 |
2 |
0 |
2 |
1 |
4 |
| R. Allen(notes) |
G |
39:16 |
7-13 |
5-8 |
1-1 |
-2 |
0 |
1 |
1 |
1 |
0 |
0 |
0 |
1 |
20 |
| S. O'Neal(notes) |
C |
18:09 |
3-7 |
0-0 |
3-8 |
+7 |
2 |
7 |
0 |
1 |
0 |
1 |
1 |
2 |
9 |
| P. Pierce(notes) |
F |
40:33 |
4-7 |
3-4 |
8-8 |
+12 |
1 |
9 |
3 |
3 |
1 |
0 |
1 |
2 |
19 |
| K. Garnett(notes) |
F |
35:13 |
4-11 |
0-0 |
2-4 |
+7 |
2 |
10 |
3 |
7 |
3 |
0 |
1 |
5 |
10 |
- +/-:
- Team net points while player in game
- TO:
- Turnovers
- PF:
- Personal Fouls
- BS:
- Blocked Shots
- BA:
- Blocks Against
Game Info
- Technical Fouls:
- None
- Arena:
- TD Garden, Boston, MA
- Attendance:
- 18,624
- Officials:
- Dan Crawford, Tony Brothers, Brian Forte
- Duration:
- 2:37























































http://www.nba.com/video/games/celtics/2010/10/26/0021000001_mia_bos_play1.nba/
하일라잇 영상들은 여기서 보시고요.
해당경기 풀영상은 셀틱스 카페에 올렸습니다.

첫댓글 아 이 화보를 보니까 생각나는건데..
개막전에 참 심판들이 경기 흐름을 너무 끊는것 같더군요..
뭐 파울이 나왔으니 끊는거겠지만.. 그래도 사소한 부분에서 콜이 좀 많은듯했네요.. 저 르브론의 '왜왜왜오왜왜'표정을 보니..
감사합니다 잘볼게요!!
아~~하우스 검은 옷 입은 게 왜캐 가슴이 아프지? 타락천사인가?ㅎㅎㅎㅎ
잘 봤습니다. 올시즌에도 좋은 사진 부탁드려요^^
태크니컬 파울이 너무 심한거 같은 부분이 좀 걸리네욤.