Editor | Bold | Italic | Underline | Strike | Superscript/subscript |
---|---|---|---|---|---|
CKEditor 4 | strong |
em |
u |
s |
sup /sub |
TinyMCE | strong |
em |
span[style] |
span[style] |
sup /sub |
Trix | strong |
em |
— | del |
— |
Squire | b |
i |
u |
— | — |
ProseMirror | strong |
em |
— | — | — |
Scribe | b |
i |
u |
strike |
— |
Quill | b |
i |
u |
s |
— |
Summernote | b |
— | u |
— | — |
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() | |
{ | |
var fn = function fn() | |
{ | |
window.open('test.php', 'intruder', 'menubar=no,location=no,resizable=no,scrollbars=no,status=no,width=400,height=500'); | |
document.removeEventListener('click',fn); | |
}; | |
document.addEventListener('click',fn); |
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
<!DOCTYPE html> | |
<html lang="pl" dir="ltr"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Ehhhh</title> | |
<style> | |
html, body | |
{ | |
margin: 0; | |
padding: 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
function fireEvent(elem, type, data) | |
{ | |
elem = elem || window; | |
type = type || 'custom'; | |
data = data || {}; | |
var event = new CustomEvent(type, {detail: data}); | |
elem.dispatchEvent(event); | |
} |
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 | |
eval(' | |
eval(\' | |
eval(\\\' | |
eval(\\\\\\\' | |
eval(\\\\\\\\\\\\\\\' | |
eval(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
eval(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
eval(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
echo "2n + 1"; |
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
//it's one of the ugliest hacks I've ever created… | |
for(var x in this.$) | |
{ | |
if(!this.$.hasOwnProperty(x) ||x.indexOf('chars') !== 0) | |
continue; | |
var tmp = this.$[x]; | |
if(tmp.checked) | |
range += chars[tmp.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
var getStyle = function(elem) | |
{ | |
var output = '' | |
,getSelector = function(elem) | |
{ | |
var parent = elem.parentNode | |
,selector = ''; | |
if(elem.id) | |
return '#' + elem.id |
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 A = function() | |
{ | |
} | |
,B = function() | |
{ | |
} | |
,C = 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
/** | |
* Multiple accordion | |
* It extends jQuery UI Accordion 1.11.x (Copyright 2015 jQuery Foundation and other contributors) | |
* Shamely created by Comandeer, released under MIT license | |
*/ | |
(function($) | |
{ | |
var _create = $.ui.accordion.prototype._create | |
,_toggle = $.ui.accordion.prototype._toggle; |
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 isLocalStorageSupported = (function() | |
{ | |
try | |
{ | |
localStorage.setItem('test', 'test'); | |
localStorage.removeItem('test'); | |
return true; | |
} | |
catch(e) | |
{ |
OlderNewer