11
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 3 years have passed since last update.

kintone 2Advent Calendar 2020

Day 22

kintoneでいろんなリアクションをしよう!

Last updated at Posted at 2020-12-22

kintone Advent Calendar 2020 22日目の記事です。

はじめに

kintoneにはスレッドやコメントに「いいね!」できる機能があります。
でも、普段のコミュニケーションの中では「いいね!」以外を押したくなることありますよね?

例えば、そのコメントを読んだことを伝えたいだけだったり、すこし真面目な話に「いいね!」は押しにくかったり…

そこで、レコードにいろんなリアクションができるカスタマイズをしてみました😎

アプリの準備

アプリストアから「日報」アプリを追加しましょう。
以下のフィールドを追加してください。

フィールド名 フィールドの種類 フィールドコード 備考    
スペース space ※要素ID
グループ グループ グループ
グッドの数 数値 NUM_good 初期値:0
笑いの数 数値 NUM_haha 初期値:0
びっくりの数 数値 NUM_wow 初期値:0
ぴえんの数 数値 NUM_pien 初期値:0
悲しいの数 数値 NUM_sad 初期値:0

SVGファイルの準備

今回はSVGファイルをbase64エンコードすることで画像を表示しています。
私の場合は、パワポで画像作成して、以下のサイトでbase64エンコードしました。
https://lab.syncer.jp/Tool/Base64-encode/
私が作ったアイコン画像でよければご自由にご利用ください!

カスタマイズ

PC用のJavaScriptファイル

詳細画面表示時に、大きく分けて3つの処理をします。

  1. アイコンの要素を作成
  2. アイコンマウスオーバー時にアイコン切り替え
  3. アイコンクリック時に数を更新

1. アイコンの要素を作成

詳細画面を表示した際に、スペースフィールドにアイコンを表示します。

detailShow.js
function createElementIcon() {
    var span = document.createElement('span');
    var input_radio1 = document.createElement('input');
    var input_radio2 = document.createElement('input');
    var input_radio3 = document.createElement('input');
    var input_radio4 = document.createElement('input');
    var input_radio5 = document.createElement('input');
    var i_1 = document.createElement('i');
    var i_2 = document.createElement('i');
    var i_3 = document.createElement('i');
    var i_4 = document.createElement('i');
    var i_5 = document.createElement('i');
    var massage = document.createElement('div');

    span.className = 'icon-rating';

    input_radio1.type = 'radio';
    input_radio2.type = 'radio';
    input_radio3.type = 'radio';
    input_radio4.type = 'radio';
    input_radio5.type = 'radio';

    input_radio1.name = 'rating';
    input_radio2.name = 'rating';
    input_radio3.name = 'rating';
    input_radio4.name = 'rating';
    input_radio5.name = 'rating';

    input_radio1.value = 'good';
    input_radio2.value = 'haha';
    input_radio3.value = 'wow';
    input_radio4.value = 'pien';
    input_radio5.value = 'sad';

    input_radio1.addEventListener('click', putHyoka, false);
    input_radio2.addEventListener('click', putHyoka, false);
    input_radio3.addEventListener('click', putHyoka, false);
    input_radio4.addEventListener('click', putHyoka, false);
    input_radio5.addEventListener('click', putHyoka, false);
    input_radio1.addEventListener('mouseover', mouseOverHyoka, false);
    input_radio2.addEventListener('mouseover', mouseOverHyoka, false);
    input_radio3.addEventListener('mouseover', mouseOverHyoka, false);
    input_radio4.addEventListener('mouseover', mouseOverHyoka, false);
    input_radio5.addEventListener('mouseover', mouseOverHyoka, false);

    i_1.className = 'good';
    i_2.className = 'haha';
    i_3.className = 'wow';
    i_4.className = 'pien';
    i_5.className = 'sad';

    span.appendChild(input_radio1);
    span.appendChild(i_1);
    span.appendChild(input_radio2);
    span.appendChild(i_2);
    span.appendChild(input_radio3);
    span.appendChild(i_3);
    span.appendChild(input_radio4);
    span.appendChild(i_4);
    span.appendChild(input_radio5);
    span.appendChild(i_5);

    kintone.app.record.getSpaceElement('space').append(span);
  }

2. アイコンクリック時にフィールドの値を更新

アイコンクリックした際に、グループの中のフィールドの値を+1します。

detailShow.js
function putHyoka() {
    var tgtFld = "NUM_" + this.value;
    var beforeValue = Number(event.record[tgtFld].value);
    var afterValue = beforeValue + 1;

    var body = {
      'app': kintone.app.getId(),
      'id': kintone.app.record.getId(),
      'record': {
        [tgtFld] : {
          'value': afterValue
        }
      }
    };

    kintone.api(kintone.api.url('/k/v1/record', true), 'PUT', body, function(resp) {
      // success
      console.log(resp);
    }, function(error) {
      // error
      console.log(error);
    });
}

3. アイコンマウスオーバー時にアイコン切り替え

CSSでもいろいろ設定していますが、マウスオーバーした際に、対象のアイコンのみ表示するようにします。

detailShow.js
function mouseOverHyoka() {
    switch (this.value) {
      case 'good':
        $('.icon-rating i.good')
          .eq(0)
          .css('opacity', '');
        break;
      case 'haha':
        $('.icon-rating i.haha')
          .eq(1)
          .css('opacity', '');
        break;
      case 'wow':
        $('.icon-rating i.wow')
          .eq(2)
          .css('opacity', '');
        break;
      case 'pien':
        $('.icon-rating i.pien')
          .eq(3)
          .css('opacity', '');
        break;
      case 'sad':
        $('.icon-rating i.sad')
          .eq(4)
          .css('opacity', '');
        break;
    }
}

PC用のCSSファイル

それぞれのアイコンの「background」に画像をエンコードした値を設定しています。
あとは、マウスオーバーした際の表示も設定しています。

detailShow.css
/* グレー背景 */
.icon-rating {
    font-size: 0;
    white-space: nowrap;
    display: inline-block;
    width: 250px;
    height: 50px;
    overflow: hidden;
    position: relative;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzA0IiBoZWlnaHQ9IjMwNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgb3ZlcmZsb3c9ImhpZGRlbiI+PGRlZnM+PGNsaXBQYXRoIGlkPSJjbGlwMCI+PHBhdGggZD0iTTE4IDI4IDMyMiAyOCAzMjIgMzMyIDE4IDMzMloiIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIi8+PC9jbGlwUGF0aD48L2RlZnM+PGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTE4IC0yOCkiPjxwYXRoIGQ9Ik0xOSAxNzkuNUMxOSA5NS44Mjg4IDg2LjYwNSAyOCAxNzAgMjggMjUzLjM5NSAyOCAzMjEgOTUuODI4OCAzMjEgMTc5LjUgMzIxIDI2My4xNzEgMjUzLjM5NSAzMzEgMTcwIDMzMSA4Ni42MDUgMzMxIDE5IDI2My4xNzEgMTkgMTc5LjVaIiBmaWxsPSIjRDlEOUQ5IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L2c+PC9zdmc+');
    background-size: contain;
  }

  /* グッドアイコン */
  .icon-rating i.good {
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 20%;
    z-index: 1;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzA1IiBoZWlnaHQ9IjMwNSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgb3ZlcmZsb3c9ImhpZGRlbiI+PGRlZnM+PGNsaXBQYXRoIGlkPSJjbGlwMCI+PHBhdGggZD0iTTM1OCAyNyA2NjMgMjcgNjYzIDMzMiAzNTggMzMyWiIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L2NsaXBQYXRoPjxpbWFnZSB3aWR0aD0iMjU2IiBoZWlnaHQ9IjI1NiIgeGxpbms6aHJlZj0iZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFRQUFBQUVBQ0FZQUFBQmNjcWhtQUFBQUFYTlNSMElBcnM0YzZRQUFBQVJuUVUxQkFBQ3hqd3Y4WVFVQUFBQUpjRWhaY3dBQURzTUFBQTdEQWNkdnFHUUFBQm5uU1VSQlZIaGU3WjBOa0YxbGVjY1BrSHZPdlhjM213QUJIZEZLa1ZHdzFpcG9LNktnRkpFYXE5SU9VeXN5b2xndDJySFlENm1sTlIzUm9VV3Bpam9VUDVyV2oxS0NJRklKQ1p0N3p6bTd5VUprUnl3aVNPc0FPbUFqWVRmWmtHU1RiUEs4L1Q5blQyQ3plWGZ2MTdtNzk3em4vNS81eldZbTk1ejNuSHVmNS85K25QZThyMGRSRkVWUkRXWFdlTDdjVlQ1YjZzRl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jwvdXNlPjwvZz48L2c+PC9zdmc+');
    background-size: contain;
  }

  /* 笑いアイコン */
  .icon-rating i.haha {
    opacity: 0;
    position: absolute;
    left: 20%;
    top: 0;
    height: 100%;
    width: 20%;
    z-index: 1;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzA1IiBoZWlnaHQ9IjMwNSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgb3ZlcmZsb3c9ImhpZGRlbiI+PGRlZnM+PGNsaXBQYXRoIGlkPSJjbGlwMCI+PHBhdGggZD0iTTY5OSAxMyAxMDA0IDEzIDEwMDQgMzE4IDY5OSAzMThaIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvY2xpcFBhdGg+PGltYWdlIHdpZHRoPSIxNTAiIGhlaWdodD0iMTUwIiB4bGluazpocmVmPSJkYXRhOmltYWdlL3BuZztiYXNlNjQsaVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUpZQUFBQ1dDQU1BQUFBTDM0SFFBQUFBQVhOU1IwSUFyczRjNlFBQUFBUm5RVTFCQUFDeGp3djhZUVVBQUFERFVFeFVSUUFBQVA4QUFQOEFBTDlBUU13ek03WWtKTDhnSU13ek04SWtNY1VqTHNFbkxyMGtMTU1vTDc0bkxyOG1MYjhwTHNFb0xiOG5MTUVsTGNJb0xjSW9MNzhuTHNJcExMOG9MTUFvTHNBbkxjQW1MTUVtTHNBbUxiOG5MTUFtTGNBbkxjQW1MY0VvTHNBbkxjRW9Mc0VvTGNFb0xjSW1MY0lvTGNJbkxNRW9Mc0ltTHNFbkxjRW5MY0VvTGNFbkxjRW5MY0VuTGNFbkxjSW1MY0VvTGNFbkxjRW9MY0VuTGNFbkxjRW9MY0VuTGNFbkxzRW5MY0VuTGNFbkxjRW5MY0VuTGNFbkxYV3dOQVVB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jM4MiAxNDMuMTUzKSIvPjxyZWN0IHg9IjguODY1NTgiIHk9IjE1Ljg2NDciIHdpZHRoPSI0OS4xNTM1IiBoZWlnaHQ9IjkuNzU3NzQiIGZpbGw9IiM0MDQwNDAiIHRyYW5zZm9ybT0ibWF0cml4KC0wLjkzMDQ3NSAtMC4zNjYzNTUgLTAuMzY2MzU1IDAuOTMwNDc1IDk0MC45NzggMTQyLjQ5OSkiLz48cGF0aCBkPSJNOTI2LjkxNyAxMjkuMTg3IDg4MS4xODEgMTQ3LjE5NCA4NzcuNjA2IDEzOC4xMTUgOTIzLjM0MiAxMjAuMTA3WiIgZmlsbD0iIzQwNDA0MCIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9nPjwvc3ZnPg==');
    background-size: contain;
  }

  /* びっくりアイコン */
  .icon-rating i.wow {
    opacity: 0;
    position: absolute;
    left: 40%;
    top: 0;
    height: 100%;
    width: 20%;
    z-index: 1;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzA1IiBoZWlnaHQ9IjMwNSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgb3ZlcmZsb3c9ImhpZGRlbiI+PGRlZnM+PGNsaXBQYXRoIGlkPSJjbGlwMCI+PHBhdGggZD0iTTE4IDM2MiAzMjMgMzYyIDMyMyA2NjcgMTggNjY3WiIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L2NsaXBQYXRoPjxpbWFnZSB3aWR0aD0iMTUwIiBoZWlnaHQ9IjE1MCIgeGxpbms6aHJlZj0iZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFKWUFBQUNXQ0FNQUFBQUwzNEhRQUFBQUFYTlNSMElBcnM0YzZRQUFBQVJuUVUxQkFBQ3hqd3Y4WVFVQUF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xsLXJ1bGU9ImV2ZW5vZGQiLz48cGF0aCBkPSJNMCAxNC4xMTU2Qy0zLjM1MTJlLTE1IDYuMzE5NzkgMTEuNzg1LTUuMDI2ODFlLTE1IDI2LjMyMjUtNi43MDI0MWUtMTUgNDAuODYtMS4wMDUzNmUtMTQgNTIuNjQ0OSA2LjMxOTc5IDUyLjY0NDkgMTQuMTE1Nkw0NS41ODcyIDE0LjExNTZDNDUuNTg3MiAxMC4yMTc3IDM2Ljk2MjEgNy4wNTc3OSAyNi4zMjI1IDcuMDU3NzkgMTUuNjgyOSA3LjA1Nzc5IDcuMDU3NzggMTAuMjE3NyA3LjA1Nzc4IDE0LjExNTZaIiBzdHJva2U9IiMyRjUyOEYiIHN0cm9rZS13aWR0aD0iMS4zMzMzMyIgc3Ryb2tlLW1pdGVybGltaXQ9IjgiIGZpbGw9IiM0MDQwNDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIgdHJhbnNmb3JtPSJtYXRyaXgoLTAuOTkxODUgLTAuMTI3NDA4IC0wLjEyNzQwOCAwLjk5MTg1IDI1NC4yNzIgNDI0LjA0OSkiLz48ZyBjbGlwLXBhdGg9InVybCgjY2xpcDIpIiB0cmFuc2Zvcm09Im1hdHJpeCgxIDAgLTAgMS4yNzI3MyAxMjcgNTE1Ljk5OSkiPjx1c2Ugd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgeGxpbms6aHJlZj0iI2ltZzEiIHRyYW5zZm9ybT0ic2NhbGUoMC41ODY2NjcgMC41ODY2NjcpIj48L3VzZT48L2c+PC9nPjwvc3ZnPg==');
    background-size: contain;
  }

  /* ぴえんアイコン */
  .icon-rating i.pien {
    opacity: 0;
    position: absolute;
    left: 60%;
    top: 0;
    height: 100%;
    width: 20%;
    z-index: 1;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzA1IiBoZWlnaHQ9IjMwNSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxucz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A0NTEuOTEzIDQ1MS4zNjEgNDQ2LjQ1NyA0NjAuODgxIDQ0MSA0NjcuMTYxIDQzNC4wNjkgNDY1LjM4OCA0MzAuOTc3WiIgc3Ryb2tlPSIjMkY1MjhGIiBzdHJva2Utd2lkdGg9IjEuMzMzMzMiIHN0cm9rZS1taXRlcmxpbWl0PSI4IiBmaWxsPSIjNDA0MDQwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48cGF0aCBkPSJNMCAxMi45MDkyQy0zLjM1MTJlLTE1IDUuNzc5NjQgMTEuNzg1LTMuMzUxMmUtMTUgMjYuMzIyNS02LjcwMjQxZS0xNSA0MC44Ni0xLjAwNTM2ZS0xNCA1Mi42NDQ5IDUuNzc5NjQgNTIuNjQ0OSAxMi45MDkyTDQ2LjE5MDMgMTIuOTA5MkM0Ni4xOTAzIDkuMzQ0NDEgMzcuMjk1MiA2LjQ1NDU5IDI2LjMyMjUgNi40NTQ1OSAxNS4zNDk3IDYuNDU0NTkgNi40NTQ1OSA5LjM0NDQxIDYuNDU0NTkgMTIuOTA5MloiIHN0cm9rZT0iIzJGNTI4RiIgc3Ryb2tlLXdpZHRoPSIxLjMzMzMzIiBzdHJva2UtbWl0ZXJsaW1pdD0iOCIgZmlsbD0iIzQwNDA0MCIgZmlsbC1ydWxlPSJldmVub2RkIiB0cmFuc2Zvcm09Im1hdHJpeCgwLjg2NzU4MSAwLjQ5NzI5NiAwLjQ5NzI5NiAtMC44Njc1ODEgNTQ5LjczNiA0NDAuMTU1KSIvPjwvZz48L3N2Zz4=');
    background-size: contain;
  }

  /* 悲しいアイコン */
  .icon-rating i.sad {
    opacity: 0;
    position: absolute;
    left: 80%;
    top: 0;
    height: 100%;
    width: 20%;
    z-index: 1;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzA1IiBoZWlnaHQ9IjMwNSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3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0OUM4ODQuMjUgNTQxLjEzIDg3Mi4yNzQgNTM0Ljc1IDg1Ny41IDUzNC43NSA4NDIuNzI2IDUzNC43NSA4MzAuNzUgNTQxLjEzIDgzMC43NSA1NDlaIiBzdHJva2U9IiMyRjUyOEYiIHN0cm9rZS1taXRlcmxpbWl0PSI4IiBmaWxsPSIjNDA0MDQwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48ZyBjbGlwLXBhdGg9InVybCgjY2xpcDEpIj48ZyBjbGlwLXBhdGg9InVybCgjY2xpcDIpIj48ZyBjbGlwLXBhdGg9InVybCgjY2xpcDMpIj48cGF0aCBkPSJNOTI5IDQ5NEM5MjkgNDk0IDkwNCA1MjkuMiA5MDQgNTQ1IDkwNCA1NTguOCA5MTUuMiA1NzAgOTI5IDU3MCA5NDIuOCA1NzAgOTU0IDU1OC44IDk1NCA1NDUgOTU0IDUyOS4xIDkyOSA0OTQgOTI5IDQ5NFoiIGZpbGw9IiMwMEIwRjAiLz48L2c+PC9nPjwvZz48L2c+PC9zdmc+');
    background-size: contain;
  }

  .icon-rating input {
    -moz-appearance: none;
    -webkit-appearance: none;
    opacity: 0;
    display: inline-block;
    width: 20%;
    height: 100%;
    margin: 0;
    padding: 0;
    z-index: 2;
    position: relative;
  }
  .icon-rating input:hover + i,
  .icon-rating input:checked + i {
    opacity: 1;
  }
  .icon-rating i ~ i {
    width: 40%;
  }
  .icon-rating i ~ i ~ i {
    width: 60%;
  }
  .icon-rating i ~ i ~ i ~ i {
    width: 80%;
  }
  .icon-rating i ~ i ~ i ~ i ~ i {
    width: 100%;
  }

結果

アイコンにマウスオーバーすると・・・
demo.gif

いろんなリアクションができました!!🙂😄😮🥺😢
手作り感満載のアイコンがいい味出してます(笑)
グループフィールドの値も+1されてます。

終わりに

今回は「誰が」押したかまでは分からない、何回でもクリックできるような仕様にしました。
「ユーザー選択フィールド」を追加して誰がそんなリアクションをしたのか分かるようにしてもいいな、と思いました。

🦒1年kintone案件に携わって
コードを書く機会が増えて、こういうフィールドコードにすれば処理がシンプルにかける、とか、
これをやりたいときは、この書き方のパターンで書けばいいんだとかだんだんと分かるようになってきました!
これからは、ただコードを書けるだけじゃなくて、
いいコード(メンテナンスしやすいとか、他の人が見てわかりやすいとか)を書くこと意識して
これからも経験を増やして、エンジニアとしても成長していきたいです。

参考サイト

11
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
11
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?