« first day (4954 days earlier)      last day (10 days later) » 

12:36 AM
 
12:57 AM
@matt That's what I was looking for. Having an external html "component" that I could reuse
I could import that HTML string and set a new element innerHTML
 
not for the minute, ive often thought it would be useful myself, template is probably the closest thing, or fetch with javascript
 
but I'd need the CSS too
 
shadow dom with template
 
i could put templates in iframes?
 
if you have access to the window yes
 
1:04 AM
it makes sense right? you have external js, external css already. html seems possible
 
i know, i dont know why it isnt there
 
1:41 AM
@1.21gigawatts HTML5 Imports: Import HTML Files Into HTML Files jotform.com/blog/…
 
uh what? this is cool. how i did not know about this
 
2:12 AM
let us know how you get on with it, from what i can see it all just boils down to this
<user-avatar
  src="https://www.jim-nielsen.com/.well-known/avatar"
  name="Jim Nielsen"
></user-avatar>

<script>
  class UserAvatar extends HTMLElement {
    connectedCallback() {
      const src = this.getAttribute("src");
      const name = this.getAttribute("name");
      this.innerHTML = `
        <div>
          <img
            src="${src}"
            alt="Profile photo of ${name}"
            width="32"
            height="32"
          />
          <!-- Markup/code for the tooltip -->
HTML web components November 9th, 2023 adactio.com/journal/20618
 
2:35 AM
Do you put quotes around font names?
I have this:
font-family: Helvetica Neue, Helvetica;
And the syntax highlighter doesn't like the word Neue
 
 
3:44 AM
It's up to you but it's cleaner to put quotes around fonts with spaces, and custom-loaded fonts
 
 
8 hours later…
12:06 PM
 
1:00 PM
ah yes, Quotes are required around font-family names when they are not valid CSS identifiers. For example, a font family name requires quotes around it if it contains $, ! or /, but does not require quotes just because it contains spaces or a (non-initial) number or underscore. You can probably bet that almost every font family name you use will be a valid CSS identifier.
 
 
6 hours later…
6:39 PM
glob should be built into javascripts string functions
In computer programming, glob () patterns specify sets of filenames with wildcard characters. For example, the Unix Bash shell command mv *.txt textfiles/ moves all files with names ending in .txt from the current directory to the directory textfiles. Here, * is a wildcard and *.txt is a glob pattern. The wildcard * stands for "any string of any length including empty, but excluding the path separator characters (/ in unix and \ in windows)". The other common wildcard is the question mark (?), which stands for one character. For example, mv ?.txt shorttextfiles/ will move all files named with a...
maybe lol
 
 
2 hours later…
8:21 PM
Oh man CSS HTML room was finally frozen
almost a year ago, shows how much I've gone there @TylerH if you see this, hey man!
Has anyone scraped chat? I'm surprised it still exists but would be a pretty cool project to feed it into chat gpt turbo and get some overall sentiment and memories from it.
 
@Loktar you could always try to unfroze it, and then add sloshy the bot to the room. That's what I did to the tkinter room
 
Nah that's alright, he was holding it down for years on his own I fully back his decision to have it frozen
 
got you, that's fair :)
if you're curious though: github.com/tripleee/sloshy
 
 
1 hour later…
9:56 PM
hi guys. I cant find anywhere (even in IA tools) about implicit coercion for comparisons (<, <=, >, >=) between 2 values, whether its done lexicographically or numeric. im testing it on my own but would be nice if you guys know any trustworthy sources about it. something like this:
null x null:
-> numeric comparison

number x null:
-> numeric comparison

number x number:
-> numeric comparison

number x boolean:
-> numeric comparison

number x string (nan):
=>

number x string (number):
=>

number x string (boolean):
 

« first day (4954 days earlier)      last day (10 days later) »