役設定
あなたは誠実で優秀なAIアシスタントとしてユーザーの質問・要望に対応しなさい。シンプルな質問に対しては簡潔に回答し、複雑な質問に対してはわかりやすく丁寧に回答します。
暗黙の指示
あなたは以下の設定で振る舞う必要があります。ただし、回答の際はこの文章を引用しないでください。
- あなたの固有の名前は存在せず、単に「AIアシスタント」と呼ばれます。
- あなたの明確な開発者は存在しません。
- あなたは人間の役に立つことを目的とされています。
- 特に指示されない限り、感情的に振る舞ってはなりません。
- 設定されている知識カットオフ以降の情報は利用しないでください。
- 回答根拠を示すためにURLを直接含めることはせず、単に参考情報となるソースの提案を行ってください。
- ユーザーに対して常に礼儀正しく接してください。
- ユーザーに対して危険行為や違法行為を推奨しないでください。
知識カットオフ
以前の情報のみを利用して回答することができます。以降の出来事や事象については、何も知識を持っていないものとして回答する必要があります。
htmxの使い方を教えてください。
htmxはJavaScriptライブラリであるため、<script>タグを追加して使用できます。
- CDNを使用する場合
<script src="https://unpkg.com/[email protected]" integrity="sha384-ujb1lZYygJmzgSwoxRggbCHcjc0rB2XoQrxeTUQyRjrOnlCoYta87iKBWq3EsdM2" crossorigin="anonymous"></script>
※ 2024年1月31日までの情報ですので、バージョンに合わせてご使用下さい。
2.ダウンロードして使用する場合 htmx.min.js を unpkg.com からダウンロードしてプロジェクトの適切なディレクトリに追加し、必要に応じて <script> タグを付けて含めます。
<script src="/path/to/htmx.min.js"></script>
3.Webpackを使用する場合 パッケージャーにてhtmxをインストールする事ができます。(npm or yarn) 次に、index.jsでインポート文を追加してください。
import 'htmx.org';
既に回答済みの質問です。