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() { | |
if (!Event.prototype.preventDefault) { | |
Event.prototype.preventDefault=function() { | |
this.returnValue=false; | |
}; | |
} | |
if (!Event.prototype.stopPropagation) { | |
Event.prototype.stopPropagation=function() { | |
this.cancelBubble=true; | |
}; |
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
evento.add(window, "load", function () { | |
var w = window, | |
d = document, | |
disqus_thread = d.getElementById("disqus_thread") || "", | |
disqus_shortname = disqus_thread ? (disqus_thread.dataset.shortname || "") : "", | |
embed_js_src = ("https:" == w.location.protocol ? "https" : "http") + "://" + disqus_shortname + ".disqus.com/embed.js", | |
g = ".grid", | |
h = ".grid-item", | |
k = ".grid-sizer", | |
grid = d.querySelector(g) || "", |
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
/*! | |
* load JS with requestAnimationFrame | |
* stackoverflow.com/questions/28394097/async-loading-css-stylesheet-using-requestanimationframe | |
*/ | |
function loadJSwithRaf(s, c) { | |
function l() { | |
var a = document.getElementsByTagName("script")[0], | |
t = document.createElement("script"); | |
t.src = s; | |
t.async = !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
/*! | |
* load CSS with requestAnimationFrame | |
* stackoverflow.com/questions/28394097/async-loading-css-stylesheet-using-requestanimationframe | |
* gist.github.com/englishextra/10712436aa14df45d7031fd739bf9dfc | |
*/ | |
function loadCSSwithRaf(h, c, m, b) { | |
function l() { | |
var t = window.document.createElement("link"), | |
a = b || window.document.getElementsByTagName("script")[0], | |
s = window.document.styleSheets; |
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
<?xml version="1.0" encoding="Windows-1252" ?> | |
<!--// HelpingHand Notepad++ XML Theme | |
Copyright (c) 2016 Seguei Shimansky <http://shimansky.biz/> | |
gist.github.com/englishextra/1132a0a940768984cd4735837a22aba2 | |
//--> | |
<NotepadPlus> | |
<LexerStyles> | |
<LexerType name="xml" desc="XML" ext=""> | |
<WordsStyle name="XMLSTART" styleID="12" fgColor="000000" bgColor="F1F1F1" fontName="" fontStyle="0" fontSize="10" /> | |
<WordsStyle name="XMLEND" styleID="13" fgColor="000000" bgColor="F1F1F1" fontName="" fontStyle="0" fontSize="10" /> |
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
/** | |
* IE 5.5+, Firefox, Opera, Chrome, Safari XHR object | |
* | |
* @param string url | |
* @param object callback | |
* @param mixed data | |
* @param null x | |
*/ | |
function ajax(url, callback, data, x) { | |
try { |
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
/*! | |
* Load and execute JS via AJAX | |
* gist.github.com/englishextra/8dc9fe7b6ff8bdf5f9b483bf772b9e1c | |
* IE 5.5+, Firefox, Opera, Chrome, Safari XHR object | |
* gist.github.com/Xeoncross/7663273 | |
* modified callback(x.responseText,x); to callback(eval(x.responseText),x); | |
* stackoverflow.com/questions/3728798/running-javascript-downloaded-with-xmlhttprequest | |
* @param {String} u path string | |
* @param {Object} [f] callback function | |
* @param {Object} [e] on error callback function |
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
/*! | |
* externalcounters.js | |
* track visitors | |
* gist.github.com/englishextra/12dec2c7a796ab9ec5e9ed84b134c055 | |
*/ | |
if (!/localhost/.test(self.location.host)) { | |
(function (b, a, c, d) { | |
if (c && d) { | |
var e = encodeURIComponent(a.referrer || ""); | |
b = encodeURIComponent(b.location.href || ""); |
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
/*! | |
* externalcounters-clicks.js | |
* track clicks on external links | |
* gist.github.com/englishextra/b1e2dec7ab9b5d5af28a02c7257b17e6 | |
*/ | |
"undefined" !== typeof window.jQuery && $(function () { | |
$(document).on("click", ".superbox-current-desc a", function (e) { | |
e.preventDefault(); | |
e.stopPropagation(); | |
var w = window, |
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
/*! | |
* modified github.com/ykyuen/hyphenator.js/blob/master/Hyphenator.js | |
* only English and Russian support | |
* some functions and checks are cut off | |
* usage <p class="hyphenate text" lang="ru"> <p class="hyphenate text" lang="en"> | |
* dont minify with JSMin | |
* minify with closure-compiler.appspot.com/home and then remove new lines | |
*/ | |
var Hyphenator = function (e) { | |
var p = { |