Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Oct 2010
    Posts
    157
    Thanks
    2
    Thanked 1 Time in 1 Post

    How to convert this code back to normal

    Hi,
    I am looking for an automated software that can convert this code back to normal

    Code:
    <script type="text/javascript">
    $(document).ready(function() {
        //Tooltips
        $(".tip_trigger").hover(function(){
            tip = $(this).find('.tip');
            tip.show(); //Show tooltip
        }, function() {
            tip.hide(); //Hide tooltip
        }).mousemove(function(e) {
            var mousex = e.pageX + 50; //Get X coodrinates
            var mousey = e.pageY  - 340; //Get Y coordinates
            var tipWidth = tip.width(); //Find width of tooltip
            var tipHeight = tip.height(); //Find height of tooltip
    
            //Distance of element from the right edge of viewport
            var tipVisX = $(window).width() - (mousex + tipWidth);
            //Distance of element from the bottom of viewport
            var tipVisY = $(window).height() - (mousey + tipHeight);
    
            if ( tipVisX < 90 ) { //If tooltip exceeds the X coordinate of viewport
                mousex = e.pageX - tipWidth - 90;
            } if ( tipVisY < 90 ) { //If tooltip exceeds the Y coordinate of viewport
                mousey = e.pageY - tipHeight - 90;
            }
            //Absolute position the tooltip according to mouse position
            tip.css({  top: mousey, left: mousex });
        });
    });
    </script>
    I used a code converter to convert it but I want to convert it back, One should ask Why did I convert in first place? Well because sometimes blogger never agree to the code straight away so this is one way to make it understand ^^

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,637
    Thanks
    6
    Thanked 1,004 Times in 977 Posts
    Just use a text editor and do a search/replace. &lt; stands for (and has to be replaced with) <, &gt; for >, and &quot; for ". I don’t see anything else that has been converted. And actually you can even do that manually, it’s not that much. And I could even have done that myself. Would have taken less time than writing this.

  • #3
    Regular Coder
    Join Date
    Oct 2010
    Posts
    157
    Thanks
    2
    Thanked 1 Time in 1 Post
    Quote Originally Posted by VIPStephan View Post
    Just use a text editor and do a search/replace. &lt; stands for (and has to be replaced with) <, &gt; for >, and &quot; for ". I don’t see anything else that has been converted. And actually you can even do that manually, it’s not that much. And I could even have done that myself. Would have taken less time than writing this.
    I should have actually made it clear that above this is just a demo, my issue is that I use blogger and it not only converts '< > but "" ' and much more things and sometimes it lots of work to be done manually, that's why I was asking for an automated software. Btw thanks for reply.

  • #4
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,627
    Thanks
    0
    Thanked 648 Times in 638 Posts
    Create your own web page that includes that code wrapped inside <textarea> </textarea> and it should display in the page with everything converted back.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • Users who have thanked felgall for this post:

    cryoffalcon (04-29-2012)

  • #5
    Regular Coder
    Join Date
    Oct 2010
    Posts
    157
    Thanks
    2
    Thanked 1 Time in 1 Post
    Quote Originally Posted by felgall View Post
    Create your own web page that includes that code wrapped inside <textarea> </textarea> and it should display in the page with everything converted back.
    You are really smart man, It is what I wanted. Thanks.


  •  

    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
    •