Git Product home page Git Product logo

rarebit's People

Contributors

geno7 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

Watchers

 avatar  avatar

rarebit's Issues

RSS Feed?

Is there any way to create a proper RSS feed? Generators mostly don't recognize the pages, and if they do, they don't pull images. I also get duplicate page updates (one that include index.html and the other without).

Having no default image causes infinite loop

Hey-- I was helping someone use Rarebit for their neocities/webcomic. They wound up into an infinite loop complaining that the site was being janky.

I suspect it may be this line, where the error handler changes the img src, but if default.png hasn't been uploaded then it goes into an infinite loop.

cellThumb.innerHTML = `<img alt="${pgTitle}" title="${pgTitle}" src="${pgThumb}" onerror="javascript:this.src='${pgThumbDefault}'"/>`;

Chome dev console:
image

Replacing it with a handler that detects this loop (if it errored on pgThumbDefault, dont bother setting the src again) may be the useful enhancement. Perhaps a useful console.error directing the artist to upload a pgThumbDefault.

Btw, awesome wario video-- I coincidentially found that a day before this bug.

Modifying Rarebit to display multimedia pages instead of only image files

I'm mirroring a (solved) question I posted on StackOverflow in case it's useful to anyone here.

I needed to modify Rarebit to display a multimedia webcomic - where some pages may include text in HTML elements after or between images, some pages may include or be videos, etc. ( Like Homestuck/MSPA. )

User James posted this solution:

You can't specify more than one image extension as it is. In comic-settings.js there is a pgData object which defines some of the data for all the pages. You could add a new property to each object of pgData, "content", which would be a string containing the html content for that page. Then you would have to rewrite writePage to display "content" instead of the thing it's doing with images. Your images would then be tags inside the new content properties so you could specify whatever filenames/extensions you like.

This worked perfectly, although I mangled the code pretty aggressively in the process. Posting it here so others can use it.

Comments?

Is there a way to do comments that are consistent for each page. I kinda understand the theory(hold comments in page metadata, use a js function to write it, but I have no clue how to code it(don't know js). Thanks for any help!

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.