Uncategorized Drupal7でWebformモジュールを使用したページで”Sumitted by”が表示される Webformのコンテントタイプの編集画面にて、Display settingsのDisplay author and date informationのチェックを外す。チェックが外れているにも関わらず表示されている場合は、一度チェックを入... 2016.07.21 Uncategorized
Drupal: ViewsでFile:PathをRelationshipに追加する場合 ViewsでFile:PathをRelationshipに追加し、フィールドにFile:Pathを追加すると、FileAttachmentとImageの両方のフィールドが使われているノードは同じノードが2重で表示されてしまう。 目的は... 2016.07.20
Linux : Change ownership of file / directory sudo chownusername:group directory If you add -R, it changes permissions too. sudo chown username:group directory ... 2016.07.18
Uncategorized CSS: 要素を縦軸中心に揃える table要素で言うところのvertical-align: middle;のように、縦軸上に要素を中心に持ってくる方法。 親要素にdisplay: tableする方法もいいが、tableの挙動になるといろいろと面倒くさいことも。 .h... 2016.07.13 Uncategorized
Pseudo elements :after, :before only work with non-replaced elements A replaced element is any element whose appearance and dimensions are defined by an external resource. Examples includ... 2016.07.08
JavaScriptでuseragentでMobileのみ検知する(2016年6月時点) JavaScriptでユーザーエージェントを用いてスマートフォン、タブレットデバイスのみ検知する方法。 Mozillaのサイトによると、"Mobi"の文字で検知することが推奨されている。 例: if (... 2016.07.07
Uncategorized JavaScript : null, undefined, falseの違い Javascriptで変数の初期化をする時に、null、false、undefinedとそれぞれ設定でどう違うか調べてみた。 まずnullはJavascriptの場合データー型がオブジェクト。 そのため、 ver test = nul... 2016.07.07 Uncategorized
SASS : percentage function To calculate percentage of width, SASS has a built-in function. percentage(3/12); Ex: $width : pecentage... 2016.07.06
Uncategorized Drupal7でContextを使ってViewブロックを指定するのと、pageテンプレートを分けてブロックページでViewブロックを表示する違い Drupal7でContextを使ってViewブロックを指定するのと、pageテンプレートを分けてブロックページでViewブロックを表示する違いについて。 例えばフロントページのみに表示するViewブロックがあったとして、page--fr... 2016.07.05 Uncategorized
CSS : background position The first valueis the horizontal position and the second value is the vertical. background-position: horizontal, vert... 2016.07.04