Permalink
Browse files

corrected title attribute text, increased starting values of minChar,…

… and made overflow-y auto instead of scroll
  • Loading branch information...
1 parent f2882e2 commit 7ce3fd795a12dab041a1839c95353cf61d8a3b66 @dslatten dslatten committed Jan 18, 2012
Showing with 8 additions and 8 deletions.
  1. +2 −2 snippet.js
  2. +4 −4 title.js
  3. +2 −2 url.js
View
@@ -18,8 +18,8 @@ javascript:void(function(){
var div=document.createElement('div');
var mofoListItems=document.getElementById('rso').getElementsByTagName('li');
- var message='<div style="border:1px solid #9eaeb0;height:' + (winH-383) + 'px;overflow-y:scroll;"><table cellpadding="6" cellspacing="1" border="0" bgcolor="#9eaeb0" style="position:relative;top:-1px;left:-1px"><tr><th bgcolor="#f0f7f8">Jump</th><th bgcolor="#f0f7f8">#</th><th bgcolor="#f0f7f8" width="512">Description/Snippet</th><th bgcolor="#f0f7f8">Chars</th><th bgcolor="#f0f7f8">Width</th></tr>';
- var r=0,i,j,k,max1,max2,max3,divsInVSC,spansInS,linkURL,blueLink,minChar=100,maxChar=0,minWidth=512,maxWidth=0,bgColor;
+ var message='<div style="border:1px solid #9eaeb0;height:' + (winH-383) + 'px;overflow-y:auto;"><table cellpadding="6" cellspacing="1" border="0" bgcolor="#9eaeb0" style="position:relative;top:-1px;left:-1px"><tr><th bgcolor="#f0f7f8">Jump</th><th bgcolor="#f0f7f8">#</th><th bgcolor="#f0f7f8" width="512">Description/Snippet</th><th bgcolor="#f0f7f8">Chars</th><th bgcolor="#f0f7f8">Width</th></tr>';
+ var r=0,i,j,k,max1,max2,max3,divsInVSC,spansInS,linkURL,blueLink,minChar=999,maxChar=0,minWidth=512,maxWidth=0,bgColor;
var jumpLink,minCharJumpLinkId='',maxCharJumpLinkId='',minWidthJumpLinkId='',maxWidthJumpLinkId='';
for(i=0,max1=mofoListItems.length;i<max1;i++){
View
@@ -18,8 +18,8 @@ javascript:void(function(){
var div=document.createElement('div');
var mofoListItems=document.getElementById('rso').getElementsByTagName('li');
- var message='<div style="border:1px solid #9eaeb0;height:' + (winH-383) + 'px;overflow-y:scroll;"><table cellpadding="6" cellspacing="1" border="0" bgcolor="#9eaeb0" style="position:relative;top:-1px;left:-1px"><tr><th bgcolor="#f0f7f8">Jump</th><th bgcolor="#f0f7f8">#</th><th bgcolor="#f0f7f8" width="512">Title</th><th bgcolor="#f0f7f8">Chars</th><th bgcolor="#f0f7f8">Width</th></tr>';
- var r=0,i,max1,linkURL,linkText,blueLink,minChar=100,maxChar=0,minWidth=512,maxWidth=0,bgColor;
+ var message='<div style="border:1px solid #9eaeb0;height:' + (winH-383) + 'px;overflow-y:auto;"><table cellpadding="6" cellspacing="1" border="0" bgcolor="#9eaeb0" style="position:relative;top:-1px;left:-1px"><tr><th bgcolor="#f0f7f8">Jump</th><th bgcolor="#f0f7f8">#</th><th bgcolor="#f0f7f8" width="512">Title</th><th bgcolor="#f0f7f8">Chars</th><th bgcolor="#f0f7f8">Width</th></tr>';
+ var r=0,i,max1,linkURL,linkText,blueLink,minChar=999,maxChar=0,minWidth=512,maxWidth=0,bgColor;
var jumpLink,minCharJumpLinkId='',maxCharJumpLinkId='',minWidthJumpLinkId='',maxWidthJumpLinkId='';
for(i=0,max1=mofoListItems.length;i<max1;i++){
@@ -70,8 +70,8 @@ javascript:void(function(){
message += '</div>';
message += '<div style="float:right;margin-top:45px">';
message += '<table cellpadding="6" cellspacing="1" border="0" bgcolor="#9eaeb0"><tr><th bgcolor="#f0f7f8"></th><th bgcolor="#f0f7f8">Chars</th><th bgcolor="#f0f7f8">Width</th></tr>';
- message += '<tr><th align="right" bgcolor="#fff">Max</th><td align="right" bgcolor="#fff"><a href="#' + maxCharJumpLinkId + '" style="text-decoration:none;font-size:medium;font-weight:bold" title="Click to jump to the SERP listing on this page that has the most characters in its Display URL.">' + maxChar + '</a></td><td align="right" bgcolor="#fff"><a href="#' + maxWidthJumpLinkId + '" style="text-decoration:none;font-size:medium;font-weight:bold" title="Click to jump to the SERP listing on this page that has the widest Display URL.">' + maxWidth + '</a></td></tr>';
- message += '<tr><th align="right" bgcolor="#fff">Min</th><td align="right" bgcolor="#fff"><a href="#' + minCharJumpLinkId + '" style="text-decoration:none;font-size:medium;font-weight:bold" title="Click to jump to the SERP listing on this page that has the fewest characters in its Display URL.">' + minChar + '</a></td><td align="right" bgcolor="#fff"><a href="#' + minWidthJumpLinkId + '" style="text-decoration:none;font-size:medium;font-weight:bold" title="Click to jump to the SERP listing on this page that has the narrowest Display URL.">' + minWidth + '</a></td></tr>';
+ message += '<tr><th align="right" bgcolor="#fff">Max</th><td align="right" bgcolor="#fff"><a href="#' + maxCharJumpLinkId + '" style="text-decoration:none;font-size:medium;font-weight:bold" title="Click to jump to the SERP listing on this page that has the most characters in its title.">' + maxChar + '</a></td><td align="right" bgcolor="#fff"><a href="#' + maxWidthJumpLinkId + '" style="text-decoration:none;font-size:medium;font-weight:bold" title="Click to jump to the SERP listing on this page that has the widest title.">' + maxWidth + '</a></td></tr>';
+ message += '<tr><th align="right" bgcolor="#fff">Min</th><td align="right" bgcolor="#fff"><a href="#' + minCharJumpLinkId + '" style="text-decoration:none;font-size:medium;font-weight:bold" title="Click to jump to the SERP listing on this page that has the fewest characters in its title.">' + minChar + '</a></td><td align="right" bgcolor="#fff"><a href="#' + minWidthJumpLinkId + '" style="text-decoration:none;font-size:medium;font-weight:bold" title="Click to jump to the SERP listing on this page that has the narrowest title.">' + minWidth + '</a></td></tr>';
message += '</table>';
message += '</div>';
View
4 url.js
@@ -18,8 +18,8 @@ javascript:void(function(){
var div=document.createElement('div');
var mofoListItems=document.getElementById('rso').getElementsByTagName('li');
- var message='<div style="border:1px solid #9eaeb0;height:' + (winH-383) + 'px;overflow-y:scroll;"><table cellpadding="6" cellspacing="1" border="0" bgcolor="#9eaeb0" style="position:relative;top:-1px;left:-1px"><tr><th bgcolor="#f0f7f8">Jump</th><th bgcolor="#f0f7f8">#</th><th bgcolor="#f0f7f8" width="512">Display URL</th><th bgcolor="#f0f7f8">Chars</th><th bgcolor="#f0f7f8">Width</th></tr>';
- var r=0,i,j,max1,max2,divsInVSC,linkURL,blueLink,displayURL,minChar=100,maxChar=0,minWidth=512,maxWidth=0,bgColor;
+ var message='<div style="border:1px solid #9eaeb0;height:' + (winH-383) + 'px;overflow-y:auto;"><table cellpadding="6" cellspacing="1" border="0" bgcolor="#9eaeb0" style="position:relative;top:-1px;left:-1px"><tr><th bgcolor="#f0f7f8">Jump</th><th bgcolor="#f0f7f8">#</th><th bgcolor="#f0f7f8" width="512">Display URL</th><th bgcolor="#f0f7f8">Chars</th><th bgcolor="#f0f7f8">Width</th></tr>';
+ var r=0,i,j,max1,max2,divsInVSC,linkURL,blueLink,displayURL,minChar=999,maxChar=0,minWidth=512,maxWidth=0,bgColor;
var jumpLink,minCharJumpLinkId='',maxCharJumpLinkId='',minWidthJumpLinkId='',maxWidthJumpLinkId='';
for(i=0,max1=mofoListItems.length;i<max1;i++){

0 comments on commit 7ce3fd7

Please sign in to comment.