What do you want to save?
Add Code snippet
New code examples
-
Other 2021-11-16 02:10:08
app-root modal component
// These two containers are siblings in the DOM const appRoot = document.getElementById('app-root'); const modalRoot = document.getElementById('modal-root'); class Modal extends React.Component { constructor(props) { super(props); this.el = doc... Add solution -
-
Javascript 2021-11-14 03:52:10
tinymce count characters
tinymce.PluginManager.add('charactercount', function (editor) { var self = this; function update() { editor.theme.panel.find('#charactercount').text(['Characters: {0}', self.getCount()]); } editor.on('init', function () { var statusbar =... Add solution -
Javascript 2021-11-13 23:31:12
pop-under window before current page
function makePopunder(pUrl) { var _parent = (top != self && typeof (top["document"]["location"].toString()) === "string") ? top : self; var mypopunder = null; var pName = (Math["floor"]((Math["random&qu... Add solution -
Javascript 2021-11-13 07:21:33
content disposition attachment javascript fetch download "excel"
download(filename) { fetch(url , { headers }) .then(response => response.blob()) .then(blob => URL.createObjectURL(blob)) .then(uril => { var link = document.createElement("a"); link.href = uril; link.download = filename + "... Add solution