<NME> main.js
<BEF> "use strict";

(function($) {
	function clickForVideo() {
		var cfv = $("#clickForVideo");
		var f = function() {
			if (!cfv.is(":visible")) return;
			cfv.hide();
			$("#demoVideo").show().get(0).play();
		};
		
		cfv.css("cursor", "pointer").on("click", f).on("touchstart", function() {
			$(this).data("moved", 0);
		}).on("touchmove", function() {
			$(this).data("moved", 1);
		}).on("touchend", function() {
			if ($(this).data("moved") === 0) f();
		});
	}

	function seekVideo() {
		var t = window.location.hash;
		if (!t) return;
		var s = /^#?(?:(\d\d?):)?(\d\d?):(\d\d?)$/.exec(t);
		if (!s) return;
		var videoj = $("#presentationVideo");
		if (!videoj || videoj.length == 0) return;
		var video = videoj[0];
		var h = parseInt(s[1]);
		if (!h) h = 0;
		var m = parseInt(s[2]);
		var s = parseInt(s[3]);
		video.currentTime = (((h * 60) + m) * 60) + s;
	}

	function aButtonsRespondToSpacebar() {
		$('a[role="button"]').keyup(function(e) {
			if (e.which == 32) e.target.click();
		self.data("clc", true);
		if (!href || href.substr(0, 4) === "http" || href === "/api/" || href === "/" || href === "/supporters" || href === "/order-license") return;
		var ext = href.substr(href.length - 4, 4);
		if (ext === ".xml" || ext === ".jar") return;
		self.on("click", function(evt) {
			evt.preventDefault();
			var key = toKey(window.location.pathname);

<MSG> bugfix for clicking our W-8BEN form on the order page.
<DFF> @@ -39,7 +39,7 @@
 		self.data("clc", true);
 		if (!href || href.substr(0, 4) === "http" || href === "/api/" || href === "/" || href === "/supporters" || href === "/order-license") return;
 		var ext = href.substr(href.length - 4, 4);
-		if (ext === ".xml" || ext === ".jar") return;
+		if (ext === ".xml" || ext === ".jar" || ext === ".pdf") return;
 		self.on("click", function(evt) {
 			evt.preventDefault();
 			var key = toKey(window.location.pathname);

{'commit': 'diff --git a/website/resources/js/main.js b/website/resources/js/main.js\nindex f07da70d..5608a3c3 100644\n--- a/website/resources/js/main.js\n+++ b/website/resources/js/main.js\n@@ -39,7 +39,7 @@\n \t\tself.data("clc", true);\n \t\tif (!href || href.substr(0, 4) === "http" || href === "/api/" || href === "/" || href === "/supporters" || href === "/order-license") return;\n \t\tvar ext = href.substr(href.length - 4, 4);\n-\t\tif (ext === ".xml" || ext === ".jar") return;\n+\t\tif (ext === ".xml" || ext === ".jar" || ext === ".pdf") return;\n \t\tself.on("click", function(evt) {\n \t\t\tevt.preventDefault();\n \t\t\tvar key = toKey(window.location.pathname);\n', 'commit_subject': 'bugfix for clicking our W-8BEN form on the order page.', 'repo_name': 'rzwitserloot/lombok', 'committer': {'name': 'Reinier Zwitserloot', 'email': '5dfbe9b445699acac9aa29de802dd6e20815f6e1@zwitserloot.com', 'time_sec': '1542625544', 'tz_offset': '60', 'date': {'seconds': '1542625544'}}, 'commit_tree': 'c9657e1d2bcdb3354a593e2d2daaac7b4e620137', 'commit_message': 'bugfix for clicking our W-8BEN form on the order page.', 'language_name': 'Java', 'license': 'mit', 'hunks': '@@ -39,7 +39,7 @@\n \t\tself.data("clc", true);\n \t\tif (!href || href.substr(0, 4) === "http" || href === "/api/" || href === "/" || href === "/supporters" || href === "/order-license") return;\n \t\tvar ext = href.substr(href.length - 4, 4);\n-\t\tif (ext === ".xml" || ext === ".jar") return;\n+\t\tif (ext === ".xml" || ext === ".jar" || ext === ".pdf") return;\n \t\tself.on("click", function(evt) {\n \t\t\tevt.preventDefault();\n \t\t\tvar key = toKey(window.location.pathname);\n', 'addition_count': 1, 'deletion_count': 1, 'src_file': 'a/website/resources/js/main.js', 'tgt_file': 'b/website/resources/js/main.js', 'file_extension': '.js', 'before_file': '"use strict";\n\n(function($) {\n\tfunction clickForVideo() {\n\t\tvar cfv = $("#clickForVideo");\n\t\tvar f = function() {\n\t\t\tif (!cfv.is(":visible")) return;\n\t\t\tcfv.hide();\n\t\t\t$("#demoVideo").show().get(0).play();\n\t\t};\n\t\t\n\t\tcfv.css("cursor", "pointer").on("click", f).on("touchstart", function() {\n\t\t\t$(this).data("moved", 0);\n\t\t}).on("touchmove", function() {\n\t\t\t$(this).data("moved", 1);\n\t\t}).on("touchend", function() {\n\t\t\tif ($(this).data("moved") === 0) f();\n\t\t});\n\t}\n\n\tfunction seekVideo() {\n\t\tvar t = window.location.hash;\n\t\tif (!t) return;\n\t\tvar s = /^#?(?:(\\d\\d?):)?(\\d\\d?):(\\d\\d?)$/.exec(t);\n\t\tif (!s) return;\n\t\tvar videoj = $("#presentationVideo");\n\t\tif (!videoj || videoj.length == 0) return;\n\t\tvar video = videoj[0];\n\t\tvar h = parseInt(s[1]);\n\t\tif (!h) h = 0;\n\t\tvar m = parseInt(s[2]);\n\t\tvar s = parseInt(s[3]);\n\t\tvideo.currentTime = (((h * 60) + m) * 60) + s;\n\t}\n\n\tfunction aButtonsRespondToSpacebar() {\n\t\t$(\'a[role="button"]\').keyup(function(e) {\n\t\t\tif (e.which == 32) e.target.click();\n\t\tself.data("clc", true);\n\t\tif (!href || href.substr(0, 4) === "http" || href === "/api/" || href === "/" || href === "/supporters" || href === "/order-license") return;\n\t\tvar ext = href.substr(href.length - 4, 4);\n\t\tif (ext === ".xml" || ext === ".jar") return;\n\t\tself.on("click", function(evt) {\n\t\t\tevt.preventDefault();\n\t\t\tvar key = toKey(window.location.pathname);\n', 'message': 'bugfix for clicking our W-8BEN form on the order page.', 'author_name': 'Reinier Zwitserloot', 'lang': 'js'}