Skip to content

Commit

Permalink
Testando state
Browse files Browse the repository at this point in the history
  • Loading branch information
pedromuniz378 committed Oct 9, 2023
1 parent d1287df commit 745c02e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<div id="container">
<h1>Código gerado pela API</h1>
<p id="code"></p>
<p id="state"></p>
<p id="state">xsoamxpoams</p>
</div>

<script src="scripts.js"></script>
Expand Down
1 change: 1 addition & 0 deletions scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ function getParams() {
} else {
code.textContent = 'Sem informações!';
}

var state = document.getElementById("state");
if (params.get('state') != null) {
state.textContent = params.get('state');
Expand Down

0 comments on commit 745c02e

Please sign in to comment.