Category : html

I´ve created an app using Streamlit, which needs to read multiple files at once. I´m using the file_uploader() component with the parameter accept_multiple_files=True. I got 2 questions: First is if there´s a way to hide the bottom HTML/Widget that appears after uploading a file/s (see picture below)? And second, if there´s a way to remove ..

Read more

I have this code from the index.html page from https://github.com/huzaifsayed/coronabot-chatterbot: function appendMessage(name, img, side, text) { // Simple solution for small apps const msgHTML = ` <div class="msg ${side}-msg"> <div class="msg-img" style="background-image: url(${img})"></div> <div class="msg-bubble"> <div class="msg-info"> <div class="msg-info-name">${name}</div> <div class="msg-info-time">${formatDate(new Date())}</div> </div> <div class="msg-text">${text}</div> </div> </div> Source: Python..

Read more

I use flask, flask-bootstrap and wtf for my app I would like to pass my custom messages from wtf validation to look like client side validatition dont like how looks in picture 2 here is my code class LoginForm(Form): username = StringField(‘username’, validators=[DataRequired(message=’Input something’), Email(message=’I don’t like your email.’)]) password = PasswordField(‘password’, validators=[InputRequired(), Length(min=5, max=10), ..

Read more

can someone please explain why is {% for item in items %} and {{item.product.id}} written in the following code, I’m trying to put an add to cart functionality to my store: cart.html: {% load static %} {% block content %} <div class="row"> <div class="col-lg-12"> <div class="box-element"> <a class="btn btn-outline-dark" href="{% url ‘store’ %}">← Continue Shopping</a> ..

Read more

this is how i can get the list of users in group in base_url BASE_URL = "https://www.strava.com/clubs/262654/members?page=" #enter login and password then go to the page for page in range(2, num_pages + 1): time.sleep(1) driver.get(f"{BASE_URL}{page}") html = driver.page_source soup = BeautifulSoup(html, "html.parser") athletes = soup.find_all("ul", {"class": "list-athletes"})[1] for avatar in athletes.find_all("div", {"class": "avatar"}): if ‘title’ ..

Read more