mas sexy aun!

This commit is contained in:
Daniel Cortés
2019-10-14 21:19:56 -03:00
parent 01c7a4492b
commit 45a441bb2c
7 changed files with 76 additions and 15 deletions

7
resources/js/app.js vendored
View File

@@ -1,3 +1,4 @@
// Highlight links if in his page
switch(window.location.pathname){
case "/":
document.getElementById("title-link").classList.add("pure-menu-highlight");
@@ -16,3 +17,9 @@ switch(window.location.pathname){
document.getElementById("setup-link").classList.add("pure-menu-highlight");
break;
}
// Makes all images clickeable
var images = document.getElementsByTagName("img");
for(i = 0; i < images.length; i++) {
images[i].onclick = (e) => { window.open(e.target.src, '_blank') }
}