Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1945)

Unified Diff: chrome/browser/resources/welcome/welcome.js

Issue 2422703002: First run: tweaks to welcome page (Closed)
Patch Set: revert .class -> #id Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/welcome/welcome.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/welcome/welcome.js
diff --git a/chrome/browser/resources/welcome/welcome.js b/chrome/browser/resources/welcome/welcome.js
index a68333a2817e9fbc36d7bc55a2c2f52cdfb1ee74..34d74ba5fd5ed9d0ab9970ca68fab96f6b34c50a 100644
--- a/chrome/browser/resources/welcome/welcome.js
+++ b/chrome/browser/resources/welcome/welcome.js
@@ -11,11 +11,24 @@ cr.define('welcome', function() {
function onDecline(e) {
chrome.send('handleUserDecline');
+ e.preventDefault();
}
function initialize() {
$('accept-button').addEventListener('click', onAccept);
$('decline-button').addEventListener('click', onDecline);
+
+ var logo = document.querySelector('.logo-icon');
+ logo.onclick = function(e) {
+ logo.animate({
+ transform: ['none', 'rotate(-10turn)'],
+ }, /** @type {!KeyframeEffectOptions} */({
+ duration: 500,
+ easing: 'cubic-bezier(1, 0, 0, 1)',
+ }));
+ };
+
+ document.fonts.load('bold .8125em Roboto');
}
return {
« no previous file with comments | « chrome/browser/resources/welcome/welcome.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698