-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
97 lines (93 loc) · 3.62 KB
/
index.html
File metadata and controls
97 lines (93 loc) · 3.62 KB
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
96
97
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv='cache-control' content='no-cache'>
<title>jQueryCronParser - Example</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<style type="text/css">
body {
padding-top: 20px;
padding-bottom: 20px;
}
.jumbotron{
width: 80%;
margin: 0 auto 0 auto;
}
.container-fluid {
max-width: 1170px;
}
form {
margin: 10%;
}
.jumbotron .img-contain{
text-align: center;
width:60%;
margin: 0 auto 0 auto;
}
.show-hide {
-webkit-transition:all linear 0.5s;
transition:all linear 0.5s;
}
.show-hide.ng-hide {
opacity:0;
height: 0;
}
.show-hide.ng-show {
opacity:1;
}
</style>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container-fluid" ng-app="jqueryCronParserExampleApp" ng-controller="appController">
<div class="row">
<div class="col-md-12">
<div class="jumbotron">
<form role="form" method="post">
<div class="form-group show-hide" ng-hide="hide">
<label for="cron">Paste your cron file contents here then hit GO!</label>
<textarea class="form-control" id="input" name="cron" required ng-model="userCron" rows="20" cols="50"></textarea>
<br/>
<a class="btn btn-primary" ng-click="one()" id="go-button" ng-model="clicked">GO!</a>
</div>
<div class="form-display show-hide" ng-show="show">
<h2>The Output:</h2>
<table class="table table-striped" id="output">
<thead>
<tr>
<th>Command</th>
<th>Times</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
</div>
</div>
<script src="http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.20/angular.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.20/angular-animate.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script src="js/jQueryCronParser.js"></script>
<script type="text/javascript">
'use strict';
var exampleApp = angular.module('jqueryCronParserExampleApp',[
'ngAnimate'
]);
$('#go-button').jQueryCronParser('#input', '#output');
exampleApp.controller('appController', ['$scope', function($scope) {
$scope.one = function (){
$scope.hide = true;
$scope.show = true;
}
}]);
</script>
</body>
</html>