| 1   2   | Next
maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   Speeddial: Easy Access to Bookmarks via HTML (https://talk.maemo.org/showthread.php?t=16756)

ustunozgur 2008-02-17 13:17

Speeddial: Easy Access to Bookmarks via HTML
 
1 Attachment(s)
I have created a simple speeddial HTML page for access to frequently used bookmarks, as in Opera.

I think someone has already done it before, but I wanted to share the html just in case. Note that you can change your homepage to this page in the web browser (Tools-Settings-Connection): Home page address should be stg. like:

file://localhost/home/user/MyDocs/.documents/speeddial.html
and "Use default home page" should be clear (not selected).

Here is the html, the values you should change are "value" and "location" tags' values.

Save the following as an html file with the name speeddial.html
Code:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html> <head>
<title>Speeddial</title>
</head>

<body>
<h1></h1>

<table align="center">
  <tr>
    <td><input type="button" value="Go to Google"
onClick="window.location='http://www.google.com/'" style="width:
180; height: 100"></td>
<td><input type="button" value="Eksisozluk"
onClick="window.location='http:/sozluk.sourtimes.org/'" style="width:
180; height: 100"></td>
<td><input type="button" value="BBC"
onClick="window.location='http://news.bbc.co.uk/'" style="width:
180; height: 100"></td>
    </tr>
 <tr>
    <td><input type="button" value="Facebook"
onClick="window.location='http://www.facebook.com/'" style="width:
180; height: 100"></td>
<td><input type="button" value="GMail"
onClick="window.location='http://www.gmail.com/'" style="width:
180; height: 100"></td>
<td><input type="button" value="NTV"
onClick="window.location='http://www.ntvmsnbc.com/'" style="width:
180; height: 100"></td>
    </tr>
    <tr>
    <td><input type="button" value="Go to Google"
onClick="window.location='http://www.google.com/'" style="width:
180; height: 100"></td>
<td><input type="button" value="Go to Google"
onClick="window.location='http://www.google.com/'" style="width:
180; height: 100"></td>
<td><input type="button" value="Go to Google"
onClick="window.location='http://www.google.com/'" style="width:
180; height: 100"></td>
    </tr>
    </table>
   
</body> </html>

A sample screenshot is attached (though I took the screenshot in my Mac.)

dan 2008-02-17 15:55

Re: Speeddial: Easy Access to Bookmarks via HTML
 
1 Attachment(s)
ustunozgur,

Looks cool. I used this on Opera all the time on my old powerbook Mac.
I 'm really a novice on this so bear with me.
I followed your instructions and all I get when I open a new window is the text
inside the html file named speeddial.html. :)
Kind of funny.
I'm using n800 on os2008.
Any help would be appreciated. Thanks, Dan

ustunozgur 2008-02-17 15:56

Re: Speeddial: Easy Access to Bookmarks via HTML
 
Here is another version with Google search box at the top:
Code:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html> <head>
<title>Speeddial</title>
</head>

<body>
<h1></h1>



<table align="center">
<tr>
  <td colspan="3" align="center">

<form method="get" action="http://www.google.com/search">
  <input type="text"  name="q" size="31"
 maxlength="255" value="" />
<input type="submit" value="Google Search" />
 </form>
    </td>
  </tr>
  <tr>
    <td><input type="button" value="Go to Google"
onClick="window.location='http://www.google.com/'" style="width:
180; height: 100"></td>
<td><input type="button" value="Eksisozluk"
onClick="window.location='http:/sozluk.sourtimes.org/'" style="width:
180; height: 100"></td>
<td><input type="button" value="BBC"
onClick="window.location='http://news.bbc.co.uk/'" style="width:
180; height: 100"></td>
    </tr>
 <tr>
    <td><input type="button" value="Facebook"
onClick="window.location='http://www.facebook.com/'" style="width:
180; height: 100"></td>
<td><input type="button" value="GMail"
onClick="window.location='http://www.gmail.com/'" style="width:
180; height: 100"></td>
<td><input type="button" value="NTV"
onClick="window.location='http://www.ntvmsnbc.com/'" style="width:
180; height: 100"></td>
    </tr>
    <tr>
    <td><input type="button" value="Go to Google"
onClick="window.location='http://www.google.com/'" style="width:
180; height: 100"></td>
<td><input type="button" value="Go to Google"
onClick="window.location='http://www.google.com/'" style="width:
180; height: 100"></td>
<td><input type="button" value="Go to Google"
onClick="window.location='http://www.google.com/'" style="width:
180; height: 100"></td>
    </tr>
    </table>
   
</body> </html>


ustunozgur 2008-02-17 16:12

Re: Speeddial: Easy Access to Bookmarks via HTML
 
@Dan: make sure that the extension is .html, not .txt. This might be an issue if you are editing inside notepad, you have to make sure "All files" is selected when saving the file.

ustunozgur 2008-02-17 16:14

Re: Speeddial: Easy Access to Bookmarks via HTML
 
Here is another with both Google and Wikipedia:

Code:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html> <head>
<title>Speeddial</title>
</head>

<body>
<h1></h1>



<table align="center">
<tr>
  <td colspan="1" align="left">
<form method="get" action="http://www.google.com/search">
    <input type="text"  name="q" size="20"
 maxlength="255" value="" />
<input type="submit" value="Google" />
 </form>
    </td>

  <td colspan="1" align="left">
    <form action="http://www.wikipedia.org/search-redirect.php" method="get">
<input type="hidden" name="language" value="en" />
    <input type="text" name="search" size="20 " />
<input type="submit" name="go" value=" Wikipedia" />
</form>
  </td>
  </tr>
  <tr>
    <td><input type="button" value="Go to Google"
onClick="window.location='http://www.google.com/'" style="width:
180; height: 100"></td>
<td><input type="button" value="Eksisozluk"
onClick="window.location='http:/sozluk.sourtimes.org/'" style="width:
180; height: 100"></td>
<td><input type="button" value="BBC"
onClick="window.location='http://news.bbc.co.uk/'" style="width:
180; height: 100"></td>
    </tr>
 <tr>
    <td><input type="button" value="Facebook"
onClick="window.location='http://www.facebook.com/'" style="width:
180; height: 100"></td>
<td><input type="button" value="GMail"
onClick="window.location='http://www.gmail.com/'" style="width:
180; height: 100"></td>
<td><input type="button" value="NTV"
onClick="window.location='http://www.ntvmsnbc.com/'" style="width:
180; height: 100"></td>
    </tr>
    <tr>
    <td><input type="button" value="Go to Google"
onClick="window.location='http://www.google.com/'" style="width:
180; height: 100"></td>
<td><input type="button" value="Go to Google"
onClick="window.location='http://www.google.com/'" style="width:
180; height: 100"></td>
<td><input type="button" value="Go to Google"
onClick="window.location='http://www.google.com/'" style="width:
180; height: 100"></td>
    </tr>
    </table>
   
</body> </html>


ustunozgur 2008-02-17 16:17

Re: Speeddial: Easy Access to Bookmarks via HTML
 
1 Attachment(s)
@dan : Here is a zip file containing the 3 different html's

dan 2008-02-17 16:32

Re: Speeddial: Easy Access to Bookmarks via HTML
 
ustunozgur,

I'm using Abiword on mac and it allows you to select .html and then a different menu pops up and I choose html 4.0. All I did was highlighted your code above and copied it then pasted into Abiword. Abiword is a free word processor for Mac.
My screen shot above shows it is saved as an .html file.
Any further help would be appreciated. Thanks, Dan

ustunozgur 2008-02-17 16:39

Re: Speeddial: Easy Access to Bookmarks via HTML
 
@dan: That's because abiword is a WYSIWYG editor. Try saving with Textedit on mac. oops it seems textedit still saves it like a WYSIWYG editor. You have to force it to render it as it is.

Better still do this: in abiword, save it as a txt file then change the extension in Finder.

ustunozgur 2008-02-17 16:44

Re: Speeddial: Easy Access to Bookmarks via HTML
 
in Textedit you can also use : Format-Make Plain Text

dan 2008-02-17 16:45

Re: Speeddial: Easy Access to Bookmarks via HTML
 
ustunozgur,

Downloaded your zip. It works!!!
Very cool Bro.!!!
Now how do I change the menus. Abiword doesn't seem able to open your files. Any free program for mac that I can open and edit the .html file?
Any additional help would greatly be appreciated.

Thanks,

Dan

ustunozgur 2008-02-17 16:47

Re: Speeddial: Easy Access to Bookmarks via HTML
 
@dan: Textedit should open it fine I guess :)

dan 2008-02-17 19:35

Re: Speeddial: Easy Access to Bookmarks via HTML
 
ustunozgur,

You are a genius my friend. Many thanks. I've customised it to my needs.
It really simplfies website access.
Thanks,
Dan

ustunozgur 2008-02-17 21:16

Re: Speeddial: Easy Access to Bookmarks via HTML
 
No problem dan :)

iamthewalrus 2008-02-17 22:56

Re: Speeddial: Easy Access to Bookmarks via HTML
 
2 Attachment(s)
I have made a version which shows links to your 16 last accessed bookmarks automagically.

How to install:

- put 'last_accessed_bookmarks.htm' anywhere and open it in the browser
- set it as your homepage (menu->Set home page')

How to use:

- Anytime you click on a bookmark in the bookmarks menu it will show up on the speeddial page next time you open it. If you have clicked on more than 16 different bookmarks from the menu, the oldest will disappear from the speeddial page, unless you click on it again in the bookmarks menu.
- If you want new bookmarks to show up on the speeddial page even if you haven't clicked on it in the the bookmark menu, change the line

Code:

var show_last_added = false;
to
Code:

var show_last_added = true;
There is no need to use the default Google homepage anymore if you configure the address-bar so that it can be used both to enter urls and as a 'google toolbar'.

Thanks to Benson & ustunozgur.

salomc 2008-02-18 00:03

Re: Speeddial: Easy Access to Bookmarks via HTML
 
Wow, nice tweaking here!

But... how could I mix both, I mean, how could I set it to show fixed links (not the last ones accessed) with flexible/proportional size of the buttons, and in number of 16?

Thanks!

SMC

geneven 2008-02-18 00:27

Re: Speeddial: Easy Access to Bookmarks via HTML
 
This is cool. I think I did see something like it mentioned before, but sometimes repetition is a good thing, is a good thing.

iamthewalrus 2008-02-18 10:10

Re: Speeddial: Easy Access to Bookmarks via HTML
 
Quote:

Originally Posted by salomc (Post 143829)
But... how could I mix both, I mean, how could I set it to show fixed links (not the last ones accessed) with flexible/proportional size of the buttons, and in number of 16?

I could make it so that all bookmarks in a certain bookmark-folder are shown first maybe. The way I have done it is more a quick hack. If you were to do it right then the button page should be cached so that the bookmarks don't need to be sorted everytime you open the page. It is probably a bit slow for that reason if you have more than 50 bookmarks.

The width of the buttons is proportional. The height is fixed right now. I could adjust the height with javascript but since the screen has a fixed available height I left it that way. Anyway thanks for using it.

ustunozgur 2008-02-18 15:17

Re: Speeddial: Easy Access to Bookmarks via HTML
 
wow, that one is even better! thanks iamthewalrus.

dan 2008-02-21 00:24

Re: Speeddial: Easy Access to Bookmarks via HTML
 
iamthewalrus,

Very nice!!
Thanks,

Dan

Talon88 2008-02-21 01:20

Re: Speeddial: Easy Access to Bookmarks via HTML
 
cool... But it don't change to some of the last used URL ....

geneven 2008-02-21 02:17

Re: Speeddial: Easy Access to Bookmarks via HTML
 
The only problem with Speeddial is that the bookmarks I already set up work great. And I rarely find myself looking at the Home page and wanting to go somewhere. Also, I gather that the size of the Speeddial squares are partly to be finger-friendly, but I am normally holding my stylus while web browsing. I might like squares that are four times smaller bettter. I'm still happy with Speeddial, but I don't use it very often.

Benson 2008-02-21 23:34

Re: Speeddial: Easy Access to Bookmarks via HTML
 
2 Attachment(s)
Enhanced version of IAmTheWalrus's Speed-dial. This is just some formatting, to help with large icons and/or long text, and also scales row height for full-screen to look better. Also enlarges small favicons to 32px. (I use a bunch of custom favicons, so a lot of mine are 64px, and I can't stand little 16px wonders next to them.)

A second screenshot in next post, because forums are broken with attached images...

Benson 2008-02-21 23:35

Re: Speeddial: Easy Access to Bookmarks via HTML
 
1 Attachment(s)
Here's the other one: (full-screen)

dan 2008-02-22 02:06

Re: Speeddial: Easy Access to Bookmarks via HTML
 
Benson,

Very update thanks, Dan

sgfx 2008-02-22 03:03

Re: Speeddial: Easy Access to Bookmarks via HTML
 
I like the Speed-dial script from Benson
The problem is that i am using the Lcards theme and so the letters show up black on black.
dose anyone know how i can change the scrip so that i can change the color of the letters or the background
I did try to changed the "color:WindowText ; " to "color:#888888 ;". it works at first but just as the page finishes loading the text snaps back to black. :(

iamthewalrus 2008-02-22 09:34

Re: Speeddial: Easy Access to Bookmarks via HTML
 
Thanks Benson (even though your image makes it impossible to click the 'thanks' button) . It agree it looks better now, especially now it stays within the screen when zooming in. If you don't mind I will add my mouseover effects to it and put it on the wiki.

Benson 2008-02-22 16:54

Re: Speeddial: Easy Access to Bookmarks via HTML
 
Quote:

Originally Posted by iamthewalrus (Post 146163)
Thanks Benson (even though your image makes it impossible to click the 'thanks' button).

You are perhaps using one of the more broken themes? Classic works fine.
Quote:

If you don't mind I will add my mouseover effects to it and put it on the wiki.
I saw your mouse-over update 5 minutes before I posted, tried to wrap my head around it enough to combine them, then quit. I didn't care enough...

Go ahead, I certainly don't mind.

ARJWright 2008-02-22 17:00

Re: Speeddial: Easy Access to Bookmarks via HTML
 
This is pretty cool. I'll have to download this in a bit and get playing myself :)

iamthewalrus 2008-02-22 17:01

Re: Speeddial: Easy Access to Bookmarks via HTML
 
Ok I've added it to my post on the previous page.

Texrat 2008-02-22 17:19

Re: Speeddial: Easy Access to Bookmarks via HTML
 
This is an awesome example of ad hoc community development. Nicely done, guys!

Benson 2008-02-22 17:23

Re: Speeddial: Easy Access to Bookmarks via HTML
 
Quote:

Originally Posted by Texrat (Post 146340)
This is an awesome example of ad hoc community development. Nicely done, guys!

No it's not, it's just hacking. :D

Texrat 2008-02-22 17:25

Re: Speeddial: Easy Access to Bookmarks via HTML
 
Keep it up, buddy, and I start taking back Thanks!

:p

earth2marsh 2008-02-22 18:34

Re: Speeddial: Easy Access to Bookmarks via HTML
 
Thanks Benson (et al), this is going to be useful!

BTW, based on your screenshot, you should probably plug in your NIT... ;)

Benson 2008-02-22 22:59

Re: Speeddial: Easy Access to Bookmarks via HTML
 
No, the battery was charging, actually. I've been alarmed several times by seeing it at the bottom of the charge indicator, then suddenly realizing it was on the charger... I think that applet should make some visual distinction.

bluesubaru 2008-02-22 23:32

Re: Speeddial: Easy Access to Bookmarks via HTML
 
You guys rock! This home page is very useful.

geneven 2008-03-02 09:49

Re: Speeddial: Easy Access to Bookmarks via HTML
 
Not only is it useful, it's customizer's heaven. I don't understand it all that well, but I did make the squares smaller and add some color. I didn't figure out how to add the icons as the recently added bookmarks script does. It would be neat if you could do something like automatically add a "recently added" site to the speeddial menu to make it permanent.

Instead of neatly filling the screen, my "recently added" page goes way off the page. I'd rather have it that way and have access to more recently added sites.

iamthewalrus 2008-03-02 11:07

Re: Speeddial: Easy Access to Bookmarks via HTML
 
Quote:

Originally Posted by geneven (Post 150076)
Not only is it useful, it's customizer's heaven. I don't understand it all that well, but I did make the squares smaller and add some color. I didn't figure out how to add the icons as the recently added bookmarks script does. It would be neat if you could do something like automatically add a "recently added" site to the speeddial menu to make it permanent.

Instead of neatly filling the screen, my "recently added" page goes way off the page. I'd rather have it that way and have access to more recently added sites.

I have thought about this before. I could make it so that all bookmarks in a folder called 'speed dial' would be permanent, but that seemed ackward to me. Another thing that I thought of was some sort of checkbox in the corner of each button, and then save the urls of the 'permanent' bookmarks as a cookie, since a script on a webpage such as this can't write to a file because of security built into the browser. But either way would make the interface confusing. And the whole idea behind this script is to access the bookmarks that you last clicked on quickly. If you would see *all* bookmarks ordered by date I imagine it would take more time searching for that one bookmark than go through the bookmark-menu.

cLin 2008-03-13 07:22

Re: Speeddial: Easy Access to Bookmarks via HTML
 
hey iamthewalrus, I am looking through the code and was wondering how I could add buttons to your currentlisting. Or where which file did you get the bookmarked sites from?

iamthewalrus 2008-03-13 19:37

Re: Speeddial: Easy Access to Bookmarks via HTML
 
Quote:

Originally Posted by cLin (Post 154322)
hey iamthewalrus, I am looking through the code and was wondering how I could add buttons to your currentlisting. Or where which file did you get the bookmarked sites from?

Hi cLin,

If you put the last_accessed_bookmarks.htm on the tablet and open it with the browser you will see your own bookmarks, at least the 16 you last clicked on in the bookmarks menu. The script reads the bookmarks from /home/user/.bookmarks/MyBookmarks.xml.

cLin 2008-03-17 04:40

Re: Speeddial: Easy Access to Bookmarks via HTML
 
Is there a way to add buttons besides adding a bookmark? I tried adding one and it looks off.


| 1   2   | Next
All times are GMT. The time now is 23:29.

vBulletin® Version 3.8.8