Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@heacu
heacu / encodingTib.js
Created September 25, 2015 15:33
Javascript converting Wylie style (in fact the OTDO conventions for Old Tibetan) into Tibetan script, courtesy Matsuda Kuninori
// 2009/03/04 ver.
var hashTibExWylie = {
"": "",
"k": "ཀ", "kh": "ཁ", "g": "ག", "gh": "གྷ", "ng": "ང",
"c": "ཅ", "ch": "ཆ", "j": "ཇ", "jh": "཈", "ny": "ཉ",
"T": "ཏཊ", "TH": "ཐཋ", "D": "དཌ", "DH": "དྷཌྷ", "N": "ནཎ",
"t": "ཏ", "th": "ཐ", "d": "ད", "dh": "དྷ", "n": "ན",
"p": "པ", "ph": "ཕ", "b": "བ", "bh": "བྷ", "m": "མ",
"ts": "ཙ", "tsh": "ཚ", "dz": "ཛ", "dzh": "ཛྷ", "w": "ཝ",
"zh": "ཞ", "z": "ཟ", "'": "འ", "y": "ཡ",
@heacu
heacu / jquery.drupal_check_all.js
Last active December 11, 2015 18:24 — forked from aklump/jquery.drupal_check_all.js
Adds a Check All Option to a group of Checkboxes in Drupal jQuery Plugin
/**
* Adds a Check All Option to a group of Checkboxes in Drupal jQuery Plugin
*
* To make this work you need pass to this function, a div that is a decendent
of a form and an ancestor of multiple checkboxes. It is specifically tuned to
drupal, but can be used for any html by setting the options. Here's and
example, where .form-item-list is fapi element of type checkboxes.
*
* @code
* $('#my-form .form-item-list').drupalCheckAll();