popup: add icons

Cette révision appartient à :
girst 2017-08-19 23:24:10 +02:00
Parent 2977b85e13
révision dae6246979
2 fichiers modifiés avec 15 ajouts et 11 suppressions

Voir le fichier

@ -5,16 +5,20 @@ body {
font-family: sans-serif; font-family: sans-serif;
font-size: small; font-size: small;
} }
input[type=button] { button {
width: 100%; width: 100%;
text-align:left;
}
img {
vertical-align:bottom;
} }
</style> </style>
<form> <form>
<input type="button" id="resurrectWithGoogle"></br> <button id="resurrectWithGoogle" ><img src="icons/cacheicons/google.png"> <span id="lgo"></span></button><br>
<input type="button" id="resurrectWithGoogleText"></br> <button id="resurrectWithGoogleText" ><img src="icons/cacheicons/google.png"> <span id="lgt"></span></button><br>
<input type="button" id="resurrectWithInternetArchive"></br> <button id="resurrectWithInternetArchive"><img src="icons/cacheicons/waybackmachine.png"> <span id="lia"></span></button><br>
<input type="button" id="resurrectWithArchiveIs"></br> <button id="resurrectWithArchiveIs" ><img src="icons/cacheicons/archiveis.png"> <span id="lai"></span></button><br>
<input type="button" id="resurrectWithWebCite"></br> <button id="resurrectWithWebCite" ><img src="icons/cacheicons/webcitation.png"> <span id="lwc"></span></button><br>
<hr> <hr>
<input type="radio" name="openIn" value="0" id="current" ><label for="current" id="lc"></label></br> <input type="radio" name="openIn" value="0" id="current" ><label for="current" id="lc"></label></br>
<input type="radio" name="openIn" value="1" id="newtabfg"><label for="newtabfg" id="ltf"></label></br> <input type="radio" name="openIn" value="1" id="newtabfg"><label for="newtabfg" id="ltf"></label></br>

Voir le fichier

@ -29,11 +29,11 @@ onError("can't read openIn");
document.querySelector("#newtabbg").onchange = function(){setOpenIn(document.querySelector('input[name="openIn"]:checked').value)}; document.querySelector("#newtabbg").onchange = function(){setOpenIn(document.querySelector('input[name="openIn"]:checked').value)};
document.querySelector("#newwin").onchange = function(){setOpenIn(document.querySelector('input[name="openIn"]:checked').value)}; document.querySelector("#newwin").onchange = function(){setOpenIn(document.querySelector('input[name="openIn"]:checked').value)};
document.querySelector("#resurrectWithGoogle").value = browser.i18n.getMessage("contextMenuItemResurrectGoogle"); document.querySelector("#lgo").innerHTML = browser.i18n.getMessage("contextMenuItemResurrectGoogle");
document.querySelector("#resurrectWithGoogleText").value = browser.i18n.getMessage("contextMenuItemResurrectGoogleText"); document.querySelector("#lgt").innerHTML = browser.i18n.getMessage("contextMenuItemResurrectGoogleText");
document.querySelector("#resurrectWithInternetArchive").value = browser.i18n.getMessage("contextMenuItemResurrectArchive"); document.querySelector("#lia").innerHTML = browser.i18n.getMessage("contextMenuItemResurrectArchive");
document.querySelector("#resurrectWithArchiveIs").value = browser.i18n.getMessage("contextMenuItemResurrectArchiveIs"); document.querySelector("#lai").innerHTML = browser.i18n.getMessage("contextMenuItemResurrectArchiveIs");
document.querySelector("#resurrectWithWebCite").value = browser.i18n.getMessage("contextMenuItemResurrectWebcitation"); document.querySelector("#lwc").innerHTML = browser.i18n.getMessage("contextMenuItemResurrectWebcitation");
browser.tabs.query({active:true,currentWindow:true}).then(function(tabObj){ browser.tabs.query({active:true,currentWindow:true}).then(function(tabObj){
pageURL = tabObj[0].url; pageURL = tabObj[0].url;