www.webdeveloper.com

Search:

Type: Posts; User: deathshadow

Page 1 of 20 1 2 3 4

Search: Search took 0.03 seconds; generated 6 minute(s) ago.

  1. Replies
    6
    Views
    243

    jQuery Oh, and as to minutes, you're using getHours, do...

    Oh, and as to minutes, you're using getHours, do you see the problem with that?

    This version will work with minutes, it uses the UTC versions so the time-zone offset doesn't interfere (something...
  2. Replies
    6
    Views
    243

    jQuery The select version is an excellent example of...

    The select version is an excellent example of what I mean by "jQuery for NOTHING" -- it's really not gaining you anything on a task like this.

    -- edit -- see code in next post, one here was crap....
  3. Replies
    30
    Views
    1,086

    ... and I just went even further... First I found...

    ... and I just went even further... First I found a few bugs and redundancies, so I axed those, so there's a new version in the directory.

    I then went and made two 'new' versions that add 'select'...
  4. Replies
    30
    Views
    1,086

    ... and oops, rewriting to use...

    ... and oops, rewriting to use textContent/innerText changed entities into their actual characters, so I had to change the symbol regex to:

    pattern : /([\<\>\&\*\/\-\+\=\?\:\;\{\}\(\)]+)/g,
    ...
  5. Replies
    30
    Views
    1,086

    Oh, I also wrapped tabs in spans as IE was also...

    Oh, I also wrapped tabs in spans as IE was also mangling those -- I figured while there I'd style those spans:


    .arduinoCode .tab {
    display:inline-block;
    vertical-align:bottom;...
  6. Replies
    30
    Views
    1,086

    I just uploaded a new version ...

    I just uploaded a new version

    http://www.cutcodedown.com/for_others/pedro147/template.html

    Which as you can see, now has string ("string") and char ('c') support. Hit me that the best way to do...
  7. Replies
    30
    Views
    1,086

    See, I'm not sure I'm wild about that as you have...

    See, I'm not sure I'm wild about that as you have to hardcode the replacement functions -- when you could just make an object you can add and remove replacements and classes to instead. I mean, you...
  8. In which case my statement stands -- since that...

    In which case my statement stands -- since that entertainment (media) is CONTENT.

    You say "content first" and for some reason people seem to think you only mean text -- if you have a content...
  9. Replies
    5
    Views
    419

    Well, your update still leaves me with more...

    Well, your update still leaves me with more questions -- in a lot of ways I think I need to see even more code, but one thing is sticking out right away here:


    </tr>";
    }
    echo "</table>
    ...
  10. Replies
    30
    Views
    1,086

    Oops, typo. new regExp('\\b' +...

    Oops, typo.


    new regExp('\\b' + wordList[j][i] + '\\b', 'g'),

    Should be:


    new regExp('\\b(' + wordList[j][i] + ')\\b', 'g'),
  11. Replies
    30
    Views
    1,086

    Oh, and if you had used an object of arrays, you...

    Oh, and if you had used an object of arrays, you could have used far less code -- just as you don't have to say "var" more than once when doing a bunch of them in a row:


    function...
  12. Replies
    30
    Views
    1,086

    @JMERKER, the problem with "if(", "jiffy" or just...

    @JMERKER, the problem with "if(", "jiffy" or just plain "if" is why regex has \b -- which detects word boundaries. If instead you were to use:

    re = new RegExp('\\b' + word + '\\b', 'g');

    It...
  13. Replies
    30
    Views
    1,086

    Too often these days people are writing JS where...

    Too often these days people are writing JS where the HTML hooks the scripting instead of the other way around, or that you have to target by specific Id's in the scripting. I like making my scripts...
  14. 1) onclick is javascript, you don't say...

    1) onclick is javascript, you don't say "javascript:" inside it. You're thinking href.

    2) you don't actually need JS to do this anymore. If you use :target you can skip scripting entirely --...
  15. Inline-block obeys whitespace and as such will...

    Inline-block obeys whitespace and as such will insert one space between elements. Since they're all DIV you've got nothing to put things side-by-side... That's why you should be floating the child...
  16. Replies
    30
    Views
    1,086

    I'm always willing to help anyone who needs help....

    I'm always willing to help anyone who needs help. It's what I do... -- well, that and piss off people who go "I want help" but then don't want to actually hear what they are doing wrong :/
    ...
  17. Given I consider 99.99% of the garbage vomited up...

    Given I consider 99.99% of the garbage vomited up by so most called SEO "experts" to be such, I could probably fill a 500 page book on the topic of "black hat" -- I consider most of the stuff people...
  18. Replies
    17
    Views
    841

    They don't have to go there, but they usually...

    They don't have to go there, but they usually load a hell of a lot faster since they can start loading as soon as the DOM hits them, and it will load all scripts in BODY before it even starts in on...
  19. Replies
    30
    Views
    1,086

    Here, try mine: ...

    Here, try mine:

    http://www.cutcodedown.com/for_others/pedro147/template.html

    Only thing it doesn't handle is strings... really the pecking order of strings vs. comments is when you have to...
  20. Replies
    5
    Views
    419

    var owed.value Where is owed defined? Is that...

    var owed.value

    Where is owed defined? Is that a global? You can't assign a property to an undefined object.

    also, it's damned confusing when you have variables of the same name where the only...
  21. Replies
    17
    Views
    841

    @ \\.\ see, you're putting SCRIPT in head -- WHY?...

    @ \\.\ see, you're putting SCRIPT in head -- WHY?

    In any case, here's what I came up with: (fixing some typo's in the markup I made above)...
  22. Replies
    17
    Views
    841

    So far folks have pointed out a lot of problems,...

    So far folks have pointed out a lot of problems, but there's even more in there that's just some serious "what the?!?!?"

    I may touch upon some things already mentioned, and not all of this is...
  23. Replies
    15
    Views
    1,247

    If that other script were actually setting the...

    If that other script were actually setting the value, declaring it as a VAR creates a new variable with the same name local in scope to that new function, so it cannot be passed. If 'saskia' is...
  24. Replies
    4
    Views
    308

    Since you seem to be asking about the site, NOT...

    Since you seem to be asking about the site, NOT the game, I'll talk the site.

    Your max-width is too small -- making that image chart effectively useless; said chart would probably be better as an...
  25. Replies
    2
    Views
    443

    Poll: As Jedaisoul said, it's painful to watch load --...

    As Jedaisoul said, it's painful to watch load -- and really it is chock full of accessibility issues and bad design choices.

    One of the worst design choices is that "parallax scrolling" nonsense,...
Results 1 to 25 of 499
Page 1 of 20 1 2 3 4
HTML5 Development Center



Recent Articles