From 4654244cd83c830be8ff1a17260a6c7902dae59b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Jastrz=C4=99bowski?= Date: Fri, 20 Dec 2013 00:27:35 +0100 Subject: [PATCH 1/7] first responsive version --- _includes/css/responsive.css | 179 +++++++++++++++++++++++++++++++++++ _includes/header.html | 1 + css/application.css | 2 + 3 files changed, 182 insertions(+) create mode 100644 _includes/css/responsive.css diff --git a/_includes/css/responsive.css b/_includes/css/responsive.css new file mode 100644 index 0000000..3383e34 --- /dev/null +++ b/_includes/css/responsive.css @@ -0,0 +1,179 @@ +/* iPads (landscape) ----------- */ +@media only screen and (max-width : 1050px) { + .container { + width: 100%; + padding: 0 20px; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + } + .triptych { + width: 100%; + } + .triptych li { + width: 33%; + margin-left: 0; + padding: 0 20px; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + } + .triptych h3 { + width: auto; + padding: 0 30px; + } + .home h2 { + line-height: 30px; + padding: 20px 100px; + position: relative; + } + .home h2 span { + position: absolute; + display: block; + float: left; + top: 50%; + margin-top: -22px; + } + .home h2 span:first-child { + left: 65px; + } + .home h2 span:last-child { + right: 65px; + } + .sidebar a.button { + margin: 14px 0 20px; + } + .license-body { + width: calc(100% - 250px); + } +} + +/* iPads (portrait) ----------- */ +@media only screen and (max-width : 800px), (max-device-width : 1050px) and (orientation : portrait) { + .triptych h3 { + width: auto; + padding: 0 10px; + margin-bottom: 10px; + } + .sidebar { + float: left; + width: 50%; + } + .license-body { + width: 100%; + } + .license-rules { + border-bottom: none; + } + .license-details { + width: 65%; + } +} + +/* Smartphones ----------- */ +@media only screen and (max-width : 680px) { + .triptych li { + float: none; + width: 100%; + margin-bottom: 50px; + } + .home h2 { + padding: 20px 70px; + } + .home h2 span:first-child { + left: 35px; + } + .home h2 span:last-child { + right: 35px; + } + .license-family { + margin-bottom: 20px; + } + .license-family-heading { + float: none; + width: 100%; + } + .license-details { + float: none; + width: 100%; + padding-left: 0; + } + .license-variations { + height: auto; + padding-top: 0; + } + .license-variations ul { + height: 31px; + } + .site-footer { + text-align: center; + } + .site-footer nav, .site-footer p, .with-love { + float: none; + } + .site-footer nav { + margin: 0 auto 10px; + } +} + +/* Smartphones (landscape) ----------- */ +@media only screen and (max-width : 481px) { + h1 { + font-size: 30px; + margin-bottom: 15px; + } + .home h1 { + font-size: 33px; + } + .home h2 { + font-size: 17px; + line-height: 20px; + padding: 20px 45px; + } + .home h2 span:first-child { + left: 0; + } + .home h2 span:last-child { + right: 0; + } + .home h2 span { + margin-top: -16px; + } + .sidebar { + width: 100%; + } + .license-body { + word-wrap: break-word; + } + .license-body pre { + font-size: 10px; + } + .license-rules:not(.license-rules-sidebar) li { + margin-right: 5px; + font-size: 10px; + -webkit-text-size-adjust: none; + } + .license-rules:not(.license-rules-sidebar) li span { + background-size: 44px; + width: 10px; + height: 10px; + top: 1px; + position: relative; + } + .license-rules:not(.license-rules-sidebar) .license-required span { + background-position: -34px 0; + } + .license-rules:not(.license-rules-sidebar) .license-permitted span { + background-position: -24px 0px; + } + .license-rules:not(.license-rules-sidebar) .license-forbidden span { + background-position: -14px 0; + } +} + +/* Smartphones (portrait) ----------- */ +@media only screen and (max-width : 321px) { + .container { + padding: 0 10px; + } +} diff --git a/_includes/header.html b/_includes/header.html index edeca62..c12a75d 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -11,6 +11,7 @@ +
diff --git a/css/application.css b/css/application.css index d267ecf..b66db2c 100644 --- a/css/application.css +++ b/css/application.css @@ -492,3 +492,5 @@ strong { } } + +{% include css/responsive.css %} From 7cb14ab9e00dff8d3ee45d5fb67c8f6fcf76fa01 Mon Sep 17 00:00:00 2001 From: Christian Bundy Date: Tue, 1 Sep 2015 16:28:18 -0700 Subject: [PATCH 2/7] Remove recommendation to add email address to ISC Remove non-canonical license and usage text from f89201c --- _licenses/isc.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_licenses/isc.txt b/_licenses/isc.txt index 5c2fb35..9fe8ff4 100644 --- a/_licenses/isc.txt +++ b/_licenses/isc.txt @@ -7,7 +7,7 @@ tab-slug: isc description: A permissive license lets people do anything with your code with proper attribution and without warranty. The ISC license is functionally equivalent to the BSD 2-Clause and MIT licenses, removing some language that is no longer necessary. -how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders. [email] is optional but recommended. +how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders. required: - include-copyright @@ -24,7 +24,7 @@ forbidden: --- -Copyright (c) [year], [fullname] <[email]> +Copyright (c) [year], [fullname] Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above From 369bf42e8cb405ea4accf42bbe8ad7235eaddf24 Mon Sep 17 00:00:00 2001 From: Brandon Keepers Date: Fri, 18 Sep 2015 14:45:34 -0400 Subject: [PATCH 3/7] Remove background image --- assets/css/application.scss | 1 - assets/img/bg.jpg | Bin 9316 -> 0 bytes 2 files changed, 1 deletion(-) delete mode 100644 assets/img/bg.jpg diff --git a/assets/css/application.scss b/assets/css/application.scss index 6fd558e..2250f8a 100644 --- a/assets/css/application.scss +++ b/assets/css/application.scss @@ -5,7 +5,6 @@ @import "jquery.qtip"; body { - background-image: url(../img/bg.jpg); color: #5c5855; font: 14px/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif; } diff --git a/assets/img/bg.jpg b/assets/img/bg.jpg deleted file mode 100644 index 2ba93c7e3b2ce452ff9dcc2238b46890ed8092ea..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 9316 zcmbt)WmH^Cw`~WP5Zo;L^AR2oPLCu%IvJ zeD~e^-p@DQsxfL;t-Wf^`ZMR)d#v@c{IUhWgUTw%0$#m(1(5$U0559*2mlr3k0Jjv zq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c{W-5HG3yI&e9!=D35vn z2Gujw%(}3o0g;7inCs`0Sgy98>$Y=7l3^~nJz@N%4{=->U$PY)^^C(o9f>ah8%gSk z5m87s^gCnjuQn>g_@*AX6Q`I!wri^2_BE2V6kyTcRJLLs{0-qnM zDR#n~c9#r&6j};19!&S8V*J6p;6lK_O4!DPMD~Gjgy#%$0>qvEI_J7Wh(w|8FFo)x z)JI^dnXQiAZ~V<;5RX}P%g-j}=yTiK zj2nv;QdFKF(N7KqROo8ieOeZ70FTNbzuH*z{(A2fc+(iu>?Dm^n0F>^$y5V4x@?b_ zshWK7OHaL}YkM${2DR_{nBg!E%pz*Z+O;Ukp4RCdanz_d)2U3V zf88F4s>Lm$r5r4xf$JCj@%W>TUKj5bdwz3&DHQ>v@U?G3-X-Lo1VC)-U4 zD1Dv({3EipeEWxKa$Ip?+bO&vmWIjnD&MX;Wi)f?b!zI*A}jZH@YMJI`5+3}NP;gn z9HI#LH@XQ-(i}=4j7u^R?UeFFBDE;I$j|KsAWyA3=Y+o3A3=+?yAW z8HyP{2NB^9F?@uS-#z1H9XdKQx~@!~zh3y6 zSwMEzK@(+A__?733Z{F|M1rpMYY1`pf$67|5QuM}ymC7Uq4#~_C(?^zIYu@DXc^m# zaw~f%@2a6+Dk)`ddUroJa?uchEXAmm+VaNZSg-C6d{7>f9gU+`2RK`(;s53O_kXJP|3u{<@6v?4to$$Udune0 From 71af5729773fb8f98d35711f224c023cbc95ad37 Mon Sep 17 00:00:00 2001 From: Brandon Keepers Date: Fri, 18 Sep 2015 14:45:55 -0400 Subject: [PATCH 4/7] monotone colors --- assets/css/application.scss | 48 ++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/assets/css/application.scss b/assets/css/application.scss index 2250f8a..9df220b 100644 --- a/assets/css/application.scss +++ b/assets/css/application.scss @@ -5,6 +5,7 @@ @import "jquery.qtip"; body { + background: #fafafa; color: #5c5855; font: 14px/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif; } @@ -20,7 +21,7 @@ a:hover { } h1, h2, h3, h5 { - color: #443a33; + color: #444; font-family: Chivo, "Helvetica Neue", Helvetica, Arial, serif; font-weight: 900; line-height: 1.1; @@ -58,7 +59,7 @@ ol, ul { padding: 0; margin: 0; list-style-type: none; } th, td { text-align: left; font-weight: normal; } strong { - color: #443b34; + color: #444; } .container { @@ -84,7 +85,7 @@ strong { } .home h2 span { - color: #e9e6e2; + color: #f1f1f1; font-size: 70px; padding: 0 5px; position: relative; @@ -172,11 +173,11 @@ strong { } .license-family-description { - color: #5c5855; + color: #555; } .license-rules { - border-bottom: solid 1px #d9d7d2; + border-bottom: solid 1px #ddd; font-size: 13px; line-height: 1.3; margin-bottom: 12px; @@ -202,7 +203,7 @@ strong { -webkit-box-sizing: content-box; -moz-box-sizing: content-box; box-sizing: content-box; - border-right: solid 1px #d9d7d2; + border-right: solid 1px #ddd; padding-left: 0; width: 280px; } @@ -230,7 +231,7 @@ strong { } .license-rules li:hover { - color: #443a33; + color: #444; } .license-sprite { @@ -259,8 +260,7 @@ strong { font-family: Consolas, Monaco, Courier, monospace; font-size: 14px; background-color: #fff; - background-color: rgba(255, 255, 255, 0.8); - border: 1px solid #e9e6e1; + border: 1px solid #eee; -webkit-border-radius: 3px; -moz-border-radius: 3px; -ms-border-radius: 3px; @@ -315,18 +315,18 @@ strong { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; - border-color: #ceccc9 #b6b4b1 #a6a4a2 #b6b4b1; + border-color: #ccc #bbb #aaa #bbb; border-style: solid; border-width: 1px; - color: #443b34; + color: #444; -webkit-box-shadow: rgba(0, 0, 0, 0.1) 0 2px 4px, rgba(255, 255, 255, 0.8) 0 1px 0 0 inset; -moz-box-shadow: rgba(0, 0, 0, 0.1) 0 2px 4px, rgba(255, 255, 255, 0.8) 0 1px 0 0 inset; box-shadow: rgba(0, 0, 0, 0.1) 0 2px 4px, rgba(255, 255, 255, 0.8) 0 1px 0 0 inset; - background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #e7e5e0), color-stop(100%, #d5d3cf)); - background-image: -webkit-linear-gradient(#e7e5e0, #d5d3cf); - background-image: -moz-linear-gradient(#e7e5e0, #d5d3cf); - background-image: -o-linear-gradient(#e7e5e0, #d5d3cf); - background-image: linear-gradient(#e7e5e0, #d5d3cf); + background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #eee), color-stop(100%, #ddd)); + background-image: -webkit-linear-gradient(#eee, #ddd); + background-image: -moz-linear-gradient(#eee, #ddd); + background-image: -o-linear-gradient(#eee, #ddd); + background-image: linear-gradient(#eee, #ddd); display: inline-block; font-size: 12px; font-weight: normal; @@ -337,11 +337,11 @@ strong { .button:hover { text-decoration: none; - background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #e7e5e0), color-stop(100%, #d0ceca)); - background-image: -webkit-linear-gradient(#e7e5e0, #d0ceca); - background-image: -moz-linear-gradient(#e7e5e0, #d0ceca); - background-image: -o-linear-gradient(#e7e5e0, #d0ceca); - background-image: linear-gradient(#e7e5e0, #d0ceca); + background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #eee), color-stop(100%, #ccc)); + background-image: -webkit-linear-gradient(#eee, #ccc); + background-image: -moz-linear-gradient(#eee, #ccc); + background-image: -o-linear-gradient(#eee, #ccc); + background-image: linear-gradient(#eee, #ccc); } .projects-with-license li { @@ -349,17 +349,17 @@ strong { } .site-footer { - border-top: 1px solid #e9e6e1; + border-top: 1px solid #eee; margin-top: 30px; padding-top: 20px; - color: #5c5855; + color: #555; font-size: 12px; text-align: left; line-height: 1.5; } .site-footer a { - color: #443a33; + color: #444; font-weight: normal; } From 8d63ba64f8ac51e834477897c5ce5af31ce14f44 Mon Sep 17 00:00:00 2001 From: Brandon Keepers Date: Sat, 19 Sep 2015 22:46:18 -0400 Subject: [PATCH 5/7] Remove flash detection Accurate flash detection is a little more complicated than this. The current code causes an error on IE 10. This removes the attempt to detect if flash is available. Instead, it attempts to initialize ZeroClipboard and sets up the fallback. ZeroClipboard will be a no-op if flash is not available, in which case the fallback will already be configured. If flash is available, it will put a flash object over the button and the fallback will never get called. --- assets/js/app.coffee | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/assets/js/app.coffee b/assets/js/app.coffee index 37ec371..2955269 100644 --- a/assets/js/app.coffee +++ b/assets/js/app.coffee @@ -2,14 +2,6 @@ --- class Choosealicense - - # Checks if Flash is available in the client. - flashAvailable: -> - if ActiveXObject? - !!(new ActiveXObject("ShockwaveFlash.ShockwaveFlash")) - else - !!navigator.mimeTypes["application/x-shockwave-flash"] - # Selects the content of a given element selectText: (element) -> if document.body.createTextRange @@ -63,7 +55,7 @@ class Choosealicense false # Initializes ZeroClipboard - initZeroClipboard: -> + initClipboard: -> # Backup the clipboard button's original text. $(".js-clipboard-button").data "clipboard-prompt", $(".js-clipboard-button").text() @@ -72,22 +64,12 @@ class Choosealicense moviePath: "/assets/vendor/zeroclipboard/ZeroClipboard.swf" clip.on "mouseout", @clipboardMouseout clip.on "complete", @clipboardComplete - clip - # Initializes an alternative way to copy the license for non-flash compatible - # browsers - initAlternativeClipboard: -> + # Fallback if flash is not available $(".js-clipboard-button").click (e) => target = "#" + $(e.target).data("clipboard-target") @selectText $(target)[0] - # if Zero Clipboard is present, bind to button and init - initClipboard: -> - if ZeroClipboard? && @flashAvailable() - @initZeroClipboard() - else - @initAlternativeClipboard() - # Callback to restore the clipboard button's original text clipboardMouseout: (client, args) -> @textContent = $(this).data("clipboard-prompt") From 76eebea56ec833b8b7fec347767921608fb5dcd3 Mon Sep 17 00:00:00 2001 From: Ben Balter Date: Fri, 25 Sep 2015 11:29:03 -0400 Subject: [PATCH 6/7] add AFL --- _licenses/afl-3.0.txt | 67 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 _licenses/afl-3.0.txt diff --git a/_licenses/afl-3.0.txt b/_licenses/afl-3.0.txt new file mode 100644 index 0000000..aa7b3d7 --- /dev/null +++ b/_licenses/afl-3.0.txt @@ -0,0 +1,67 @@ +--- +title: Academic Free License v3.0 +source: http://opensource.org/licenses/afl-3.0 + +description: +hidden: true + +how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Files licensed under OSL 3.0 must also include the notice "Licensed under the Academic Free License version 3.0" adjacent to the copyright notice. + +required: + - include-copyright + +permitted: + - commercial-use + - modifications + - distribution + - sublicense + - private-use + - patent-grant + +forbidden: + - trademark-use + +--- +Academic Free License (“AFL”) v. 3.0 + +This Academic Free License (the "License") applies to any original work of authorship (the "Original Work") whose owner (the "Licensor") has placed the following licensing notice adjacent to the copyright notice for the Original Work: + +Licensed under the Academic Free License version 3.0 + +1) Grant of Copyright License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, for the duration of the copyright, to do the following: + + a) to reproduce the Original Work in copies, either alone or as part of a collective work; + b) to translate, adapt, alter, transform, modify, or arrange the Original Work, thereby creating derivative works ("Derivative Works") based upon the Original Work; + c) to distribute or communicate copies of the Original Work and Derivative Works to the public, under any license of your choice that does not contradict the terms and conditions, including Licensor’s reserved rights and remedies, in this Academic Free License; + d) to perform the Original Work publicly; and + e) to display the Original Work publicly. + +2) Grant of Patent License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, under patent claims owned or controlled by the Licensor that are embodied in the Original Work as furnished by the Licensor, for the duration of the patents, to make, use, sell, offer for sale, have made, and import the Original Work and Derivative Works. + +3) Grant of Source Code License. The term "Source Code" means the preferred form of the Original Work for making modifications to it and all available documentation describing how to modify the Original Work. Licensor agrees to provide a machine-readable copy of the Source Code of the Original Work along with each copy of the Original Work that Licensor distributes. Licensor reserves the right to satisfy this obligation by placing a machine-readable copy of the Source Code in an information repository reasonably calculated to permit inexpensive and convenient access by You for as long as Licensor continues to distribute the Original Work. + +4) Exclusions From License Grant. Neither the names of Licensor, nor the names of any contributors to the Original Work, nor any of their trademarks or service marks, may be used to endorse or promote products derived from this Original Work without express prior permission of the Licensor. Except as expressly stated herein, nothing in this License grants any license to Licensor’s trademarks, copyrights, patents, trade secrets or any other intellectual property. No patent license is granted to make, use, sell, offer for sale, have made, or import embodiments of any patent claims other than the licensed claims defined in Section 2. No license is granted to the trademarks of Licensor even if such marks are included in the Original Work. Nothing in this License shall be interpreted to prohibit Licensor from licensing under terms different from this License any Original Work that Licensor otherwise would have a right to license. + +5) External Deployment. The term "External Deployment" means the use, distribution, or communication of the Original Work or Derivative Works in any way such that the Original Work or Derivative Works may be used by anyone other than You, whether those works are distributed or communicated to those persons or made available as an application intended for use over a network. As an express condition for the grants of license hereunder, You must treat any External Deployment by You of the Original Work or a Derivative Work as a distribution under section 1(c). + +6) Attribution Rights. You must retain, in the Source Code of any Derivative Works that You create, all copyright, patent, or trademark notices from the Source Code of the Original Work, as well as any notices of licensing and any descriptive text identified therein as an "Attribution Notice." You must cause the Source Code for any Derivative Works that You create to carry a prominent Attribution Notice reasonably calculated to inform recipients that You have modified the Original Work. + +7) Warranty of Provenance and Disclaimer of Warranty. Licensor warrants that the copyright in and to the Original Work and the patent rights granted herein by Licensor are owned by the Licensor or are sublicensed to You under the terms of this License with the permission of the contributor(s) of those copyrights and patent rights. Except as expressly stated in the immediately preceding sentence, the Original Work is provided under this License on an "AS IS" BASIS and WITHOUT WARRANTY, either express or implied, including, without limitation, the warranties of non-infringement, merchantability or fitness for a particular purpose. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL WORK IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential part of this License. No license to the Original Work is granted by this License except under this disclaimer. + +8) Limitation of Liability. Under no circumstances and under no legal theory, whether in tort (including negligence), contract, or otherwise, shall the Licensor be liable to anyone for any indirect, special, incidental, or consequential damages of any character arising as a result of this License or the use of the Original Work including, without limitation, damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses. This limitation of liability shall not apply to the extent applicable law prohibits such limitation. + +9) Acceptance and Termination. If, at any time, You expressly assented to this License, that assent indicates your clear and irrevocable acceptance of this License and all of its terms and conditions. If You distribute or communicate copies of the Original Work or a Derivative Work, You must make a reasonable effort under the circumstances to obtain the express assent of recipients to the terms of this License. This License conditions your rights to undertake the activities listed in Section 1, including your right to create Derivative Works based upon the Original Work, and doing so without honoring these terms and conditions is prohibited by copyright law and international treaty. Nothing in this License is intended to affect copyright exceptions and limitations (including “fair use” or “fair dealing”). This License shall terminate immediately and You may no longer exercise any of the rights granted to You by this License upon your failure to honor the conditions in Section 1(c). + +10) Termination for Patent Action. This License shall terminate automatically and You may no longer exercise any of the rights granted to You by this License as of the date You commence an action, including a cross-claim or counterclaim, against Licensor or any licensee alleging that the Original Work infringes a patent. This termination provision shall not apply for an action alleging patent infringement by combinations of the Original Work with other software or hardware. + +11) Jurisdiction, Venue and Governing Law. Any action or suit relating to this License may be brought only in the courts of a jurisdiction wherein the Licensor resides or in which Licensor conducts its primary business, and under the laws of that jurisdiction excluding its conflict-of-law provisions. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. Any use of the Original Work outside the scope of this License or after its termination shall be subject to the requirements and penalties of copyright or patent law in the appropriate jurisdiction. This section shall survive the termination of this License. + +12) Attorneys’ Fees. In any action to enforce the terms of this License or seeking damages relating thereto, the prevailing party shall be entitled to recover its costs and expenses, including, without limitation, reasonable attorneys' fees and costs incurred in connection with such action, including any appeal of such action. This section shall survive the termination of this License. + +13) Miscellaneous. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. + +14) Definition of "You" in This License. "You" throughout this License, whether in upper or lower case, means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with you. For purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. + +15) Right to Use. You may use the Original Work in all ways not otherwise restricted or conditioned by this License or by law, and Licensor promises not to interfere with or be responsible for such uses by You. + +16) Modification of This License. This License is Copyright © 2005 Lawrence Rosen. Permission is granted to copy, distribute, or communicate this License without modification. Nothing in this License permits You to modify this License as applied to the Original Work or to Derivative Works. However, You may modify the text of this License and copy, distribute or communicate your modified version (the "Modified License") and apply it to other original works of authorship subject to the following conditions: (i) You may not indicate in any way that your Modified License is the "Academic Free License" or "AFL" and you may not use those names in the name of your Modified License; (ii) You must replace the notice specified in the first paragraph above with the notice "Licensed under " or with a notice of your own that is not confusingly similar to the notice in this License; and (iii) You may not claim that your original works are open source software unless your Modified License has been approved by Open Source Initiative (OSI) and You comply with its license review and certification process. From 99fd6935455caf01bd662812e1739cbf2c772bbb Mon Sep 17 00:00:00 2001 From: Ben Balter Date: Fri, 25 Sep 2015 11:34:21 -0400 Subject: [PATCH 7/7] add description --- _licenses/afl-3.0.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/_licenses/afl-3.0.txt b/_licenses/afl-3.0.txt index aa7b3d7..ffcb243 100644 --- a/_licenses/afl-3.0.txt +++ b/_licenses/afl-3.0.txt @@ -2,7 +2,8 @@ title: Academic Free License v3.0 source: http://opensource.org/licenses/afl-3.0 -description: +description: The Academic Free License is a variant of the Open Source License that does not require that the source code of derivative works be disclosed. It contains explicit copyright and patent grants and reserves trademark rights in the author. + hidden: true how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Files licensed under OSL 3.0 must also include the notice "Licensed under the Academic Free License version 3.0" adjacent to the copyright notice. @@ -20,7 +21,8 @@ permitted: forbidden: - trademark-use - + - no-liability + --- Academic Free License (“AFL”) v. 3.0