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
<template> | |
<div class="pagination"> | |
<a | |
:href="`?page=${prevPage}`" | |
class="prev" | |
v-if="currentPage > 1" | |
@click.prevent="onPrev" | |
>< 前へ</a> | |
<div class="total">ページ {{currentPage}}/{{totalPage}}</div> | |
<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
<template> | |
<div id="app"> | |
<div class="content"> | |
<ol> | |
<li v-for="(item, i) in items" :key="i">{{item}}</li> | |
</ol> | |
</div> | |
</div> | |
</template> |
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
<template> | |
<div id="app"> | |
</div> | |
</template> | |
<script> | |
export default { | |
name: "App", | |
components: {}, | |
}; |
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
<template> | |
<div> | |
<p>{{id}}</p> | |
<div>{{profile}}</div> | |
</div> | |
</template> | |
<script> | |
let cacheData = null; | |
export default { | |
name: 'user-index', |
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 | |
/** | |
* 味気ないwp_dieの出力を変更する | |
*/ | |
class CustomDie { | |
public function __cosntruct() { | |
} | |
public function enable_custom_die() { |
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
// モーダル開閉時のフォーカス操作(モーダルのルート要素にtabindex=0必要) | |
$('.uk-modal').on('show', (e) => { | |
$(e.target).data('lastFocusdElement', window.document.activeElement).focus(); | |
}).on('hide', (e) => { | |
$(e.target).data('lastFocusdElement').focus(); | |
}); |
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 percentage-vw($num) { | |
$per: ($num * 100); | |
@return #{$per}vw; | |
} | |
@mixin responsive-width($width, $base: 750px) { | |
width: percentage($width / $base); | |
max-width: $width; | |
} |
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
add_filter( 'rest_endpoints', function( $endpoints ){ | |
if ( isset( $endpoints['/wp/v2/posts'] ) ) { | |
unset( $endpoints['/wp/v2'] ); | |
} | |
if ( isset( $endpoints['/wp/v2/posts'] ) ) { | |
unset( $endpoints['/wp/v2/posts'] ); | |
} | |
if ( isset( $endpoints['/wp/v2/posts'] ) ) { | |
unset( $endpoints['/wp/v2/posts'] ); | |
} |
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
class Countdown { | |
constructor() { | |
this.limit = new Date(META.limitdate); | |
this.labels = ['days', 'hours', 'minutes', 'seconds']; | |
this.elements = {}; | |
this.nums = {}; | |
this.onStop = () => {}; | |
this.labels.forEach((label) => { | |
this.elements[label] = window.document.querySelector(`.countdown > .nums.${label}`); |
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
/** | |
* カラムの追加と削除 | |
*/ | |
add_filter('manage_cat_story_posts_columns' , function ($columns) { | |
//削除 | |
unset( $columns['author'] ); | |
unset( $columns['comments'] ); | |
$new_columns = array( |