Skip to content

Instantly share code, notes, and snippets.

Verifying that +dimsemenov is my blockchain ID. https://onename.com/dimsemenov
(function($) {
"use strict";
$.extend($.rsProto, {
_initDeeplinking: function() {
var self = this,
isBlocked,
hashTimeout,
hashChangeTimeout;
//function(template, UiClass, items, options)
var self = this;
/**
* Static vars, don't change unless you know what you're doing.
*/
var DOUBLE_TAP_RADIUS = 25,
NUM_HOLDERS = 3;
(function() {
var homepage = 'example.com',
url = window.location.href.toLowerCase();
if(url.indexOf(homepage) === -1) {
return;
}
// tracking code...
// Add this to your theme functions.php
function add_additional_rs_code() {
?>
if(window.location.hash.indexOf('video') > -1) {
jQuery('body').scrollTo('.royalSlider');
}
<?php
}
add_action('new_rs_after_js_init_code', 'add_additional_rs_code');