This project ‘kirbytag-codepen’ is now hosted over on GitHub: https://github.com/plfstr/kirbytag-codepen
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# ***Must be included as part of plugins/kirbytext.extend.php*** - Follow guidance here http://getkirby.com/blog/kirbytext | |
# Kirby CMS Figure Quote Plugin - Forked from https://gist.github.com/bastianallgeier/2924148#file-figure-php | |
# Blockquote markup best practice followed from http://alistapart.com/blog/post/more-thoughts-about-blockquotes-than-are-strictly-required | |
# Include in a post as follows (figquote: Example quotes need to be good ones. source: Mr Example) | |
/* Example CSS to target blockquote: | |
.blockquote {} | |
.blockquote p {} | |
.blockquote blockquote {} | |
.blockquote figcaption:before {content: "—";} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getOffset() | |
{ | |
var commentsList = ['comments', 'discussion', 'reply', 'notes', 'commentarea', 'disqus_thread', 'fb-comment-container', 'lf_comment_stream', 'respond', 'response', 'CommentList', 'comments-list', 'start-of-comments', 'article-comments', 'echo-stream', 'vanilla-comments', 'cboxid']; //If some comments are not being picked up, append their #ID to this array. | |
var i = 0, | |
commentsLength = commentsList.length, | |
getViewheight = window.innerHeight, //The height of the browser viewport | |
getTotalheight = document.body.scrollHeight, | |
percentStyle, | |
percentBox; | |