- https://
- @nagai_shouten
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
<a href=”tel:00000000000″>0000-00-0000</a> |
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
/** | |
* 開発者へ: WordPress デバッグモード | |
* | |
* この値を true にすると、開発中に注意 (notice) を表示します。 | |
* テーマおよびプラグインの開発者には、その開発環境においてこの WP_DEBUG を使用することを強く推奨します。 | |
*/ | |
define( 'WP_DEBUG', true ); | |
define( 'SCRIPT_DEBUG', true ); // React Developer Tools で、選択したコンポーネントの Props の値を変更できるようになる | |
define( 'WP_DEBUG_LOG', true ); | |
define( 'WP_DEBUG_DISPLAY', false ); |
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
/** | |
* Remove inline CSS (Astra theme) | |
* https://wpastra.com/docs/remove-inline-css-from-astra/ | |
*/ | |
function astra_force_remove_style() { | |
wp_dequeue_style( 'astra-theme-css' ); | |
wp_dequeue_style( 'astra-addon-css' ); | |
} | |
add_action( 'wp_enqueue_scripts', 'astra_force_remove_style', 99 ); |
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
/** | |
* @ wordpress/scripts を使用してブロックを構築し、 | |
* カスタムエントリポイントを使用する場合、 | |
* これをカスタム webpack.config.js ファイルに追加 | |
* @see https://twitter.com/ryanwelcher/status/1539696638817701888 | |
*/ | |
// オリジナルの設定を @wordpress/scripts パッケージからインポート | |
const defaultConfig = require( '@wordpress/scripts/config/webpack.config' ); |
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="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Bootstrap 5 Carousel</title> | |
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous"> | |
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script> | |
</head> |
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 axios from 'axios' | |
const url = 'https://jsonplaceholder.typicode.com/todos' | |
async function getTodo(id) { | |
try { | |
const response = await axios.get(`${url}/${id}`) | |
// console.log(response) | |
return (response.data) | |
} |
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
// npm install yubinbango.js | |
import YubinBango from "yubinbango.js"; | |
/** | |
* 郵便番号から住所を自動入力 (複数フォーム、複数の住所対応) | |
* @param {string} wrapper 包括する要素(クラスで指定) | |
* @param {string} postalCodeInput 郵便番号入力フォーム(クラスで指定) | |
* @param {string} addressInput 住所入力フォーム(自動入力される。クラスで指定) | |
* @see https://github.com/arayaryoma/yubinbango.js | |
*/ |
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
<> | |
<p className={isActive && 'active'}>item</p> | |
<p className={'background' + (isActive && 'active')}>item("false" if the condition is mismatched.)</p> | |
<p className={`background${isActive && 'active'}`}>item</p> | |
<p className={isActive ? 'active' : 'disable'}>item</p> | |
<p className={'background' + (isActive ? 'active' : 'disable')}>item</p> | |
<p className={`background${isActive ? 'active' : 'disable'}`}>item</p> | |
</> |
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
/** | |
* Change the default content width for Astra theme | |
* @ref { @link https://wpastra.com/docs/improved-block-editor-experience/#change-the-default-content-width-for-the-theme } | |
* To update the wide width for your layouts, | |
* update Container Width from Customizer > Global > Container | |
*/ | |
function astra_update_block_content_size( $content_size ) { | |
return '840px'; // Default 910px | |
} | |
add_filter( 'astra_block_content_width', 'astra_update_block_content_size' ); |
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
<div class="container"> | |
<div class="row"> | |
<div class="col-lg-3"> | |
<div class="position-sticky" style="top: 100px"> | |
<h3>見出し1</h3> | |
</div> | |
</div> | |
<div class="col-lg-9"> | |
★★ダミーコピーです手はおっかさんの演奏硝子屋をセロに思ったばこだた。それから思わ口まし勝た(50)しはでまた箱のダミーコピーです上手どもっさと俄たますて、みんなまでぶんを弾いとだまし(100文字)。★★ダミーコピーです手はおっかさんの演奏硝子屋をセロに思ったばこだた。それから思わ口まし勝た(50)しはでまた箱のダミーコピーです上手どもっさと俄たますて、みんなまでぶんを弾いとだまし(100文字)。★★ダミーコピーです手はおっかさんの演奏硝子屋をセロに思ったばこだた。それから思わ口まし勝た(50)しはでまた箱のダミーコピーです上手どもっさと俄たますて、みんなまでぶんを弾いとだまし(100文字)。★★ダミーコピーです手はおっかさんの演奏硝子屋をセロに思ったばこだた。それから思わ口まし勝た(50)しはでまた箱のダミーコピーです上手どもっさと俄たますて、みんなまでぶんを弾いとだまし(100文字)。★★ダミーコピーです手はおっかさんの演奏硝子屋をセロに思ったばこだた。それから思わ口まし勝た(50)しはでまた箱のダミーコピーです上手どもっさと俄たますて、みんなまでぶんを弾いとだまし(100文字)。★★ダミーコピーです手はおっかさんの演奏硝子屋をセロに思ったばこだた。それから思わ口まし勝た(50)しはでまた箱のダミーコピーです上手どもっさと俄たますて、みんなまでぶんを弾いとだまし(100文字)。★★ダミーコピーです手はおっかさんの演奏硝子屋をセロに思ったばこだた。それから思わ口まし勝た(50)しはでまた箱のダミーコピーです上手どもっさと俄たますて、みんなまでぶんを弾いとだまし(100文字)。★★ダミーコピーです手はおっかさんの演奏硝子屋をセロに思ったばこだた。それから思わ口まし勝た(50)しはでまた箱のダミーコピーです上手どもっさと俄たますて、みんなまでぶんを弾いとだまし(100文字)。★★ダミーコピーです手はおっかさんの演 |