integrate simulated infobars into the gombot addon
This commit is contained in:
Родитель
6b94a9c472
Коммит
ea7ca0ee60
|
@ -1,3 +1,6 @@
|
|||
[submodule "server"]
|
||||
path = server
|
||||
url = git://github.com/mozilla/gombot
|
||||
[submodule "infobar"]
|
||||
path = infobar
|
||||
url = git://github.com/lloyd/simulated_infobars
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
<script src="lib/jquery.js"></script>
|
||||
<script src="lib/jsuri.js"></script>
|
||||
<script src="lib/socket.io.js"></script>
|
||||
<script src="infobar/manager.js"></script>
|
||||
<script src="util.js"></script>
|
||||
<script src="pin_ui.js"></script>
|
||||
<script src="pin_ui_incontent.js"></script>
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
<html>
|
||||
<head>
|
||||
<style>
|
||||
body {
|
||||
background-color: red;
|
||||
height: 40px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
This is my infobar. <button>ok</button>
|
||||
<!-- gives you window.CompleteInfobar() which you call with
|
||||
a javascript object to end your infobar -->
|
||||
<script src="/infobar/api.js"></script>
|
||||
<script src="remember_password_infobar.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,3 @@
|
|||
document.querySelector('button').onclick = function() {
|
||||
CompleteInfobar("all done");
|
||||
};
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 0e3bb2627c521bf79c69a8f60e4bfa9a8e9bc82e
|
6
main.js
6
main.js
|
@ -61,6 +61,12 @@ var messageHandlers = {
|
|||
}
|
||||
}
|
||||
// Prompt the user to save the login
|
||||
InfobarManager.run({
|
||||
path: "data/remember_password_infobar.html"
|
||||
}, function(err, response) {
|
||||
console.log(err, response);
|
||||
});
|
||||
|
||||
displayNotification({
|
||||
notify: true,
|
||||
tabId: tabID,
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
"icons/small.png",
|
||||
"data/pin_entry.html",
|
||||
"data/pin_entry.js",
|
||||
"data/css/pin_entry.css"
|
||||
"data/css/pin_entry.css",
|
||||
"data/remember_password_infobar.html"
|
||||
]
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче