-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
38 lines (32 loc) · 1.19 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" ng-app="app">
<head>
<meta charset="utf-8" />
<title>Test Harness</title>
<link rel="stylesheet" type="text/css" href="bower_components/bootstrap/dist/css/bootstrap.css" />
<script src="bower_components/jquery/dist/jquery.min.js" type="text/javascript"></script>
<script src="bower_components/angular/angular.min.js" type="text/javascript"></script>
<script src="bower_components/angular-bootstrap/ui-bootstrap.js"></script>
<script type="text/javascript" src="bower_components/angular-bootstrap/ui-bootstrap-tpls.js"></script>
<script src="preview.js" type="text/javascript"></script>
<style>
.fp-img-preview {
max-height: 100%;
max-width: 300px;
}
</style>
</head>
<body>
<div ng-controller="ctrl">
<span file-preview="test(file)">Upload</span>
</div>
<script type="text/javascript">
var app = angular.module('app', ['filePreviewer']);
app.controller('ctrl', function ($scope) {
$scope.test = function (file) {
console.log(file);
};
});
</script>
</body>
</html>