Skip to content

Commit

Permalink
add license for js files
Browse files Browse the repository at this point in the history
  • Loading branch information
wenzeslaus committed Aug 20, 2014
1 parent 6775b5f commit d9c6cbb
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 1 deletion.
17 changes: 16 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,19 @@ Authors
License
-------

Creative Commons Attribution-ShareAlike 4.0 International License
The workshop text and images:

* Creative Commons Attribution-ShareAlike 4.0 International License

JavaScript code for tabs and other things:

* BSD 2-Clause License

Some other content is included too:

* jQuery library (MIT license)
* higlight.js (BSD 3-Clause License)
* GRASS GIS CSS file
* Python and CC logos

See specific files for thier licenses.
25 changes: 25 additions & 0 deletions codetabs.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
/*
Copyright (c) 2014, Vaclav Petras, NCSU OSGeoREL
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

.tabs-menu {
height: 25px;
Expand Down
28 changes: 28 additions & 0 deletions codetabs.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
/*
Copyright (c) 2014, Vaclav Petras, NCSU OSGeoREL
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

/*
TODO:
Expand Down Expand Up @@ -527,6 +553,8 @@ $(document).ready(function() {
// problem here is that we have no idea what we are matching
// and it can be even an URL inside some element attribute
// but we probably cannot avoid html() by simple text()
// the same applies also to pre code once some HTML is used there
// which is the case of standard text put to pre for GUI tab
$(this).html($(this).html().replace(/(^|[^a-zA-Z0-9_\/])([a-z]3?\.[a-zA-Z.0-9]+[a-zA-Z0-9])([^a-zA-Z0-9_\/]|$)/g, module_link_par_replacer));
});

Expand Down

0 comments on commit d9c6cbb

Please sign in to comment.