|
1 | 1 | <!doctype html>
|
2 | 2 | <html lang="en">
|
3 | 3 | <head>
|
4 |
| - <meta charset="utf-8"> |
5 |
| - <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 4 | + <meta charset="utf-8" name="viewport" content="width=device-width, initial-scale=1" /> |
6 | 5 | <title>Angular Schema Form</title>
|
7 |
| - <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css"> |
8 |
| - <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/styles/railscasts.min.css"> |
9 |
| - <link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/jquery.slick/1.4.0/slick.css"/> |
10 |
| - <link href='http://fonts.googleapis.com/css?family=Roboto:400,700' rel='stylesheet' type='text/css'> |
11 |
| - <link rel="stylesheet" href="gh-pages-files/index.css"> |
| 6 | + |
| 7 | + <!-- @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt Expat --> |
| 8 | + <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css"/> |
| 9 | + <!-- @license-end --> |
| 10 | + |
| 11 | + <!-- @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt Expat --> |
| 12 | + <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/styles/railscasts.min.css"/> |
| 13 | + <!-- @license-end --> |
| 14 | + |
| 15 | + <!-- @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt Expat --> |
| 16 | + <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/jquery.slick/1.4.0/slick.css"/> |
| 17 | + <!-- @license-end --> |
| 18 | + |
| 19 | + <!-- @license magnet:?xt=urn:btih:8e4f440f4c65981c5bf93c76d35135ba5064d8b7&dn=apache-2.0.txt Apache 2.0 --> |
| 20 | + <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto:400,700"/> |
| 21 | + <!-- @license-end --> |
| 22 | + |
| 23 | + <!-- @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt Expat --> |
| 24 | + <link rel="stylesheet" href="gh-pages-files/index.css"/> |
| 25 | + <!-- @license-end --> |
12 | 26 | </head>
|
13 | 27 | <body ng-app="schemaForm" ng-controller="PageCtrl">
|
14 | 28 | <a href="https://github.com/Textalk/angular-schema-form" class="github-banner hidden-xs"><img src="gh-pages-files/img/github-banner.png" alt=""/></a>
|
@@ -73,7 +87,7 @@ <h2>What is it?</h2>
|
73 | 87 | Bootstrap 3 ready forms from a JSON Schema.
|
74 | 88 | </p>
|
75 | 89 | <p><a href="https://twitter.com/ngSchemaForm" class="twitter-follow-button" data-show-count="false">Follow @ngSchemaForm</a>
|
76 |
| -<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script></p> |
| 90 | + <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^https:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script></p> |
77 | 91 | </div>
|
78 | 92 | </div>
|
79 | 93 | </div>
|
@@ -154,7 +168,7 @@ <h5>Check out<br/>the demo<br/>page for more<br/>examples</h5>
|
154 | 168 | <img src="gh-pages-files/img/arrow.png" alt="" />
|
155 | 169 | </div>
|
156 | 170 | <div class="col-sm-5 col-xs-6 batton">
|
157 |
| - <a href="http://textalk.github.io/angular-schema-form/examples/bootstrap-example.html" class="btn">Demo</a> |
| 171 | + <a href="https://textalk.github.io/angular-schema-form/examples/bootstrap-example.html" class="btn">Demo</a> |
158 | 172 | </div>
|
159 | 173 | </div>
|
160 | 174 | </div>
|
@@ -205,175 +219,165 @@ <h2>Third Party Add-ons ({{::addons.length}})</h2>
|
205 | 219 | <span class="badge"><span class="glyphicon glyphicon-star" aria-hidden="true"></span> {{::addon.stars}}</span>
|
206 | 220 | <a href="{{::addon.website}}">
|
207 | 221 | <h3>{{::addon.name}}</h2>
|
208 |
| - <p ng-class="{nodesc: !addon.description}">{{::addon.description || "No description"}} </p> |
209 |
| - <p><span>{{::addon.owner}} •</span> <span class="date">Created {{addon.created | momentify}} / Updated {{addon.updated | momentify}}.</span></p> |
| 222 | + <p ng-class="{nodesc: !addon.description}">{{::addon.description || "No description"}} </p> |
| 223 | + <p><span>{{::addon.owner}} •</span> <span class="date">Created {{addon.created | momentify}} / Updated {{addon.updated | momentify}}.</span></p> |
210 | 224 | </a>
|
211 | 225 | </li>
|
212 | 226 | </ul>
|
213 | 227 | </div>
|
214 | 228 | <footer>
|
215 | 229 | <div class="container">
|
216 | 230 | <h5>Thank you & good bye!</h5>
|
217 |
| - <p>Made with <img src="gh-pages-files/img/icon-heart.png" alt=""/> by <a href="http://textalk.se">Textalk</a>.</p></footer> |
218 |
| - |
219 |
| - <script src="//code.jquery.com/jquery-1.11.2.min.js"></script> |
220 |
| - <script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script> |
221 |
| - |
222 |
| - <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/highlight.min.js"></script> |
223 |
| - |
224 |
| - <script type="text/javascript" src="bower_components/tv4/tv4.js"></script> |
225 |
| - <script type="text/javascript" src="bower_components/angular/angular.min.js"></script> |
226 |
| - <script type="text/javascript" src="bower_components/angular-sanitize/angular-sanitize.min.js"></script> |
227 |
| - <script type="text/javascript" src="bower_components/objectpath/lib/ObjectPath.js"></script> |
228 |
| - <script type="text/javascript" src="bower_components/moment/moment.js"></script> |
229 |
| - <script type="text/javascript" src="dist/schema-form.min.js"></script> |
230 |
| - <script type="text/javascript" src="dist/bootstrap-decorator.min.js"></script> |
231 |
| - |
232 |
| - <script type="text/javascript" src="//cdn.jsdelivr.net/jquery.slick/1.4.0/slick.min.js"></script> |
233 |
| - |
234 |
| - <script> |
235 |
| - $(document).ready(function(){ |
236 |
| - $('.slide-a-long').slick({ |
237 |
| - autoplaySpeed: 5000, |
238 |
| - dots: false, |
239 |
| - arrows: false, |
240 |
| - pauseOnHover: false, |
241 |
| - autoplay: true |
242 |
| - }); |
| 231 | + <p>Made with <img src="gh-pages-files/img/icon-heart.png" alt=""/> by <a href="http://textalk.se">Textalk</a>.</p> |
| 232 | + <p><small><a href="jslicense.html" rel="jslicense">JavaScript license information</a></small> |
| 233 | + </footer> |
| 234 | + |
| 235 | + <script type="text/javascript" src="https://code.jquery.com/jquery-1.11.2.min.js"></script> |
| 236 | + <script type="text/javascript" src="https://code.jquery.com/jquery-migrate-1.2.1.min.js"></script> |
| 237 | + <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/highlight.min.js"></script> |
| 238 | + <script type="text/javascript" src="bower_components/tv4/tv4.js"></script> |
| 239 | + <script type="text/javascript" src="bower_components/angular/angular.min.js"></script> |
| 240 | + <script type="text/javascript" src="bower_components/angular-sanitize/angular-sanitize.min.js"></script> |
| 241 | + <script type="text/javascript" src="bower_components/objectpath/lib/ObjectPath.js"></script> |
| 242 | + <script type="text/javascript" src="bower_components/moment/moment.js"></script> |
| 243 | + <script type="text/javascript" src="dist/schema-form.min.js"></script> |
| 244 | + <script type="text/javascript" src="dist/bootstrap-decorator.min.js"></script> |
| 245 | + <script type="text/javascript" src="https://cdn.jsdelivr.net/jquery.slick/1.4.0/slick.min.js"></script> |
| 246 | + |
| 247 | + <script> |
| 248 | + // @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt Expat |
| 249 | + $(document).ready(function(){ |
| 250 | + $('.slide-a-long').slick({ |
| 251 | + autoplaySpeed: 5000, |
| 252 | + dots: false, |
| 253 | + arrows: false, |
| 254 | + pauseOnHover: false, |
| 255 | + autoplay: true |
243 | 256 | });
|
244 |
| -</script> |
245 |
| - |
246 |
| - <script> |
247 |
| - |
248 |
| - $(function() { |
249 |
| - $('a[href*=#]:not([href=#])').click(function() { |
250 |
| - if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { |
251 |
| - var target = $(this.hash); |
252 |
| - target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); |
253 |
| - if (target.length) { |
254 |
| - $('html,body').animate({ |
255 |
| - scrollTop: target.offset().top |
256 |
| - }, 1000); |
257 |
| - return false; |
| 257 | + }); |
| 258 | + // @license-end |
| 259 | + </script> |
| 260 | + |
| 261 | + <script> |
| 262 | + // @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt Expat |
| 263 | + $(function() { |
| 264 | + $('a[href*=#]:not([href=#])').click(function() { |
| 265 | + if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { |
| 266 | + var target = $(this.hash); |
| 267 | + target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); |
| 268 | + if (target.length) { |
| 269 | + $('html,body').animate({ |
| 270 | + scrollTop: target.offset().top |
| 271 | + }, 1000); |
| 272 | + return false; |
| 273 | + } |
258 | 274 | }
|
259 |
| - } |
| 275 | + }); |
260 | 276 | });
|
261 |
| - }); |
262 |
| -</script> |
263 |
| - |
264 |
| - <script> |
265 |
| -hljs.initHighlightingOnLoad(); |
266 |
| - |
267 |
| -/* |
268 |
| - Actual usage of angular schema form code if you're looking for it. |
269 |
| - */ |
270 |
| -angular.module('schemaForm').controller('PageCtrl', function($scope, $http) { |
271 |
| - $scope.schema = { |
272 |
| - 'type': 'object', |
273 |
| - 'title': 'Comment', |
274 |
| - 'properties': { |
275 |
| - 'name': { |
276 |
| - 'title': 'Name', |
277 |
| - 'type': 'string' |
| 277 | + // @license-end |
| 278 | + </script> |
| 279 | + |
| 280 | + <script> |
| 281 | + // @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt Expat |
| 282 | + // |
| 283 | + // Actual usage of angular schema form code if you're looking for it. |
| 284 | + hljs.initHighlightingOnLoad(); |
| 285 | + angular.module('schemaForm').controller('PageCtrl', function($scope, $http) { |
| 286 | + $scope.schema = { |
| 287 | + 'type': 'object', |
| 288 | + 'title': 'Comment', |
| 289 | + 'properties': { |
| 290 | + 'name': { |
| 291 | + 'title': 'Name', |
| 292 | + 'type': 'string' |
| 293 | + }, |
| 294 | + 'email': { |
| 295 | + 'title': 'Email', |
| 296 | + 'type': 'string', |
| 297 | + 'pattern': '^\\S+@\\S+$', |
| 298 | + 'description': 'Email will be used for evil.' |
| 299 | + }, |
| 300 | + 'comment': { |
| 301 | + 'title': 'Comment', |
| 302 | + 'type': 'string', |
| 303 | + 'maxLength': 20, |
| 304 | + 'validationMessage': 'Don\'t be greedy!' |
| 305 | + } |
278 | 306 | },
|
279 |
| - 'email': { |
280 |
| - 'title': 'Email', |
281 |
| - 'type': 'string', |
282 |
| - 'pattern': '^\\S+@\\S+$', |
283 |
| - 'description': 'Email will be used for evil.' |
| 307 | + 'required': ['name','email','comment'] |
| 308 | + }; |
| 309 | + $scope.form = [ |
| 310 | + 'name', |
| 311 | + 'email', |
| 312 | + { |
| 313 | + 'key': 'comment', |
| 314 | + 'type': 'textarea', |
| 315 | + 'placeholder': 'Make a comment' |
284 | 316 | },
|
285 |
| - 'comment': { |
286 |
| - 'title': 'Comment', |
287 |
| - 'type': 'string', |
288 |
| - 'maxLength': 20, |
289 |
| - 'validationMessage': 'Don\'t be greedy!' |
| 317 | + { |
| 318 | + 'type': 'submit', |
| 319 | + 'title': 'OK' |
290 | 320 | }
|
291 |
| - }, |
292 |
| - 'required': ['name','email','comment'] |
293 |
| - }; |
294 |
| - |
295 |
| - $scope.form = [ |
296 |
| - 'name', |
297 |
| - 'email', |
298 |
| - { |
299 |
| - 'key': 'comment', |
300 |
| - 'type': 'textarea', |
301 |
| - 'placeholder': 'Make a comment' |
302 |
| - }, |
303 |
| - { |
304 |
| - 'type': 'submit', |
305 |
| - 'title': 'OK' |
| 321 | + ]; |
| 322 | + $scope.obj = {}; |
| 323 | + $scope.obj.model = { |
| 324 | + 'name': 'Leeroy Jenkins', |
| 325 | + 'email': 'leeroy@palsforlife.com', |
| 326 | + 'comment': 'At least i have chicken.' |
| 327 | + }; |
| 328 | + /* |
| 329 | + Navigation for addons list. |
| 330 | + */ |
| 331 | + $scope.navigate = function($event, url) { |
| 332 | + // Is this a ctrl click? Or right ot middle? then do nothing |
| 333 | + if ($event.ctrlKey || $event.button !== 0) { |
| 334 | + return; |
| 335 | + } |
| 336 | + $event.preventDefault(); |
| 337 | + $event.stopPropagation(); |
| 338 | + location.href = url; |
| 339 | + }; |
| 340 | + /* |
| 341 | + Code for getting addons. Uses a middle layer that caches the entire bower |
| 342 | + repo list at 3MB+ and filters out out specific addons. |
| 343 | + */ |
| 344 | + if (window.XDomainRequest) { |
| 345 | + // UGH, IE9 specific CORS solution. |
| 346 | + var xdr = new XDomainRequest(); |
| 347 | + var foo = true; |
| 348 | + xdr.open('get', 'https://s3-us-west-2.amazonaws.com/asf-addon/list.json'); |
| 349 | + xdr.onprogress = function() { foo = !foo; }; |
| 350 | + xdr.onload = function() { setData(xdr.responseText); $scope.$apply(); }; |
| 351 | + setTimeout(function() { xdr.send(); }, 0); |
306 | 352 | }
|
307 |
| - ]; |
308 |
| - |
309 |
| - $scope.obj = {}; |
310 |
| - |
311 |
| - $scope.obj.model = { |
312 |
| - 'name': 'Leeroy Jenkins', |
313 |
| - 'email': 'leeroy@palsforlife.com', |
314 |
| - 'comment': 'At least i have chicken.' |
315 |
| - }; |
316 |
| - |
317 |
| - /* |
318 |
| - Navigation for addons list. |
319 |
| - */ |
320 |
| - $scope.navigate = function($event, url) { |
321 |
| - // Is this a ctrl click? Or right ot middle? then do nothing |
322 |
| - if ($event.ctrlKey || $event.button !== 0) { |
323 |
| - return; |
| 353 | + else { |
| 354 | + // Regular old $http for sensible browsers. |
| 355 | + $http.get('http://s3-us-west-2.amazonaws.com/asf-addon/list.json').then(function(res) { |
| 356 | + setData(res.data); |
| 357 | + }); |
324 | 358 | }
|
325 |
| - |
326 |
| - $event.preventDefault(); |
327 |
| - $event.stopPropagation(); |
328 |
| - |
329 |
| - location.href = url; |
330 |
| - }; |
331 |
| - |
332 |
| - /* |
333 |
| - Code for getting addons. Uses a middle layer that caches the entire bower |
334 |
| - repo list at 3MB+ and filters out out specific addons. |
335 |
| - */ |
336 |
| - if (window.XDomainRequest) { |
337 |
| - // UGH, IE9 specific CORS solution. |
338 |
| - var xdr = new XDomainRequest(); |
339 |
| - var foo = true; |
340 |
| - xdr.open('get', 'http://s3-us-west-2.amazonaws.com/asf-addon/list.json'); |
341 |
| - xdr.onprogress = function() { foo = !foo; }; |
342 |
| - xdr.onload = function() { setData(xdr.responseText); $scope.$apply(); }; |
343 |
| - setTimeout(function() { xdr.send(); }, 0); |
344 |
| - } |
345 |
| - else { |
346 |
| - // Regular old $http for sensible browsers. |
347 |
| - $http.get('http://s3-us-west-2.amazonaws.com/asf-addon/list.json').then(function(res) { |
348 |
| - setData(res.data); |
349 |
| - }); |
350 |
| - } |
351 |
| - |
352 |
| - /* |
353 |
| - Function for displaying addons. Takes both data types. |
354 |
| - */ |
355 |
| - var setData = function(data) { |
356 |
| - if (typeof(data) === 'string') { data = JSON.parse(data); } |
357 |
| - |
358 |
| - angular.forEach(data, function(addon) { |
359 |
| - addon.name = addon.name.split('angular-schema-form-').pop(); |
360 |
| - }); |
361 |
| - |
362 |
| - $scope.addons = data; |
363 |
| - |
364 |
| - }; |
365 |
| - |
366 |
| - // Filter for nice json output. |
367 |
| - }).filter('prettyjson', function() { |
368 |
| - return function(input) { |
369 |
| - return JSON.stringify(input, undefined, 2); |
370 |
| - }; |
371 |
| - }).filter('momentify', function() { |
372 |
| - return function(input) { |
373 |
| - return moment(input).fromNow(); |
374 |
| - }; |
375 |
| - }); |
376 |
| -</script> |
| 359 | + /* |
| 360 | + Function for displaying addons. Takes both data types. |
| 361 | + */ |
| 362 | + var setData = function(data) { |
| 363 | + if (typeof(data) === 'string') { data = JSON.parse(data); } |
| 364 | + angular.forEach(data, function(addon) { |
| 365 | + addon.name = addon.name.split('angular-schema-form-').pop(); |
| 366 | + }); |
| 367 | + $scope.addons = data; |
| 368 | + }; |
| 369 | + // Filter for nice json output. |
| 370 | + }).filter('prettyjson', function() { |
| 371 | + return function(input) { |
| 372 | + return JSON.stringify(input, undefined, 2); |
| 373 | + }; |
| 374 | + }).filter('momentify', function() { |
| 375 | + return function(input) { |
| 376 | + return moment(input).fromNow(); |
| 377 | + }; |
| 378 | + }); |
| 379 | + // @license-end |
| 380 | + </script> |
377 | 381 |
|
378 | 382 | </body>
|
379 | 383 | </html>
|
0 commit comments