-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
154 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,34 @@ | ||
<!doctype html> | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset=utf-8 /> | ||
<title> {% if page.title %} {{ page.title }} | {% endif %} CV</title> | ||
<link href="media/styles/reset.css" type="text/css" rel="stylesheet" media="all" /> | ||
<link href="media/styles/{{ site.style }}-screen.css" type="text/css" rel="stylesheet" media="screen"> | ||
<link href="media/styles/{{ site.style }}-print.css" type="text/css" rel="stylesheet" media="print"> | ||
</head> | ||
<body> | ||
<div id="main"> | ||
<div id="content"> | ||
{{ content }} | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>{% if page.title %} {{ page.title }} | {% endif %} CV</title> | ||
<link | ||
href="media/styles/reset.css" | ||
type="text/css" | ||
rel="stylesheet" | ||
media="all" | ||
/> | ||
<link | ||
href="media/styles/{{ site.style }}-screen.css" | ||
type="text/css" | ||
rel="stylesheet" | ||
media="screen" | ||
/> | ||
<link | ||
href="media/styles/{{ site.style }}-print.css" | ||
type="text/css" | ||
rel="stylesheet" | ||
media="print" | ||
/> | ||
</head> | ||
<body> | ||
<div id="main"> | ||
<div id="content">{{ content }}</div> | ||
<pre id="raw"></pre> | ||
</div> | ||
<pre id="raw"></pre> | ||
</div> | ||
</body> | ||
<script type="module" src="media/js/handle-keys.js"></script> | ||
<script type="module" src="media/js/handle-print.js"></script> | ||
</html> | ||
</body> | ||
<script type="module" src="media/js/handle-keys.js"></script> | ||
<script type="module" src="media/js/handle-print.js"></script> | ||
<script type="module" src="media/js/handle-hash.js"></script> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,60 @@ | ||
export const CHEAT_CODE = [ | ||
// konami code | ||
'ArrowUp', | ||
'ArrowUp', | ||
'ArrowDown', | ||
'ArrowDown', | ||
'ArrowLeft', | ||
'ArrowRight', | ||
'ArrowLeft', | ||
'ArrowRight', | ||
'b', | ||
'a' | ||
// konami code | ||
"ArrowUp", | ||
"ArrowUp", | ||
"ArrowDown", | ||
"ArrowDown", | ||
"ArrowLeft", | ||
"ArrowRight", | ||
"ArrowLeft", | ||
"ArrowRight", | ||
"b", | ||
"a", | ||
]; | ||
|
||
export const URL = 'https://raw.githubusercontent.com/jraleman/cv/master/index.md'; | ||
export const HOME_URL = 'https://jraleman.com'; | ||
export const URL = | ||
"https://raw.githubusercontent.com/jraleman/cv/master/index.md"; | ||
|
||
export const HOME_URL = "https://jraleman.com"; | ||
|
||
export const CV_COMPLETE = { | ||
titleSectionsIds: [ | ||
'experience', | ||
'education', | ||
'skills', | ||
'awards', | ||
'languages' | ||
], | ||
workExperienceIds: [ | ||
'opus1io_2024', | ||
'raisga_2023', | ||
'allurion_2021', | ||
'axiad_2020', | ||
'easyworking_2019', | ||
'opus1io_2019', | ||
'vemidoc_2018', | ||
'scarletbytes_2016', | ||
'courious_2017', | ||
'ulat_2015', | ||
'electricidadtotal_2011', | ||
], | ||
skillsIds: [ | ||
'skills_tech', | ||
'skills_soft', | ||
'skills_misc' | ||
] | ||
titleSectionsIds: [ | ||
"experience", | ||
"education", | ||
"skills", | ||
"awards", | ||
"languages", | ||
], | ||
workExperienceIds: [ | ||
"opus1io_2024", | ||
"raisga_2023", | ||
"allurion_2021", | ||
"axiad_2020", | ||
"easyworking_2019", | ||
"opus1io_2019", | ||
"vemidoc_2018", | ||
"scarletbytes_2016", | ||
"courious_2017", | ||
"ulat_2015", | ||
"electricidadtotal_2011", | ||
], | ||
skillsIds: ["skills_tech", "skills_soft", "skills_misc"], | ||
schoolIds: ["upc_2022", "42_2019", "ulat_2018", "ulat_2015", "amp_2014", "pas_2010"] | ||
}; | ||
|
||
export const FRONTEND_CV = { | ||
titleSectionsIds: [ | ||
'experience', | ||
'education', | ||
'skills', | ||
], | ||
workExperienceIds: [ | ||
'opus1io_2024', | ||
'raisga_2023', | ||
'allurion_2021', | ||
'axiad_2020', | ||
], | ||
skillsIds: [ | ||
'skills_tech', | ||
] | ||
} | ||
titleSectionsIds: ["experience", "education", "skills"], | ||
workExperienceIds: [ | ||
"opus1io_2024", | ||
"raisga_2023", | ||
"allurion_2021", | ||
"axiad_2020", | ||
], | ||
skillsIds: ["skills_tech"], | ||
schoolIds: ["upc_2022", "42_2019", "ulat_2018", "ulat_2015"] | ||
}; | ||
|
||
export const HREF_HASH = { | ||
"#all": CV_COMPLETE, | ||
"#fe": FRONTEND_CV, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { HREF_HASH } from "./constants.js"; | ||
import { hideSectionByTagName, findUniqueElements } from "./utils.js"; | ||
|
||
document.addEventListener("DOMContentLoaded", function () { | ||
const hash = window.location.hash; | ||
const content = HREF_HASH[hash]; | ||
if (content && content !== "#all") { | ||
findUniqueElements( | ||
HREF_HASH["#all"].workExperienceIds, | ||
content.workExperienceIds | ||
).map((id) => { | ||
hideSectionByTagName("h3", "h3", id); | ||
}); | ||
findUniqueElements( | ||
HREF_HASH["#all"].skillsIds, | ||
content.skillsIds | ||
).map((id) => { | ||
hideSectionByTagName("h3", "h3", id); | ||
}); | ||
findUniqueElements( | ||
HREF_HASH["#all"].schoolIds, | ||
content.schoolIds | ||
).map((id) => { | ||
hideSectionByTagName("div", "p", id); | ||
}); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters