Skip to content

Add license information for LibreJS compatibility. #257

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 6, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions gh-pages-files/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ footer h5 { font-size:74px; margin-bottom:60px; color:#00bed5; text-transform:up
footer p { font-family:amatic_scregular, sans-serif; font-size:32px; text-transform:uppercase; letter-spacing:2px; }
footer img { display:inline-block; }
footer a { text-decoration:underline; color:#000; }
footer small { display: inline-block; margin-top: 20px; font-family:roboto, sans-serif; font-size: 11px; text-transform: none; }

@media screen and (max-width: 1199px) {

Expand Down Expand Up @@ -161,3 +162,4 @@ footer a { text-decoration:underline; color:#000; }
}

}

330 changes: 167 additions & 163 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,28 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8" name="viewport" content="width=device-width, initial-scale=1" />
<title>Angular Schema Form</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/styles/railscasts.min.css">
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/jquery.slick/1.4.0/slick.css"/>
<link href='http://fonts.googleapis.com/css?family=Roboto:400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="gh-pages-files/index.css">

<!-- @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt Expat -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css"/>
<!-- @license-end -->

<!-- @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt Expat -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/styles/railscasts.min.css"/>
<!-- @license-end -->

<!-- @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt Expat -->
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/jquery.slick/1.4.0/slick.css"/>
<!-- @license-end -->

<!-- @license magnet:?xt=urn:btih:8e4f440f4c65981c5bf93c76d35135ba5064d8b7&dn=apache-2.0.txt Apache 2.0 -->
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto:400,700"/>
<!-- @license-end -->

<!-- @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt Expat -->
<link rel="stylesheet" href="gh-pages-files/index.css"/>
<!-- @license-end -->
</head>
<body ng-app="schemaForm" ng-controller="PageCtrl">
<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>
Expand Down Expand Up @@ -73,7 +87,7 @@ <h2>What is it?</h2>
Bootstrap 3 ready forms from a JSON Schema.
</p>
<p><a href="https://twitter.com/ngSchemaForm" class="twitter-follow-button" data-show-count="false">Follow @ngSchemaForm</a>
<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>
<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>
</div>
</div>
</div>
Expand Down Expand Up @@ -154,7 +168,7 @@ <h5>Check out<br/>the demo<br/>page for more<br/>examples</h5>
<img src="gh-pages-files/img/arrow.png" alt="" />
</div>
<div class="col-sm-5 col-xs-6 batton">
<a href="http://textalk.github.io/angular-schema-form/examples/bootstrap-example.html" class="btn">Demo</a>
<a href="https://textalk.github.io/angular-schema-form/examples/bootstrap-example.html" class="btn">Demo</a>
</div>
</div>
</div>
Expand Down Expand Up @@ -205,175 +219,165 @@ <h2>Third Party Add-ons ({{::addons.length}})</h2>
<span class="badge"><span class="glyphicon glyphicon-star" aria-hidden="true"></span> {{::addon.stars}}</span>
<a href="{{::addon.website}}">
<h3>{{::addon.name}}</h2>
<p ng-class="{nodesc: !addon.description}">{{::addon.description || "No description"}}&nbsp;</p>
<p><span>{{::addon.owner}} •</span> <span class="date">Created {{addon.created | momentify}} / Updated {{addon.updated | momentify}}.</span></p>
<p ng-class="{nodesc: !addon.description}">{{::addon.description || "No description"}}&nbsp;</p>
<p><span>{{::addon.owner}} •</span> <span class="date">Created {{addon.created | momentify}} / Updated {{addon.updated | momentify}}.</span></p>
</a>
</li>
</ul>
</div>
<footer>
<div class="container">
<h5>Thank you & good bye!</h5>
<p>Made with <img src="gh-pages-files/img/icon-heart.png" alt=""/> by <a href="http://textalk.se">Textalk</a>.</p></footer>

<script src="//code.jquery.com/jquery-1.11.2.min.js"></script>
<script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>

<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/highlight.min.js"></script>

<script type="text/javascript" src="bower_components/tv4/tv4.js"></script>
<script type="text/javascript" src="bower_components/angular/angular.min.js"></script>
<script type="text/javascript" src="bower_components/angular-sanitize/angular-sanitize.min.js"></script>
<script type="text/javascript" src="bower_components/objectpath/lib/ObjectPath.js"></script>
<script type="text/javascript" src="bower_components/moment/moment.js"></script>
<script type="text/javascript" src="dist/schema-form.min.js"></script>
<script type="text/javascript" src="dist/bootstrap-decorator.min.js"></script>

<script type="text/javascript" src="//cdn.jsdelivr.net/jquery.slick/1.4.0/slick.min.js"></script>

<script>
$(document).ready(function(){
$('.slide-a-long').slick({
autoplaySpeed: 5000,
dots: false,
arrows: false,
pauseOnHover: false,
autoplay: true
});
<p>Made with <img src="gh-pages-files/img/icon-heart.png" alt=""/> by <a href="http://textalk.se">Textalk</a>.</p>
<p><small><a href="jslicense.html" rel="jslicense">JavaScript license information</a></small>
</footer>

<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.2.min.js"></script>
<script type="text/javascript" src="https://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/highlight.min.js"></script>
<script type="text/javascript" src="bower_components/tv4/tv4.js"></script>
<script type="text/javascript" src="bower_components/angular/angular.min.js"></script>
<script type="text/javascript" src="bower_components/angular-sanitize/angular-sanitize.min.js"></script>
<script type="text/javascript" src="bower_components/objectpath/lib/ObjectPath.js"></script>
<script type="text/javascript" src="bower_components/moment/moment.js"></script>
<script type="text/javascript" src="dist/schema-form.min.js"></script>
<script type="text/javascript" src="dist/bootstrap-decorator.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/jquery.slick/1.4.0/slick.min.js"></script>

<script>
// @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt Expat
$(document).ready(function(){
$('.slide-a-long').slick({
autoplaySpeed: 5000,
dots: false,
arrows: false,
pauseOnHover: false,
autoplay: true
});
</script>

<script>

$(function() {
$('a[href*=#]:not([href=#])').click(function() {
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
var target = $(this.hash);
target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
if (target.length) {
$('html,body').animate({
scrollTop: target.offset().top
}, 1000);
return false;
});
// @license-end
</script>

<script>
// @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt Expat
$(function() {
$('a[href*=#]:not([href=#])').click(function() {
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
var target = $(this.hash);
target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
if (target.length) {
$('html,body').animate({
scrollTop: target.offset().top
}, 1000);
return false;
}
}
}
});
});
});
</script>

<script>
hljs.initHighlightingOnLoad();

/*
Actual usage of angular schema form code if you're looking for it.
*/
angular.module('schemaForm').controller('PageCtrl', function($scope, $http) {
$scope.schema = {
'type': 'object',
'title': 'Comment',
'properties': {
'name': {
'title': 'Name',
'type': 'string'
// @license-end
</script>

<script>
// @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt Expat
//
// Actual usage of angular schema form code if you're looking for it.
hljs.initHighlightingOnLoad();
angular.module('schemaForm').controller('PageCtrl', function($scope, $http) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is all of the code changed? Or at least why is it in the diff? It makes it very hard to see if you changed any code or not.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh did you use some kind of code formatter? It looks like a lot of empty lines have disappeared, that might be the problem.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I did some indentation cleaning, but I realize now that I shouldn't have done that. Too many different changes makes it harder for you to see exactly what I did. Those lines above that are marked as deleted should still exist in the file.

$scope.schema = {
'type': 'object',
'title': 'Comment',
'properties': {
'name': {
'title': 'Name',
'type': 'string'
},
'email': {
'title': 'Email',
'type': 'string',
'pattern': '^\\S+@\\S+$',
'description': 'Email will be used for evil.'
},
'comment': {
'title': 'Comment',
'type': 'string',
'maxLength': 20,
'validationMessage': 'Don\'t be greedy!'
}
},
'email': {
'title': 'Email',
'type': 'string',
'pattern': '^\\S+@\\S+$',
'description': 'Email will be used for evil.'
'required': ['name','email','comment']
};
$scope.form = [
'name',
'email',
{
'key': 'comment',
'type': 'textarea',
'placeholder': 'Make a comment'
},
'comment': {
'title': 'Comment',
'type': 'string',
'maxLength': 20,
'validationMessage': 'Don\'t be greedy!'
{
'type': 'submit',
'title': 'OK'
}
},
'required': ['name','email','comment']
};

$scope.form = [
'name',
'email',
{
'key': 'comment',
'type': 'textarea',
'placeholder': 'Make a comment'
},
{
'type': 'submit',
'title': 'OK'
];
$scope.obj = {};
$scope.obj.model = {
'name': 'Leeroy Jenkins',
'email': 'leeroy@palsforlife.com',
'comment': 'At least i have chicken.'
};
/*
Navigation for addons list.
*/
$scope.navigate = function($event, url) {
// Is this a ctrl click? Or right ot middle? then do nothing
if ($event.ctrlKey || $event.button !== 0) {
return;
}
$event.preventDefault();
$event.stopPropagation();
location.href = url;
};
/*
Code for getting addons. Uses a middle layer that caches the entire bower
repo list at 3MB+ and filters out out specific addons.
*/
if (window.XDomainRequest) {
// UGH, IE9 specific CORS solution.
var xdr = new XDomainRequest();
var foo = true;
xdr.open('get', 'https://s3-us-west-2.amazonaws.com/asf-addon/list.json');
xdr.onprogress = function() { foo = !foo; };
xdr.onload = function() { setData(xdr.responseText); $scope.$apply(); };
setTimeout(function() { xdr.send(); }, 0);
}
];

$scope.obj = {};

$scope.obj.model = {
'name': 'Leeroy Jenkins',
'email': 'leeroy@palsforlife.com',
'comment': 'At least i have chicken.'
};

/*
Navigation for addons list.
*/
$scope.navigate = function($event, url) {
// Is this a ctrl click? Or right ot middle? then do nothing
if ($event.ctrlKey || $event.button !== 0) {
return;
else {
// Regular old $http for sensible browsers.
$http.get('http://s3-us-west-2.amazonaws.com/asf-addon/list.json').then(function(res) {
setData(res.data);
});
}

$event.preventDefault();
$event.stopPropagation();

location.href = url;
};

/*
Code for getting addons. Uses a middle layer that caches the entire bower
repo list at 3MB+ and filters out out specific addons.
*/
if (window.XDomainRequest) {
// UGH, IE9 specific CORS solution.
var xdr = new XDomainRequest();
var foo = true;
xdr.open('get', 'http://s3-us-west-2.amazonaws.com/asf-addon/list.json');
xdr.onprogress = function() { foo = !foo; };
xdr.onload = function() { setData(xdr.responseText); $scope.$apply(); };
setTimeout(function() { xdr.send(); }, 0);
}
else {
// Regular old $http for sensible browsers.
$http.get('http://s3-us-west-2.amazonaws.com/asf-addon/list.json').then(function(res) {
setData(res.data);
});
}

/*
Function for displaying addons. Takes both data types.
*/
var setData = function(data) {
if (typeof(data) === 'string') { data = JSON.parse(data); }

angular.forEach(data, function(addon) {
addon.name = addon.name.split('angular-schema-form-').pop();
});

$scope.addons = data;

};

// Filter for nice json output.
}).filter('prettyjson', function() {
return function(input) {
return JSON.stringify(input, undefined, 2);
};
}).filter('momentify', function() {
return function(input) {
return moment(input).fromNow();
};
});
</script>
/*
Function for displaying addons. Takes both data types.
*/
var setData = function(data) {
if (typeof(data) === 'string') { data = JSON.parse(data); }
angular.forEach(data, function(addon) {
addon.name = addon.name.split('angular-schema-form-').pop();
});
$scope.addons = data;
};
// Filter for nice json output.
}).filter('prettyjson', function() {
return function(input) {
return JSON.stringify(input, undefined, 2);
};
}).filter('momentify', function() {
return function(input) {
return moment(input).fromNow();
};
});
// @license-end
</script>

</body>
</html>
Loading