Skip to content

Commit

Permalink
Added the option to easily change the search engine and a note for Ch…
Browse files Browse the repository at this point in the history
…rome users to hold cmd (Mac) or ctrl (Win) to open a set in tabs instead of windows
  • Loading branch information
michaelx committed Dec 3, 2013
1 parent 54b4f2b commit 6ff1a75
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 9 deletions.
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,30 @@

Launchbot enables you to easily open sets of all your favorite websites with just one click.

It's like restoring tabs, but on any computer and browser. You can also search Google or just quick-launch one of your favorite websites.
It's like restoring tabs, but on every device and browser. You can also search the web or just quick-launch one of your favorite websites.

* **Install Instruction:** http://launchbot.michaelxander.com/about.html
* **Changelog:** http://launchbot.michaelxander.com/changelog.html

### Features

* Quick-launch sets of websites with one click
* Quick-launch favorite websites
* Search the web with your preferred search engine
* See the weather forecast for today

### What's next?

* Keyboard shortcuts to open sets
* … send in feature requests via [Twitter](http://twitter.com/michael_xander)

## Compatibility

Launchbot should work with every major browser on every device, as long Javascript is enabled.

### Chrome

In some configurations Chrome will open a set in windows instead of tabs. To avoid this behaviour you can hold down cmd (Mac); ctrl (Win).

## Author

Expand Down
18 changes: 10 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<meta charset="utf-8">
<title>Launchbot &ndash; Your Personal Startpage Script</title>
<meta name="keywords" content="Launchbot, Startpage Script, Michael Xander, Dashboard, Open-Source, Morning Coffee">
<meta name="description" content="Launchbot enables you to easily open sets of all your favorite websites with one click. It's like restoring tabs, but on any computer and browser.">
<meta name="description" content="Launchbot enables you to easily open sets of all your favorite websites with one click. It's like restoring tabs, but on every device and browser.">
<meta name="author" content="Michael Xander">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="stylesheets/base.css">
Expand All @@ -34,7 +34,7 @@ <h1 class="remove-bottom" style="margin-top: 40px"><img class="middle" src="imag
<div class="one-third column">
<h3>Search The Web</h3>
<p>My oil is fresh, we could search something!</p>
<form method="get" action="http://www.google.com/search" id="searchForm" name="searchForm">
<form method="get" action="" id="searchForm" name="searchForm">
<fieldset>
<input type="text" name="q" maxlength="255" id="searchText" value="" />
<input type="submit" id="searchSubmit" value="GO" />
Expand Down Expand Up @@ -114,14 +114,16 @@ <h3>Favorite Sites</h3>

$.getJSON(url, function(data) {
var woeID = data.query.results.place.woeid;

var query = escape('SELECT item.forecast,location FROM weather.forecast WHERE woeid="' + woeID + '" AND u="' + unit + '" LIMIT 1'), url = "http://query.yahooapis.com/v1/public/yql?q=" + query + "&format=json&callback=?";
var query = escape('SELECT item.forecast,location FROM weather.forecast WHERE woeid="' + woeID + '" AND u="' + unit + '" LIMIT 1'), url = "http://query.yahooapis.com/v1/public/yql?q=" + query + "&format=json&callback=?";

$.getJSON(url, function(data) {
$("#weather").append("By the way, the weather forecast for " + data.query.results.channel.location.city + " is " + data.query.results.channel.item.forecast.high + "&deg;<span class=\"uppercase\">" + unit + "</span> and <span class=\"lowercase\">" + data.query.results.channel.item.forecast.text + "</span>.");
});
});
}
$("#weather").append("By the way, the weather forecast for " + data.query.results.channel.location.city + " is " + data.query.results.channel.item.forecast.high + "&deg;<span class=\"uppercase\">" + unit + "</span> and <span class=\"lowercase\">" + data.query.results.channel.item.forecast.text + "</span>.");
});
});
}

// Search Engine
document.searchForm.action = searchEngine;

</script><!-- Launchbot Organs -->

Expand Down

0 comments on commit 6ff1a75

Please sign in to comment.