Skip to content

Commit d0a6854

Browse files
committed
Atualizando scriptButtons.js
1 parent 654c22e commit d0a6854

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,6 @@ <h6>Felipe Seabra</h6>
207207
integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy"
208208
crossorigin="anonymous"
209209
></script>
210-
<script src="script.js"></script>
210+
<script src="scriptButtons.js"></script>
211211
</body>
212212
</html>

projects.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,6 @@ <h6>Felipe Seabra</h6>
162162
crossorigin="anonymous"
163163
></script>
164164

165-
<script src="script.js"></script>
165+
<script src="scriptButtons.js"></script>
166166
</body>
167167
</html>

save.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,6 @@ <h6>Felipe Seabra</h6>
113113
crossorigin="anonymous"
114114
></script>
115115

116-
<script src="script.js"></script>
116+
<script src="scriptButtons.js"></script>
117117
</body>
118118
</html>

script.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

scriptButtons.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
const addLinkButton = (classe, link) => {
3+
const buttons = document.getElementsByClassName(classe);
4+
for (let button of buttons) {
5+
button.href = link;
6+
}
7+
}
8+
9+
addLinkButton('link-instagram', 'https://www.instagram.com/felipeseabradev/');
10+
addLinkButton('link-linkedin', 'https://www.linkedin.com/in/felipe-seabra/');
11+
addLinkButton('link-github', 'https://github.com/felipe-seabra');

0 commit comments

Comments
 (0)