-
Notifications
You must be signed in to change notification settings - Fork 18
/
options.js
36 lines (30 loc) · 1.25 KB
/
options.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Show upported site title
var title = "<p>" + chrome.i18n.getMessage("textSupportedSites") + "</p>";
if(!$("#div_site_list_title").length==0){
$("#div_site_list_title").append(title);
}
// Show upported site lists
var lists = chrome.i18n.getMessage("textSupportedSitesLists").split(",");
var show = "<ul>";
var len = lists.length;
for(var i=0; i<len; i++){
if(lists[i]==""){continue;};
show += "<li><a target='_blank' href='" + lists[i] + "'>" + lists[i] + "</a></li>";
}
show += "</ul>";
$("#div_site_lists").append(show);
// User Data Privacy
var userPrivacy = chrome.i18n.getMessage("textUserPrivacy") + "<br/>";
$("#div_userPrivacy").append(userPrivacy);
// Copyright
var copyright = "<b>" + chrome.i18n.getMessage("textCopyRight") + "</b><br/>";
$("#div_copyright").append(copyright);
// Suggestions, issues
var issues = "<p>" + chrome.i18n.getMessage("textIssues");
issues += "<a target='_blank' href='https://github.com/johnyluyte/fetch-online-dictionaries-audio/issues'>Github</a>";
issues += "</p>";
$("#div_issues").append(issues);
// Source codes
var code = chrome.i18n.getMessage("textSourceCode");
code += "<a target='_blank' href='https://github.com/johnyluyte/fetch-online-dictionaries-audio'>Github</a>";
$("#div_source_code").append(code);