We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7ef21e commit d53cb4fCopy full SHA for d53cb4f
0x15-javascript-web_jquery/103-script.js
@@ -0,0 +1,15 @@
1
+$(document).ready(function () {
2
+ const langCode = $('input#language_code').val();
3
+ const API_URL = `https://hellosalut.stefanbohacek.dev/?lang=${langCode}`;
4
+ $('input#btn_translate').on('click kepress', (event) => {
5
+ // console.log($('input#language_code').val());
6
+ // console.log(langCode);
7
+ // console.log(API_URL);
8
+ if (event.type === 'click' || (event.type === 'keypress' && event.keyCode === 13)){
9
+ $.get(API_URL, (reponse, statusCode) => {
10
+ $('div#hello').text(reponse.hello);
11
+ });
12
+ }
13
14
15
+
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments