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 | |
public function createDatabaseTable() | |
{ | |
global $wpdb; | |
$charsetCollate = $wpdb->get_charset_collate(); | |
$sql = "CREATE TABLE {$this->tableName} ( | |
id VARCHAR(8) NOT NULL, | |
datetime_register DATETIME DEFAULT CURRENT_TIMESTAMP NOT 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
// extension-js.js | |
export default class ExtensionJs { | |
constructor() { | |
console.log('ExtensionJs'); | |
} | |
} | |
// extension-jsx.jsx | |
export default class ExtensionJsx { | |
constructor() { |
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
"babel": { | |
"presets": [ | |
"react", | |
"env" | |
], | |
"plugins": [ | |
"transform-async-to-generator", | |
[ | |
"transform-runtime", | |
{ |
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
.entry-content ul { | |
counter-reset:list; | |
list-style-type:none; | |
font-size: 14px; | |
} | |
.entry-content ul li { | |
position:relative; | |
color: #fff; | |
padding: 5px 5px 5px 30px; | |
margin: 7px 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
body { | |
font-family: '游ゴシック', 'Yu Gothic', sans-serif !important; | |
} | |
.entry-content p { | |
line-height: 1.8em; | |
} |
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
.slide-contents { | |
background: #f2f2f2; | |
width: 100%; | |
border: #666 1px solid; | |
margin: 0 0 20px 0; | |
padding: 20px 20px 0 20px; | |
display: none; | |
} |
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
jQuery(function(){ | |
jQuery('[data-slide-contents]').click(function(event) { | |
event.preventDefault(); | |
var slideContents = jQuery(this).data('slide-contents'); | |
jQuery('#' + slideContents).slideToggle(400); | |
}); | |
}); |
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
<button data-slide-contents="slide-contents-1">スライドボタン</button> | |
<a href="#" data-slide-contents="slide-contents-1">スライドリンク</a> | |
<div id="slide-contents-1" class="slide-contents"> | |
テストコメント | |
</div> |