Giter VIP home page Giter VIP logo

Comments (4)

DavydeVries avatar DavydeVries commented on June 29, 2024

To come back on your own comment:

Yep, because if you really think about it, flag icons are a UI/View
problem.

If you use the thumbnail url as a background-image inline. And in CSS a fallback url background-image. You have no problems with this.

CSS:

.roomimg{
background-image:url(xxx.png);
}

HTML:

<div class="roomimg" style="background-image:url(thumbnail_url.png)"></div>

So my conclusion, it's a UI/View problem. And easy to fix for a user/developer.

from habboapi.

gerbenjacobs avatar gerbenjacobs commented on June 29, 2024

Yeah, I'm also reconsidering the flag thing. Not necessarily to start using hhus, but to have a little helper function that can transform com to hhus and vice versa.

The background image is a good idea. But that doesn't work for normal images (without JS).

But the main problem I find is that Habbo (and thus we as well) return a fully valid HTTPS URL, but then in the end.. it doesn't even work. The ideal situation would be Habbo returning null.

The next best situation would maybe be that our HabboAPI is more user-friendly?

from habboapi.

DavydeVries avatar DavydeVries commented on June 29, 2024

But that doesn't work for normal images (without JS).

Image element is so unfriendly elements in HTML, I recommend to drop this and start using background-images. (But this is my opinion.)

from habboapi.

gerbenjacobs avatar gerbenjacobs commented on June 29, 2024

Closing this particularly issue, the actual functionality might be built in #15.

from habboapi.

Related Issues (20)

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.