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

Unified Diff: src/site/js/scripts.js

Issue 23619013: start talking about polymer.dart (Closed) Base URL: git@github.com:dart-lang/dartlang.org.git@master
Patch Set: remove the colors, reword the intro Created 7 years, 3 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 | « src/site/index.html ('k') | src/site/polymer-dart/index.markdown » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/site/js/scripts.js
diff --git a/src/site/js/scripts.js b/src/site/js/scripts.js
index 195edfbf3922f5f80d50be562acf1ec7105256d0..a0a528ba41a4f0e8c047a9e76ee946a15613f5d2 100644
--- a/src/site/js/scripts.js
+++ b/src/site/js/scripts.js
@@ -1,5 +1,8 @@
$(document).ready(function() {
var addPermalink = function() {
+ if ($(this).hasClass('no-permalink')) {
+ return;
+ }
$(this).addClass('has-permalink');
$(this).append($('<a class="permalink" title="Permalink" href="#' + $(this).attr('id') + '">#</a>'));
};
« no previous file with comments | « src/site/index.html ('k') | src/site/polymer-dart/index.markdown » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698