-
Notifications
You must be signed in to change notification settings - Fork 10
/
playground.html
115 lines (102 loc) · 5.4 KB
/
playground.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta id="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, minimum-scale=1, user-scalable=no,minimal-ui" name="viewport">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="format-detection" content="telephone=no">
<title>Explosion Demo</title>
<link rel="stylesheet" href="./playground/css/bootstrap.min.css">
<link rel="stylesheet" href="./playground/css/bootstrap-theme.min.css">
<link rel="stylesheet" href="./playground/css/style.css">
<script src="lib/jquery-3.1.0.js"></script>
<script src="jquery.imgexplode.js"></script>
<!-- <script src="dist/jquery.imgexplode.min.js"></script>-->
<script src="lib/angular.min.js"></script>
<script src="playground/dist/playground.js"></script>
</head>
<body style="margin:0;text-align:center;" ng-app="app" ng-controller="RootController">
<a id="fork-ad" target="_blank" href="https://github.com/blackmiaool/jquery-image-explode"></a>
<div id="wrap">
<div class="left panel panel-default">
<div class="panel-heading">Effect</div>
<div class="preview-wrap">
<div class="preview" ng-click="explode()">
<img ng-style="{width:settings.imageWidth.value}" ng-src="{{settings.imageUrl.value}}" />
</div>
</div>
<div class="mode control">
<button ng-click="explode()" class="explode btn btn-danger">Explode</button>
<section ng-repeat="param in settings">
<div class="range-content" ng-if="param.type==='number'">
<header><span class="name" ng-bind="param.name"></span>(<span class="descr" ng-bind="param.title"></span>)</header>
<main>
<label ng-bind="param.value"></label>
<div class="input-wrap">
<input step="1" ng-model="param.value" type="range" max="{{param.max}}" min="{{param.min}}">
</div>
</main>
</div>
<div class="checkbox-content" ng-if="param.type==='boolean'">
<header><span class="name" ng-bind="param.name"></span>(<span class="descr" ng-bind="param.title"></span>)</header>
<main>
<div class="input-wrap">
<input ng-model="param.value" type="checkbox">
</div>
</main>
</div>
<div class="string-content" ng-if="param.type==='string'">
<header><span class="name" ng-bind="param.name"></span>(<span class="descr" ng-bind="param.title"></span>)</header>
<main>
<div class="input-wrap">
<input class="form-control" ng-model="param.value" type="text">
</div>
</main>
</div>
</section>
<div class="share">
<a ng-href="{{effectUrl.value}}" target="_blank"><span class="name" ng-bind="effectUrl.name"></span>(<span class="descr" ng-bind="effectUrl.title"></span>)</a>
<main>
<div class="input-wrap">
<textarea class="form-control" ng-model="effectUrl.value" type="text"></textarea>
</div>
</main>
</div>
<div class="Demo">
<header><span class="name" ng-bind="demo.name"></span>(<span class="descr" ng-bind="demo.title"></span>)</header>
<main>
<div class="input-wrap">
<textarea class="form-control" ng-model="demo.value" type="text"></textarea>
</div>
</main>
</div>
</div>
<div class="code"></div>
</div>
<div class="right panel panel-primary">
<div class="panel-heading">Params</div>
<div class="control panel-body">
<section ng-repeat="param in params">
<div class="range-content" ng-if="param.type==='number'">
<header><span class="name" ng-bind="param.name"></span>(<span class="descr" ng-bind="param.title"></span>)</header>
<main>
<label ng-bind="param.value"></label>
<div class="input-wrap">
<input ng-model="param.value" type="range" max="{{param.max}}" min="{{param.min}}">
</div>
</main>
</div>
<div class="checkbox-content" ng-if="param.type==='boolean'">
<header><span class="name" ng-bind="param.name"></span>(<span class="descr" ng-bind="param.title"></span>)</header>
<main>
<div class="input-wrap">
<input ng-model="param.value" type="checkbox">
</div>
</main>
</div>
</section>
</div>
</div>
</div>
</body>
</html>