[MIRROR] more missing tags (#9918)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-01-23 11:48:06 -07:00
committed by GitHub
parent 3d40810955
commit c0ee2c30d3
95 changed files with 141 additions and 138 deletions

View File

@@ -209,6 +209,8 @@ Book Cart End
/// Proc that handles sending the book information to the user, as well as some housekeeping stuff.
/obj/item/book/proc/display_content(mob/living/user)
if(!findtext(dat, regex("^<html")))
dat = "<html>[dat]</html>"
user << browse(replacetext(dat, "<html>", "<html><TT><I>Penned by [author].</I></TT> <BR>"), "window=book")
/obj/item/book/attackby(obj/item/W as obj, mob/user as mob)
@@ -339,7 +341,7 @@ Book Cart End
else if(istype(pages[page], /obj/item/photo))
var/obj/item/photo/P = W
user << browse_rsc(P.img, "tmp_photo.png")
user << browse(dat + "<html><head><title>[P.name]</title></head>" \
user << browse("<html>" + dat + "<head><title>[P.name]</title></head>" \
+ "<body style='overflow:hidden'>" \
+ "<div> <img src='tmp_photo.png' width = '180'" \
+ "[P.scribble ? "<div> Written on the back:<br><i>[P.scribble]</i>" : null]"\

View File

@@ -35,7 +35,7 @@
/obj/machinery/librarypubliccomp/attack_hand(var/mob/user as mob)
usr.set_machine(src)
var/dat = "<HEAD><TITLE>Library Visitor</TITLE></HEAD><BODY>\n" // <META HTTP-EQUIV='Refresh' CONTENT='10'>
var/dat = "<html><HEAD><TITLE>Library Visitor</TITLE></HEAD><BODY>\n" // <META HTTP-EQUIV='Refresh' CONTENT='10'>
switch(screenstate)
if(0)
dat += {"<h2>Search Settings</h2><br>
@@ -64,7 +64,7 @@
dat += "<tr><td>[author]</td><td>[title]</td><td>[category]</td><td>[id]</td></tr>"
qdel(query)
dat += "</table><BR>"
dat += "<A href='byond://?src=\ref[src];back=1'>\[Go Back\]</A><BR>"
dat += "<A href='byond://?src=\ref[src];back=1'>\[Go Back\]</A><BR></html>"
user << browse(dat, "window=publiclibrary")
onclose(user, "publiclibrary")
@@ -305,7 +305,7 @@
dat += "<BR><A href='byond://?src=\ref[src];switchscreen=0'>(Return to main menu)</A><BR>"
//dat += "<A href='byond://?src=\ref[user];mach_close=library'>Close</A><br><br>"
user << browse(dat, "window=library")
user << browse("<html>[dat]</html>", "window=library")
onclose(user, "library")
//VOREStation Addition Start
@@ -342,7 +342,7 @@
qdel(query) // CHOMPEdit
dat += "<BR><A href='byond://?src=\ref[src];switchscreen=0'>(Return to main menu)</A><BR>"
user << browse(dat, "window=library")
user << browse("<html>[dat]</html>", "window=library")
onclose(user, "library")
//VOREStation Addition End
@@ -540,7 +540,7 @@
dat += " <A href='byond://?src=\ref[src];clear=1'>\[Clear Memory\]</A><BR><BR><A href='byond://?src=\ref[src];eject=1'>\[Remove Book\]</A>"
else
dat += "<BR>"
user << browse(dat, "window=scanner")
user << browse("<html>[dat]</html>", "window=scanner")
onclose(user, "scanner")
/obj/machinery/libraryscanner/Topic(href, href_list)