Permalink
Browse files

Shorter noscript end

  • Loading branch information...
1 parent fd4f771 commit 3f164371a5f2afc128d5a139de71a86bcd00a1cd @jakearchibald committed Dec 4, 2011
Showing with 5 additions and 33 deletions.
  1. +1 −1 README.md
  2. +3 −31 index.html
  3. +1 −1 js/responsiveGallery.js
View
@@ -17,7 +17,7 @@ First, surround your image, or set of images with some dirty-magic script elemen
<a href="http://www.flickr.com/photos/major_clanger/3690964841/">
<img src="http://farm3.staticflickr.com/2624/3690964841_3f157fa6ba_t.jpg" alt="">
</a>
- </noscript><!---->
+ </noscript -->
Dirty isn't it? Anyway, then include responsiveGallery.js, and initialise your gallery:
View
@@ -44,34 +44,6 @@
I think about how cute they are<br>
And how their ears and the whiskers and the nose.
</p>
- <p>
- I just love them.<br>
- And I want them.<br>
- And I want them in a basket.<br>
- And I want little bow ties.<br>
- I just love them.<br>
- And I want them<br>
- To be on a rainbow<br>
- And in my bed<br>
- And I just want us to roll around.
- </p>
- <p>Sorry I’m getting emotional.</p>
- <p>
- I love cats.<br>
- I love every kind of cat.<br>
- I just wanna hug all of them but I can’t;<br>
- Can’t hug every cat,<br>
- Can’t hug every cat.
- </p>
- <p>
- So anyway I am a cat lover<br>
- And I love to run.<br>
- I’m sorry I’m thinking about cats again.<br>
- I really love cats.<br>
- But I can’t hug every cat;<br>
- Can’t hug every cat,<br>
- Can’t hug every cat.
- </p>
<h1>Cat photos</h1>
<section>
<h1>Cats Asleep</h1>
@@ -132,7 +104,7 @@
</a>
</li>
</ul>
- </noscript><!---->
+ </noscript -->
</section>
<section>
<h1>Cats not asleep</h1>
@@ -194,7 +166,7 @@
</a>
</li>
</ul>
- </noscript><!---->
+ </noscript -->
</section>
</div>
@@ -204,7 +176,7 @@
<a href="http://www.flickr.com/photos/major_clanger/3690964841/">
<img class="video-intro" src="http://farm3.staticflickr.com/2624/3690964841_3f157fa6ba_t.jpg" alt="Cats watching TV">
</a>
- </noscript><!---->
+ </noscript -->
<article>
<a href="http://www.youtube.com/watch?v=fzzjgBAaWZw">
<h1>Stalking cat</h1>
View
@@ -17,7 +17,7 @@
}
function Gallery(script) {
- this.htmlStr = script.nextSibling.nodeValue.slice( 10, -15 );
+ this.htmlStr = script.nextSibling.nodeValue.slice( 10, -11 );
this.container = document.createElement( 'div' );
script.parentNode.insertBefore( this.container, script.nextSibling );
}

0 comments on commit 3f16437

Please sign in to comment.