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. 2, 2012, 1:15 p.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') | files/background.js » ('J')
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/icon_red34.png');
+logo.setAttribute('width', '34px');
+logo.setAttribute('length', '34px');
+
+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') | files/background.js » ('J')

Powered by Google App Engine
This is Rietveld