From 623bfae73e31890b3ea458ba6fbe17f81834e6d7 Mon Sep 17 00:00:00 2001 From: TGRRRR Date: Thu, 11 Apr 2024 18:55:17 +0300 Subject: [PATCH 01/32] Added a new page and basic interactivity --- advisor.html | 97 ++++++++++++++++++++++++++++++++++++++++++++++++++++ index.html | 19 ++++++++++ 2 files changed, 116 insertions(+) create mode 100644 advisor.html diff --git a/advisor.html b/advisor.html new file mode 100644 index 000000000..0e025fe6a --- /dev/null +++ b/advisor.html @@ -0,0 +1,97 @@ +--- +layout: default +title: License Advisor +permalink: /advisor/ +--- + +
+

This interactive quiz will help you find the open source license best suited for your project.

+ +
+

Do you prefer permissive or copyleft licenses?

+ + + +
+ + + +
+ + + + +
+ + +
+ {% include license-overview.html license-id="mit" %} +
+
+ {% include license-overview.html license-id="gpl-3.0" %} +
+
+ {% include license-overview.html license-id="apache-2.0" %} +
+ +
+ + + + \ No newline at end of file diff --git a/index.html b/index.html index b8d343a43..1616c685b 100644 --- a/index.html +++ b/index.html @@ -51,6 +51,25 @@

I care about sharing improvements.

+ + + + +

+ { + Want a personalized answer? Try License Advisor + } +

+ +

I want it simple and comprehensive answer!

+
+

+ The License Advisor is an interactive quiz that will give you the answer tailored to your needs +

+ + + +

{ What if none of these work for me? From 0ef01a4451732768ce730aaa6036c88997dae32d Mon Sep 17 00:00:00 2001 From: TGRRRR Date: Sat, 13 Apr 2024 11:06:12 +0300 Subject: [PATCH 02/32] Update --- advisor.html | 169 +++++++++++++++++++++++++++++++++------------------ 1 file changed, 109 insertions(+), 60 deletions(-) diff --git a/advisor.html b/advisor.html index 0e025fe6a..7a0d62fe7 100644 --- a/advisor.html +++ b/advisor.html @@ -5,80 +5,128 @@ ---
-

This interactive quiz will help you find the open source license best suited for your project.

+ +

Answer the following questions to find the open source license best suited for your project.

-

Do you prefer permissive or copyleft licenses?

- - - +
- - - -
- - - - -
- - -
- {% include license-overview.html license-id="mit" %} -
-
- {% include license-overview.html license-id="gpl-3.0" %} + + +
+ + + + + + +
-
- {% include license-overview.html license-id="apache-2.0" %} + + +
+ +
+ {% include license-overview.html license-id="mit" %} +
+
+ {% include license-overview.html license-id="gpl-3.0" %} +
+
+ {% include license-overview.html license-id="apache-2.0" %} +
+
+ {% include license-overview.html license-id="bsd-2-clause" %} +
+
+ {% include license-overview.html license-id="bsd-3-clause" %} +
+
+ {% include license-overview.html license-id="unlicense" %} +
-
+ + // Start the quiz + displayQuestion(); + + \ No newline at end of file +/* Additional styles can go here */ + From 0e491756e9852a1c90b0b3d14cb7fb0b927dcda9 Mon Sep 17 00:00:00 2001 From: TGRRRR Date: Sat, 13 Apr 2024 17:50:31 +0300 Subject: [PATCH 03/32] Properly working filters logic --- advisor.html | 187 +++++++++++++++------------------------------------ 1 file changed, 55 insertions(+), 132 deletions(-) diff --git a/advisor.html b/advisor.html index 7a0d62fe7..b95464d83 100644 --- a/advisor.html +++ b/advisor.html @@ -3,144 +3,67 @@ title: License Advisor permalink: /advisor/ --- - -
- - -

Answer the following questions to find the open source license best suited for your project.

-
- -
- - -
- - - + + + + + License Selector + + + +
+ + + + + + + + + + - -
- -
- -
- {% include license-overview.html license-id="mit" %} -
-
- {% include license-overview.html license-id="gpl-3.0" %} -
-
- {% include license-overview.html license-id="apache-2.0" %} -
-
- {% include license-overview.html license-id="bsd-2-clause" %} -
-
- {% include license-overview.html license-id="bsd-3-clause" %} -
-
- {% include license-overview.html license-id="unlicense" %} -
-
-
+ +
{% include license-overview.html license-id="mit" %}
+
{% include license-overview.html license-id="gpl-3.0" %}
+
{% include license-overview.html license-id="apache-2.0" %}
+
{% include license-overview.html license-id="bsd-2-clause" %}
+
{% include license-overview.html license-id="bsd-3-clause" %}
+
{% include license-overview.html license-id="unlicense" %}
- - + + + From 759d06cf654f08984f195e57870516e1863b3eac Mon Sep 17 00:00:00 2001 From: TGRRRR Date: Sun, 14 Apr 2024 15:37:30 +0300 Subject: [PATCH 04/32] Made filters working finally, but had to remove Quiz for now --- advisor.html | 181 ++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 137 insertions(+), 44 deletions(-) diff --git a/advisor.html b/advisor.html index b95464d83..055814d8b 100644 --- a/advisor.html +++ b/advisor.html @@ -8,62 +8,155 @@ License Selector - + -
- - - - - - - - - - - - +
+ + +
    +
  • + + + + +
  • +
+ + +
    +
  • + + + + +
  • +
  • + + + + +
+ + +
    + + +
  • + + + +
  • +
  • + + + +
  • +
  • + + + +
  • +
+ +
- -
{% include license-overview.html license-id="mit" %}
-
{% include license-overview.html license-id="gpl-3.0" %}
+
{% include license-overview.html license-id="0bsd" %}
+
{% include license-overview.html license-id="afl-3.0" %}
{% include license-overview.html license-id="apache-2.0" %}
+
{% include license-overview.html license-id="artistic-2.0" %}
+
{% include license-overview.html license-id="blueoak-1.0.0" %}
{% include license-overview.html license-id="bsd-2-clause" %}
+
{% include license-overview.html license-id="bsd-2-clause-patent" %}
{% include license-overview.html license-id="bsd-3-clause" %}
+
{% include license-overview.html license-id="bsd-3-clause-clear" %}
+
{% include license-overview.html license-id="bsd-4-clause" %}
+
{% include license-overview.html license-id="bsl-1.0" %}
+
{% include license-overview.html license-id="cc0-1.0" %}
+
{% include license-overview.html license-id="cc-by-4.0" %}
+
{% include license-overview.html license-id="cc-by-sa-4.0" %}
+
{% include license-overview.html license-id="cecill-2.1" %}
+
{% include license-overview.html license-id="cern-ohl-p-2.0" %}
+
{% include license-overview.html license-id="cern-ohl-s-2.0" %}
+
{% include license-overview.html license-id="cern-ohl-w-2.0" %}
+
{% include license-overview.html license-id="ecl-2.0" %}
+
{% include license-overview.html license-id="epl-1.0" %}
+
{% include license-overview.html license-id="epl-2.0" %}
+
{% include license-overview.html license-id="eupl-1.1" %}
+
{% include license-overview.html license-id="eupl-1.2" %}
+
{% include license-overview.html license-id="gfdl-1.3" %}
+
{% include license-overview.html license-id="agpl-3.0" %}
+
{% include license-overview.html license-id="gpl-2.0" %}
+
{% include license-overview.html license-id="gpl-3.0" %}
+
{% include license-overview.html license-id="lgpl-2.1" %}
+
{% include license-overview.html license-id="lgpl-3.0" %}
+
{% include license-overview.html license-id="isc" %}
+
{% include license-overview.html license-id="lppl-1.3c" %}
+
{% include license-overview.html license-id="mit" %}
+
{% include license-overview.html license-id="mit-0" %}
+
{% include license-overview.html license-id="mpl-2.0" %}
+
{% include license-overview.html license-id="ms-pl" %}
+
{% include license-overview.html license-id="ms-rl" %}
+
{% include license-overview.html license-id="mulanpsl-2.0" %}
+
{% include license-overview.html license-id="ncsa" %}
{% include license-overview.html license-id="unlicense" %}
- +
{% include license-overview.html license-id="zlib" %}
+
{% include license-overview.html license-id="postgresql" %}
+
{% include license-overview.html license-id="ofl-1.1" %}
+
{% include license-overview.html license-id="osl-3.0" %}
+
{% include license-overview.html license-id="wtfpl" %}
+
{% include license-overview.html license-id="odbl-1.0" %}
+
{% include license-overview.html license-id="upl-1.0" %}
+
{% include license-overview.html license-id="vim" %}
+ From fb278932ae61c4ff1d26c03a84430b35da46429a Mon Sep 17 00:00:00 2001 From: TGRRRR Date: Mon, 15 Apr 2024 13:55:52 +0300 Subject: [PATCH 05/32] Filter functionality done --- advisor.html | 199 +++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 178 insertions(+), 21 deletions(-) diff --git a/advisor.html b/advisor.html index 055814d8b..d32d86402 100644 --- a/advisor.html +++ b/advisor.html @@ -8,9 +8,62 @@ License Selector - + + +
+ + +
@@ -135,28 +188,132 @@
{% include license-overview.html license-id="vim" %}
From 78400ec87ba6ab6bf1eed4a7dfea9b14ce1cf969 Mon Sep 17 00:00:00 2001 From: TGRRRR Date: Mon, 15 Apr 2024 20:20:08 +0300 Subject: [PATCH 06/32] Updated functionality and added google forms survey --- advisor.html | 70 +++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 58 insertions(+), 12 deletions(-) diff --git a/advisor.html b/advisor.html index d32d86402..419fd692d 100644 --- a/advisor.html +++ b/advisor.html @@ -60,6 +60,7 @@ + This quiz is designed to help you identify the most suitable software license for your project. Answer the questions to narrow down your options based on your specific requirements. You can skip questions if you prefer. To see a table of all licenses, visit appendix Page.
@@ -187,12 +188,13 @@
{% include license-overview.html license-id="upl-1.0" %}
{% include license-overview.html license-id="vim" %}
+ From ef703ef2e94fdb3248e8e718f9d5d715710782fb Mon Sep 17 00:00:00 2001 From: TGRRRR Date: Mon, 15 Apr 2024 22:33:22 +0300 Subject: [PATCH 07/32] Edited layout, added a few more filters and questions, but still need to work on text --- advisor.html | 162 ++++++++++++++++++++++++++++++--------------------- 1 file changed, 94 insertions(+), 68 deletions(-) diff --git a/advisor.html b/advisor.html index 419fd692d..4f8f5652f 100644 --- a/advisor.html +++ b/advisor.html @@ -17,7 +17,6 @@ border: 2px solid #5c5c5c; box-shadow: 0 2px 5px rgba(0,0,0,0.1); border-radius: 8px; - text-align: center; } #quiz p { @@ -31,7 +30,7 @@ padding: 10px 20px; font-size: 16px; color: white; - background-color: #007bff; + background-color: #1699d2; border: none; border-radius: 5px; cursor: pointer; @@ -55,90 +54,117 @@ margin-bottom: 20px; } + .filters { + display: flex; + justify-content: space-between; /* This will space the columns evenly */ + } + + .filter-column { + flex: 1; /* Each column takes up equal space */ + padding: 10px; /* Add some padding around each column */ + } + - This quiz is designed to help you identify the most suitable software license for your project. Answer the questions to narrow down your options based on your specific requirements. You can skip questions if you prefer. To see a table of all licenses, visit appendix Page. -
+ This advisor is designed to help you identify the most suitable open source license for your project. Answer the questions to narrow down your options based on your specific requirements. You can skip questions if you prefer. To see a table of all licenses, visit appendix Page. +

All open source licenses grant to the public permissions to do things with licensed works which copyright or other IP laws might otherwise disallow.
+ Most open source licenses' grants of permissions are subject to compliance with conditions.
+ Most open source licenses have limitations that disclaim warranty and liability, or expressly exclude patents or trademarks from licenses' grants.

+
+ -
- - -
    -
  • - - - - -
  • -
- - +
+
+
  • - - +
  • -
  • +
  • + + + +
  • +
  • - + +
  • +
  • + + +
- - +
+
+ +
    +
  • + + + +
  • +
    - -
  • - - - + + +
  • - - - + + +
- - +
+
{% include license-overview.html license-id="0bsd" %}
{% include license-overview.html license-id="afl-3.0" %}
@@ -194,12 +220,12 @@ const quizQuestions = [ { question: "1. Do you work in a community?", - detail: "If you are contributing to or extending an existing project, it is almost always easiest to continue using that projects license. ", - valueYes: "Yes", + detail: "Workiing in community means working on some already existing projects, or working with a team. read more", + valueYes: "Yes, I work in a community", valueNo: "No, I work alone" }, { - question: "2. Do you use copyleft external code base or libraries?", + question: "2. Do you use copyleft code base or libraries?", detail: "If you're using code that's under a copyleft license, your project also has to be licensed under same license or similar terms to comply with those licenses conditions.", filter: "same-license-filter", valueYes: "Yes", @@ -213,35 +239,42 @@ valueNo: "Permissive" }, { - question: "4. Do you want to specify state of patent license for users?", + question: "4. If you develop a web project, do you mind giving online users access to source code?", + detail: "Defining network use as distribution extends the rights and responsibilities associated with the software to those using it over a network. This means that even remote users can access the source code, preserving the open nature of the software", + filter: "network-use-disclose-filter", + valueYes: "Yes, I will provide access to source code", + valueNo: "No, I don't want to" + }, + { + question: "5. Do you want to specify state of patent license for users?", detail: "Clarifying the patent rights clause can protect you and your users from potential legal issues regarding the use of patents in your project", filter: "patent-use-filter", valueYes: "I want to clearly allow or forbid this clause", valueNo: "I don't want to clearly state this clause" }, { - question: "5. Do you mind documenting the changes you made?", + question: "6. Do you mind documenting the changes you made?", detail: "Documenting changes is crucial for licenses that require source code modifications to be noted.", filter: "document-changes-filter", valueYes: "Yes, I'll document", valueNo: "No, I won't" }, { - question: "6. Do you want to protect yourself by clearly having a limitation of liability?", + question: "7. Do you want to protect yourself by clearly having a limitation of liability?", detail: "Documenting changes is crucial for licenses that require source code modifications to be noted.", filter: "liability-filter", valueYes: "Yes, I will state that I am not liable for potential issues", valueNo: "No, I I don't want to state anything" }, { - question: "7. Do you want to protect yourself by clearly not providing any warranty?", + question: "8. Do you want to protect yourself by clearly not providing any warranty?", detail: "Documenting changes is crucial for licenses that require source code modifications to be noted.", filter: "warranty-filter", valueYes: "Yes, I will state that I don't provide warranty", valueNo: "No, I I don't want to state anything" }, { - question: "8. Do you want to protect your IP by clearly prohibiting use of Trademark?", + question: "9. Do you want to protect your IP by clearly prohibiting use of Trademark?", detail: "Documenting changes is crucial for licenses that require source code modifications to be noted.", filter: "trademark-use-filter", valueYes: "Yes, I'll state that I protect my Intellectual property", @@ -256,9 +289,10 @@ const quizDialog = document.getElementById('quiz'); const questionObj = quizQuestions[currentQuestionIndex]; let buttonsHTML = ` + - + `; quizDialog.innerHTML = `

${questionObj.question}

${questionObj.detail}

` + buttonsHTML; } @@ -306,7 +340,7 @@ function showCommunityMessage() { const quizDialog = document.getElementById('quiz'); quizDialog.innerHTML = ` -

If you work in a community, it's best to continue using that project's license.

+

If you are contributing to community, it is easier to continue using that project's license. Read more about community and finding what license it uses.

`; } @@ -322,14 +356,6 @@ displayQuestion(); // Display the first question again } -function showCommunityMessage() { - const quizDialog = document.getElementById('quiz'); - quizDialog.innerHTML = ` -

If you work in a community, it's best to continue using that project's license.

- - `; -} - function updateFilters() { const licenses = document.querySelectorAll('.license'); From ad16a7f48d8b93ec33080b3ab662470418802c7c Mon Sep 17 00:00:00 2001 From: TGRRRR Date: Mon, 15 Apr 2024 23:15:28 +0300 Subject: [PATCH 08/32] More changes --- advisor.html | 30 +++++++++++++++--------------- index.html | 33 +++++++++++++++------------------ 2 files changed, 30 insertions(+), 33 deletions(-) diff --git a/advisor.html b/advisor.html index 4f8f5652f..e03cc3c67 100644 --- a/advisor.html +++ b/advisor.html @@ -177,13 +177,13 @@
{% include license-overview.html license-id="bsd-3-clause-clear" %}
{% include license-overview.html license-id="bsd-4-clause" %}
{% include license-overview.html license-id="bsl-1.0" %}
-
{% include license-overview.html license-id="cc0-1.0" %}
-
{% include license-overview.html license-id="cc-by-4.0" %}
-
{% include license-overview.html license-id="cc-by-sa-4.0" %}
+ + +
{% include license-overview.html license-id="cecill-2.1" %}
-
{% include license-overview.html license-id="cern-ohl-p-2.0" %}
-
{% include license-overview.html license-id="cern-ohl-s-2.0" %}
-
{% include license-overview.html license-id="cern-ohl-w-2.0" %}
+ + +
{% include license-overview.html license-id="ecl-2.0" %}
{% include license-overview.html license-id="epl-1.0" %}
{% include license-overview.html license-id="epl-2.0" %}
@@ -207,7 +207,7 @@
{% include license-overview.html license-id="unlicense" %}
{% include license-overview.html license-id="zlib" %}
{% include license-overview.html license-id="postgresql" %}
-
{% include license-overview.html license-id="ofl-1.1" %}
+
{% include license-overview.html license-id="osl-3.0" %}
{% include license-overview.html license-id="wtfpl" %}
{% include license-overview.html license-id="odbl-1.0" %}
@@ -246,19 +246,19 @@ valueNo: "No, I don't want to" }, { - question: "5. Do you want to specify state of patent license for users?", - detail: "Clarifying the patent rights clause can protect you and your users from potential legal issues regarding the use of patents in your project", - filter: "patent-use-filter", - valueYes: "I want to clearly allow or forbid this clause", - valueNo: "I don't want to clearly state this clause" - }, - { - question: "6. Do you mind documenting the changes you made?", + question: "5. Do you mind documenting the changes you made?", detail: "Documenting changes is crucial for licenses that require source code modifications to be noted.", filter: "document-changes-filter", valueYes: "Yes, I'll document", valueNo: "No, I won't" }, + { + question: "6. Do you want to specify state of patent license for users?", + detail: "Clarifying the patent rights clause can protect you and your users from potential legal issues regarding the use of patents in your project", + filter: "patent-use-filter", + valueYes: "I want to clearly allow or forbid this clause", + valueNo: "I don't want to clearly state this clause" + }, { question: "7. Do you want to protect yourself by clearly having a limitation of liability?", detail: "Documenting changes is crucial for licenses that require source code modifications to be noted.", diff --git a/index.html b/index.html index 1616c685b..0535eb58d 100644 --- a/index.html +++ b/index.html @@ -8,6 +8,21 @@

An open source license protects contributors and users. Businesses and savvy developers won’t touch a project without this protection.

+ +

+ { + + Want a personalized answer? Try License Advisor + } +

+ + + +

License Advisor - personalized and simple answer

+
+ + +

{ Which of the following best describes your situation? @@ -52,24 +67,6 @@

I care about sharing improvements.

- - - -

- { - Want a personalized answer? Try License Advisor - } -

- -

I want it simple and comprehensive answer!

-
-

- The License Advisor is an interactive quiz that will give you the answer tailored to your needs -

- - - -

{ What if none of these work for me? From fb87a03e73228dd03313ca066b0cc95f3941f9cf Mon Sep 17 00:00:00 2001 From: TGRRRR Date: Tue, 16 Apr 2024 17:30:53 +0300 Subject: [PATCH 09/32] Edited all questions to have proper details, added a link to source --- advisor.html | 61 ++++++++++++++++++++++++++-------------------------- 1 file changed, 31 insertions(+), 30 deletions(-) diff --git a/advisor.html b/advisor.html index e03cc3c67..b24e3c8fc 100644 --- a/advisor.html +++ b/advisor.html @@ -7,7 +7,7 @@ - License Selector + License Advisor - This advisor is designed to help you identify the most suitable open source license for your project. Answer the questions to narrow down your options based on your specific requirements. You can skip questions if you prefer. To see a table of all licenses, visit appendix Page. + This advisor is designed to help beginner developers identify the most suitable open source license for your project. Answer the questions to narrow down your options based on your specific requirements. You can skip questions if you prefer. To see a table of all licenses, visit appendix Page.
You can also check out the source code of this site. +

All open source licenses grant to the public permissions to do things with licensed works which copyright or other IP laws might otherwise disallow.
- Most open source licenses' grants of permissions are subject to compliance with conditions.
- Most open source licenses have limitations that disclaim warranty and liability, or expressly exclude patents or trademarks from licenses' grants.

+ Most open source licenses' grants of permissions are subject to compliance with conditions.
+ Most open source licenses have limitations that disclaim warranty and liability, or expressly exclude patents or trademarks from licenses' grants.

- -
+
    @@ -164,7 +170,6 @@
-
{% include license-overview.html license-id="0bsd" %}
{% include license-overview.html license-id="afl-3.0" %}
@@ -177,17 +182,10 @@
{% include license-overview.html license-id="bsd-3-clause-clear" %}
{% include license-overview.html license-id="bsd-4-clause" %}
{% include license-overview.html license-id="bsl-1.0" %}
- - -
{% include license-overview.html license-id="cecill-2.1" %}
- - -
{% include license-overview.html license-id="ecl-2.0" %}
{% include license-overview.html license-id="epl-1.0" %}
{% include license-overview.html license-id="epl-2.0" %}
-
{% include license-overview.html license-id="eupl-1.1" %}
{% include license-overview.html license-id="eupl-1.2" %}
{% include license-overview.html license-id="gfdl-1.3" %}
{% include license-overview.html license-id="agpl-3.0" %}
@@ -207,7 +205,6 @@
{% include license-overview.html license-id="unlicense" %}
{% include license-overview.html license-id="zlib" %}
{% include license-overview.html license-id="postgresql" %}
-
{% include license-overview.html license-id="osl-3.0" %}
{% include license-overview.html license-id="wtfpl" %}
{% include license-overview.html license-id="odbl-1.0" %}
@@ -233,49 +230,49 @@ }, { question: "3. Do you prefer permissive or copyleft licenses?", - detail: "Your preference will affect how restrictive the licensing is regarding how others can use, modify, and redistribute your code.
Copyleft license only allows users to use your code with copyleft license as well. Permissive license has no restrictions", + detail: "It will affect how restrictive the licensing is regarding how others can use, modify, and redistribute your code.
Copyleft license only allows users to use your code with copyleft license as well, which means all modifications will also remain free and open source and no commercial or closed source fork is allowed.
Permissive license has no restrictions, so anyone can take your code and use it in their project, be it commercial or open source", filter: "same-license-filter", valueYes: "Copyleft", valueNo: "Permissive" }, { - question: "4. If you develop a web project, do you mind giving online users access to source code?", - detail: "Defining network use as distribution extends the rights and responsibilities associated with the software to those using it over a network. This means that even remote users can access the source code, preserving the open nature of the software", + question: "4. If you develop a web copyleft project, do you want to make giving online users access to source code mandatory?", + detail: "This clause prohibits users of your code from modifying it and then using it online as a closed source web project, as even remote users should have access to the source code, preserving the open nature of the software", filter: "network-use-disclose-filter", valueYes: "Yes, I will provide access to source code", valueNo: "No, I don't want to" }, { - question: "5. Do you mind documenting the changes you made?", - detail: "Documenting changes is crucial for licenses that require source code modifications to be noted.", + question: "5. Do you want to force users to document the changes they made in your code?", + detail: "If you want any change (by users who modify and redestribute your work) in your work to be documented (so that is clear where is your original code is and where the user changes are) you can choose a license with this requirement.", filter: "document-changes-filter", valueYes: "Yes, I'll document", valueNo: "No, I won't" }, { question: "6. Do you want to specify state of patent license for users?", - detail: "Clarifying the patent rights clause can protect you and your users from potential legal issues regarding the use of patents in your project", + detail: "Clarifying the patent rights clause can clearly allow or prohibit users to use a patented tech from your project in their projects. Allowing it can protect your users from potential lawsuits from you or contributors of your project", filter: "patent-use-filter", valueYes: "I want to clearly allow or forbid this clause", valueNo: "I don't want to clearly state this clause" }, { question: "7. Do you want to protect yourself by clearly having a limitation of liability?", - detail: "Documenting changes is crucial for licenses that require source code modifications to be noted.", + detail: "Basically, you will not be liable for any potential issues caused by your code.

Including a limitation of liability clause can protect you from lawsuits for damages caused by the use of your software. This clause is important when users rely on your software for critical functions, as it specifies that you are not liable for any resulting issues.", filter: "liability-filter", valueYes: "Yes, I will state that I am not liable for potential issues", valueNo: "No, I I don't want to state anything" }, { question: "8. Do you want to protect yourself by clearly not providing any warranty?", - detail: "Documenting changes is crucial for licenses that require source code modifications to be noted.", + detail: "Basically, you will not promise users of your code anything about its performance, quality, or suitability.

Stating that you do not provide any warranty with your software is crucial to manage user expectations and legal risks. This clause informs users that they are using the software at their own risk and that you do not guarantee its performance, quality, or suitability.", filter: "warranty-filter", valueYes: "Yes, I will state that I don't provide warranty", valueNo: "No, I I don't want to state anything" }, { question: "9. Do you want to protect your IP by clearly prohibiting use of Trademark?", - detail: "Documenting changes is crucial for licenses that require source code modifications to be noted.", + detail: "Basically, people who modify and distribute your application are not allowed to use your app name, logo, slogan, etc.

Prohibiting the use of your trademark by others is important to protect your brand identity and intellectual property. This clause helps prevent confusion and misuse of your trademark, ensuring that only authorized use associated with your direct products is allowed.", filter: "trademark-use-filter", valueYes: "Yes, I'll state that I protect my Intellectual property", valueNo: "No, I I don't want to state anything" @@ -313,10 +310,18 @@ updateFilters(); } } + + // Adjustments to handle specific skips based on answers if (currentQuestionIndex === 1 && value === 'include') { - // Specific logic for skipping Question 3 if "Yes" in Question 2 + // Skips Question 3 if "Yes" in Question 2 currentQuestionIndex++; } + + if (currentQuestionIndex === 2 && value === 'exclude') { + // Skips Question 4 about network use if "Permissive" is selected in Question 3 + currentQuestionIndex++; + } + nextQuestion(); } } @@ -326,7 +331,6 @@ nextQuestion(); } - function nextQuestion() { currentQuestionIndex++; if (currentQuestionIndex < quizQuestions.length) { @@ -345,7 +349,6 @@ `; } - function restartQuiz() { const selects = document.querySelectorAll('select'); selects.forEach(select => { @@ -356,7 +359,6 @@ displayQuestion(); // Display the first question again } - function updateFilters() { const licenses = document.querySelectorAll('.license'); @@ -385,7 +387,6 @@ updateFilters(); // Set initial state for filters }); - From 090ffaa2ffdd9860440a14d6db845a3c4ed1a818 Mon Sep 17 00:00:00 2001 From: TGRRRR Date: Tue, 16 Apr 2024 18:39:56 +0300 Subject: [PATCH 10/32] Final changes before I send it to review --- advisor.html | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/advisor.html b/advisor.html index b24e3c8fc..0d1c03b96 100644 --- a/advisor.html +++ b/advisor.html @@ -63,19 +63,11 @@ padding: 10px; /* Add some padding around each column */ } - #filters p { - font-size: 24px; /* Larger text for questions */ - color: #ffffff; - margin-top: 0; - margin-bottom: 20px; - } - - - This advisor is designed to help beginner developers identify the most suitable open source license for your project. Answer the questions to narrow down your options based on your specific requirements. You can skip questions if you prefer. To see a table of all licenses, visit appendix Page.
You can also check out the source code of this site. + This advisor is designed to help beginner developers identify the most suitable open source license for their project. Answer the questions to narrow down your options based on your specific requirements. You can skip questions if you are not sure. To see a table of all licenses, visit appendix Page.
Read more about the purpose of this site. Also check out the source code of this site.

All open source licenses grant to the public permissions to do things with licensed works which copyright or other IP laws might otherwise disallow.
Most open source licenses' grants of permissions are subject to compliance with conditions.
@@ -217,7 +209,7 @@ const quizQuestions = [ { question: "1. Do you work in a community?", - detail: "Workiing in community means working on some already existing projects, or working with a team. read more", + detail: "Workiing in community means working on some already existing projects as a contributor, or working with a team. read more", valueYes: "Yes, I work in a community", valueNo: "No, I work alone" }, @@ -239,22 +231,22 @@ question: "4. If you develop a web copyleft project, do you want to make giving online users access to source code mandatory?", detail: "This clause prohibits users of your code from modifying it and then using it online as a closed source web project, as even remote users should have access to the source code, preserving the open nature of the software", filter: "network-use-disclose-filter", - valueYes: "Yes, I will provide access to source code", - valueNo: "No, I don't want to" + valueYes: "Yes, I will require access to source code even for network users", + valueNo: "No, network use is not distribution" }, { question: "5. Do you want to force users to document the changes they made in your code?", detail: "If you want any change (by users who modify and redestribute your work) in your work to be documented (so that is clear where is your original code is and where the user changes are) you can choose a license with this requirement.", filter: "document-changes-filter", - valueYes: "Yes, I'll document", - valueNo: "No, I won't" + valueYes: "Yes, I want all the changes to my code be documented", + valueNo: "No, I don't mind undocumented changes" }, { question: "6. Do you want to specify state of patent license for users?", detail: "Clarifying the patent rights clause can clearly allow or prohibit users to use a patented tech from your project in their projects. Allowing it can protect your users from potential lawsuits from you or contributors of your project", filter: "patent-use-filter", - valueYes: "I want to clearly allow or forbid this clause", - valueNo: "I don't want to clearly state this clause" + valueYes: "I want to clearly allow or forbid patent use", + valueNo: "I don't want to clearly state patent use" }, { question: "7. Do you want to protect yourself by clearly having a limitation of liability?", @@ -294,7 +286,6 @@ quizDialog.innerHTML = `

${questionObj.question}

${questionObj.detail}

` + buttonsHTML; } - function applyFilter(filterId, value) { if (currentQuestionIndex === 0) { if (value === 'include') { @@ -337,7 +328,7 @@ displayQuestion(); } else { const quizDialog = document.getElementById('quiz'); - quizDialog.innerHTML = "

End of Quiz. Filters are set according to your answers.

"; + quizDialog.innerHTML = "

End of Quiz. Filters are set according to your answers.
If you still haven't found what you need, at least you now clearly know what to look for. Visit europa.eu or opensource.org for more comprehensive database.

"; } } From 262de1bce55313e7165a95f626de1fa869159ad7 Mon Sep 17 00:00:00 2001 From: TGRRRR Date: Mon, 29 Apr 2024 15:22:05 +0300 Subject: [PATCH 11/32] Feedback small fixes --- advisor.html | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/advisor.html b/advisor.html index 0d1c03b96..cad21d739 100644 --- a/advisor.html +++ b/advisor.html @@ -73,13 +73,18 @@ Most open source licenses' grants of permissions are subject to compliance with conditions.
Most open source licenses have limitations that disclaim warranty and liability, or expressly exclude patents or trademarks from licenses' grants.

-
+

License Wizard

+

If you don't know anything about licenses, then you can go through this wizard and it will fill in the filter values based on your answers

+
+ +

Filters

+

If you understand what all these filters mean, then use these filters and you can skip the wizard

-
    +

    Conditions

  • @@ -119,6 +124,7 @@
+

Permission and Limitations

  • @@ -162,6 +168,7 @@
+

Below is a list of licenses that match your needs:

{% include license-overview.html license-id="0bsd" %}
{% include license-overview.html license-id="afl-3.0" %}
@@ -179,7 +186,6 @@
{% include license-overview.html license-id="epl-1.0" %}
{% include license-overview.html license-id="epl-2.0" %}
{% include license-overview.html license-id="eupl-1.2" %}
-
{% include license-overview.html license-id="gfdl-1.3" %}
{% include license-overview.html license-id="agpl-3.0" %}
{% include license-overview.html license-id="gpl-2.0" %}
{% include license-overview.html license-id="gpl-3.0" %}
@@ -203,67 +209,66 @@
{% include license-overview.html license-id="upl-1.0" %}
{% include license-overview.html license-id="vim" %}
- + From 4758be7d4bb7f08d291fc63b1a83ea1c060b52c4 Mon Sep 17 00:00:00 2001 From: TGRRRR Date: Tue, 30 Apr 2024 17:45:54 +0300 Subject: [PATCH 13/32] Redesign of the script --- advisor copy.html | 456 +++++++++++++++++++++++++++++++++++ advisor.html | 598 ++++++++++++++++++++++++---------------------- 2 files changed, 769 insertions(+), 285 deletions(-) create mode 100644 advisor copy.html diff --git a/advisor copy.html b/advisor copy.html new file mode 100644 index 000000000..cede2eef8 --- /dev/null +++ b/advisor copy.html @@ -0,0 +1,456 @@ + + + + + + License Advisor + + + +

License Wizard

+

If you don't know anything about licenses, then you can go through this wizard and it will fill in the filter values based on your answers

+
+ +

Filters

+

If you understand what all these filters mean, then use these filters and you can skip the wizard

+ +
+
+ +
    +

    Conditions

    +
  • + + + +
  • +
  • + + + +
  • +
  • + + + +
  • +
  • + + + +
  • +
+
+
+

Permission and Limitations

+ +
    +
  • + + + +
  • +
+
    +
  • + + + +
  • +
  • + + + +
  • +
  • + + + +
  • +
+
+
+

Below is a list of licenses that match your needs:

+ +
{% include license-overview.html license-id="0bsd" %}
+
{% include license-overview.html license-id="afl-3.0" %}
+
{% include license-overview.html license-id="apache-2.0" %}
+
{% include license-overview.html license-id="artistic-2.0" %}
+
{% include license-overview.html license-id="blueoak-1.0.0" %}
+
{% include license-overview.html license-id="bsd-2-clause" %}
+
{% include license-overview.html license-id="bsd-2-clause-patent" %}
+
{% include license-overview.html license-id="bsd-3-clause" %}
+
{% include license-overview.html license-id="bsd-3-clause-clear" %}
+
{% include license-overview.html license-id="bsd-4-clause" %}
+
{% include license-overview.html license-id="bsl-1.0" %}
+
{% include license-overview.html license-id="cecill-2.1" %}
+
{% include license-overview.html license-id="ecl-2.0" %}
+
{% include license-overview.html license-id="epl-1.0" %}
+
{% include license-overview.html license-id="epl-2.0" %}
+
{% include license-overview.html license-id="eupl-1.2" %}
+
{% include license-overview.html license-id="agpl-3.0" %}
+
{% include license-overview.html license-id="gpl-2.0" %}
+
{% include license-overview.html license-id="gpl-3.0" %}
+
{% include license-overview.html license-id="lgpl-2.1" %}
+
{% include license-overview.html license-id="lgpl-3.0" %}
+
{% include license-overview.html license-id="isc" %}
+
{% include license-overview.html license-id="lppl-1.3c" %}
+
{% include license-overview.html license-id="mit" %}
+
{% include license-overview.html license-id="mit-0" %}
+
{% include license-overview.html license-id="mpl-2.0" %}
+
{% include license-overview.html license-id="ms-pl" %}
+
{% include license-overview.html license-id="ms-rl" %}
+
{% include license-overview.html license-id="mulanpsl-2.0" %}
+
{% include license-overview.html license-id="ncsa" %}
+
{% include license-overview.html license-id="unlicense" %}
+
{% include license-overview.html license-id="zlib" %}
+
{% include license-overview.html license-id="postgresql" %}
+
{% include license-overview.html license-id="osl-3.0" %}
+
{% include license-overview.html license-id="wtfpl" %}
+
{% include license-overview.html license-id="odbl-1.0" %}
+
{% include license-overview.html license-id="upl-1.0" %}
+
{% include license-overview.html license-id="vim" %}
+ + + + + diff --git a/advisor.html b/advisor.html index 8a0f89dca..87cf9b685 100644 --- a/advisor.html +++ b/advisor.html @@ -6,319 +6,350 @@ - - License Advisor - + -

License Wizard

-

If you don't know anything about licenses, then you can go through this wizard and it will fill in the filter values based on your answers

-
+
+

Welcome to the License Wizard!

+

This wizard will guide you through a series of questions. Click start when you're ready!

+ +
-

Filters

-

If you understand what all these filters mean, then use these filters and you can skip the wizard

+
+
+
+

+

+
+
+ + + + +
+
-
-
- -
    -

    Conditions

    -
  • - - - -
  • -
  • - - - -
  • -
  • - - - -
  • -
  • - - - -
  • -
-
-
-

Permission and Limitations

- -
    -
  • - - - -
  • -
-
    -
  • - - - -
  • -
  • - - - -
  • -
  • - - - -
  • -
-
+

Filters

+

If you understand what all these filters mean, then use these filters and you can skip the wizard

+ +
+
+ +
    +

    Conditions

    +
  • + + + +
  • +
  • + + + +
  • +
  • + + + +
  • +
  • + + + +
  • +
+
+
+

Permission and Limitations

+ +
    +
  • + + + +
  • +
+
    +
  • + + + +
  • +
  • + + + +
  • +
  • + + + +
  • +
-

Below is a list of licenses that match your needs:

+
+

Below is a list of licenses that match your needs:

-
{% include license-overview.html license-id="0bsd" %}
-
{% include license-overview.html license-id="afl-3.0" %}
-
{% include license-overview.html license-id="apache-2.0" %}
-
{% include license-overview.html license-id="artistic-2.0" %}
-
{% include license-overview.html license-id="blueoak-1.0.0" %}
-
{% include license-overview.html license-id="bsd-2-clause" %}
-
{% include license-overview.html license-id="bsd-2-clause-patent" %}
-
{% include license-overview.html license-id="bsd-3-clause" %}
-
{% include license-overview.html license-id="bsd-3-clause-clear" %}
-
{% include license-overview.html license-id="bsd-4-clause" %}
-
{% include license-overview.html license-id="bsl-1.0" %}
-
{% include license-overview.html license-id="cecill-2.1" %}
-
{% include license-overview.html license-id="ecl-2.0" %}
-
{% include license-overview.html license-id="epl-1.0" %}
-
{% include license-overview.html license-id="epl-2.0" %}
-
{% include license-overview.html license-id="eupl-1.2" %}
-
{% include license-overview.html license-id="agpl-3.0" %}
-
{% include license-overview.html license-id="gpl-2.0" %}
-
{% include license-overview.html license-id="gpl-3.0" %}
-
{% include license-overview.html license-id="lgpl-2.1" %}
-
{% include license-overview.html license-id="lgpl-3.0" %}
-
{% include license-overview.html license-id="isc" %}
-
{% include license-overview.html license-id="lppl-1.3c" %}
-
{% include license-overview.html license-id="mit" %}
-
{% include license-overview.html license-id="mit-0" %}
-
{% include license-overview.html license-id="mpl-2.0" %}
-
{% include license-overview.html license-id="ms-pl" %}
-
{% include license-overview.html license-id="ms-rl" %}
-
{% include license-overview.html license-id="mulanpsl-2.0" %}
-
{% include license-overview.html license-id="ncsa" %}
-
{% include license-overview.html license-id="unlicense" %}
-
{% include license-overview.html license-id="zlib" %}
-
{% include license-overview.html license-id="postgresql" %}
-
{% include license-overview.html license-id="osl-3.0" %}
-
{% include license-overview.html license-id="wtfpl" %}
-
{% include license-overview.html license-id="odbl-1.0" %}
-
{% include license-overview.html license-id="upl-1.0" %}
-
{% include license-overview.html license-id="vim" %}
- - + \ No newline at end of file From 3189121d8480f3fde37f83d8a93695d9795002c6 Mon Sep 17 00:00:00 2001 From: TGRRRR Date: Tue, 30 Apr 2024 18:10:41 +0300 Subject: [PATCH 14/32] Update --- advisor.html | 119 +++++++++++++++++++++++++++++---------------------- 1 file changed, 67 insertions(+), 52 deletions(-) diff --git a/advisor.html b/advisor.html index 87cf9b685..19b5c2b93 100644 --- a/advisor.html +++ b/advisor.html @@ -9,12 +9,6 @@ License Advisor + + License Advisor + + -
-

Welcome to the License Wizard!

-

This wizard will guide you through a series of questions. Click start when you're ready!

- -
- -
-
-
-

-

+
+

Welcome to the License Wizard!

+

This wizard will guide you through a series of questions. Click start when you're ready!

+
-
- - - - -
-
- -

Filters

-

If you understand what all these filters mean, then use these filters and you can skip the wizard

- -
-
- -
    -

    Conditions

    -
  • - - - -
  • -
  • - - - -
  • -
  • - - - -
  • -
  • - - - -
  • -
+ +
+
+
+

+

+
+
+ + + + +
-
-

Permission and Limitations

- -
    -
  • - - - -
  • -
-
    -
  • - - - -
  • -
  • - - - -
  • -
  • - - - -
  • -
+ +

Filters

+

If you understand what all these filters mean, then use these filters and you can skip the wizard

+ +
+
+ +
    +

    Conditions

    +
  • + + + +
  • +
  • + + + +
  • +
  • + + + +
  • +
  • + + + +
  • +
+
+
+

Permission and Limitations

+ +
    +
  • + + + +
  • +
+
    +
  • + + + +
  • +
  • + + + +
  • +
  • + + + +
  • +
+
-
-

Below is a list of licenses that match your needs:

- -
{% include license-overview.html license-id="0bsd" %}
-
{% include license-overview.html license-id="afl-3.0" %}
-
{% include license-overview.html license-id="apache-2.0" %}
-
{% include license-overview.html license-id="artistic-2.0" %}
-
{% include license-overview.html license-id="blueoak-1.0.0" %}
-
{% include license-overview.html license-id="bsd-2-clause" %}
-
{% include license-overview.html license-id="bsd-2-clause-patent" %}
-
{% include license-overview.html license-id="bsd-3-clause" %}
-
{% include license-overview.html license-id="bsd-3-clause-clear" %}
-
{% include license-overview.html license-id="bsd-4-clause" %}
-
{% include license-overview.html license-id="bsl-1.0" %}
-
{% include license-overview.html license-id="cecill-2.1" %}
-
{% include license-overview.html license-id="ecl-2.0" %}
-
{% include license-overview.html license-id="epl-1.0" %}
-
{% include license-overview.html license-id="epl-2.0" %}
-
{% include license-overview.html license-id="eupl-1.2" %}
-
{% include license-overview.html license-id="agpl-3.0" %}
-
{% include license-overview.html license-id="gpl-2.0" %}
-
{% include license-overview.html license-id="gpl-3.0" %}
-
{% include license-overview.html license-id="lgpl-2.1" %}
-
{% include license-overview.html license-id="lgpl-3.0" %}
-
{% include license-overview.html license-id="isc" %}
-
{% include license-overview.html license-id="lppl-1.3c" %}
-
{% include license-overview.html license-id="mit" %}
-
{% include license-overview.html license-id="mit-0" %}
-
{% include license-overview.html license-id="mpl-2.0" %}
-
{% include license-overview.html license-id="ms-pl" %}
-
{% include license-overview.html license-id="ms-rl" %}
-
{% include license-overview.html license-id="mulanpsl-2.0" %}
-
{% include license-overview.html license-id="ncsa" %}
-
{% include license-overview.html license-id="unlicense" %}
-
{% include license-overview.html license-id="zlib" %}
-
{% include license-overview.html license-id="postgresql" %}
-
{% include license-overview.html license-id="osl-3.0" %}
-
{% include license-overview.html license-id="wtfpl" %}
-
{% include license-overview.html license-id="odbl-1.0" %}
-
{% include license-overview.html license-id="upl-1.0" %}
-
{% include license-overview.html license-id="vim" %}
- - - - - \ No newline at end of file + + + \ No newline at end of file From 283f9ea946651c5469fb3ccd189182ce74c897d6 Mon Sep 17 00:00:00 2001 From: TGRRRR Date: Wed, 1 May 2024 16:19:13 +0300 Subject: [PATCH 16/32] Added crutial func to change the color of the element --- advisor.html | 62 ++++++++++++++++++++++++++++------------------------ 1 file changed, 34 insertions(+), 28 deletions(-) diff --git a/advisor.html b/advisor.html index c684982a9..261ff6dc4 100644 --- a/advisor.html +++ b/advisor.html @@ -38,7 +38,7 @@ width: 20px; height: 20px; border-radius: 50%; - background-color: #3d3d3d; + background-color: #1b1b1b; cursor: pointer; margin: 0 5px; } @@ -68,10 +68,11 @@ } #buttons button.active { - background-color: #28a745; - /* Green */ + background-color: #28a745 !important; /* Green */ + box-shadow: 0 2px 5px rgba(0, 255, 0, 0.5); /* Make it very obvious when active */ } + #buttons #backBtn, #buttons #nextBtn { background-color: #007bff; @@ -80,7 +81,7 @@ #buttons #yesBtn, #buttons #noBtn { - background-color: #dc3545; + background-color: #ff0000; /* Red */ } @@ -328,39 +329,48 @@

Below is a list of licenses that match your needs:

} function updateButtonStyles() { + console.log("Updating button styles for question:", currentQuestion, "Answer:", answers[currentQuestion]); const yesBtn = document.getElementById("yesBtn"); const noBtn = document.getElementById("noBtn"); - yesBtn.classList.remove("active", "focused"); - noBtn.classList.remove("active", "focused"); - if (answers[currentQuestion]) { - if (answers[currentQuestion] === 'Yes') { - yesBtn.classList.add("active"); - } else if (answers[currentQuestion] === 'No') { - noBtn.classList.add("active"); - } + yesBtn.classList.remove("active"); + noBtn.classList.remove("active"); + if (answers[currentQuestion] === 'Yes') { + yesBtn.classList.add("active"); + } else if (answers[currentQuestion] === 'No') { + noBtn.classList.add("active"); } - } +} function linkAnswersToFilters() { - if (questions[currentQuestion].filter) { - let filterElement = document.getElementById(questions[currentQuestion].filter); - if (filterElement && answers[currentQuestion]) { - filterElement.value = answers[currentQuestion] === 'Yes' ? 'include' : 'exclude'; - updateFilters(); - } + let filterElement = document.getElementById(questions[currentQuestion].filter); + if (filterElement && answers[currentQuestion]) { + filterElement.value = answers[currentQuestion] === 'Yes' ? 'include' : 'exclude'; + updateFilters(); // Call updateFilters whenever the filter changes } - } +} + + document.querySelectorAll('select').forEach(select => { + select.addEventListener('change', (event) => { + // Synchronize answers with select changes manually. + const question = questions.find(q => q.filter === event.target.id); + if (question) { + const questionIndex = questions.indexOf(question); + answers[questionIndex] = event.target.value === 'include' ? 'Yes' : 'No'; + updateButtonStyles(); // Update button styles based on the new answers. + } + }); + }); document.getElementById("yesBtn").onclick = () => { answers[currentQuestion] = 'Yes'; - updateButtonStyles(); - linkAnswersToFilters(); + linkAnswersToFilters(); // Make sure to first update the answer linkage + updateButtonStyles(); // Update button styles after setting answers }; document.getElementById("noBtn").onclick = () => { answers[currentQuestion] = 'No'; - updateButtonStyles(); - linkAnswersToFilters(); + linkAnswersToFilters(); // Make sure to first update the answer linkage + updateButtonStyles(); // Update button styles after setting answers }; document.getElementById("startBtn").onclick = () => { @@ -400,7 +410,6 @@

Below is a list of licenses that match your needs:

const value = select.value; // "include", "exclude", or "all" const filterName = select.id.replace('-filter', ''); // e.g., "trademark", "liability" const conditions = Array.from(license.querySelectorAll('.' + filterName)).map(li => li.textContent.trim().toLowerCase()); - if (value === 'include' && !conditions.length) { isDisplayed = false; } else if (value === 'exclude' && conditions.length) { @@ -410,12 +419,9 @@

Below is a list of licenses that match your needs:

license.style.display = isDisplayed ? 'block' : 'none'; }); } - document.addEventListener('DOMContentLoaded', displayQuestion); document.addEventListener('DOMContentLoaded', updateFilters); - showScreen('starterScreen'); // Initially show the starter screen - \ No newline at end of file From 7f596926afebdfd42baf4bcf91b4b5209f136826 Mon Sep 17 00:00:00 2001 From: TGRRRR Date: Wed, 1 May 2024 16:59:01 +0300 Subject: [PATCH 17/32] Full featured version works now --- advisor.html | 35 ++++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/advisor.html b/advisor.html index 261ff6dc4..7503e6e60 100644 --- a/advisor.html +++ b/advisor.html @@ -343,11 +343,17 @@

Below is a list of licenses that match your needs:

function linkAnswersToFilters() { let filterElement = document.getElementById(questions[currentQuestion].filter); - if (filterElement && answers[currentQuestion]) { - filterElement.value = answers[currentQuestion] === 'Yes' ? 'include' : 'exclude'; - updateFilters(); // Call updateFilters whenever the filter changes + if (filterElement) { + if (answers[currentQuestion] === 'Yes') { + filterElement.value = 'include'; + } else if (answers[currentQuestion] === 'No') { + filterElement.value = 'exclude'; + } else { + filterElement.value = 'all'; // Set to 'Any' if answer is reset + } + updateFilters(); // Apply changes to the visible licenses } -} + } document.querySelectorAll('select').forEach(select => { select.addEventListener('change', (event) => { @@ -362,17 +368,24 @@

Below is a list of licenses that match your needs:

}); document.getElementById("yesBtn").onclick = () => { - answers[currentQuestion] = 'Yes'; - linkAnswersToFilters(); // Make sure to first update the answer linkage - updateButtonStyles(); // Update button styles after setting answers + if (answers[currentQuestion] === 'Yes') { + answers[currentQuestion] = null; // Reset the answer if it's already 'Yes' + } else { + answers[currentQuestion] = 'Yes'; + } + linkAnswersToFilters(); // Update filter linkage based on new answer + updateButtonStyles(); // Update visual styles after changing the answer }; document.getElementById("noBtn").onclick = () => { - answers[currentQuestion] = 'No'; - linkAnswersToFilters(); // Make sure to first update the answer linkage - updateButtonStyles(); // Update button styles after setting answers + if (answers[currentQuestion] === 'No') { + answers[currentQuestion] = null; // Reset the answer if it's already 'No' + } else { + answers[currentQuestion] = 'No'; + } + linkAnswersToFilters(); // Update filter linkage based on new answer + updateButtonStyles(); // Update visual styles after changing the answer }; - document.getElementById("startBtn").onclick = () => { showScreen('wizard'); createIndicators(); From b603029af5054323685a41fb5a9b06c6a2a34b30 Mon Sep 17 00:00:00 2001 From: TGRRRR Date: Wed, 1 May 2024 19:03:49 +0300 Subject: [PATCH 18/32] Update advisor.html --- advisor.html | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/advisor.html b/advisor.html index 7503e6e60..70651dec1 100644 --- a/advisor.html +++ b/advisor.html @@ -12,15 +12,16 @@ +

This wizard is designed to help beginner developers identify the most suitable open source license for their project.

-

Welcome to the License Wizard!

-

This wizard will guide you through a series of questions. Click start when you're ready!

+

License selecting Wizard

+

If you are working in a community, it is better to not choose. Just use that project's license. To find out what is a community and where to find their license, Read more about community

Follow the wizard to narrow down your options based on your requirements or wishes. You can skip questions if you are not sure. To see a table of all licenses, visit appendix page. Read more about the purpose of this site. Also check out the source code of this site.

All open source licenses grant to the public permissions to do things with licensed works which copyright or other IP laws might disallow.
Most open source licenses' grants of permissions are subject to compliance with conditions.
Most open source licenses have limitations that disclaim warranty and liability, or exclude patents or trademarks from licenses' grants.

@@ -116,105 +149,89 @@

- + - +
-

Filters

-

If you understand what all these filters mean, then use these filters and you can skip the wizard

- +

Filters

+

If you understand what all these filters mean, then use these filters and skip the wizard.

- -
    -

    Conditions

    -
  • - - - -
  • -
  • - - - -
  • -
  • - - - -
  • -
  • - - - -
  • -
+

Conditions

+
+ + +
+
+ + +
+
+ + +
+
+ + +
-

Permission and Limitations

- -
    -
  • - - - -
  • -
-
    -
  • - - - -
  • -
  • - - - -
  • -
  • - - - -
  • -
+

Permissions and Limitations

+
+ + +
+
+ + +
+
+ + +
+
+ + +
-

Below is a list of licenses that match your needs:

+ +

Below is a list of licenses that match your filters:

{% include license-overview.html license-id="0bsd" %}
{% include license-overview.html license-id="afl-3.0" %}
@@ -255,12 +272,14 @@

Below is a list of licenses that match your needs:

{% include license-overview.html license-id="upl-1.0" %}
{% include license-overview.html license-id="vim" %}
+

If there are no licenses below, please edit your answers or filters, for example, remove some of the conditions

+ - - - - diff --git a/advisor.html b/advisor.html index fe87e4059..ccfe28bda 100644 --- a/advisor.html +++ b/advisor.html @@ -159,7 +159,7 @@

This wizard is designed to help beginner developers identify the most suitable open source license for their project.

License selecting Wizard

-

If you are working in a community or on a project, please don't choose any license. Just use that project's license.
To find out what is a community and where to find their license, Read more about community

Follow the wizard to narrow down your options based on your requirements or wishes. You can skip questions if you are not sure. To see a table of all licenses, visit appendix page. Read more about the purpose of this site.

All open source licenses grant to the public permissions to do things with licensed works which copyright or other IP laws might disallow.
Most open source licenses' grants of permissions are subject to compliance with conditions.
Most open source licenses have limitations that disclaim warranty and liability, or exclude patents or trademarks from licenses' grants.

+

If you are working in a community or on a project, please don't choose any license. Just use that project's license.
To find out what is a community and where to find their license, Read more about community

Follow the wizard to narrow down your options based on your requirements or wishes. You can skip questions if you are not sure. To see a table of all licenses, visit appendix page. Read more about the purpose of this site.

All open source licenses grant to the public permissions to do things with licensed works which copyright or other IP laws might disallow.
Most open source licenses' grants of permissions are subject to compliance with conditions.
Most open source licenses have limitations that disclaim warranty and liability, or exclude patents or trademarks from licenses' grants.

From d5f3bf2295c25764964df01a096547eb1e1a555f Mon Sep 17 00:00:00 2001 From: TGRRRR Date: Fri, 3 May 2024 16:36:28 +0300 Subject: [PATCH 27/32] Update advisor.html --- advisor.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advisor.html b/advisor.html index ccfe28bda..0b476037f 100644 --- a/advisor.html +++ b/advisor.html @@ -159,7 +159,7 @@

This wizard is designed to help beginner developers identify the most suitable open source license for their project.

License selecting Wizard

-

If you are working in a community or on a project, please don't choose any license. Just use that project's license.
To find out what is a community and where to find their license, Read more about community

Follow the wizard to narrow down your options based on your requirements or wishes. You can skip questions if you are not sure. To see a table of all licenses, visit appendix page. Read more about the purpose of this site.

All open source licenses grant to the public permissions to do things with licensed works which copyright or other IP laws might disallow.
Most open source licenses' grants of permissions are subject to compliance with conditions.
Most open source licenses have limitations that disclaim warranty and liability, or exclude patents or trademarks from licenses' grants.

+

If you are working in a community or on a project, please don't choose any license. Just use that project's license.
To find out what is a community and where to find their license, Read more about community

Follow the wizard to narrow down your options based on your requirements or wishes. You can skip questions if you are not sure. To see a table of all licenses, visit appendix page. Read more about the purpose of this site.

All open source licenses grant to the public permissions to do things with licensed works which copyright or other IP laws might disallow.
Most open source licenses' grants of permissions are subject to compliance with conditions.
Most open source licenses have limitations that disclaim warranty and liability, or exclude patents or trademarks from licenses' grants.

From d2454643527107886b01e95128a36876a50007a8 Mon Sep 17 00:00:00 2001 From: TGRRRR Date: Fri, 3 May 2024 16:39:06 +0300 Subject: [PATCH 28/32] Update advisor.html --- advisor.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advisor.html b/advisor.html index 0b476037f..fe87e4059 100644 --- a/advisor.html +++ b/advisor.html @@ -159,7 +159,7 @@

This wizard is designed to help beginner developers identify the most suitable open source license for their project.

License selecting Wizard

-

If you are working in a community or on a project, please don't choose any license. Just use that project's license.
To find out what is a community and where to find their license, Read more about community

Follow the wizard to narrow down your options based on your requirements or wishes. You can skip questions if you are not sure. To see a table of all licenses, visit appendix page. Read more about the purpose of this site.

All open source licenses grant to the public permissions to do things with licensed works which copyright or other IP laws might disallow.
Most open source licenses' grants of permissions are subject to compliance with conditions.
Most open source licenses have limitations that disclaim warranty and liability, or exclude patents or trademarks from licenses' grants.

+

If you are working in a community or on a project, please don't choose any license. Just use that project's license.
To find out what is a community and where to find their license, Read more about community

Follow the wizard to narrow down your options based on your requirements or wishes. You can skip questions if you are not sure. To see a table of all licenses, visit appendix page. Read more about the purpose of this site.

All open source licenses grant to the public permissions to do things with licensed works which copyright or other IP laws might disallow.
Most open source licenses' grants of permissions are subject to compliance with conditions.
Most open source licenses have limitations that disclaim warranty and liability, or exclude patents or trademarks from licenses' grants.

From d2335c3b3d7ddda7ecd013a695165861f57f718a Mon Sep 17 00:00:00 2001 From: TGRRRR Date: Wed, 8 May 2024 18:15:51 +0300 Subject: [PATCH 29/32] Make all links work --- _config.yml | 2 +- advisor.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_config.yml b/_config.yml index a75f55c80..69a56db8d 100644 --- a/_config.yml +++ b/_config.yml @@ -3,7 +3,7 @@ title: Choose a License description: Non-judgmental guidance on choosing a license for your open source project relative_permalinks: false markdown: kramdown -url: "https://choosealicense.com" +url: "https://tgrrrr.github.io/" collections: licenses: diff --git a/advisor.html b/advisor.html index fe87e4059..026bd4389 100644 --- a/advisor.html +++ b/advisor.html @@ -159,7 +159,7 @@

This wizard is designed to help beginner developers identify the most suitable open source license for their project.

License selecting Wizard

-

If you are working in a community or on a project, please don't choose any license. Just use that project's license.
To find out what is a community and where to find their license, Read more about community

Follow the wizard to narrow down your options based on your requirements or wishes. You can skip questions if you are not sure. To see a table of all licenses, visit appendix page. Read more about the purpose of this site.

All open source licenses grant to the public permissions to do things with licensed works which copyright or other IP laws might disallow.
Most open source licenses' grants of permissions are subject to compliance with conditions.
Most open source licenses have limitations that disclaim warranty and liability, or exclude patents or trademarks from licenses' grants.

+

If you are working in a community or on a project, please don't choose any license. Just use that project's license.
To find out what is a community and where to find their license, Read more about community

Follow the wizard to narrow down your options based on your requirements or wishes. You can skip questions if you are not sure. To see a table of all licenses, visit appendix page. Read more about the purpose of this site.

All open source licenses grant to the public permissions to do things with licensed works which copyright or other IP laws might disallow.
Most open source licenses' grants of permissions are subject to compliance with conditions.
Most open source licenses have limitations that disclaim warranty and liability, or exclude patents or trademarks from licenses' grants.

From 2f36461ffea8587115d9600b96032ea6de703283 Mon Sep 17 00:00:00 2001 From: TGRRRR Date: Wed, 8 May 2024 18:18:27 +0300 Subject: [PATCH 30/32] Fix --- _config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_config.yml b/_config.yml index 69a56db8d..88907803d 100644 --- a/_config.yml +++ b/_config.yml @@ -3,7 +3,7 @@ title: Choose a License description: Non-judgmental guidance on choosing a license for your open source project relative_permalinks: false markdown: kramdown -url: "https://tgrrrr.github.io/" +url: "https://tgrrrr.github.io/choosealicense.com" collections: licenses: From 238a6ce0019cbb5c408f25cf44f1d4fc8af61a64 Mon Sep 17 00:00:00 2001 From: TGRRRR Date: Wed, 8 May 2024 18:28:04 +0300 Subject: [PATCH 31/32] fix 2 --- _config.yml | 4 ++-- advisor.html | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/_config.yml b/_config.yml index 88907803d..8755e601e 100644 --- a/_config.yml +++ b/_config.yml @@ -3,12 +3,12 @@ title: Choose a License description: Non-judgmental guidance on choosing a license for your open source project relative_permalinks: false markdown: kramdown -url: "https://tgrrrr.github.io/choosealicense.com" +url: "https://choosealicense.com" collections: licenses: output: true - permalink: /licenses/:path/ + permalink: /choosealicense.com/licenses/:path/ defaults: - diff --git a/advisor.html b/advisor.html index 026bd4389..5e9bb49b1 100644 --- a/advisor.html +++ b/advisor.html @@ -159,8 +159,7 @@

This wizard is designed to help beginner developers identify the most suitable open source license for their project.

License selecting Wizard

-

If you are working in a community or on a project, please don't choose any license. Just use that project's license.
To find out what is a community and where to find their license, Read more about community

Follow the wizard to narrow down your options based on your requirements or wishes. You can skip questions if you are not sure. To see a table of all licenses, visit appendix page. Read more about the purpose of this site.

All open source licenses grant to the public permissions to do things with licensed works which copyright or other IP laws might disallow.
Most open source licenses' grants of permissions are subject to compliance with conditions.
Most open source licenses have limitations that disclaim warranty and liability, or exclude patents or trademarks from licenses' grants.

-
+

If you are working in a community or on a project, please don't choose any license. Just use that project's license.
To find out what is a community and where to find their license, Read more about community

Follow the wizard to narrow down your options based on your requirements or wishes. You can skip questions if you are not sure. To see a table of all licenses, visit appendix page. Read more about the purpose of this site.

All open source licenses grant to the public permissions to do things with licensed works which copyright or other IP laws might disallow.
Most open source licenses' grants of permissions are subject to compliance with conditions.
Most open source licenses have limitations that disclaim warranty and liability, or exclude patents or trademarks from licenses' grants.

From 0fa3c3e454cf1b46c02efcf6af0665e40e11e082 Mon Sep 17 00:00:00 2001 From: TGRRRR Date: Wed, 8 May 2024 19:11:21 +0300 Subject: [PATCH 32/32] Revert changes --- _config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_config.yml b/_config.yml index 8755e601e..f14952b57 100644 --- a/_config.yml +++ b/_config.yml @@ -8,7 +8,7 @@ url: "https://choosealicense.com" collections: licenses: output: true - permalink: /choosealicense.com/licenses/:path/ + permalink: /licenses/:path/ defaults: - @@ -47,4 +47,4 @@ sass: style: :compressed twitter: - username: "@github" + username: "@github" \ No newline at end of file