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
document.querySelectorAll('[aria-label]').forEach((el) => { | |
el.attributes.getNamedItem('aria-label').value = '❤️ ' + el.attributes.getNamedItem('aria-label').value; | |
}) |
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
<?php | |
class BootstrapU { | |
public static function get_modal(array $opts = array()){ | |
$defaults = array( | |
'classes' => $opts['classes'] ?: "", | |
'id' => $opts['id'] ?: null, | |
'header' => $opts['header'] ?: null, | |
'body' => $opts['body'] ?: null, | |
'footer' => $opts['footer'] ?: null |
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 wikiTableRip(t){ | |
var object = {}, | |
heads = (function(){ | |
var cs = t.tHead.children[0], | |
rets = []; | |
for(var i=0;i<cs.childElementCount;i++){ | |
rets.push(cs.children[i].innerText); | |
} | |
return rets; | |
})(), |
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
<Macro name="Markdown - TOC" Ctrl="yes" Alt="yes" Shift="no" Key="219"> | |
<Action type="0" message="2453" wParam="0" lParam="0" sParam="" /> | |
<Action type="0" message="2315" wParam="0" lParam="0" sParam="" /> | |
<Action type="0" message="2177" wParam="0" lParam="0" sParam="" /> | |
<Action type="1" message="2170" wParam="0" lParam="0" sParam="-" /> | |
<Action type="1" message="2170" wParam="0" lParam="0" sParam=" " /> | |
<Action type="1" message="2170" wParam="0" lParam="0" sParam="[" /> | |
<Action type="0" message="2179" wParam="0" lParam="0" sParam="" /> | |
<Action type="1" message="2170" wParam="0" lParam="0" sParam="]" /> | |
<Action type="1" message="2170" wParam="0" lParam="0" sParam="(" /> |
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 allStylesheets(){ | |
var links = document.getElementsByTagName('link'), | |
sheets = new Array(); | |
for (link in links){ | |
if (links[link].hasOwnProperty("rel") && links[link].rel == "stylesheet"){ | |
sheets.push(links[link]) | |
} | |
} | |
return sheets; | |
}; |
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
var __imageBox = (function () { | |
var setup = function (target) { | |
$('#' + target + ' img').each(function (img) { | |
var alt = $(this).attr("alt").toString(), | |
width = $(this).css("width"); | |
$(this).wrap( | |
"<div class='imageBoxDiv' width=" + width + "/>" | |
).after( | |
"<div class='imageBoxMask'><p>" + alt + "</p></div>" | |
); |
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 () { | |
// Back To Top | |
var b = $('body'); | |
b.append("<a id='toTopBtn' href='#'>▲</a>"); | |
$('#toTopBtn').css({ | |
display: 'none', | |
fontSize: '1.8em', | |
textDecoration : 'none', | |
position: 'fixed', | |
right: 30, |
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
/** | |
* Created by Adam-antium on 27/02/14. | |
*/ | |
var textify = function (n) { | |
var nines = Math.floor( ( n % 1000000000 ) / 100000000), | |
eights = Math.floor( ( n % 100000000 ) / 10000000), | |
sevens = Math.floor( ( n % 10000000 ) / 1000000), | |
sixes = Math.floor( ( n % 1000000 ) / 100000), | |
fives = Math.floor( ( n % 100000 ) / 10000), | |
fours = Math.floor( ( n % 10000 ) / 1000), |