Skip to content

Commit ee5c4c1

Browse files
committed
make links open in a separate window
1 parent 35317d2 commit ee5c4c1

File tree

1 file changed

+27
-19
lines changed

1 file changed

+27
-19
lines changed

index.html

Lines changed: 27 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,26 @@ <h1 class="title">John Doe</h1>
5656
</button>
5757
</div>
5858
<div id="socials-container">
59-
<img
60-
src="./assets/linkedin.png"
61-
alt="My LinkedIn profile"
62-
class="icon"
63-
onclick="location.href='https://linkedin.com/'"
64-
/>
65-
<img
66-
src="./assets/github.png"
67-
alt="My Github profile"
68-
class="icon"
69-
onclick="location.href='https://github.com/'"
70-
/>
59+
<a
60+
href="https://linkedin.com/"
61+
target="_blank"
62+
>
63+
<img
64+
src="./assets/linkedin.png"
65+
alt="My LinkedIn profile"
66+
class="icon"
67+
/>
68+
</a>
69+
<a
70+
href="https://github.com/"
71+
target="_blank"
72+
>
73+
<img
74+
src="./assets/github.png"
75+
alt="My Github profile"
76+
class="icon"
77+
/>
78+
</a>
7179
</div>
7280
</div>
7381
</section>
@@ -273,13 +281,13 @@ <h2 class="experience-sub-title project-title">Project One</h2>
273281
<div class="btn-container">
274282
<button
275283
class="btn btn-color-2 project-btn"
276-
onclick="location.href='https://github.com/'"
284+
onclick="window.open('https://github.com/', '_blank')"
277285
>
278286
Github
279287
</button>
280288
<button
281289
class="btn btn-color-2 project-btn"
282-
onclick="location.href='https://github.com/'"
290+
onclick="window.open('https://github.com/', '_blank')"
283291
>
284292
Live Demo
285293
</button>
@@ -297,13 +305,13 @@ <h2 class="experience-sub-title project-title">Project Two</h2>
297305
<div class="btn-container">
298306
<button
299307
class="btn btn-color-2 project-btn"
300-
onclick="location.href='https://github.com/'"
308+
onclick="window.open('https://github.com/', '_blank')"
301309
>
302310
Github
303311
</button>
304312
<button
305313
class="btn btn-color-2 project-btn"
306-
onclick="location.href='https://github.com/'"
314+
onclick="window.open('https://github.com/', '_blank')"
307315
>
308316
Live Demo
309317
</button>
@@ -321,13 +329,13 @@ <h2 class="experience-sub-title project-title">Project Three</h2>
321329
<div class="btn-container">
322330
<button
323331
class="btn btn-color-2 project-btn"
324-
onclick="location.href='https://github.com/'"
332+
onclick="window.open('https://github.com/', '_blank')"
325333
>
326334
Github
327335
</button>
328336
<button
329337
class="btn btn-color-2 project-btn"
330-
onclick="location.href='https://github.com/'"
338+
onclick="window.open('https://github.com/', '_blank')"
331339
>
332340
Live Demo
333341
</button>
@@ -360,7 +368,7 @@ <h1 class="title">Contact Me</h1>
360368
alt="LinkedIn icon"
361369
class="icon contact-icon"
362370
/>
363-
<p><a href="https://www.linkedin.com">LinkedIn</a></p>
371+
<p><a href="https://www.linkedin.com" target="_blank">LinkedIn</a></p>
364372
</div>
365373
</div>
366374
</section>

0 commit comments

Comments
 (0)