docs: Android design CSS/JS fixes

- Remove new window icon for Developer site link
- Make videos re-load and replay on click to prevent
  failed replay for unseekable videos

Change-Id: I689607d0d53247b0e599612cb7d23a98d6ad24a1
This commit is contained in:
Roman Nurik
2012-01-12 13:57:44 -08:00
parent baa88ef7d3
commit aaaafca854
2 changed files with 4 additions and 4 deletions

View File

@@ -279,8 +279,7 @@ video.with-shadow {
background: rgba(0, 0, 0, 0.03); } background: rgba(0, 0, 0, 0.03); }
#nav #back-dac-section { #nav #back-dac-section {
padding: 10px; padding: 10px;
border-top: 1px solid #ddd; border-top: 1px solid #ddd; }
background: transparent url(open_new_page.png) no-repeat scroll 139px 9px; }
#nav #back-dac-section a { #nav #back-dac-section a {
color: #333333; color: #333333;
font-weight: 500; font-weight: 500;
@@ -569,4 +568,4 @@ li.no-bullet {
height: 12px; height: 12px;
margin-right: 8px; } margin-right: 8px; }
.video-instructions:after { .video-instructions:after {
content: 'Click or move mouse over screenshot to replay movie.'; } content: 'Click to replay movie.'; }

View File

@@ -125,7 +125,8 @@ $(document).ready(function() {
}); });
// Set up play-on-hover <video> tags. // Set up play-on-hover <video> tags.
$('video.play-on-hover').bind('mouseenter click', function(){ $('video.play-on-hover').bind('click', function(){
$(this).get(0).load(); // in case the video isn't seekable
$(this).get(0).play(); $(this).get(0).play();
}); });