add a line return
This commit is contained in:
parent
22a70dc0a2
commit
ffdf88daae
|
@ -12,7 +12,7 @@ html.write("\t<script src='script.js'></script>\n</body>\n</html>")
|
||||||
html.close()
|
html.close()
|
||||||
|
|
||||||
script = open("script.js", "w")
|
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():
|
for i,x in linksDF.iterrows():
|
||||||
script.write(f"var {x['name'].replace(' ','').lower()} = new link('{x['link']}')\n")
|
script.write(f"var {x['name'].replace(' ','').lower()} = new link('{x['link']}')\n")
|
||||||
script.close()
|
script.close()
|
|
@ -6,6 +6,7 @@ class link{
|
||||||
var win=window.open(this.url, '_blank');
|
var win=window.open(this.url, '_blank');
|
||||||
win.focus();
|
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 secondlink = new link('https://fsf.org')
|
||||||
var thirdlink = new link('https://fedi.cat')
|
var thirdlink = new link('https://fedi.cat')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user