« first day (2044 days earlier)      last day (2909 days later) » 

10:05 PM
?
@Global you are using a closing </li> tag, right?
 
yea taco
 
<li><a href="#">foo</a></li>
?
 
NCAA spring championships are going on right now for various sports with live streams
 
well.. im trying to add it through javascript instead of making changes in html
@taco any idea at all?
 
10:19 PM
I'm not a javascript guy. I know enough to write apps somewhat, but don't mess with DOM much
 
in Javascript, DOM messes with you.
 
I'd think you need to create a DOM node for your link, and use appendChild
 
yeah i tried.. but still can't get the <a> </a> in the li...
@Luggage no shit..
 
I know enough JS to be dangerous at best
 
10:31 PM
Look at how jQuery does it maybe?
 
Its so strange, because it seems like the attribute 'href' doesnt do its job in li... at least not what I want it to preform
 
_transform(chunk, encoding, done){
      const {opts} = this;
      const chunkSize = chunk.length;
      const numSamples = chunkSize/opts.sampleByteLength;
      this.samplesInBank += numSamples;
      this.bank = Buffer.concat([this.bank, chunk]);

      if( this.samplesInBank > this.samplesPerChunk ){
        this.push({
          chunk: this.bank.slice(0, this.samplesPerChunk),
          time: this.currentChunkTime,
        });
        this.samplesInBank -= this.samplesPerChunk;
        this.currentChunkTime += opts.resolution;
kills node pretty much instantly
 
106
A: How do I create a link using javascript?

Jared Farrish<html> <head></head> <body> <script> var a = document.createElement('a'); var linkText = document.createTextNode("my title text"); a.appendChild(linkText); a.title = "my title text"; a.href = "http://example.com"; document.body.appendChild(a); </script> </body> </html>

I think its because we are creating a text node, not element
 
10:47 PM
interesting..
I am already having the elements, but guess I have to make new and then replace the existing ones. I'll give it a try. Thanks!
 
11:42 PM
snyk.io Neat
3
 
With cookies you can add data to all http request in a page, not only requests made via XmlHttpRequest. Is there something else besides cookies that can accomplish this?
 

« first day (2044 days earlier)      last day (2909 days later) »