Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: common/header.js

Issue 8493027: Acquired Opera AdBlock code (Closed)
Patch Set: Created Oct. 8, 2012, 5:58 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « common/donate.js ('k') | common/notification.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: common/header.js
===================================================================
new file mode 100644
--- /dev/null
+++ b/common/header.js
@@ -0,0 +1,18 @@
+document.getElementById('title').appendChild(document.createTextNode(translate.get('ext_name') + ' - ' + translate.get('preferences')));
+
+var headerParent = document.getElementById('header');
+
+var logo = document.createElement('img');
+logo.setAttribute('src', '/images/icon32.png');
+logo.setAttribute('width', '32px');
+logo.setAttribute('length', '32px');
+
+var title = document.createElement('h1');
+title.appendChild(logo);
+title.appendChild(document.createTextNode(' ' + translate.get('ext_name')));
+
+var subtitle = document.createElement('h4');
+subtitle.appendChild(document.createTextNode(translate.get('ext_descript')));
+
+headerParent.appendChild(title);
+headerParent.appendChild(subtitle);
« no previous file with comments | « common/donate.js ('k') | common/notification.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld