Questions tagged [html]

HTML (Hyper Text Markup Language) is the standard content markup language of the web. It is an open standard developed and maintained by W3C (World Wide Web Consortium).

Filter by
Sorted by
Tagged with
2
votes
0answers
36 views

Remove General sibling on Keyup

I am creating a search filter using jQuery and implementing Array.prototype.filter(). What I have done is that I call the ...
4
votes
1answer
53 views

D3 animation explaining base-10 notation

This is my first D3 code. I am self-taught so I am not sure that the chaining of the transition follows the common best practices. Also, is there a way to avoid duplicating the "group" and the "anim" ...
2
votes
1answer
423 views

TagHelper for class inlining

I'm building a RESTful service that sends emails with body rendered by partial views. It replaces my old solution that used hardcoded templates of IHtmlElement ...
0
votes
1answer
90 views

Displaying an order status form

Below is code i used to call Api and display the "Status" results in web page. my senior told me that code is completely mess and need to improve so that it should be easy to understand for others. ...
2
votes
1answer
54 views

Command-line search for web-scraped TV Guide listings

This is a project that I am looking to clean up. The code is fully functioning and it has already been turned in, so I figured I can let Code Review help me. The git repository can be found here: ...
2
votes
1answer
100 views

d3.js visualization of some British disease data

I've taught myself d3 (still learning), and have a finished visualisation that I'm more than happy with. But i think (know) that the code can be improved and made more efficient. For instance, use a ...
10
votes
1answer
158 views

Merging JSON and inserting into the DOM

I'm an aspiring junior dev. This is modified version of the code I wrote for a technical interview I did today (Didn't pass. Sad.). The problem was to fetch two json files, and display their data on a ...
2
votes
2answers
127 views

Loading html from file using JavaScript

Today I was trying to load navigation bar from another HTML page. Here is code, that I am using. What do you think about it? Is there any other way to do it? ...
2
votes
3answers
186 views

jQuery “on('click')” to toggle webpage content

I have made a successful test page that satisfies my goals of using JavaScript ( jQuery specifically ) to add and remove content from a webpage. ...
2
votes
0answers
46 views

Display results from a JSON response based on game type

This code currently works with no errors. I want to know if there is a way to improve its conding structure, as there is a lot of repetition and it looks really bad. I tried an alternative way by ...
4
votes
1answer
60 views

Content extraction and persistence using Pandoc & Lenses

Endpoints to save a Pandoc document to the database using persistent. Prior to being stored, the code strips out all of the paragraph content (the [Inline]'s) and ...
2
votes
1answer
205 views

Make HTML/Javascript Geolocation function more linear

I'm checking users locations with HTML Geolocation before unlocking the front door. Geolocation takes a few seconds in addition to the time it takes the user to approve it, so currently I have a ...
1
vote
1answer
2k views

Creating HTML table with JSON data using pure JS

In the below function I'm fetching data from a JSON object, then creating and populating a HTML table with the contents. Yes the code is readable but I feel that it just looks too long winded for what ...
0
votes
2answers
3k views

Remove all html special chars

Before saving the input from users in the database, I am using the below function to replace all HTML special chars. All my users will always be using the English Language. Option 1 ...
2
votes
1answer
609 views

Python script to scrape titles of public Youtube playlist

Just started in Python; wrote a script to get the names of all the titles in a public Youtube playlist given as input, but it got messier than it might have to be. I looked around online and found ...
3
votes
1answer
71 views

Use vue components as one-offs in layout scaffolding

I've recently been getting into VueJS and CSS Grid. In the past I've always used frameworks like Bootstrap to built up my layout. However, since CSS Grids and VueJS have caught my attention, I'm ...
2
votes
1answer
64 views

Fluid mobile-first website CSS Grid

I'm new to programming and web design, and I'm looking for ways to improve my code. What are some things I do well and things I do poorly? How could I optimize my code in any way? ...
1
vote
3answers
651 views

Hide or show table rows as a hierarchy

I'm using PHP HTML and JavaScript to write questions that need to be shown/hidden based on inputs from the user. I have several rows in a table, each row contains a ...
3
votes
1answer
330 views

Tic Tac Toe in JavaScript (+ jQuery)

Here is my first project that I made with JavaScript and jQuery with a little bit of HTML and CSS: ...
1
vote
1answer
99 views

Fetching and parsing JSON data from the Oodle API

Here is a working proof of concept in vanilla JS that uses the fetch API to retrieve and parse JSON data. Coming from a server-side background, I wanted insight as to where my beginner JS skills could ...
1
vote
1answer
412 views

Getting table cell contents in a row and displaying them as a concatenated tooltip on each cell

I have a JavaScript code that gets the inner text content of certain table cells in a row and displays them as a tooltip on mouseover. However, I am a novice at JavaScript and I do not know how to ...
0
votes
0answers
2k views

Angular 2 Autocomplete

I've tried to build a fairly simple, reusable and functional Angular2 autocomplete component. The component: ...
2
votes
2answers
5k views

Mysql multiple queries from one PHP file

I'm running the below code to populate a HTML table using several calls to mysqli_query(). The below snippet only shows three however I'm running ten in my file for ...
1
vote
2answers
65 views

Weather application data structures and design

Relevant files are script.ts, WeatherData.ts, index.html. I made a simple weather 5-day forecast application using mainly TypeScript. I was wondering how I can improve my code since I originally ...
3
votes
2answers
70 views

Format python data structures in HTML no dependencies

My poorly written tests suggests that the module works as intended. I fear this is to good to be true. I don't known how to write unit tests for this. I'm new to writing tests and I think this module ...
1
vote
1answer
478 views

My first interactive web page: Quiz App

I just learnt some web development and made this simple app. It is a quiz app. You have to click the options and after submission, result is shown. If you want to start again, you can restart with ...
1
vote
1answer
561 views

Enable Jquery Containment without using position: relative

I was trying to constrain ui-modal-dialog closed by the "body" of html using Jquery's constrainment. I thought it was possible to just set .draggable( { containment: 'body' }): However, ui-modal-...
1
vote
0answers
33 views

WordPress plugin that accepts a zip file, moves it to a specific folder, then unzips it

I wrote a plugin that allows a user to upload a zip file, then the plugin will create a unique directory inside of 'uploads' and then it will unzip the file. I did this so if a user needs to upload ...
3
votes
2answers
100 views

How to use this jQuery search filter more effective?

This is my code: ...
1
vote
2answers
137 views

Using <div> instead of other tag types (<span>, <p>, etc) [closed]

Is it considered bad style to always use <div> instead of using, say, <span>? I know that using specific tags like <...
1
vote
1answer
678 views

Search table with filter in Jquery

This is my code: ...
4
votes
1answer
82 views

Displaying contacts in PHP, with options to omit some information

I am currently changing some PHP code. The old code looked like: ...
2
votes
4answers
6k views

Loading, parsing, and displaying a JSON file

I recently have been working on loading a local JSON file parsing it and displaying it using Javascript and I think I got it to where I really like it. I would like to know if anyone knows if there is ...
0
votes
4answers
191 views

Three clickable navigation elements, where only one should be active

I have three clickable <h1> elements in the nav bar of a static page I'm making as a practice project. I wrote code so when I click one, it lights up. Since ...
1
vote
0answers
639 views

Vanilla JS Vigenere Cypher Decoder

Example: JSFiddle Questions Supposedly there's an issue with using ^ in a regex statement. Is that always the case or is it acceptable to use as I have here? Should I include a validation to ensure ...
2
votes
1answer
50 views

jQuery Tab Scroller -follow-up

This is a follow-up to the thread jQuery Tab Scroller. Adjusts have been made based on community suggestions, and here is the updated JSFiddle. Calls for jQuery and Font Awesome have been included in ...
2
votes
2answers
108 views

jQuery Tab Scroller

I've never had anyone review my code. I actually found full-time work as a web developer and in the interest of ensuring that I'm always improving, I'd like to see if I'm doing things the proper way. ...
4
votes
2answers
989 views

JavaScript night mode buttons with cookies

Recently I updated a JavaScript file for my website. I added in use of cookies. Bear in mind that I only just started to learn about cookies and it had errors. So I moved code around to stop it from ...
0
votes
1answer
2k views

JavaScript calculator using inputs value [closed]

I’m trying to make a simple calculator with 3 inputs in JavaScript but it doesn’t work. For now my code is: ...
2
votes
1answer
446 views

A basic arithmetic calculator

I mostly need feedback on the client-side JS. Calculator.html is mostly a big button array made in Bootstrap. ...
1
vote
0answers
264 views

A scroll to top button with fixed positioning

I have this JavaScript code that works as a top-of-page button when clicked. The button is hidden by default and only appears when the user scrolls 500px or more from the top of the page. But I am not ...
2
votes
1answer
119 views

Hotel search engine UI

I ask for your help to improve the form I created, keeping in mind that I am not a great expert in JavaScript programming. I need to create a hotel search engine, with the possibility to choose the ...
3
votes
2answers
185 views

Segementing a recursive tree in haskell

Could somebody help me work out how to abstract the recursion from this code for me please? I'm trying to write something that takes a pandoc structure, and subdivides the tree whenever it finds a ...
0
votes
1answer
51 views

How to run canvas animation without effecting other javascript code [closed]

It seems to be the case that the canvas animation affects other JavaScript functions when I use window.onload = function() {. Please let me know the best practice ...
1
vote
1answer
83 views

Making a slideshow in JavaScript/jQuery

I am new to JavaScript and jQuery, and I would like to know what can be improved of the code in this slideshow. ...
2
votes
1answer
57 views

Extract a number from a consecutive range in a Google Sheet

I'm new in coding and I use google script in my spreadsheet to add a list of consecutive numbers automatically by giving the first number to add and the last one (with an arrival date and an option "A"...
1
vote
0answers
742 views

Overlay a YouTube video iFrame Over an Image

This is my code and the main thing I wanted to accomplish when creating this was to: overlay an iFrame over an image and also to see if I could embed a YouTube video iFrame with the video ID entered ...
2
votes
1answer
70 views

Buttons labelled with the number of times they have been clicked

I am new to functional programming and I decided to learn it thru Elm instead of haskell. I wrote a practice code where there are 2 buttons and their names correspond to the number of times they are ...
-2
votes
1answer
37 views

printing javascript equations via html [closed]

Here's a (probably) simple question for you all, I need some simple equations generated via javascript to display on my website, but I am unable to do so. Following online tutorials, I have: ...
0
votes
1answer
135 views

Cycling through sibling elements on button click and assigning a class to the “active” element

I am attempting to do something that seems pretty simple, but I'm not sure if it as performant as it could be. I'm looking to cycle through a set of elements and toggle a class to only show a single ...