Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
flatsiedatsie authored Apr 14, 2022
1 parent 0e0b299 commit b86b4cf
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 4 deletions.
13 changes: 12 additions & 1 deletion css/extension.css
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,18 @@
color:white;
}

#extension-followers-list-explanation{
display:flex;
height: calc(100vh - 20rem);
width:100%;
align-items:center;
justify-content:center;
}
#extension-followers-list-explanation > *{
max-width:80rem;
}


#extension-followers-not-ready-warning,
#extension-followers-missing-key-warning{
margin:2rem auto;
Expand All @@ -315,7 +327,6 @@
border:2px solid orange;
}


#extension-followers-debug-warning{
max-width:60rem;
margin:2rem auto;
Expand Down
5 changes: 4 additions & 1 deletion js/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,10 @@

const original = document.getElementById('extension-followers-original-item');
const list = document.getElementById('extension-followers-list');
list.innerHTML = "";
if(items.len > 0){
list.innerHTML = "";
}


// Loop over all items
for( var item in items ){
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
}
},
"short_name": "Followers",
"version": "0.6.5",
"version": "0.6.6",
"web_accessible_resources": [
"css/*.css",
"images/*.svg",
Expand Down
8 changes: 7 additions & 1 deletion views/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ <h1>Missing permission to read and control devices</h1>
<p>If you don't have the Candle App Store, go to <a href="/settings/developer">Settings -> Developer</a> and then Create Local Authorization. Generate a key there by clicking on Allow at the bottom of the page. Copy the token that's generated, and then visit the settings page for this addon. There you can paste in the code, and click Apply to save it.</p>
</div>
<div id="extension-followers-list">

<div id="extension-followers-list-explanation">
<div>
<p>Followers allows you to have the value of one property 'follow' the value of another.</p>
<p>For example, you could have your livingroom light's brightness be applied to the hallway light too, so their brightness always changes in step.</p>
<p>You could even reverse this relation, so that as the brightness of one light goes down, the brightness of the other goes up.</p>
</div>
</div>
</div>


Expand Down

0 comments on commit b86b4cf

Please sign in to comment.