This repository has been archived by the owner on Jun 28, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
index.html
95 lines (84 loc) · 3.76 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="A Demo page for angular-object-diff plugin.">
<meta name="author" content="Deepu KS (deepu.js.org)">
<meta name="twitter:site" content="@deepu105" />
<meta name="twitter:title" content="A Demo page for angular-object-diff plugin" />
<meta name="twitter:description" content="A Demo page for angular-object-diff plugin." />
<meta name="twitter:url" content="http://hipster-labs.js.org/angular-object-diff/" />
<title>Angular Object Diff Demo</title>
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" />
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/font-awesome/4.0.0/css/font-awesome.css" />
<link rel="stylesheet" href="dist/angular-object-diff.css" />
<style>
.error {
background-color: red;
}
</style>
</head>
<body>
<!-- Static navbar -->
<div class="navbar navbar-default navbar-static-top" role="navigation">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="#">Angular Object Diff</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="https://github.com/hipster-labs/angular-object-diff">Github</a></li>
</ul>
</div>
<!--/.nav-collapse -->
</div>
</div>
<div class="container-fluid" ng-app="demoApp">
<!-- content is injected here -->
<div ng-controller="DemoController">
<div class="row">
<div class="col-md-4 col-xs-12">
<label>Object A</label>
<textarea class="form-control" ng-class="[{'error': errorA}]" rows="15" ng-model="objectOne"></textarea>
</div>
<div class="col-md-4 col-xs-12">
<label>Object B</label>
<textarea class="form-control" ng-class="[{'error': errorB}]" rows="15" ng-model="objectTwo"></textarea>
</div>
<div class="col-md-4 col-xs-12">
<label>Full Diff</label>
<pre ng-bind-html="diffValue"></pre>
</div>
</div>
<div class="row">
<div class="col-md-4 col-xs-12">
<label>Object A JSON View</label>
<pre ng-bind-html="yourObjectOne | objToJsonView"></pre>
</div>
<div class="col-md-4 col-xs-12">
<label>Object B JSON View</label>
<pre ng-bind-html="yourObjectTwo | objToJsonView"></pre>
</div>
<div class="col-md-4 col-xs-12">
<label>Diff Changes only</label>
<pre ng-bind-html="diffValueChanges"></pre>
</div>
</div>
</div>
</div>
<!-- /container -->
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
<script src="angular-object-diff.js"></script>
<script src="demo.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-74370272-3', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>