-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
53 lines (50 loc) · 1.81 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!--
angular-paste © 2013 Varun Chatterji,
used under a Creative Commons Attribution-ShareAlike license:
http://creativecommons.org/licenses/by-sa/3.0/
Borrows ideas from:
https://github.com/mleibman/SlickGrid
-->
<html lang="en" ng-app="myApp">
<head>
<meta charset="utf-8">
<title>angular-paste</title>
<link rel="stylesheet" href="css/app.css">
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/css/bootstrap-combined.min.css" rel="stylesheet">
<style>
[ng\:cloak], [ng-cloak], .ng-cloak {
display: none;
}
</style>
</head>
<body>
<div ng-controller="PasteController" class="ng-scope">
<!--
After paste, scope variable specified by ng-model will contain raw pasted text
Scope variable specified by ng-array will contain an array of arrays of the
tabular data
-->
<angular-paste ng-model="rawPaste" ng-array="parsedPaste" ng-strategy="StrategyA()"/>
<table class="table table-striped table-bordered">
<tbody>
<tr ng-repeat="row in parsedPaste">
<td ng-repeat="col in row" class="ng-scope ng-binding">
{{col}}
</td>
</tr>
<tr ng-show="parsedPaste.length==0">
<td>Paste data from excel onto this page using Ctrl + V</td>
</tr>
</tbody>
</table>
</div>
<!-- In production use:
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.2/angular.min.js"></script>
-->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/js/bootstrap.min.js"></script>
<script src="lib/angular/angular.js"></script>
<script src="js/app.js"></script>
<script src="js/directives.js"></script>
</body>
</html>