David Scott Lyons
3D artist / designer / developer

Syntax Highlighter Plugin Test

Testing out Chris Bavota’s Syntax Highlighter Shortcode using Prism.js

<ul class="nav">
	<li><a href="#">Item 1</a></li>
	<li><a href="#">Item 2</a></li>
	<li><a href="#">Item 3</a></li>
	<li><a href="#">Long line of text. Long line of text. Long line of text. Long line of text. Long line of text. Long line of text. Long line of text. Long line of text.</a></li>
</ul>
body {
  background: #ff0000;
  color: #fff;
}
$(".scroll").click(function(e){
    e.preventDefault();
    var offset = $($(this).attr('href')).offset().top;
    $('html, body').animate( { scrollTop: offset }, 800 );
});

No Title

$(".scroll").click(function(e){
    e.preventDefault();
    var offset = $($(this).attr('href')).offset().top;
    $('html, body').animate( { scrollTop: offset }, 800 );
});

Post a Comment

Your email is never shared. Required fields are marked (required)

(required)
(required)