From ffdf88daaee144a9932551e24ee726876356e0ff Mon Sep 17 00:00:00 2001 From: xaloc Date: Fri, 23 Sep 2022 16:03:30 +0200 Subject: [PATCH] add a line return --- gencode.py | 2 +- script.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gencode.py b/gencode.py index 6471e4b..4e23d64 100644 --- a/gencode.py +++ b/gencode.py @@ -12,7 +12,7 @@ html.write("\t\n\n") html.close() script = open("script.js", "w") -script.write("class link{\n\tconstructor(url){\n\t\tthis.url= url;\n\t}\n\tshow(){\n\t\tvar win=window.open(this.url, '_blank');\n\t\twin.focus();\n\t}\n}") +script.write("class link{\n\tconstructor(url){\n\t\tthis.url= url;\n\t}\n\tshow(){\n\t\tvar win=window.open(this.url, '_blank');\n\t\twin.focus();\n\t}\n}\n") for i,x in linksDF.iterrows(): script.write(f"var {x['name'].replace(' ','').lower()} = new link('{x['link']}')\n") script.close() \ No newline at end of file diff --git a/script.js b/script.js index 615a4e8..eaded43 100644 --- a/script.js +++ b/script.js @@ -6,6 +6,7 @@ class link{ var win=window.open(this.url, '_blank'); win.focus(); } -}var firstlink = new link('https://git.xaloc.space') +} +var firstlink = new link('https://git.xaloc.space') var secondlink = new link('https://fsf.org') var thirdlink = new link('https://fedi.cat')