Debug
This commit is contained in:
@@ -59,7 +59,6 @@ function imgv(id, key, acct_id) {
|
||||
$("#imagemodal").css("width",width+"px")
|
||||
}
|
||||
}else{
|
||||
console.log("long")
|
||||
$("#imagemodal img").css("width","auto")
|
||||
var widthS=windowH/height*width;
|
||||
if(widthS<windowW){
|
||||
@@ -149,7 +148,6 @@ function imgCont(type) {
|
||||
$("#imagemodal").css("width",width+"px")
|
||||
}
|
||||
}else{
|
||||
console.log("long")
|
||||
$("#imagemodal img").css("width","auto")
|
||||
var widthS=windowH/height*width;
|
||||
if(widthS<windowW){
|
||||
@@ -167,7 +165,6 @@ function imgCont(type) {
|
||||
} else {
|
||||
$("#image-next").prop("disabled", false);
|
||||
}
|
||||
console.log("#" + id + "-image-" + (key * 1 - 1));
|
||||
if ($("#" + id + "-image-" + (key * 1 - 1)).length === 0) {
|
||||
$("#image-prev").prop("disabled", true);
|
||||
} else {
|
||||
@@ -231,7 +228,6 @@ function zoom(z) {
|
||||
$(this).on('touchmove', function(event) {
|
||||
if ($(target).data('down') === true) {
|
||||
// スクロール
|
||||
console.log($(target).data('x'));
|
||||
target.scrollLeft($(target).data('scrollLeft') + $(target).data('x') -
|
||||
getX(event));
|
||||
target.scrollTop($(target).data('scrollTop') + $(target).data('y') -
|
||||
@@ -284,7 +280,7 @@ function dlImg(){
|
||||
}
|
||||
ipc.send('general-dl', [url,save,false]);
|
||||
ipc.on('general-dl-prog', function (event, arg) {
|
||||
console.log(arg);
|
||||
console.log("Progress: "+arg);
|
||||
})
|
||||
ipc.on('general-dl-message', function (event, arg) {
|
||||
var argC=arg.replace(/\\/g,"\\\\")+"\\\\.";
|
||||
|
@@ -21,7 +21,7 @@ $('.type').click(function() {
|
||||
})
|
||||
//最初、カラム変更時に発火
|
||||
function parseColumn(dontclose) {
|
||||
console.log("parse");
|
||||
console.log("%c Parse column","color:red;font-size:125%");
|
||||
var size = localStorage.getItem("size");
|
||||
if (size) {
|
||||
$("#timeline-container").css("font-size", size + "px");
|
||||
@@ -60,7 +60,7 @@ function parseColumn(dontclose) {
|
||||
});
|
||||
}
|
||||
var acctlist=obj;
|
||||
console.log(obj);
|
||||
console.table(obj);
|
||||
/*var xed=localStorage.getItem("xed");
|
||||
if(xed){
|
||||
xpand();
|
||||
@@ -272,7 +272,6 @@ function parseColumn(dontclose) {
|
||||
}
|
||||
function checkStr(type, data, acct_id, key, delc,voice){
|
||||
if($('#notice_icon_' + key).hasClass("red-text") && type!="notf" && type!="mix"){
|
||||
console.log("sabun-get")
|
||||
goTop(key);
|
||||
tlDiff(type, data, acct_id, key, delc,voice,"");
|
||||
}else{
|
||||
@@ -366,7 +365,6 @@ function removeColumn(tlid) {
|
||||
var ipc = electron.ipcRenderer;
|
||||
ipc.send('column-del', "");
|
||||
ipc.on('column-del-reply', function (event, arg) {
|
||||
console.log(arg);
|
||||
if(arg===1){
|
||||
localStorage.removeItem("card_" + tlid);
|
||||
obj.splice(tlid, 1);
|
||||
|
@@ -28,7 +28,7 @@ function scrollck() {
|
||||
var scrt = $(this).find(".tl").height() - $(window).height();
|
||||
var scr = $(this).scrollTop();
|
||||
if (scr > scrt) {
|
||||
console.log("kicked");
|
||||
console.log("kicked more loading:"+tlid);
|
||||
moreload('', tlid);
|
||||
}
|
||||
});
|
||||
@@ -44,7 +44,6 @@ function goColumn(key){
|
||||
$("#sort-box").addClass("hide");
|
||||
$("#sort-box").removeClass("show");
|
||||
if($('[tlid='+key+']').length){
|
||||
console.log($('[tlid='+key+']').offset().left);
|
||||
$("#timeline-container").animate({scrollLeft:$("#timeline-container").scrollLeft()+$('[tlid='+key+']').offset().left});
|
||||
}
|
||||
}
|
@@ -141,7 +141,6 @@ function climute(){
|
||||
return;
|
||||
}
|
||||
var templete;
|
||||
console.log(obj)
|
||||
Object.keys(obj).forEach(function(key) {
|
||||
var cli = obj[key];
|
||||
var list = key * 1 + 1;
|
||||
@@ -233,7 +232,6 @@ function exportSettings(){
|
||||
properties: ['openFile', 'createDirectory'],
|
||||
defaultPath: "export.thedeskconfigv2"
|
||||
}, (savedFiles) => {
|
||||
console.log(savedFiles);
|
||||
if(!savedFiles){
|
||||
return false;
|
||||
}
|
||||
@@ -294,7 +292,6 @@ function exportSettings(){
|
||||
var tagarr = localStorage.getItem("tag");
|
||||
var favtag = JSON.parse(tagarr);
|
||||
exp.favoriteTags=favtag;
|
||||
console.log(exp);
|
||||
ipc.send('export', [savedFiles,JSON.stringify(exp)]);
|
||||
alert("Done.")
|
||||
//cards
|
||||
@@ -316,7 +313,6 @@ function importSettings(){
|
||||
{name: 'TheDesk Config', extensions: ['thedeskconfig','thedeskconfigv2']},
|
||||
]
|
||||
}, (fileNames) => {
|
||||
console.log(fileNames);
|
||||
if(!fileNames){
|
||||
return false;
|
||||
}
|
||||
@@ -363,7 +359,6 @@ function importSettings(){
|
||||
//Version 1
|
||||
localStorage.setItem("theme",obj.theme);
|
||||
if(obj.width){
|
||||
console.log(obj.width)
|
||||
localStorage.setItem("width",obj.width);
|
||||
}
|
||||
if(obj.font){
|
||||
@@ -552,7 +547,6 @@ function deleteIt(){
|
||||
function ctLoad(){
|
||||
ipc.send('theme-json-list', "");
|
||||
ipc.on('theme-json-list-response', function (event, args) {
|
||||
console.log(args);
|
||||
var templete="";
|
||||
Object.keys(args).forEach(function(key) {
|
||||
var theme = args[key];
|
||||
@@ -596,7 +590,6 @@ function custom(){
|
||||
$("#delTheme").removeClass("disabled")
|
||||
ipc.send('theme-json-request', id);
|
||||
ipc.on('theme-json-response', function (event, args) {
|
||||
console.log(args);
|
||||
$("#custom_name").val(args.name);
|
||||
$("#custom_desc").val(args.desc);
|
||||
$("#"+args.base).prop("checked", true);
|
||||
@@ -633,7 +626,6 @@ function customImp(){
|
||||
}
|
||||
}
|
||||
function hardwareAcceleration(had){
|
||||
console.log("ha");
|
||||
ipc.send('ha', had);
|
||||
}
|
||||
|
||||
|
@@ -61,7 +61,7 @@ function Scap(type, data) {
|
||||
}else if (type == "tootsearch") {
|
||||
return "tootsearch(" + data + ")"
|
||||
}else{
|
||||
console.log(type);
|
||||
console.error("unknown timeline type: "+type);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -79,7 +79,7 @@ function nowplaying(mode){
|
||||
todo(error);
|
||||
console.error(error);
|
||||
}).then(function(json) {
|
||||
console.log(json);
|
||||
console.table(json);
|
||||
if(json.length<1){
|
||||
return false;
|
||||
}
|
||||
@@ -133,7 +133,7 @@ function nowplaying(mode){
|
||||
console.error(arg);
|
||||
return;
|
||||
}
|
||||
console.log(arg);
|
||||
console.table(arg);
|
||||
var content=localStorage.getItem("np-temp");
|
||||
if(!content || content=="" || content=="null"){
|
||||
var content="#NowPlaying {song} / {album} / {artist}\n{url}";
|
||||
|
@@ -66,7 +66,6 @@ function trendTagonTip(){
|
||||
var domain="imastodon.net"
|
||||
var at = localStorage.getItem("acct_"+ acct_id + "_at");
|
||||
var start = "https://" + domain + "/api/v1/trend_tags"
|
||||
console.log(start)
|
||||
fetch(start, {
|
||||
method: 'GET',
|
||||
headers: {
|
||||
@@ -109,7 +108,6 @@ function spotifytips(){
|
||||
todo(error);
|
||||
console.error(error);
|
||||
}).then(function(json) {
|
||||
console.log(json);
|
||||
var ms=json.progress_ms;
|
||||
var last=1000-ms%1000;
|
||||
var item=json.item;
|
||||
|
Reference in New Issue
Block a user