Skip to content

Commit aaaafca

Browse files
committed
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
1 parent baa88ef commit aaaafca

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/html/design/static/default.css

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,7 @@ video.with-shadow {
279279
background: rgba(0, 0, 0, 0.03); }
280280
#nav #back-dac-section {
281281
padding: 10px;
282-
border-top: 1px solid #ddd;
283-
background: transparent url(open_new_page.png) no-repeat scroll 139px 9px; }
282+
border-top: 1px solid #ddd; }
284283
#nav #back-dac-section a {
285284
color: #333333;
286285
font-weight: 500;
@@ -569,4 +568,4 @@ li.no-bullet {
569568
height: 12px;
570569
margin-right: 8px; }
571570
.video-instructions:after {
572-
content: 'Click or move mouse over screenshot to replay movie.'; }
571+
content: 'Click to replay movie.'; }

docs/html/design/static/default.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ $(document).ready(function() {
125125
});
126126

127127
// Set up play-on-hover <video> tags.
128-
$('video.play-on-hover').bind('mouseenter click', function(){
128+
$('video.play-on-hover').bind('click', function(){
129+
$(this).get(0).load(); // in case the video isn't seekable
129130
$(this).get(0).play();
130131
});
131132

0 commit comments

Comments
 (0)