Skip to content

Commit

Permalink
status image integrated for travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sayanee committed Jan 15, 2014
1 parent 591121b commit 76a51f2
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# angular-pdf
# angular-pdf ![Build Status](https://travis-ci.org/sayanee/angularjs-pdf.png)


>An [AngularJS](http://angularjs.org/) [directive](http://docs.angularjs.org/guide/directive) `ng-pdf` to display PDF files with [PDFJS](http://mozilla.github.io/pdf.js/).
Expand Down Expand Up @@ -30,8 +30,8 @@ Integrate PDF files right into web pages.
```
<script src="js/vendor/angularjs-pdf/dist/angular-pdf.js"></script>
```
```
1. include the directive as a dependency when defining the angular app:
```
Expand Down Expand Up @@ -74,13 +74,13 @@ Integrate PDF files right into web pages.
1. **Rotate clockwise**: Include the controls in the view file as defined in the attribute `template-url` and the initial class `rotate0`
```
<button ng-click="rotate()">90</span></button>
<button ng-click="rotate()">90</span></button>
...
<canvas id="pdf-canvas" class="rotate0"></canvas>
<canvas id="pdf-canvas" class="rotate0"></canvas>
```
include the css styles:
```
.rotate0 {-webkit-transform: rotate(0deg); transform: rotate(0deg); }
.rotate90 {-webkit-transform: rotate(90deg); transform: rotate(90deg); }
Expand All @@ -99,14 +99,14 @@ Integrate PDF files right into web pages.
...
</nav>
```
And include the relevant css styles as required:
```
.pdf-controls { width: 100%; display: block; background: #eee; padding: 1em;}
.fixed { position: fixed; top: 0; left: calc(50% - 480px); z-index: 100; width: 100%; padding: 1em; background: rgba(238, 238, 238,.9); width: 960px; }
```
1. open the file `index.html` with a web server
1. open the file `index.html` with a web server
##Requirements
Expand Down

0 comments on commit 76a51f2

Please sign in to comment.