|
@@ -1,3 +1,9 @@
|
|
|
|
|
+
|
|
|
|
|
+var _lang = "";
|
|
|
|
|
+var _langsetting = "";
|
|
|
|
|
+var _channelType = 'translation'
|
|
|
|
|
+var _progress = 0.9;
|
|
|
|
|
+
|
|
|
var _view = "community";
|
|
var _view = "community";
|
|
|
var main_tag = "";
|
|
var main_tag = "";
|
|
|
var list_tag = new Array();
|
|
var list_tag = new Array();
|
|
@@ -9,13 +15,76 @@ var gBreadCrumbs=['','','','','','','','',''];
|
|
|
var _nextPageStart = 0;
|
|
var _nextPageStart = 0;
|
|
|
var _pageSize = 20;
|
|
var _pageSize = 20;
|
|
|
var _channel = "";
|
|
var _channel = "";
|
|
|
-var _lang = "";
|
|
|
|
|
|
|
+var _palicanonCategory,_palicanonCategoryCurrent,_palicanonCategoryPath;
|
|
|
|
|
+
|
|
|
var _tags = "";
|
|
var _tags = "";
|
|
|
var _channelList;
|
|
var _channelList;
|
|
|
|
|
|
|
|
palicanon_load_term();
|
|
palicanon_load_term();
|
|
|
|
|
|
|
|
|
|
+function getLangSetting(setting){
|
|
|
|
|
+ switch (setting) {
|
|
|
|
|
+ case 'auto':
|
|
|
|
|
+ switch (getCookie("language")) {
|
|
|
|
|
+ case 'zh-cn':
|
|
|
|
|
+ return 'zh';
|
|
|
|
|
+ break;
|
|
|
|
|
+ case 'zh-tw':
|
|
|
|
|
+ return 'zh';
|
|
|
|
|
+ break;
|
|
|
|
|
+ case '':
|
|
|
|
|
+ return '';
|
|
|
|
|
+ break;
|
|
|
|
|
+ }
|
|
|
|
|
+ break;
|
|
|
|
|
+ default:
|
|
|
|
|
+ return setting;
|
|
|
|
|
+ break;
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+function updateSetting(){
|
|
|
|
|
+ _langsetting = $("#setting_lang").val();
|
|
|
|
|
+ _lang = getLangSetting(_langsetting);
|
|
|
|
|
+ _channelType = $("#setting_channel_type").val();
|
|
|
|
|
+ _progress = $("#setting_progress").val();
|
|
|
|
|
+
|
|
|
|
|
+ localStorage.setItem("pc_filter_setting",JSON.stringify({
|
|
|
|
|
+ lang : _lang,
|
|
|
|
|
+ lang_setting: $("#setting_lang").val(),
|
|
|
|
|
+ channel_type : _channelType,
|
|
|
|
|
+ progress:_progress,
|
|
|
|
|
+ }))
|
|
|
|
|
+
|
|
|
|
|
+ switch (_view) {
|
|
|
|
|
+ case 'community':
|
|
|
|
|
+ _nextPageStart = 0;
|
|
|
|
|
+ LoadAllChannel();
|
|
|
|
|
+ communityGetChapter();
|
|
|
|
|
+ break;
|
|
|
|
|
+ case 'category':
|
|
|
|
|
+
|
|
|
|
|
+ break;
|
|
|
|
|
+ default:
|
|
|
|
|
+ break;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+/*
|
|
|
|
|
+载入过滤器设置
|
|
|
|
|
+*/
|
|
|
|
|
+function loadFilterSetting(){
|
|
|
|
|
+ if (localStorage.getItem ("pc_filter_setting")) {
|
|
|
|
|
+ let setting = JSON.parse(localStorage.getItem("pc_filter_setting"));
|
|
|
|
|
+ _langsetting = setting.lang_setting;
|
|
|
|
|
+ _lang = getLangSetting(_langsetting);
|
|
|
|
|
+ _channel_type = setting.channel_type;
|
|
|
|
|
+ _progress = setting.progress;
|
|
|
|
|
+ }
|
|
|
|
|
+ _nextPageStart = 0;
|
|
|
|
|
+}
|
|
|
function community_onload() {
|
|
function community_onload() {
|
|
|
|
|
+ $("#main_view").addClass("community");
|
|
|
$("span[tag]").click(function () {
|
|
$("span[tag]").click(function () {
|
|
|
$(this).siblings().removeClass("select");
|
|
$(this).siblings().removeClass("select");
|
|
|
$(this).addClass("select");
|
|
$(this).addClass("select");
|
|
@@ -36,6 +105,7 @@ function community_onload() {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function palicanon_onload() {
|
|
function palicanon_onload() {
|
|
|
|
|
+ $("#main_view").addClass("category");
|
|
|
$("span[tag]").click(function () {
|
|
$("span[tag]").click(function () {
|
|
|
$(this).siblings().removeClass("select");
|
|
$(this).siblings().removeClass("select");
|
|
|
$(this).addClass("select");
|
|
$(this).addClass("select");
|
|
@@ -49,6 +119,8 @@ function palicanon_onload() {
|
|
|
tag_render_others();
|
|
tag_render_others();
|
|
|
});
|
|
});
|
|
|
render_main_tag();
|
|
render_main_tag();
|
|
|
|
|
+ LoadAllChannel();
|
|
|
|
|
+ LoadAllLanguage();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function palicanon_load_term() {
|
|
function palicanon_load_term() {
|
|
@@ -115,7 +187,13 @@ function tag_changed() {
|
|
|
communityGetChapter()
|
|
communityGetChapter()
|
|
|
break;
|
|
break;
|
|
|
case "category":
|
|
case "category":
|
|
|
- palicanonGetChapter(_tags,lang)
|
|
|
|
|
|
|
+ if(_tags == ""){
|
|
|
|
|
+ updatePalicanonCategoryList();
|
|
|
|
|
+ $("#palicanon-category").show();
|
|
|
|
|
+ $("#chapter_shell").hide();
|
|
|
|
|
+ }else{
|
|
|
|
|
+ palicanonGetChapter(_tags,lang);
|
|
|
|
|
+ }
|
|
|
break;
|
|
break;
|
|
|
case "my":
|
|
case "my":
|
|
|
break;
|
|
break;
|
|
@@ -139,25 +217,6 @@ function updataHistory(){
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function communityGetChapter(offset=0){
|
|
function communityGetChapter(offset=0){
|
|
|
- let strTags = "";
|
|
|
|
|
- if (list_tag.length > 0) {
|
|
|
|
|
- strTags = main_tag + "," + list_tag.join();
|
|
|
|
|
- } else {
|
|
|
|
|
- strTags = main_tag;
|
|
|
|
|
- }
|
|
|
|
|
- console.log(strTags);
|
|
|
|
|
- let lang = getCookie("language");
|
|
|
|
|
- switch (lang) {
|
|
|
|
|
- case 'zh-cn':
|
|
|
|
|
- lang = 'zh-hans';
|
|
|
|
|
- break;
|
|
|
|
|
- case 'zh-tw':
|
|
|
|
|
- lang = 'zh-hant';
|
|
|
|
|
- break;
|
|
|
|
|
- case '':
|
|
|
|
|
- lang = 'en';
|
|
|
|
|
- break;
|
|
|
|
|
- }
|
|
|
|
|
next_page_loader_show();
|
|
next_page_loader_show();
|
|
|
$.getJSON(
|
|
$.getJSON(
|
|
|
"/api/v2/progress?view=chapter",
|
|
"/api/v2/progress?view=chapter",
|
|
@@ -165,6 +224,7 @@ function communityGetChapter(offset=0){
|
|
|
tags: _tags,
|
|
tags: _tags,
|
|
|
lang: _lang,
|
|
lang: _lang,
|
|
|
channel: _channel,
|
|
channel: _channel,
|
|
|
|
|
+ channel_type: _channelType,
|
|
|
offset: offset
|
|
offset: offset
|
|
|
}
|
|
}
|
|
|
)
|
|
)
|
|
@@ -222,15 +282,15 @@ function communityGetChapter(offset=0){
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- communityLoadChapterTag(strTags,lang);
|
|
|
|
|
|
|
+ communityLoadChapterTag();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function communityLoadChapterTag(strTags="",lang=""){
|
|
function communityLoadChapterTag(strTags="",lang=""){
|
|
|
$.getJSON(
|
|
$.getJSON(
|
|
|
"/api/v2/progress?view=chapter-tag",
|
|
"/api/v2/progress?view=chapter-tag",
|
|
|
{
|
|
{
|
|
|
- tags: strTags,
|
|
|
|
|
- lang: lang,
|
|
|
|
|
|
|
+ tags: _tags,
|
|
|
|
|
+ lang: _lang,
|
|
|
channel:_channel
|
|
channel:_channel
|
|
|
},
|
|
},
|
|
|
function (data, status) {
|
|
function (data, status) {
|
|
@@ -248,6 +308,9 @@ function communityLoadChapterTag(strTags="",lang=""){
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function palitextGetChapter(strTags=""){
|
|
function palitextGetChapter(strTags=""){
|
|
|
|
|
+ if(_tags==""){
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
$.getJSON(
|
|
$.getJSON(
|
|
|
"/api/v2/palitext?view=chapter",
|
|
"/api/v2/palitext?view=chapter",
|
|
|
{
|
|
{
|
|
@@ -395,6 +458,7 @@ function palicanon_load_chapter(book, para, div_index = 1) {
|
|
|
loadChapterChannel({
|
|
loadChapterChannel({
|
|
|
book:book,
|
|
book:book,
|
|
|
para:para,
|
|
para:para,
|
|
|
|
|
+ readonly:true,
|
|
|
target:$("#chapter_head_" + (parseInt(div_index) + 1)).find('.progress').first()
|
|
target:$("#chapter_head_" + (parseInt(div_index) + 1)).find('.progress').first()
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
@@ -541,6 +605,10 @@ function chapter_onclick(obj) {
|
|
|
let type = $(objList).attr("type");
|
|
let type = $(objList).attr("type");
|
|
|
let level = parseInt($(objList).parent().attr("level"));
|
|
let level = parseInt($(objList).parent().attr("level"));
|
|
|
let title1 = $(objList).find(".title_1").first().text();
|
|
let title1 = $(objList).find(".title_1").first().text();
|
|
|
|
|
+
|
|
|
|
|
+ if(_view == "category" && level==1){
|
|
|
|
|
+ $("#index_div").addClass("popup");
|
|
|
|
|
+ }
|
|
|
if(type=='article'){
|
|
if(type=='article'){
|
|
|
window.open("../article/index.php?view=chapter&book="+book+"&par="+para+"&channel="+channel,);
|
|
window.open("../article/index.php?view=chapter&book="+book+"&par="+para+"&channel="+channel,);
|
|
|
}else{
|
|
}else{
|
|
@@ -981,6 +1049,9 @@ function tag_list_slide_toggle(element) {
|
|
|
$("#tag_list").slideToggle();
|
|
$("#tag_list").slideToggle();
|
|
|
}
|
|
}
|
|
|
function chapter_back(parent) {
|
|
function chapter_back(parent) {
|
|
|
|
|
+ if(_view == "category" && parent==1){
|
|
|
|
|
+ $("#index_div").removeClass("popup");
|
|
|
|
|
+ }
|
|
|
let curr = parseInt(parent) + 1;
|
|
let curr = parseInt(parent) + 1;
|
|
|
let prt = parseInt(parent);
|
|
let prt = parseInt(parent);
|
|
|
//隐藏当前的
|
|
//隐藏当前的
|
|
@@ -1000,19 +1071,102 @@ function chapter_back(parent) {
|
|
|
RenderBreadCrumbs();
|
|
RenderBreadCrumbs();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+function categoryGoHome(){
|
|
|
|
|
+ updatePalicanonCategoryList();
|
|
|
|
|
+ $("#palicanon-category").show();
|
|
|
|
|
+ $("#chapter_shell").hide();
|
|
|
|
|
+ tag_set([]);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+function updatePalicanonCategoryList(name="__home__") {
|
|
|
|
|
+ switch (name) {
|
|
|
|
|
+ case '__home__':
|
|
|
|
|
+ _palicanonCategoryCurrent = _palicanonCategory.slice();
|
|
|
|
|
+ _palicanonCategoryPath = new Array();
|
|
|
|
|
+ _palicanonCategoryPath.push(_palicanonCategoryCurrent);
|
|
|
|
|
+ break;
|
|
|
|
|
+ case '__prev__':
|
|
|
|
|
+ _palicanonCategoryPath.pop();
|
|
|
|
|
+ _palicanonCategoryCurrent = _palicanonCategoryPath[_palicanonCategoryPath.length-1].slice();
|
|
|
|
|
+ break;
|
|
|
|
|
+ default:
|
|
|
|
|
+ if(_palicanonCategoryCurrent.length>0){
|
|
|
|
|
+ let next = _palicanonCategoryCurrent.find(element => element.name == name);
|
|
|
|
|
+ if(typeof next !== "undefined"){
|
|
|
|
|
+ if(next.children && next.children.length>0){
|
|
|
|
|
+ //有子目录
|
|
|
|
|
+ _palicanonCategoryCurrent = next.children.slice();
|
|
|
|
|
+ _palicanonCategoryPath.push(_palicanonCategoryCurrent.slice());
|
|
|
|
|
+ }else{
|
|
|
|
|
+ //没有子目录
|
|
|
|
|
+ tag_set(next.tag);
|
|
|
|
|
+ $("#palicanon-category").hide();
|
|
|
|
|
+ $("#chapter_shell").show();
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }else{
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ break;
|
|
|
|
|
+ }
|
|
|
|
|
+ $('#palicanon-category').html(renderPalicanonCategoryList());
|
|
|
|
|
+
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+function renderPalicanonCategoryList(){
|
|
|
|
|
+ let html = "<ul class='chapter_list'>";
|
|
|
|
|
+ if(_palicanonCategoryPath.length>1){
|
|
|
|
|
+ html += "<li onclick=\"updatePalicanonCategoryList('__prev__')\">";
|
|
|
|
|
+ html += "上一级";
|
|
|
|
|
+ html += "</li>";
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ for (const item of _palicanonCategoryCurrent) {
|
|
|
|
|
+ html += "<li onclick=\"updatePalicanonCategoryList('"+item.name+"')\">";
|
|
|
|
|
+ html += "<div class='left_icon'>";
|
|
|
|
|
+ html += "<svg class='icon' style='fill: var(--box-bg-color1)'>";
|
|
|
|
|
+ html += "<use xlink:href='../../node_modules/bootstrap-icons/bootstrap-icons.svg#folder'>";
|
|
|
|
|
+ html += "</svg>" ;
|
|
|
|
|
+ html += "</div>";
|
|
|
|
|
+
|
|
|
|
|
+ html += "<div class='title'>";
|
|
|
|
|
+
|
|
|
|
|
+ html += '<div class="title_left" onclick="chapter_onclick(this)">';
|
|
|
|
|
+ html += '<div class="title_1">'+item.name+'</div>';
|
|
|
|
|
+ html += '<div class="title_2" lang="pali">'+item.name+'</div>';
|
|
|
|
|
+ html += "</div>";
|
|
|
|
|
+
|
|
|
|
|
+ html += '<div class="title_right">';
|
|
|
|
|
+ html += "<svg class='icon' style='fill: var(--box-bg-color1)'>";
|
|
|
|
|
+ html += "<use xlink:href='../../node_modules/bootstrap-icons/bootstrap-icons.svg#chevron-right'>";
|
|
|
|
|
+ html += "</svg>" ;
|
|
|
|
|
+ html += '</div>';
|
|
|
|
|
+
|
|
|
|
|
+ html += "</div>";
|
|
|
|
|
+
|
|
|
|
|
+ html += "</li>";
|
|
|
|
|
+ }
|
|
|
|
|
+ html += "</ul>";
|
|
|
|
|
+ return html;
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
function loadTagCategory(name="defualt"){
|
|
function loadTagCategory(name="defualt"){
|
|
|
$.getJSON("./category/"+name+".json",function(result){
|
|
$.getJSON("./category/"+name+".json",function(result){
|
|
|
- console.log(tocGetTagCategory(result));
|
|
|
|
|
|
|
+
|
|
|
|
|
+ _palicanonCategory = result;
|
|
|
|
|
+ _palicanonCategoryCurrent = _palicanonCategory.slice();
|
|
|
|
|
+ _palicanonCategoryPath = new Array();
|
|
|
|
|
+ _palicanonCategoryPath.push(_palicanonCategoryCurrent.slice());
|
|
|
|
|
+ updatePalicanonCategoryList();
|
|
|
|
|
+
|
|
|
$("#tag-category").html("");
|
|
$("#tag-category").html("");
|
|
|
$("#tag-category").fancytree({
|
|
$("#tag-category").fancytree({
|
|
|
autoScroll: true,
|
|
autoScroll: true,
|
|
|
selectMode: 1, // 1:single, 2:multi, 3:multi-hier
|
|
selectMode: 1, // 1:single, 2:multi, 3:multi-hier
|
|
|
checkbox: false, // Show checkboxes.
|
|
checkbox: false, // Show checkboxes.
|
|
|
- source: tocGetTagCategory(result),
|
|
|
|
|
|
|
+ source: tocGetTagCategory(result.slice()),
|
|
|
activate: function(e, data) {
|
|
activate: function(e, data) {
|
|
|
-// alert("activate " + );
|
|
|
|
|
- //currSelectNode = data.node;
|
|
|
|
|
console.log('tree',data);
|
|
console.log('tree',data);
|
|
|
tag_set(arrTagCategory[data.node.key]);
|
|
tag_set(arrTagCategory[data.node.key]);
|
|
|
},
|
|
},
|
|
@@ -1066,13 +1220,26 @@ function TagCategoryIndexchange(obj){
|
|
|
|
|
|
|
|
function RenderBreadCrumbs(){
|
|
function RenderBreadCrumbs(){
|
|
|
let html = "";
|
|
let html = "";
|
|
|
- html += '<a onclick="chapter_back(1)">home</a>';
|
|
|
|
|
|
|
+ html += "<span>";
|
|
|
|
|
+ html += '<a onclick="chapter_back(1)" title="'+gLocal.gui.close+'">';
|
|
|
|
|
+ html += "<svg class='icon' style='fill: var(--box-bg-color1)'>";
|
|
|
|
|
+ html += "<use xlink:href='../../node_modules/bootstrap-icons/bootstrap-icons.svg#arrow-left-square'>";
|
|
|
|
|
+ html += "</svg>" ;
|
|
|
|
|
+ html += '</a>';
|
|
|
|
|
+ html += "</span>";
|
|
|
for (const iterator of gBreadCrumbs) {
|
|
for (const iterator of gBreadCrumbs) {
|
|
|
if(iterator.title1){
|
|
if(iterator.title1){
|
|
|
- html += " > ";
|
|
|
|
|
|
|
+ html += "<span>";
|
|
|
|
|
+ html += "<svg class='icon' style='fill: var(--box-bg-color1)'>";
|
|
|
|
|
+ html += "<use xlink:href='../../node_modules/bootstrap-icons/bootstrap-icons.svg#chevron-right'>";
|
|
|
|
|
+ html += "</svg>" ;
|
|
|
|
|
+ html += "</span>";
|
|
|
|
|
+
|
|
|
|
|
+ html += "<span>";
|
|
|
html += '<a onclick="chapter_back('+(iterator.level+1)+')">';
|
|
html += '<a onclick="chapter_back('+(iterator.level+1)+')">';
|
|
|
html += iterator.title1;
|
|
html += iterator.title1;
|
|
|
html += '</a>';
|
|
html += '</a>';
|
|
|
|
|
+ html += "</span>";
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -1090,7 +1257,11 @@ function select_channel(id,obj=null){
|
|
|
function LoadAllChannel(){
|
|
function LoadAllChannel(){
|
|
|
$.getJSON(
|
|
$.getJSON(
|
|
|
"/api/v2/progress?view=channel",
|
|
"/api/v2/progress?view=channel",
|
|
|
- {},
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ lang:_lang,
|
|
|
|
|
+ channel_type: _channelType,
|
|
|
|
|
+ progress:_progress,
|
|
|
|
|
+ },
|
|
|
function (data, status) {
|
|
function (data, status) {
|
|
|
let html = "";
|
|
let html = "";
|
|
|
html += "<ul>"
|
|
html += "<ul>"
|
|
@@ -1116,14 +1287,20 @@ function LoadAllLanguage(){
|
|
|
{},
|
|
{},
|
|
|
function (data, status) {
|
|
function (data, status) {
|
|
|
let html = "";
|
|
let html = "";
|
|
|
- html += "<ul>"
|
|
|
|
|
|
|
+ html += "<option value='auto'>自动</option>";
|
|
|
|
|
+ html += "<option value=''>全部</option>";
|
|
|
for (const iterator of data.data.rows) {
|
|
for (const iterator of data.data.rows) {
|
|
|
- html += "<li>"
|
|
|
|
|
- html += iterator.lang+"("+iterator.count+")";
|
|
|
|
|
- html += "</li>"
|
|
|
|
|
|
|
+ if(iterator.lang!=''){
|
|
|
|
|
+ html += "<option value='"+iterator.lang+"' ";
|
|
|
|
|
+ if(_langsetting==iterator.lang){
|
|
|
|
|
+ html +=" selected ";
|
|
|
|
|
+ }
|
|
|
|
|
+ html +=">";
|
|
|
|
|
+ html += iterator.lang+"("+iterator.count+")";
|
|
|
|
|
+ html += "</option>"
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
- html += "</ul>";
|
|
|
|
|
- $("#filter-lang").html(html);
|
|
|
|
|
|
|
+ $("#setting_lang").html(html);
|
|
|
}
|
|
}
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
@@ -1134,17 +1311,17 @@ function ReanderMainMenu(){
|
|
|
if(_view=="community"){
|
|
if(_view=="community"){
|
|
|
html += "class='select'";
|
|
html += "class='select'";
|
|
|
}
|
|
}
|
|
|
- html +="><a href='index1.php?view=community'>社区</a></span>";
|
|
|
|
|
|
|
+ html +="><a href='index.php?view=community'>社区</a></span>";
|
|
|
html += "<span ";
|
|
html += "<span ";
|
|
|
if(_view=="category"){
|
|
if(_view=="category"){
|
|
|
html += "class='select'";
|
|
html += "class='select'";
|
|
|
}
|
|
}
|
|
|
- html +="><a href='index1.php?view=category' >分类</a></span>";
|
|
|
|
|
|
|
+ html +="><a href='index.php?view=category' >分类</a></span>";
|
|
|
html += "<span ";
|
|
html += "<span ";
|
|
|
if(_view=="my"){
|
|
if(_view=="my"){
|
|
|
html += "class='select'";
|
|
html += "class='select'";
|
|
|
}
|
|
}
|
|
|
- html +="><a href='index1.php?view=my' >我的</a></span>";
|
|
|
|
|
|
|
+ html +="><a href='index.php?view=my' >我的</a></span>";
|
|
|
$("#main_menu").html(html);
|
|
$("#main_menu").html(html);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -1192,4 +1369,5 @@ function loadContribution(){
|
|
|
.fail(function() {
|
|
.fail(function() {
|
|
|
console.log( "error" );
|
|
console.log( "error" );
|
|
|
});
|
|
});
|
|
|
-}
|
|
|
|
|
|
|
+}
|
|
|
|
|
+
|