Skip to content

Commit

Permalink
layout
Browse files Browse the repository at this point in the history
  • Loading branch information
JulesText committed Jul 31, 2021
1 parent de453bf commit 8a81008
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 15 deletions.
9 changes: 5 additions & 4 deletions enhancers.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,17 @@ function gtd_searchdiv_init(ids,titles,types,onetype) {
ptitles[i]=unescape(titles[i]);
ptitleslc[i]=ptitles[i].toLowerCase();
if (useTypes) {thistype=mapTypeToName(types[i]);}

anchor=document.createElement('a');
anchor.href='#';
anchor.appendChild(document.createTextNode('+'));
anchor.appendChild(document.createTextNode('+-'));
anchor.id=parentIds[i];
anchor.ptitle=ptitles[i];
anchor.ptype=thistype;
addEvent(anchor,'click',function(e){
myargs=(e.srcElement===undefined)?this:e.srcElement;
gtd_gotparent(myargs.id,myargs.ptitle,myargs.ptype);
gtd_closesearch();
});

line=document.createElement('p');
Expand All @@ -74,7 +75,7 @@ function gtd_gotparent(id,title,type) {
if (document.getElementById('parentrow'+id)) {return;}
var newrow=document.createElement('tr');
newrow.id='parentrow'+id;

var cell=document.createElement('td');
var anchor=document.createElement('a');
anchor.href='#';
Expand All @@ -88,7 +89,7 @@ function gtd_gotparent(id,title,type) {
anchor.appendChild(document.createTextNode('X'));
cell.appendChild(anchor);
newrow.appendChild(cell);

cell=document.createElement('td');
anchor=document.createElement('a');
anchor.href="itemReport.php?itemId="+id;
Expand Down
30 changes: 19 additions & 11 deletions pertinent.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,34 @@
}

var windows = [
'ToD.php', // second window
'https://calendar.google.com/calendar/r',
'reportLists.php?id=120&type=C',
'listItems.php?tickler=false&type=w&contextId=25&notspacecontext=true&nextonly=true&dueonly=true&liveparents=*',
'reportLists.php?id=170&type=C',
'reportLists.php?id=168&type=C',
'reportLists.php?id=13&type=C',
'Lunar.php',
'index.php',
'listItems.php?tickler=false&type=a&contextId=25&notspacecontext=true&dueonly=true&liveparents=*',
'reportContext.php?notContext=25', // last window
'listItems.php?tickler=false&type=a&contextId=25&notspacecontext=true&dueonly=true&liveparents=*',
'index.php',
'Lunar.php',
'reportLists.php?id=13&type=C',
'reportLists.php?id=168&type=C',
'reportLists.php?id=170&type=C',
'listItems.php?tickler=false&type=w&contextId=25&notspacecontext=true&nextonly=true&dueonly=true&liveparents=*',
'reportLists.php?id=120&type=C',
'https://calendar.google.com/calendar/r',
'ToD.php', // second window
'editListItems.php?itemId=3646&type=C' // first/current window
];

// firefox in reverse
// firefox sequence
// var windows = [
// 'reportContext.php?notContext=25', // last window
// 'index.php',
// 'ToD.php', // second window
// 'editListItems.php?itemId=3646&type=C' // first/current window
// ];

// brave sequence
// var windows = [
// 'reportContext.php?notContext=25', // second window
// 'index.php',
// 'ToD.php', // last window
// 'editListItems.php?itemId=3646&type=C' // first/current window
// ];

var arrayLength = windows.length;
Expand Down

0 comments on commit 8a81008

Please sign in to comment.