diff options
author | glen@google.com <glen@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-07-31 23:27:13 +0000 |
---|---|---|
committer | glen@google.com <glen@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-07-31 23:27:13 +0000 |
commit | 652bcad9d05b36b4905b896bcf93628e18647893 (patch) | |
tree | 2b2b53e41b766c48f5c189c27e9e7fff16b1824b /chrome/browser/resources/new_tab.html | |
parent | eaea8ab540171542f7c1ac6f6ce47130da5d1a0e (diff) | |
download | chromium_src-652bcad9d05b36b4905b896bcf93628e18647893.zip chromium_src-652bcad9d05b36b4905b896bcf93628e18647893.tar.gz chromium_src-652bcad9d05b36b4905b896bcf93628e18647893.tar.bz2 |
Stop the new tab page fading in if it's not your startup tab.
BUG=1295355
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources/new_tab.html')
-rw-r--r-- | chrome/browser/resources/new_tab.html | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/chrome/browser/resources/new_tab.html b/chrome/browser/resources/new_tab.html index fed6f9e..3c16644 100644 --- a/chrome/browser/resources/new_tab.html +++ b/chrome/browser/resources/new_tab.html @@ -1,4 +1,4 @@ -<html id="t" jsvalues="dir:textdirection;newsession:newsession"> +<html id="t" jsvalues="dir:textdirection;firstview:firstview"> <!-- This page is optimized for perceived performance. Our enemies are the time taken for the backend to generate our data, and the time taken to parse @@ -119,10 +119,6 @@ function handleInputBlur() { function handleDOMContentLoaded() { logEvent('domcontentloaded fired'); - - if (document.getElementById('motd').innerHTML) { - document.getElementById('motd').style.display = 'block'; - } } logEvent('log start'); @@ -136,11 +132,11 @@ body { font-size:84%; margin:0px; } -html[newsession='true'] #main { +html[firstview='true'] #main { opacity:0.0; -webkit-transition:all 0.4s; } -html[newsession='true'] #main.visible { +html[firstview='true'] #main.visible { /* unfortunately, 1.0 results in no animation */ opacity:0.999; } @@ -184,13 +180,6 @@ html[dir='rtl'] #mostvisited td { -webkit-box-shadow: 5px 5px 10px #ccc; -webkit-transition:all 0.12s; } -#motd { - background-color:#ffc; - padding:5px; - margin-bottom:9px; - width:610px; - -webkit-transition:all 0.12s; -} .thumbnail-title { background-image:url(chrome-resource://favicon/); display:block; @@ -221,9 +210,6 @@ a.thumbnail { border:1px solid #abe; } -.small #motd { - width:480px; -} .small .thumbnail-title { width:127px; } @@ -322,7 +308,6 @@ document.addEventListener('DOMContentLoaded', handleDOMContentLoaded); <tr> <td valign="top"> <div id="mostvisitedsection" class="section"> - <div id="motd" jscontent="motd" style="display:none;"></div> <div id="mostvisited" style="position:relative;"> <div class="section-title" jscontent="mostvisited"></div> <div id="mostvisitedintro" style="display:none;"> |