Skip to content

Commit

Permalink
fixing some remotes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dima Goltsman committed May 16, 2020
1 parent a20b3bf commit 99ca32f
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 91 deletions.
61 changes: 31 additions & 30 deletions dist/remotes/lg/remote-html.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
function getRemoteStyle_lg(config) {

const base_url = `/local/content-card-remote-control/${config.remote_template}`;
const template = config.remote_template;
const base_url = `/hacsfiles/generic-remote-control-card/remotes/${template}`;

return `
ha-card{
Expand Down Expand Up @@ -354,45 +355,45 @@ function getRemoteHtml_lg(config){return `
<div style="text-align:center">
<h1>${config.name}</h1>
</div>
<div id="remote-control-lg">
<div id="remote-control-${template}">
<h2>
Main navigation
</h2>
<ul>
<li id="power" class="myButton-lg"><a href="#" title="Power"><span>Power</span></a></li>
<li id="volmin" class="myButton-lg"><a href="#" title="Vol Min"><span>Vol Min</span></a></li>
<li id="volplus" class="myButton-lg"><a href="#" title="Vol Plus"><span>Vol Plus</span></a></li>
<li id="mute" class="myButton-lg"><a href="#" title="Vol Mute"><span>Vol Mute</span></a></li>
<li id="source" class="myButton-lg"><a href="#" title="Source"><span>Source</span></a></li>
<li id="power" class="myButton-${template}"><a href="#" title="Power"><span>Power</span></a></li>
<li id="volmin" class="myButton-${template}"><a href="#" title="Vol Min"><span>Vol Min</span></a></li>
<li id="volplus" class="myButton-${template}"><a href="#" title="Vol Plus"><span>Vol Plus</span></a></li>
<li id="mute" class="myButton-${template}"><a href="#" title="Vol Mute"><span>Vol Mute</span></a></li>
<li id="source" class="myButton-${template}"><a href="#" title="Source"><span>Source</span></a></li>
</ul>
<ul>
<li id="button1" class="myButton-lg"><a href="#" title="Section 1" ><span>Section 1</span></a></li>
<li id="button2" class="myButton-lg"><a href="#" title="Section 2"><span>Section 2</span></a></li>
<li id="button3" class="myButton-lg"><a href="#" title="Section 3"><span>Section 3</span></a></li>
<li id="button4" class="myButton-lg"><a href="#" title="Section 4"><span>Section 4</span></a></li>
<li id="button5" class="myButton-lg"><a href="#" title="Section 5"><span>Section 5</span></a></li>
<li id="button6" class="myButton-lg"><a href="#" title="Section 6"><span>Section 6</span></a></li>
<li id="button7" class="myButton-lg"><a href="#" title="Section 7"><span>Section 7</span></a></li>
<li id="button8" class="myButton-lg"><a href="#" title="Section 8"><span>Section 8</span></a></li>
<li id="button9" class="myButton-lg"><a href="#" title="Section 9"><span>Section 9</span></a></li>
<li id="buttonClear" class="myButton-lg""><a href="#" title="Section 10"><span>Section 10</span></a></li>
<li id="button0" class="myButton-lg""><a href="#" title="Section 11"><span>Section 11</span></a></li>
<li id="buttonEnter" class="myButton-lg""><a href="#" title="Section 12"><span>Section 12</span></a></li>
<li id="button1" class="myButton-${template}"><a href="#" title="Section 1" ><span>Section 1</span></a></li>
<li id="button2" class="myButton-${template}"><a href="#" title="Section 2"><span>Section 2</span></a></li>
<li id="button3" class="myButton-${template}"><a href="#" title="Section 3"><span>Section 3</span></a></li>
<li id="button4" class="myButton-${template}"><a href="#" title="Section 4"><span>Section 4</span></a></li>
<li id="button5" class="myButton-${template}"><a href="#" title="Section 5"><span>Section 5</span></a></li>
<li id="button6" class="myButton-${template}"><a href="#" title="Section 6"><span>Section 6</span></a></li>
<li id="button7" class="myButton-${template}"><a href="#" title="Section 7"><span>Section 7</span></a></li>
<li id="button8" class="myButton-${template}"><a href="#" title="Section 8"><span>Section 8</span></a></li>
<li id="button9" class="myButton-${template}"><a href="#" title="Section 9"><span>Section 9</span></a></li>
<li id="buttonClear" class="myButton-${template}""><a href="#" title="Section 10"><span>Section 10</span></a></li>
<li id="button0" class="myButton-${template}""><a href="#" title="Section 11"><span>Section 11</span></a></li>
<li id="buttonEnter" class="myButton-${template}""><a href="#" title="Section 12"><span>Section 12</span></a></li>
</ul>
<ul>
<li class="myButton-lg" id="exit"><a href="#" title="exit"><span>exit</span></a></li>
<li class="myButton-lg" id="netflix"><a href="#" title="netflix"><span>netflix</span></a></li>
<li class="myButton-lg" id="channel"><a href="#" title="channel up"><span>channel</span></a></li>
<li class="myButton-lg" id="channeldown"><a href="#" title="channel down"><span>channeldown</span></a></li>
<li class="myButton-lg" id="menu"><a href="#" title="Menu"><span>Menu</span></a></li>
<li class="myButton-lg" id="back"><a href="#" title="Go back to beginning"><span>back</span></a></li>
<li class="myButton-lg" id="left"><a href="#" title="Left"><span>Left</span></a></li>
<li class="myButton-lg" id="right"><a href="#" title="right"><span>right</span></a></li>
<li class="myButton-lg" id="top"><a href="#" title="Top of gallery"><span>Top of Gallery</span></a></li>
<li class="myButton-lg" id="bottom"><a href="#" title="Bottom of gallery"><span>Bottom of Gallery</span></a></li>
<li class="myButton-lg" id="ok"><a href="#" title="OK - start slideshow"><span>OK - start slideshow</span></a></li>
<li class="myButton-${template}" id="exit"><a href="#" title="exit"><span>exit</span></a></li>
<li class="myButton-${template}" id="netflix"><a href="#" title="netflix"><span>netflix</span></a></li>
<li class="myButton-${template}" id="channel"><a href="#" title="channel up"><span>channel</span></a></li>
<li class="myButton-${template}" id="channeldown"><a href="#" title="channel down"><span>channeldown</span></a></li>
<li class="myButton-${template}" id="menu"><a href="#" title="Menu"><span>Menu</span></a></li>
<li class="myButton-${template}" id="back"><a href="#" title="Go back to beginning"><span>back</span></a></li>
<li class="myButton-${template}" id="left"><a href="#" title="Left"><span>Left</span></a></li>
<li class="myButton-${template}" id="right"><a href="#" title="right"><span>right</span></a></li>
<li class="myButton-${template}" id="top"><a href="#" title="Top of gallery"><span>Top of Gallery</span></a></li>
<li class="myButton-${template}" id="bottom"><a href="#" title="Bottom of gallery"><span>Bottom of Gallery</span></a></li>
<li class="myButton-${template}" id="ok"><a href="#" title="OK - start slideshow"><span>OK - start slideshow</span></a></li>
</ul>
</div>
</div>
Expand Down
67 changes: 34 additions & 33 deletions dist/remotes/lg_new/remote-html.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
function getRemoteStyle_lg_new(config) {

const base_url = `/local/content-card-remote-control/${config.remote_template}`;
const template = config.remote_template;
const base_url = `/hacsfiles/generic-remote-control-card/remotes/${template}`;

return `
ha-card{
Expand Down Expand Up @@ -459,48 +460,48 @@ function getRemoteHtml_lg_new(config){return `
<div style="text-align:center">
<h1>${config.name}</h1>
</div>
<div id="remote-control-lg_new">
<div id="remote-control-${template}">
<h2>
Main navigation
</h2>
<ul>
<li id="power" class="myButton-lg_new"><a href="#" title="Power"><span>Power</span></a></li>
<li id="volmin" class="myButton-lg_new"><a href="#" title="Vol Min"><span>Vol Min</span></a></li>
<li id="volplus" class="myButton-lg_new"><a href="#" title="Vol Plus"><span>Vol Plus</span></a></li>
<li id="mute" class="myButton-lg_new"><a href="#" title="Vol Mute"><span>Vol Mute</span></a></li>
<li id="source" class="myButton-lg_new"><a href="#" title="Source"><span>Source</span></a></li>
<li id="power" class="myButton-${template}"><a href="#" title="Power"><span>Power</span></a></li>
<li id="volmin" class="myButton-${template}"><a href="#" title="Vol Min"><span>Vol Min</span></a></li>
<li id="volplus" class="myButton-${template}"><a href="#" title="Vol Plus"><span>Vol Plus</span></a></li>
<li id="mute" class="myButton-${template}"><a href="#" title="Vol Mute"><span>Vol Mute</span></a></li>
<li id="source" class="myButton-${template}"><a href="#" title="Source"><span>Source</span></a></li>
</ul>
<ul>
<li id="list" class="myButton-lg_new""><a href="#" title="list + 11"><span>+list</span></a></li>
<li id="section12" class="myButton-lg_new""><a href="#" title="Section 12"><span>Section 12</span></a></li>
<li id="list" class="myButton-${template}""><a href="#" title="list + 11"><span>+list</span></a></li>
<li id="section12" class="myButton-${template}""><a href="#" title="Section 12"><span>Section 12</span></a></li>
</ul>
<ul>
<li class="myButton-lg_new" id="exit"><a href="#" title="exit"><span>exit</span></a></li>
<li class="myButton-lg_new" id="one"><a href="#" title="one"><span>one</span></a></li>
<li class="myButton-lg_new" id="two"><a href="#" title="two"><span>two</span></a></li>
<li class="myButton-lg_new" id="three"><a href="#" title="three"><span>three</span></a></li>
<li class="myButton-lg_new" id="four"><a href="#" title="four"><span>four</span></a></li>
<li class="myButton-lg_new" id="five"><a href="#" title="five"><span>five</span></a></li>
<li class="myButton-lg_new" id="six"><a href="#" title="six"><span>six</span></a></li>
<li class="myButton-lg_new" id="seven"><a href="#" title="seven"><span>seven</span></a></li>
<li class="myButton-lg_new" id="eight"><a href="#" title="eight"><span>eight</span></a></li>
<li class="myButton-lg_new" id="nine"><a href="#" title="nine"><span>nine</span></a></li>
<li class="myButton-lg_new" id="zero"><a href="#" title="zero"><span>zero</span></a></li>
<li class="myButton-lg_new" id="netflix"><a href="#" title="netflix"><span>netflix</span></a></li>
<li class="myButton-lg_new" id="amazon"><a href="#" title="amazon"><span>amazon</span></a></li>
<li class="myButton-lg_new" id="channelup"><a href="#" title="channel up"><span>channelup</span></a></li>
<li class="myButton-lg_new" id="channeldown"><a href="#" title="channel down"><span>channeldown</span></a></li>
<li class="myButton-lg_new" id="microphone"><a href="#" title="microphone"><span>microphone</span></a></li>
<li class="myButton-lg_new" id="settings"><a href="#" title="settings"><span>settings</span></a></li>
<li class="myButton-lg_new" id="menu"><a href="#" title="Menu"><span>Menu</span></a></li>
<li class="myButton-lg_new" id="back"><a href="#" title="Go back"><span>back</span></a></li>
<li class="myButton-lg_new" id="left"><a href="#" title="Left"><span>Left</span></a></li>
<li class="myButton-lg_new" id="right"><a href="#" title="right"><span>right</span></a></li>
<li class="myButton-lg_new" id="top"><a href="#" title="Top"><span>Top</span></a></li>
<li class="myButton-lg_new" id="bottom"><a href="#" title="Bottom"><span>Bottom</span></a></li>
<li class="myButton-lg_new" id="ok"><a href="#" title="OK"><span>OK</span></a></li>
<li class="myButton-${template}" id="exit"><a href="#" title="exit"><span>exit</span></a></li>
<li class="myButton-${template}" id="one"><a href="#" title="one"><span>one</span></a></li>
<li class="myButton-${template}" id="two"><a href="#" title="two"><span>two</span></a></li>
<li class="myButton-${template}" id="three"><a href="#" title="three"><span>three</span></a></li>
<li class="myButton-${template}" id="four"><a href="#" title="four"><span>four</span></a></li>
<li class="myButton-${template}" id="five"><a href="#" title="five"><span>five</span></a></li>
<li class="myButton-${template}" id="six"><a href="#" title="six"><span>six</span></a></li>
<li class="myButton-${template}" id="seven"><a href="#" title="seven"><span>seven</span></a></li>
<li class="myButton-${template}" id="eight"><a href="#" title="eight"><span>eight</span></a></li>
<li class="myButton-${template}" id="nine"><a href="#" title="nine"><span>nine</span></a></li>
<li class="myButton-${template}" id="zero"><a href="#" title="zero"><span>zero</span></a></li>
<li class="myButton-${template}" id="netflix"><a href="#" title="netflix"><span>netflix</span></a></li>
<li class="myButton-${template}" id="amazon"><a href="#" title="amazon"><span>amazon</span></a></li>
<li class="myButton-${template}" id="channelup"><a href="#" title="channel up"><span>channelup</span></a></li>
<li class="myButton-${template}" id="channeldown"><a href="#" title="channel down"><span>channeldown</span></a></li>
<li class="myButton-${template}" id="microphone"><a href="#" title="microphone"><span>microphone</span></a></li>
<li class="myButton-${template}" id="settings"><a href="#" title="settings"><span>settings</span></a></li>
<li class="myButton-${template}" id="menu"><a href="#" title="Menu"><span>Menu</span></a></li>
<li class="myButton-${template}" id="back"><a href="#" title="Go back"><span>back</span></a></li>
<li class="myButton-${template}" id="left"><a href="#" title="Left"><span>Left</span></a></li>
<li class="myButton-${template}" id="right"><a href="#" title="right"><span>right</span></a></li>
<li class="myButton-${template}" id="top"><a href="#" title="Top"><span>Top</span></a></li>
<li class="myButton-${template}" id="bottom"><a href="#" title="Bottom"><span>Bottom</span></a></li>
<li class="myButton-${template}" id="ok"><a href="#" title="OK"><span>OK</span></a></li>
</ul>
</div>
</div>
Expand Down
Loading

0 comments on commit 99ca32f

Please sign in to comment.