Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add CC icons

  • Loading branch information...
commit 13eefc0cbbe4f9b7305303a3a6545250195347b1 1 parent dfce3f9
@mocoso authored
Showing with 20 additions and 0 deletions.
  1. +6 −0 2020.css
  2. +7 −0 cc.js
  3. BIN  cc.png
  4. +7 −0 title/title.md
View
6 2020.css
@@ -70,6 +70,12 @@ h2 {
height: auto;
}
+.full-page-image img.cc {
+ width: 1.2em;
+ height: 1.2em;
+ vertical-align: middle;
+}
+
.full-page-image p {
margin: 0 0 0 0;
}
View
7 cc.js
@@ -0,0 +1,7 @@
+// Replace instances of (CC) with the creative commons logo
+jQuery.fn.replaceCcWithLogo = function() {
+ this.each(function() {
+ $(this).html($(this).html().replace('(CC)', '<img width="25" height="25" class="cc" src="./file/cc.png">'));
+ });
+ return this;
+}
View
BIN  cc.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
7 title/title.md
@@ -1,5 +1,12 @@
!SLIDE full-page-image title
+<script type="text/javascript">
+// Should get this to be triggered as part of setupPreso()
+$(function(){
+ $('a').replaceCcWithLogo();
+});
+</script>
+
![A pea fowl shows off it's colours](peafowl.jpg "Showing off in a pea fowl style")
<p>Image courtesy of <span xmlns:cc="http://creativecommons.org/ns#" about="http://www.flickr.com/photos/rappensuncle/146681779/"><a rel="cc:attributionURL" href="http://www.flickr.com/photos/rappensuncle/">rappensuncle</a> <a rel="license" href="http://creativecommons.org/licenses/by-sa/2.0/">(CC)</a></span></p>
Please sign in to comment.
Something went wrong with that request. Please try again.