Explorar el Código

Indent a little prettier

Lucas Stadler %!s(int64=9) %!d(string=hace) años
padre
commit
acb2789d19
Se han modificado 1 ficheros con 14 adiciones y 12 borrados
  1. 14 12
      go/blog/blog.go

+ 14 - 12
go/blog/blog.go

@ -262,19 +262,21 @@ func main() {
262 262
	});
263 263
264 264
	window.addEventListener("click", function(ev) {
265
		if (ev.target.classList.contains("tag-link")) {
266
			if (ev.target.href == "") {
267
				return;
268
			}
265
		if (!ev.target.classList.contains("tag-link")) {
266
			return;
267
		}
269 268
270
			var tag = tagFromURL(new URL(ev.target.href));
271
			if (currentFilter == tag) {
272
				clearFilter();
273
				location.hash = "";
274
				ev.preventDefault();
275
			} else {
276
				filterTag(tag);
277
			}
269
		if (ev.target.href == "") {
270
			return;
271
		}
272
273
		var tag = tagFromURL(new URL(ev.target.href));
274
		if (currentFilter == tag) {
275
			clearFilter();
276
			location.hash = "";
277
			ev.preventDefault();
278
		} else {
279
			filterTag(tag);
278 280
		}
279 281
	});
280 282