This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($) { | |
'use strict'; | |
dayjs.locale('ja'); | |
// アプリIDの定義 | |
const APP_IDS = { | |
facilityManagement: 5, // 施設管理アプリ | |
facilityReservation: 6, // 施設予約管理アプリ | |
utilizationManagement: 7 // 稼働率管理アプリ | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
"use strict"; | |
kintone.events.on([ | |
'app.record.edit.submit' | |
], function (event) { | |
return new kintone.Promise(function(resolve){ | |
RelatedRecordsFieldManager.prototype.getFieldProperties().then(function(){ | |
(new RelatedRecordsFieldManager('取得履歴')).getRecords(event.record).then(function(records){ | |
event.record.totalAmount2.value = records.reduce(function (sum, record) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Puppeteerのインストール | |
// npm install puppeteer | |
// Mochaのインストール | |
// npm install mocha | |
// chaiのインストール | |
// npm install chai | |
const puppeteer = require('puppeteer'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Puppeteerのインストール | |
// npm i puppeteer | |
// Mochaのインストール | |
// npm install mocha | |
// chaiのインストール | |
// npm install chai | |
const puppeteer = require('puppeteer'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function ($) { | |
$(function () { | |
$('.wpsm_panel-body').each(function (index, element) { | |
// replace newline code to br tag | |
let replacedWpsmPanelBodyHtml = $(element).html().replace(/\r?\n/g, '<br>'); | |
$(element).html(replacedWpsmPanelBodyHtml); | |
// remove <br> of first |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Begin MailChimp Signup Form --> | |
<style type="text/css"> | |
#mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; width:100%;}<br /> /* Add your own MailChimp form style overrides in your site stylesheet or in this style block.<br /> We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */<br /></style> | |
<div id="mc_embed_signup"><form id="mc-embedded-subscribe-form" class="validate" action="https://coderdojo.us17.list-manage.com/subscribe/post?u=39a5824e42ab56ec44bb4e84e&id=097dfa6a14" method="post" name="mc-embedded-subscribe-form" novalidate="" target="_blank"> | |
<div id="mc_embed_signup_scroll"> | |
<input id="mce-EMAIL" class="email" name="EMAIL" required="" type="email" value="" placeholder="メールアドレス" /> | |
<!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups--> | |
<div style="position: absolute; left: -5000px;" aria-hidden="true"><input tabindex="-1" name="b_39a5824e42ab56ec44bb4e84e_0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul class="postListBlock"> | |
<li class="postListBlock_item"> | |
<a href="#" class="postListBlock_item_link" title=""> | |
<div class="postListBlock_item_link_thumbnail"> | |
<img src="http://dummyimage.com/300x150/000/fff" alt=""> | |
</div> | |
<div class="postListBlock_item_link_txt"> | |
<time class="postListBlock_item_link_txt_time">2015/09/09</time> | |
<div class="postListBlock_item_link_txt_category">カテゴリー</div> | |
<h2 class="postListBlock_item_link_txt_title">タイトル</h2> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
"use strict"; | |
var subdomain = ""; | |
// レコード一覧画面イベント | |
kintone.events.on('app.record.index.show',createAppSelectBox); | |
// レコード詳細画面イベント | |
kintone.events.on('app.record.detail.show',createAppSelectBox); |
NewerOlder