This file contains 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
// module path | |
var path = ( function() { | |
var settings = {}; | |
var init = function() { | |
debuglog( 'site.path.init()' ); | |
settings.element = $( 'a[href^="' + globals.blogurl + '"]' ) | |
.not( '#wpadminbar a' ); |
This file contains 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
// module viewport | |
var viewport = ( function() { | |
var settings = { | |
width: 0, | |
height: 0, | |
documentHeight: 0, | |
nowLoop: Date.now(), | |
fps: ( 1000 / 60 ), | |
This file contains 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 ( $ ) { | |
$.fn.redraw = function() { | |
return this.each( function() { | |
var redraw = this.offsetHeight; | |
} ); | |
}; | |
}( jQuery ) ); |
This file contains 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
// module posts | |
var posts = ( function() { | |
var settings = {} | |
settings.infinityOffset = 300; | |
settings.request = null; | |
settings.queryData = { |
This file contains 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 position() { | |
var wrapper = $( '.wrapper' ); | |
var image = $( '.image' ); | |
var imageHeight = image.height(); | |
var imageWidth = image.width(); | |
var imageRatio = imageHeight / imageWidth; | |
var linkHeight = link.height(); | |
var linkWidth = link.width(); |
This file contains 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
// lightbox module | |
// we are using photoSwipe | |
// https://github.com/dimsemenov/PhotoSwipe | |
var lightbox = ( function() { | |
var init = function() { | |
console.log( 'site.lightbox.init()' ); | |
bindEventHandlers(); | |
if( $( '.imagelist' ).length > 0 ) { |
This file contains 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
/** | |
* Wrap oembed in <div> | |
* @param string $html original markup | |
* @param string $url URL | |
* @param array $attributes config | |
* @param int $id post ID | |
* @return string modified markup | |
*/ | |
function wrap_oembed( $html, $url, $attributes, $id ) { | |
$class = ''; |
This file contains 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
/** | |
* Modify markup of inline images added via the visual editor | |
* to follow the srcset responsive image pattern | |
* @param string $html original image markup | |
* @param int $id attachment ID | |
* @param string $alt alt text | |
* @param string $title image title | |
* @return string modified markup | |
*/ | |
function responsive_image_embed( $html, $id, $alt, $title ) { |
This file contains 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
CharView.Popup.Menu.Add Anchor:Ctl+0 | |
FontView.Popup.Menu.FontView.Menu.Metrics.Set Vertical Advance...:No Shortcut | |
FontView.Popup.Menu.New Outline Window:Ctl+H | |
FontView.Popup.Menu.Cut:Ctl+X | |
FontView.Popup.Menu.Copy:Ctl+C | |
FontView.Popup.Menu.Copy Reference:Ctl+G | |
FontView.Popup.Menu.Copy Width:No Shortcut | |
FontView.Popup.Menu.Paste:Ctl+V | |
FontView.Popup.Menu.Clear:No Shortcut | |
FontView.Popup.Menu.Copy Fg To Bg:Ctl+Shft+C |
This file contains 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
/** | |
* Template tag: | |
* Get <title> text | |
* Use as <title><?php echo get_site_title( '-' ); ?></title> | |
* @param string $separator String separator | |
* @return string title text | |
*/ | |
function get_site_title( $separator = ' – ' ) { | |
global $wp_query; |
OlderNewer