| Total Complexity | 3 |
| Complexity/F | 1.5 |
| Lines of Code | 57 |
| Function Count | 2 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | /** |
||
| 4 | (function (factory) { |
||
| 5 | if (typeof define === 'function' && define.amd) { |
||
|
|
|||
| 6 | // AMD. Register as an anonymous module. |
||
| 7 | define('bootstrap.wysihtml5.zh-TW', ['jquery', 'bootstrap.wysihtml5'], factory); |
||
| 8 | } else { |
||
| 9 | // Browser globals |
||
| 10 | factory(jQuery); |
||
| 11 | } |
||
| 12 | }(function($){ |
||
| 13 | $.fn.wysihtml5.locale["zh-TW"] = { |
||
| 14 | font_styles: { |
||
| 15 | normal: "內文", |
||
| 16 | h1: "標題 1", |
||
| 17 | h2: "標題 2", |
||
| 18 | h3: "標題 3", |
||
| 19 | h3: "標題 4", |
||
| 20 | h3: "標題 5", |
||
| 21 | h3: "標題 6" |
||
| 22 | }, |
||
| 23 | emphasis: { |
||
| 24 | bold: "粗體", |
||
| 25 | italic: "斜體", |
||
| 26 | underline: "底線" |
||
| 27 | }, |
||
| 28 | lists: { |
||
| 29 | unordered: "項目符號", |
||
| 30 | ordered: "編號列表", |
||
| 31 | outdent: "減少縮排", |
||
| 32 | indent: "增加縮排" |
||
| 33 | }, |
||
| 34 | link: { |
||
| 35 | insert: "插入超連結", |
||
| 36 | cancel: "取消", |
||
| 37 | target: "新窗口打開鏈接" |
||
| 38 | }, |
||
| 39 | image: { |
||
| 40 | insert: "插入圖片連結", |
||
| 41 | cancel: "取消" |
||
| 42 | }, |
||
| 43 | html: { |
||
| 44 | edit: "HTML原始碼" |
||
| 45 | }, |
||
| 46 | colours: { |
||
| 47 | black: "黑色", |
||
| 48 | silver: "銀色", |
||
| 49 | gray: "灰色", |
||
| 50 | maroon: "栗色", |
||
| 51 | red: "红色", |
||
| 52 | purple: "紫色", |
||
| 53 | green: "綠色", |
||
| 54 | olive: "橄欖色", |
||
| 55 | navy: "深藍色", |
||
| 56 | blue: "藍色", |
||
| 57 | orange: "橙色" |
||
| 58 | } |
||
| 59 | }; |
||
| 60 | })); |
||
| 61 |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.