Added new button to popup

This commit is contained in:
kodxana 2020-07-14 13:27:58 +02:00 committed by GitHub
parent 77d6476ea2
commit cc2d4f41eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 42 additions and 5 deletions

View file

@ -13,6 +13,26 @@ body {
margin-bottom: 15px;
}
.container2 {
display: block;
text-align: center;
margin: 0 auto;
width: 80%;
margin-bottom: 15px;
}
.btn1 {
border-radius: 5px;
background-color: #075656;
border: 4px solid #075656;
color: whitesmoke;
font-weight: 400;
padding: 4px 15px;
margin-right: 25px;
text-align: center;
}
button {
border-radius: 5px;
background-color: #075656;
@ -36,3 +56,9 @@ label {
margin: 15px auto;
display: block;
}
.span {
width: 50px;
height: 50px;
background: black;
}

View file

@ -15,8 +15,14 @@
<div class="redirect">
<button type="button" class="button" name="site" value="lbry.tv" > LBRY.tv </button>
<button type="button" class="button" name="app" value="app" > LBRY App </button>
</div>
<label> Another usefull tools: </label>
<button type="button" class="btn1" id="btn1">Subscribtions Converter</button>
</div>
<script src="popup.js"></script>
</body>

View file

@ -45,3 +45,8 @@ attachClick('.redirect', (element, name, value) => {
chrome.storage.local.set({ redirect: value });
}
});
var button = document.getElementById("btn1");
button.addEventListener("click", function(){
chrome.tabs.create({url:"/tools/YTtoLBRY.html"});
});