Skip to content

Commit

Permalink
Merge pull request #330 from neiesc/rfeature/replaceAll
Browse files Browse the repository at this point in the history
Feature/replace all
  • Loading branch information
neiesc authored Jun 20, 2020
2 parents eabe86f + 12afa1f commit ab968b0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
7 changes: 3 additions & 4 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,9 @@ <h4>Social Networks</h4>
<div id="particles-js"></div>

<% var template = require("html-loader!./shared/menu.html"); %> <%=
template
.replace('${homeActive}','class="uk-active"').replace('${homeActive}','class="uk-active"')
.replace('${palestrasActive}', '').replace('${palestrasActive}', '')
.replace('${podcastActive}', '').replace('${podcastActive}', '') %>
template .split('${homeActive}').join('class="uk-active"')
.split('${palestrasActive}').join('') .split('${podcastActive}').join('')
%>
</div>

<!-- scripts -->
Expand Down
7 changes: 3 additions & 4 deletions src/palestras/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,9 @@ <h3 class="uk-card-title">
<div id="particles-js"></div>

<% var template = require("html-loader!../shared/menu.html"); %> <%=
template .replace('${homeActive}','').replace('${homeActive}','')
.replace('${palestrasActive}',
'class="uk-active"').replace('${palestrasActive}', 'class="uk-active"')
.replace('${podcastActive}', '').replace('${podcastActive}', '') %>
template .split('${homeActive}').join('')
.split('${palestrasActive}').join('class="uk-active"')
.split('${podcastActive}').join('') %>
</div>

<!-- scripts -->
Expand Down
7 changes: 3 additions & 4 deletions src/podcasts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,9 @@ <h3 class="uk-card-title">Podcasts</h3>
<div id="particles-js"></div>

<% var template = require("html-loader!../shared/menu.html"); %> <%=
template .replace('${homeActive}','').replace('${homeActive}','')
.replace('${palestrasActive}', '').replace('${palestrasActive}', '')
.replace('${podcastActive}',
'class="uk-active"').replace('${podcastActive}', 'class="uk-active"') %>
template .split('${homeActive}').join('')
.split('${palestrasActive}').join('')
.split('${podcastActive}').join('class="uk-active"') %>
</div>

<!-- scripts -->
Expand Down

0 comments on commit ab968b0

Please sign in to comment.