Skip to content

Instantly share code, notes, and snippets.

View gist:ad39fa5079585e83f2ab0c3e5cc69c51
templateKey path title
about-page
/about
About our values

Hello

View keybase.md

Keybase proof

I hereby claim:

  • I am nwingt on github.
  • I am nwingt (https://keybase.io/nwingt) on keybase.
  • I have a public key ASBfYgY74f7HSM96VH_T025-dVXPiHde--4Fv2nTrGSe6Ao

To claim this, I am signing this object:

View like-button.v2.scss
$base-width: 320;
@function px-vw($value) {
@return $value / $base-width * 1rem;
}
html {
font-size: $base-width * 1px;
@media screen and (max-width: $base-width * 1px) {
View like-button.v1.scss
$base-width: 320;
@function px-vw($value) {
@return $value / $base-width * 100vw;
}
.like-button {
font-size: px-vw(16);
}
View example.js
var popupWindow = window.open("http://www.nlcitychurch.org.hk");
popupWindow.onunload = function () {
console.log("do something when the pop up closes");
}
View sort_character_fgimages.md

Sort Character FG Images

Replace the {CHARACTER_ID} by the character id you want to order

SELECT A.id, 
       A.`name_en`
FROM   `asset` AS A 
       JOIN `character_fgimages` CA 
         ON CA.`asset_id` = A.`id` 
WHERE  CA.`character_id` = {CHARACTER_ID} 
View oice-tags.md

功能說明書

顯示背景

設定場景的背景圖片和效果

參數 說明
調色 可選擇顏色,以增加背景圖片調色功能。
調色強度 數值範圍 0 - 255,數值越大,調色效果越明顯,必填。如果不需調色,可輸入數值 0。
切換時間 切換背景圖片的時間。單位為微妙,數值越大,切換時間越長,必填。