Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Heretic86 last won the day on August 22

Heretic86 had the most liked content!

About Heretic86

  • Rank
  1. word-break: break-all; white-space: break-spaces; This is as close as I can get. Works as I want in Firefox, but other people have reported that Firefox is not working like it is supposed to. So the behavior I want apparently is a "bug" in Firefox? In chrome, that behavior still remains, it never wraps the space character to the next line which is what I need to make it a "WSYIWYG" editor for my users...
  2. I need to make a Text Area behave like a DOS prompt Basically so it wraps and spaces are placed like they are in a DOS / CMD window... This might display a little better... Can you see how it goes back and forth between "o foo" and just "foo"? It moves two characters. What am I doing wrong here? https://www.webucate.me/textarea.htm
  3. Impressive! and pretty fun also!
  4. Not quite game related (directly), just a simple form. In my form, I have an Event Listener for Paste Events, then handle the Paste data the way I want. Trouble is that once I do that and use e.preventDefault() and textarea.value = modifiedString to set the value, I am no longer able to use the browser feature of CTRL+Z to undo changes. Like it records some Event? Mutation? What am I doing wrong?
  5. Im messing around with Classes, Inheritance, and some other stuff but to keep it "simple" I'll just say ES6 Classes On one page, I create an instance of a class class MyClass { constructor(name = "", value = ""){ this.name = name; this.value = value; } } const foo = new MyClass("Tom", "123"); There is a lot of other stuff going on, so in order to visually organize the data for the user (there is a LOT), I use a separate page to modify one aspect of the data that they can change. The sub page then uses postMessage to send an instance of the class that is created on the
  6. Can we see a bit more of your code? What is there doesnt really give us a clear explanation as to why your property is coming back undefined. I am curious however if you log any of your objects, what your Dev Tools show...
  7. I've been playing around with the Web Audio API to create sound effects, background music and sound for games. I can adjust playbackRate to adjust the pitch of audio by disabling Preserves Pitch property (true by default) as an HTML5 Audio Object. var bgm = new Audio(); bgm.source = "somefile.php?bgmId=1"; bgm.mozPreservesPitch = false; bgm.webkitPreservesPitch = false; Trouble is that is HTML5 not the Web Audio API. So I needed to throw in some Web Audio API components. First thing I thought I would try was the Spectrum Analyzer. That wasnt difficult. It draws to a Canvas, sho
  • Create New...