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
img { | |
margin: 0; | |
padding: 0; | |
display: block; | |
} | |
.ba-viewer { | |
overflow: hidden; | |
position: relative; | |
width: 100%; |
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
var fileToTest = grunt.file.read('somefile.js'); | |
var vars = fileToTest.match(/(\w+)/g); | |
var i = vars.length; | |
var count; | |
var parsedVars = []; | |
var maxWordLen = 3; | |
while(i--) { | |
var word = vars[i]; |
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(window) { | |
'use strict'; | |
var toggleEvent = function(el, name, fn, unbind) { | |
var methodName = (unbind ? 'remove' : 'add') + 'EventListener'; | |
el[methodName](name, fn, false); | |
}; | |
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
Verifying that +dimsemenov is my blockchain ID. https://onename.com/dimsemenov |
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 fire_royalslider_func($atts){ | |
$sliderid = $atts['id']; | |
$out = ''; | |
if (!$sliderid) return; | |
/* Print slider HTML, skip this part if you already have it on page */ | |
$out .= get_new_royalslider($sliderid); | |
/* Print slider END */ | |
// Init code |
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($) { | |
"use strict"; | |
$.extend($.rsProto, { | |
_initDeeplinking: function() { | |
var self = this, | |
isBlocked, | |
hashTimeout, | |
hashChangeTimeout; |
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
/** | |
* | |
* desktop-zoom.js: | |
* | |
* - Binds mousewheel event for paning zoomed image. | |
* - Manages "dragging", "zoomed-in", "zoom-out" classes. | |
* (which are used for cursors and zoom icon) | |
* - Adds toggleDesktopZoom function. | |
* | |
*/ |
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(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; |
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() { | |
var homepage = 'example.com', | |
url = window.location.href.toLowerCase(); | |
if(url.indexOf(homepage) === -1) { | |
return; | |
} | |
// tracking code... |
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() { | |
function trackJavaScriptError(e) { | |
e = e || window.event; | |
if(!e || !e.message || !e.lineno){ | |
return true; | |
} | |
var errMsg = e.message; | |
var errSrc = e.filename + ': ' + e.lineno; | |
ga('send', 'event', 'JavaScript Error', errMsg, errSrc, { 'nonInteraction': 1 }); | |
} |
NewerOlder