0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

MoodleでjQueryとカスタムjsを利用する

Posted at

MoodleでjQueryやカスタムjsを利用する方法を明記します。
MoodleではjQuery非推奨ではありますが、あしからず。

テーマにjavascriptフォルダを作成(無い場合)

/theme/テーマ名/javascript

この中にjQueryとカスタム.jsファイルを保存する

config.phpに以下の一行を追加

config.php
//ファイル拡張子を付けないので、.jsがないことに気をつける
$THEME->javascripts_footer = array ('jquery-3.6.0.min', 'script');

config.phpの場所

/theme/テーマ名/config.php

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?