orders@projectlombok.org.");
+ spinner.replaceWith(okMsg);
};
var onFailure = function() {
- alert("Whoops");
+ $("#orderHelp").hide();
+ var errMsg = $("orders@projectlombok.org? Thank you!");
+ spinner.replaceWith(errMsg);
};
var data = {};
- data.name = $("#name").val();
+ data.name = $("#companyName").val();
+ data.email = $("#email").val();
+ data.licenseType = $("input:radio[name='licenseType']:checked").val();
+ data.seats = parseInt($("#seats").val());
+ data.paymentType = $("input:radio[name='paymentType']:checked").val();
+ data.mentionMe = $("#mentionMe").prop("checked");
+ data.companyUrl = $("#companyUrl").val();
+ data.locationType = $("input:radio[name='locationType']:checked").val();
+ data.euVat = $("#euVat").val();
+ data.paymentMethod = $("input:radio[name='paymentMethod']:checked").val();
+
+ var formFail = false;
+
+ if (!data.paymentMethod) {
+ showError("paymentMethod");
+ formFail = true;
+ }
+
+ if (!data.euVat && data.locationType === 'eu') {
+ $("#euVat").focus();
+ showError("euVat");
+ formFail = true;
+ }
+
+ if (!data.locationType) {
+ showError("locationType");
+ formFail = true;
+ }
+
+ if (!data.seats || isNaN(data.seats)) {
+ $("#seats").focus();
+ showError("seats");
+ formFail = true;
+ }
+
+ if (!data.paymentType) {
+ showError("paymentType");
+ formFail = true;
+ }
+
+ if (data.email.indexOf('@') === -1) {
+ $("#email").focus();
+ showError("email");
+ formFail = true;
+ }
+
+ if (data.name.trim().length < 1) {
+ $("#companyName").focus();
+ showError("companyName");
+ formFail = true;
+ }
+
+ if (formFail) return;
+
var rnd = generateRandom();
var err = processImageUpload();
if (err) {
@@ -24,6 +143,9 @@
return;
}
if (imgDataUrl) data.logo = imgDataUrl;
+
+ submitButton.replaceWith(spinner);
+
$.ajax({
url: "/license-submit/" + rnd,
method: "PUT",
@@ -31,7 +153,7 @@
data: JSON.stringify(data),
processData: false,
success: onSuccess,
- failure: onFailure
+ error: onFailure
});
});
@@ -58,6 +180,13 @@
$("#deleteCompanyLogo").show();
}
});
+
+ $("#seats,.paymentType,.licenseType").on("change keyup", function() {
+ updatePriceIndication();
+ });
+ $(".locationType").on("change", function() {
+ updateLocationInfo();
+ });
}
function generateRandom() {
diff --git a/website/resources/js/supporters.js b/website/resources/js/supporters.js
index 5ec1b057..5f21c79c 100644
--- a/website/resources/js/supporters.js
+++ b/website/resources/js/supporters.js
@@ -3,7 +3,7 @@
(function($) {
var supporters = {};
var weights = {};
- var types = ["patron", "professional", "enterprise"];
+ var types = ["enterprise", "professional", "patron"];
function shuffle(array) {
var i = 0, j = 0, temp = null;
@@ -49,7 +49,7 @@
var d = $("").addClass("supportItem").addClass(this.type);
var a = d;
if (this.url) {
- a = $("").attr("href", this.url).attr("rel", "noopener");
+ a = $("").attr("href", this.url).attr("rel", "noopener").attr("target", "_blank");
d.append(a);
}
var n = $("").text(this.name);
@@ -69,8 +69,13 @@
var ht = Math.round(h / f);
i.width = wt;
i.height = ht;
+ var ji = $(i);
if (!showName) a.empty();
- a.prepend(i);
+ ji.css("width", wt + "px");
+ ji.css("height", ht + "px");
+ ji.attr("alt", n);
+ ji.attr("title", n);
+ a.prepend(ji);
};
i.src = 'files/' + this.logo;
}
@@ -129,6 +134,8 @@
var s = $(".supporterBar");
s.find(".introText").show();
s.append($("").addClass("sbCnt"));
+ var sf = s.find(".supporterFooter").show();
+ s.append(sf);
s = s.find(".sbCnt");
var now = new Date();
var list = [];
diff --git a/website/templates/_scaffold.html b/website/templates/_scaffold.html
index c461423f..767f28e5 100644
--- a/website/templates/_scaffold.html
+++ b/website/templates/_scaffold.html
@@ -92,14 +92,17 @@ ga('send', 'pageview');
- Roel and Reinier will be talking about (near) future java features; a preview of what Java10 and Java11 will probably look like, across germany:
See you there! (We'll have stickers!)
Lombok is open source. We offer three licenses for using lombok. The standard license is free. Here you can order a professional or enterprise license.
- As part of being a professional or enterprise licensee, we normally offer to put your name, a logo, and possibly a link on our ‘supporters and licensees’ page. From time to time we’ll put a supporter or licensee on our front page. You may of course opt out of this offer. We may, at our discretion, opt not to list you. If we elect not to do so, you will be notified at the email address you fill in on our form, and you are as always free to cancel your license at any time. -
- The license fee is based on the number of developers that work for you or your company using Project Lombok, per month. The fee is charged in advance. You may choose to pay either monthly or yearly (for sufficiently small licensees, only a yearly option is available). -
- Project Lombok is provided by the copyright holders and contributors “as is” and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed, even for professional and enterprise license holders. In no event shall the copyright holder or contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage. -
- Instead of a professional or enterprise license, if you’d like to support the efforts of Project Lombok, you can also support us via Patreon. -
- Order a professional or enterprise license now.
+ Order a professional or enterprise license
+ For individuals: Become a patreon
+
+ Lombok is and will remain a free, open source product. However, we ask you to consider becoming a licensee. Licensees will be listed on the projectlombok.org website, we'll send you some stickers, and an official license. You'll be supporting the development of Project Lombok.
+
+ As part of being a professional or enterprise licensee, we will put your name, a logo, and possibly a link on our ‘supporters and licensees’ page. We'll also put (at random) some supporters and licensees on our front page. You may of course opt out of this offer. We may, at our discretion, opt not to list you. If we elect not to do so, you will be notified at the email address you fill in on our form, and you are as always free to cancel your license at any time. +
+ Project Lombok is provided by the copyright holders and contributors “as is” and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed, even for professional and enterprise license holders. In no event shall the copyright holder or contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.
diff --git a/website/templates/order-license.html b/website/templates/order-license.html index 4d52d93a..91693c0a 100644 --- a/website/templates/order-license.html +++ b/website/templates/order-license.html @@ -1,7 +1,7 @@ <#import "/_scaffold.html" as main> <@main.scaffold load=["/js/order-license.js"]> -orders@projectlombok.org