• Content count

  • Joined

  • Last visited

  • Days Won


Ingolme last won the day on July 4

Ingolme had the most liked content!

Community Reputation

785 Excellent


About Ingolme

  • Rank
    Foxy Mod

Previous Fields

  • Languages
    Javascript, PHP, MySQL

Contact Methods

  • Website URL
  • ICQ

Profile Information

  • Gender
    Not Telling
  • Interests
    Web development, drawing, videogames, foxes.

Recent Profile Visitors

160,085 profile views
  1. It only shows the source of files in the same local filesystem, regardless of domain name. If, for some reason, it did load a file from a URL it would only be able to show what was returned by that URL through HTTP.
  2. The issue seems to be this section of your CSS: @media only screen and ( min-width: 981px ) { .et_pb_button_4 { display: none !important; } .et_pb_text_21 { display: none !important; } .et_pb_text_23 { display: none !important; } .et_pb_text_16 { display: none !important; } .et_pb_text_9 { display: none !important; } .et_pb_text_3 { display: none !important; } .et_pb_text_5 { display: none !important; } .et_pb_text_7 { display: none !important; } .et_pb_text_1 { display: none !important; } }
  3. This is the most primitive example using just Javascript: <textarea id="source"></textarea> <button id="action">Run</button> <iframe id="destination"></iframe> <script> var source = document.getElementById("source"); var destination = document.getElementById("destination"); var button = document.getElementById("action"); button.addEventListener("click", run, false); function run() { var d = destination.contentDocument;; d.write(source.value); d.close(); } </script> We have a textarea with the HTML code, an <iframe> where the HTML page is rendered and a button that copies the code from the textarea into the page. This will not look very pretty, so you should style it with CSS. There's also a server-side way to do it, but it is more complicated and you need to learn a server-side language. The advantage of the server-side version is that it will work even on browsers that have Javascript disabled. The concept is simple: You have a form that has an iframe as a target, when the form is submitted, the HTML code that was sent to the server is printed directly onto the page inside the iframe.
  4. It looks like one of the pages has CSS setting the font family and size and the other page does not. If you included a CSS framework it most likely is setting its own default font.
  5. If you get a 301 or 302 response, check the Location header in the array and make another get_headers() call to that URL to see if it exists.
  6. That refers to a constant. It would be defined in the Feed class as const ATOM = 'Some value'
  7. This is unfamiliar to me, since other Javascript frameworks and libraries I've worked with did not actually alter Javascript syntax. If this really is a browser-side library, it seems pretty inefficient to parse all that code just to have a prettier syntax. It would have to be compiled into real Javascript, either using a server-side compiler or during runtime with a Javascript program.
  8. What does your HTML look like?
  9. Did you inspect your HTML element to see what styles are being applied to it?
  10. This does not appear to be browser Javascript, which does not support import statements or typed arrays. It seems like there would be an issue in your render() call because your string is not quoted. ReactDOM.render( '<META http-equiv="refresh" content="0;URL=Index.html">', // Added quotes to the string document.getElementById('app') );
  11. The inner list should be placed inside a list item. No element can be a direct child of <ul> or <ol> except an <li> element. <ol> <li>Inner list <ol> <li>Item 1</li> <li>Item 2</li> </ol> </li> <li>Item 2</li> <li>Item 3</li> <li><img src="" alt=""></li> </ol>
  12. I'm not seeing the issue in the example page. I tested in Firefox, Chrome and IE11. It works down to 320px wide, which is the width of the smallest phones today.
  13. I'm not sure what code you're using to get the mouse offset, but once you have it you can calculate the correct position by dividing the canvas real size by its visible size. // Assuming we already have a reference to canvas and the mouse's position // relative to it is in visibleX and visibleY var horizontalRatio = canvas.width / canvas.offsetWidth; var verticalRatio = canvas.height / canvas.offserHeight; var realX = horizontalRatio * visibleX; var realY = verticalRatio * visibleY; // Do something with realX and realY
  14. You'll have to link to a specific PHP file that's designed to display the source of a file. <a href="show-source.php?file=interface">Interface</a> <a href="show-source.php?file=class">Class</a> show-source.php <?php if(isset($_GET['file'])) { switch($_GET['file']) { case 'interface': highlight_file('./composer/php_rss_generator/RSSGenerator/ItemInterface.php'); break; case 'class': highlight_file('./composer/php_rss_generator/RSSGenerator/Item.php'); break; } } ?>
  15. A responsive page should not have any effect on the canvas. The width and height attributes of the canvas determine its real size, if it has been scaled down by CSS that will not actually reduce the number of pixels that are on the canvas.