~remontees/webapps-applications/trunk

« back to all changes in this revision

Viewing changes to duckduckgo.js

  • Committer: remontees
  • Date: 2012-12-08 15:35:59 UTC
  • Revision ID: git-v1:4c1fdd9e76c4a604f8df27e59bfd54a8e3905c85
Add duckduckgo.js

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
function unityReady() {
 
2
    Unity.addAction("http://duckduckgo.com/", function () {
 
3
       Unity.Notification.showNotification("Nouvelle recherche", "Vous vous apprêtez à lancer une nouvelle recherche.");
 
4
    });
 
5
    Unity.addAction("http://help.duckduckgo.com/customer/portal/articles/216441/", function() {
 
6
        Unity.Notification.showNotification("Installation de l'extension", "Vous cherchez actuellement à installer DuckDuckGo sur votre navigateur web.");
 
7
    });
 
8
    Unity.Launcher.addAction("Internet", internetActionCallback);
 
9
}
 
10
var Unity = external.getUnityObject(1.0); 
 
11
 
 
12
Unity.init({name: "DuckDuckGo",
 
13
            iconUrl: "http://duckduckgo.com/assets/logo_homepage.normal.v102.png",
 
14
            homepage: 'http://duckduckgo.com'
 
15
            domain: 'duckduckgo.com'
 
16
            onInit: unityReady});