scrollHint
更新日:2024/01/29
| th1 | th2 | th3 | th4 | th5 | th6 | th7 |
|---|---|---|---|---|---|---|
| texttexttexttexttexttexttexttext texttexttexttexttexttexttexttext texttexttexttexttexttexttexttext texttexttexttext | texttexttexttexttexttexttexttext texttexttexttexttexttexttexttext texttexttexttexttexttexttexttext texttexttexttext | texttexttexttexttexttexttexttext texttexttexttexttexttexttexttext texttexttexttexttexttexttexttext texttexttexttext | texttexttexttexttexttexttexttext texttexttexttexttexttexttexttext texttexttexttexttexttexttexttext texttexttexttext | texttexttexttext | texttexttexttexttexttexttexttext texttexttexttexttexttexttexttext texttexttexttexttexttexttexttext texttexttexttext | texttexttexttexttexttexttexttext texttexttexttexttexttexttexttext texttexttexttexttexttexttexttext texttexttexttext |
my-snow-monkey.php
// ------------------------------------------------
// css読み込み
// ------------------------------------------------
add_action(
'wp_enqueue_scripts',
function() {
// scrollHint
wp_enqueue_style('scroll-hint-css', 'https://unpkg.com/scroll-hint@latest/css/scroll-hint.css', array(), false, 'all');
wp_enqueue_style(
'my-snow-monkey',
MY_SNOW_MONKEY_URL . '/css/style.css',
[ Framework\Helper::get_main_style_handle() ],
filemtime( MY_SNOW_MONKEY_PATH . '/css/style.css' )
);
}
);
// ------------------------------------------------
// js読み込み
// ------------------------------------------------
add_action('wp_enqueue_scripts', 'msm_enqueue_style_script');
function msm_enqueue_style_script()
{
// scrollHint
wp_enqueue_script( 'scroll-hint-js', 'https://unpkg.com/scroll-hint@latest/js/scroll-hint.min.js', array( 'jquery' ), true);
// js読み込み
wp_enqueue_script(
'msm_scripts',
MY_SNOW_MONKEY_URL . '/js/script.js', // my-snow-monkeyフォルダのscript.cssの場合
['jquery'],
filemtime(MY_SNOW_MONKEY_PATH . '/js/script.js'),
true
);
}
jsファイル
(function($) {
// scrollHint
new ScrollHint('.js-scrollable');
})(jQuery);
htmlファイル
<style>
.js-scrollable {
overflow-x: scroll;
}
.js-scrollable th,
.js-scrollable td {
padding: 4px 8px;
min-width: 180px;
vertical-align: top;
}
</style>
<div class="js-scrollable">
<table border="1">
<thead>
<tr>
<th>th1</th>
<th>th2</th>
<th>th3</th>
<th>th4</th>
<th>th5</th>
<th>th6</th>
<th>th7</th>
</tr>
</thead>
<tbody>
<tr>
<td>
texttexttexttexttexttexttexttext
texttexttexttexttexttexttexttext
texttexttexttexttexttexttexttext
texttexttexttext
</td>
<td>
texttexttexttexttexttexttexttext
texttexttexttexttexttexttexttext
texttexttexttexttexttexttexttext
texttexttexttext
</td>
<td>
texttexttexttexttexttexttexttext
texttexttexttexttexttexttexttext
texttexttexttexttexttexttexttext
texttexttexttext
</td>
<td>
texttexttexttexttexttexttexttext
texttexttexttexttexttexttexttext
texttexttexttexttexttexttexttext
texttexttexttext
</td>
<td>texttexttexttext</td>
<td>
texttexttexttexttexttexttexttext
texttexttexttexttexttexttexttext
texttexttexttexttexttexttexttext
texttexttexttext
</td>
<td>
texttexttexttexttexttexttexttext
texttexttexttexttexttexttexttext
texttexttexttexttexttexttexttext
texttexttexttext
</td>
</tr>
</tbody>
</table>
</div>
<!-- /.js-scrollable -->
-
検索
(例) debug search etc.. -
カテゴリー
-
mixhostでのWordPress利用について
更新日:2024/04/02
303 view
-
scrollHint
更新日:2024/03/13
251 view
-
XML Sitemap Generator for Google不具合のダウングレード対応、代替プラグイン
更新日:2024/06/13
243 view
-
【SnowMonkey】納品までのフローまとめ
更新日:2025/02/15
164 view
-
【Snow Monkey】ショートコードで編集画面で任意の場所にHTMLファイルを挿入
更新日:2025/04/18
131 view
-
【Googleサーチコンソール】検索画面で表示させたくない「Googleのインデックス削除」
更新日:2024/06/07
131 view
-
tailwindcss使い方
更新日:2024/03/13
125 view
-
キーワード検索で上位表示させる方法【SEO】
更新日:2023/10/28
120 view
-
Recline: GitHub Copilotで動作するClaude 3.5 Sonnet搭載の開発支援ツール
更新日:2025/01/20
115 view
-
WordPressプラグイン「All-in-One WP Migration」のトラブル
更新日:2022/03/31
84 view
-
ワードプレスセキュリティー対策まとめ【2025年】「site guard wordpress」「BackWPup バージョン5でUI変更!?」
更新日:2025/02/25
77 view
-
VSCodeで開発効率を劇的に向上させる!Roo Code(Roo-Cline)プラグイン完全ガイド
更新日:2025/04/06
75 view
-
Express、FastAPIを使用し、二重fetch構成のメリット
更新日:2025/04/26
51 view
-
SSHを使用してGitHubのリポジトリをクローン、複数の接続元で公開鍵をディレクトリで区別する方法
更新日:2025/01/13
49 view
-
「JSONスキーマ」と「Few-shot Learning」で実現する次世代生成AIソフトウェア開発の可能性
更新日:2025/07/06
44 view
-
Supabase 初心者向け解説、Supabase CLI インストール(Scoop)
更新日:2025/06/07
44 view
-
リファクタリング【VSCode Javasctipt Python】
更新日:2025/03/09
37 view
-
Windowsショートカットエラーの原因と解決方法「このショートカットは、リンク先のファイルが変更または移動されているので、正しく機能しません」
更新日:2025/02/09
37 view
-
Next.jsでAWS Amplifyを使ってPDFアップロード機能を実装、Fast APIにPOST(こちらはApp runner)
更新日:2025/06/06
37 view
-
形態素解析とは?初心者でもわかるツールの使い方と実践例
更新日:2025/02/08
34 view