Skip to content

Commit

Permalink
Merge pull request #7 from jdryg/cleanup
Browse files Browse the repository at this point in the history
Cleanup directive code
  • Loading branch information
jdryg committed Mar 31, 2015
2 parents 3f963d3 + 6936ca4 commit 7f303b2
Show file tree
Hide file tree
Showing 3 changed files with 842 additions and 778 deletions.
33 changes: 32 additions & 1 deletion css/angular-pdf-viewer.css
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,35 @@ pdf-viewer .page .annotLink > a {

pdf-viewer .page .annotLink > a:hover {
background-color: rgba(255, 255, 0, 0.25);
}
}

pdf-viewer .page .annotText > img {
position: absolute;
cursor: pointer;
}

pdf-viewer .page .annotTextContentWrapper {
position: absolute;
width: 20em;
}

pdf-viewer .page .annotTextContent {
z-index: 200;
float: left;
max-width: 20em;
background-color: #FFFF99;
box-shadow: 0px 2px 5px #333;
border-radius: 2px;
padding: 0.6em;
cursor: pointer;
}

pdf-viewer .page .annotTextContent > h1 {
font-size: 1em;
border-bottom: 1px solid #000000;
padding-bottom: 0.2em;
}

pdf-viewer .page .annotTextContent > p {
padding-top: 0.2em;
}
10 changes: 9 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<title>Angular PDF Viewer demo</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<link rel="stylesheet" href="css/normalize.css" />
<link rel="stylesheet" href="css/angular-pdf-viewer.css" />

Expand All @@ -18,6 +18,14 @@
<script src="js/angular-pdf-viewer.js"></script>
<script src="js/controllers.js"></script>
<script src="js/app.js"></script>

<script>
(function ConfigPDFJS(PDFJS) {
PDFJS.verbosity = PDFJS.VERBOSITY_LEVELS.errors;
PDFJS.imageResourcesPath = "/img/pdfjs/"; // For annotation icons
PDFJS.disableWorker = true;
})(PDFJS);
</script>
</head>

<body data-ng-app="DemoApp">
Expand Down
Loading

0 comments on commit 7f303b2

Please sign in to comment.