Skip to content

[Feat][JS] Integrate ViewerJS onto Website to display PDF Resume #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 15 additions & 6 deletions assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -403,15 +403,24 @@ li {
padding: 0.3em;
}

.resume_view {
margin: 0 auto;
display: table;
padding-bottom: 6em;
height: 1250px;
width: 800px;
#resumepage-document {
padding: 3.5em;
}

#resumepage-iframe-wrapper {
position: relative;
height: 0;
overflow: hidden;
padding-bottom: 70.71%;
}

#resumepage-iframe-wrapper iframe {
position: absolute;
top:0;
left: 0;
width: 100%;
height: 100%;
}

/* ---------------------------- */

Expand Down
13 changes: 10 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,16 @@ <h3 class ="skill_item_title">Principles</h3>
<h2>Resume</h2>
</div>

<div class = "container">
<embed class = "resume_view"src="assets/docs/resume.pdf" />

<div id="resumepage-document">
<div class="container">
<div class="row">
<div id="resumepage-iframe-wrapper">
<iframe id="resume" src="/tools/viewerjs/#../../assets/docs/resume.pdf" frameborder="0" allowfullscreen webkitallowfullscreen></iframe>
</div>
</div>
</div>
</div>
</section>

<section id="contactpage">
Expand Down Expand Up @@ -189,8 +196,8 @@ <h3><i class ="fa fa-envelope"></i>&nbsp;Email: [email protected]</h3>
crossorigin="anonymous"></script>
<script src="assets/js/animatescroll.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"></script>
<!-- Latest compiled and minified JavaScript for Bootstrap -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>

<script src="assets/js/main.js"></script>

</body>
Expand Down
Loading