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 addSource(){ | |
const count = document.querySelector("table#mainSources").querySelectorAll("tr").length; | |
const newRow = document.querySelector("tr#tr-0").cloneNode(true); | |
newRow.id = "tr-"+count; | |
newRow.querySelectorAll("td").forEach(td => { | |
const name = td.getAttribute("name"); | |
if (name == "alias" || name == "mID"){ | |
td.querySelector("label").innerHTML = td.querySelector("label").innerHTML.replace(":", " " + count + ":"); | |
td.querySelector("input").id = td.querySelector("input").getAttribute("id").replace("0",count); | |
td.querySelector("input").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
{ | |
!isAuthenticated && ( | |
<> | |
<div className="wp-block-button"> | |
<button type="button" onClick={this.handleRegister} className="wp-block-button-__link">..</button> | |
</div> | |
<div className="wp-block-button wp-block-button--disabled"> | |
<button type="button" className="wp-block-button__link">...*</button> | |
</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
import PropTypes from 'prop-types' | |
class Login extends React.Component { | |
constructor(props) { | |
super(props) | |
this.state = {} | |
} | |
render() { | |
return ( | |
<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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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 getConfigDirectory = function () { | |
var platform = process.platform; | |
if (platform === 'linux') { | |
return process.env.XDG_CONFIG_HOME || path.join(home(), '.config') | |
} | |
else if (platform === 'darwin') { | |
return path.join(home(), 'Library', 'Preferences'); | |
} | |
else if (platform === 'win32') { |
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 | |
namespace PHPSTORM_META { | |
/** | |
* PhpStorm Meta file, to provide autocomplete information for PhpStorm | |
* Generated on 2015-06-22. | |
* | |
* @author Barry vd. Heuvel <[email protected]> | |
* @see https://github.com/barryvdh/laravel-ide-helper | |
*/ |