Git Product home page Git Product logo

lmb's Introduction

Line Mode Browser

CERN Line Mode Browser simulation.

Prereq

  • NodeJS

Install

  1. Clone this repo
  2. Run node .
  3. Open http://localhost:8000/ in your browser

Contrib

Add your HTML, CSS, and JavaScript to ./public. You can also make a proxy call to another URL:

http://localhost:8000/www/proxy?url=http://www.w3.org/

lmb's People

Contributors

adactio avatar brianleroux avatar briansuda avatar cern-hackdays avatar chiteri avatar cmod avatar edsu avatar gericci avatar johnallsopp avatar leaverou avatar mathiasbynens avatar obiwankimberly avatar remy avatar stomanin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lmb's Issues

Rendering issues on Chrome

It doesn't look like it's rendering properly anymore on chrome. Any chance of getting that fixed?

Thanks!
Shawn

Avoid orphans

The original code looks at the last four lines of output and tries to prevent against small paragraphs or headlings from being orphaned by inserting extra blank lines.

Script and style tag contents

Not sure if this project is to be continued, but: I was going to use this emulator to see if the technique of using comments to hide script and style tags in old browsers worked all the way back. I made a test page similar to this. I noticed that style tags are never rendered, regardless of if they have comment wraps or not. Script tags are always rendered, whether they have comment wraps or not, with the comments themselves being rendered. Since I can't find an easy way to get the real line mode browser running, I'm not sure if this behavior is the same as the original, or if it's an artifact of this being run within a modern browser.

Implement LMB logic for selection prompt

Replace the current selection prompt (form on the bottom line) with this logic:

if (is_index){  
    printf("K <keywords>, ");
    length_of_prompt = length_of_prompt + 14;
}
if (href_count!=0){
    printf("<ref.number>, ");   
    length_of_prompt = length_of_prompt + 14;
}
if (node_count>1){
    printf("Back, ");
    length_of_prompt = length_of_prompt + 6;
}
if (!end_of_file){
    printf("<RETURN> for more, ");
    length_of_prompt = length_of_prompt + 19;
}
if (length_of_prompt <= 47){
    printf("Quit, ");
}
printf("or Help: ");    

Displays root of website no matter what address you use

If I go to any webpage on a website, the proxy will show only the root of the website rather than the webpage that you requested(unless you requested the root, then it will show the one you requested). I think if you changed index.js line 32 from "var base = urlparse.parse(url).protocol + '//' + urlparse.parse(url).hostname" to "var base = req.url;", it would work.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.