CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2014
    Posts
    1

    Resolved Finally get rid of <script> tags containing global variable

    Advanced to 113 bytes:

    Code:
    <input onkeyup="s?e=Date.now():s=Date.now()"onblur="c=this.value.length;this.value+=c/(e-s)"><script>s=0</script>
    If I coudn't go without global script there're two other options. Tried this, not working:

    ☑ c=this.value.length;this.value+=c/(e-s)
    Ø x=this.value;c=x.length;x+=c/(e-s)

    And if there's no way of shortening segment too:

    Code:
    onkeyup="s?e=Date.now():s=Date.now()"
    the upper [+ span of 20 symbols maximum] (on the cost of <scripts> elimination)

    I'll put my hands carefully up.

  2. #2
    Join Date
    May 2002
    Posts
    10,943

    Re: Finally get rid of <script> tags containing global variable

    What is the point of this post? It's just jibberish in it's current state. Are you trying to ask for help? If so, what exactly is your question?
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured