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).

learn more… | top users | synonyms

1
vote
1answer
18 views

Capture time spent viewing media

I've created some custom code that will capture how long a user spent viewing a picture. The timer will stop when the user clicks or escapes from the fancybox view. Is there an alternate way for me ...
-1
votes
0answers
17 views

HTML Form data into a Object to pass a method [on hold]

So i'm trying to make this basic cash register type of app for practice, i'm just wondering how do I pass the form data from this : ...
6
votes
2answers
21 views

Div circular scroll

Have one div: Here's what scrolling of this div should look like: The only way I see is to duplicate ...
-3
votes
0answers
11 views

Wordpress search box not returning results [on hold]

This is the code I have, however it isn't bringing back any results, does anybody have any experience in this field who may be able to help? ...
7
votes
2answers
219 views

HTML Book Compiler

I have written a BASH script to parse and compile HTML code into a single page. The script works as expected, although my code is not completely re-usable and the standard output messages could be ...
0
votes
0answers
60 views

Appending JSON values to the DOM

My code below uses JSON to append images into the DOM. It works properly but I want to optimize my JavaScript to see if I can write it in fewer lines or if there are methods I can use that optimize my ...
-1
votes
0answers
27 views

HTML Style Check

I have been a little stuck when it comes to HTML style. For example: here's some HTML code from one of my projects: ...
1
vote
1answer
20 views

Transforming markdown files in folders into a documentation

I start coding a simple application: I transform markdown files in folders into documentation. My architecture is very flat. My code looks like a series of unit function called one after the other. ...
1
vote
2answers
43 views

Listing every date between two dates in input fields

Using the following HTML: <input type="date" value="2015-07-26" name="startdate"> <input type="date" value="2015-07-29" name="enddate"> First, the JS ...
0
votes
0answers
13 views

Timer instead of delay javascript function [on hold]

I'm making loading screen on my page that will cover the entire screen for about 10 seconds before it fades into the main content which should have loaded during those 10 seconds. It works but the ...
-1
votes
2answers
32 views

Program that filters JSON data based on user selection

I have made a basic program using AngularJS that displays data from a JSON file, and filters it according to the user's selection (specifically FIFA 15 chemistry cards). I did plenty of CSS work to ...
0
votes
1answer
22 views

Scroll with multiple, and going different directions

I have a large image of an L-shaped painting on one page. I created divs over parts of the painting I want to explain. When the page loads, I want it to scroll down the length of the image, and then ...
3
votes
1answer
51 views

HTML and JS to dynamically load, refresh, and execute JavaScript from external file

The following code is designed to load and refresh JavaScript code from an external file sandbox.js and allow it to be refreshed dynamically and executed without ...
2
votes
2answers
35 views

PDO Database Auto Table Creator

How can I do the following with less nested loops. How can I output the Table names above their corresponding tables without having to loop. Functions for returning the DB Info: ...
-3
votes
0answers
20 views

How do I add more lines to this code, to make more tabs open with this existing code [closed]

I was wondering, if there was a way I could turn this code into a code when clicked, it would open multiple tabs (such as this one) in different websites. I am very new to code, so please excuse my ...
10
votes
3answers
819 views

App for generating passwords

I wrote a simple JS app to generate passwords. I read up on some of the commenting standards for JS, and started reading the book Clean Code. I am not sure if I am writing the ...
2
votes
0answers
28 views

Manipulating drop-down based on data

I like to create scripts that are clear as to what they do, I like comment, and use data- * in HTML to define what each component is. I created a script that ...
3
votes
1answer
56 views

Forms - Ordered fields vs. dynamic iterations

I've made about 2 forms that have a server side action using PHP. For the first one, I made a variable for every form field and mapped it to $_POST["name"]. For ...
-3
votes
1answer
62 views

jQuery Addition Calculator

Please ignore row "B. and C." as it works in the environment where it was implemented and is missing the JavaScript reference. The rows highlighted in light blue are the issue. I injected row "A." ...
-2
votes
1answer
22 views

Selecting a specific form content

This code is used for displaying only certain content of the form instead of displaying all the form content. I am using it to stop the users from filling all the form fields if those are irrelevant ...
1
vote
2answers
54 views

Populating lists with links from arrays

I have the following configuration: ...
8
votes
5answers
324 views

Prorated Refund Calculator (v2)

This is a follow-up question to original Prorated Refund Calculator. Here is the summary of the changes I made since last, thanks to the good answers and some study of my own. Did away with ...
6
votes
2answers
152 views

After-school service for students

I have to show a select control of students with event information where Monday, Tuesday, Wednesday, Thursday and Friday are Events. (Independent buttons). The ...
3
votes
2answers
41 views

Slurp JSON trading cards to valid HTML

For Cardshifter TCG we pretty frequently update our list of available cards, so I tried to think of a way to make it easy to transform an exported JSON file containing all the cards into a decent HTML ...
5
votes
2answers
137 views

Start of a responsive website for a legal firm

Please have a look at the HTML/CSS/JS (there is very little JS at the moment) and give me some feedback as to how my code looks to you, what level of skills it looks like I have and how I can improve. ...
10
votes
2answers
526 views

Checking all checkboxes

Problems: Wanting to check all checkboxes when the checkbox w/id=checkall is checked. Wanting to uncheck the "checkall" box when any other checkbox is unchecked. Solution: ...
4
votes
1answer
176 views

HTML Form validation with PHP

I'm kinda new to PHP and I'm trying to make a script to validate a HTML form only with PHP (I know there are options to do so with JS, but I guess it's better to have a "cover" with a server-side ...
1
vote
2answers
159 views

Lotto/lucky draw

The following script draws 6 numbers at random. I input another 6 numbers and compare with random numbers generated, if they're the same, you win. ...
3
votes
2answers
52 views

Rendering nested array in a <ol> with headings

I have an array with the following structure ...
2
votes
2answers
89 views

jQuery range slider change text based on hidden field value

I am working on a jQuery ratings function that uses the Foundation range slider. My current implementation works correctly on 2 of 7 of my range sliders. However, I am quickly realising that my ...
3
votes
1answer
64 views

Single button use to create light box that brings up different content based on the div

My goal is: when you click on the button "word" it will turn into a lightbox. The button will bring up another content box that holds the same profile image as before with a small bio with image ...
3
votes
1answer
81 views

The 101 Pictures Gallery

I am working on a website for a group of artists and want to know of a way to make my code cleaner and my website run faster. I am working on the gallery page, and there are over 100 pictures I want ...
2
votes
2answers
53 views

Displaying an overlay when hovering over photos

I have some very illogical jQuery code and I want to see if someone finds a better way to do the exact same thing: jQuery: ...
1
vote
1answer
39 views

Including a header file with proper content and structure

I am new to HTML and programming in general and am currently working on setting up my first website. For this I created a couple of PHP pages with a separate file for each of them and in order to ...
2
votes
1answer
72 views

Submit an array as html form value using JavaScript

I'm sending data from a form with a variable number of fields via an ajax call. Some of the fields are grouped together so I have opted to send them as an array of JSON objects to keep the groupings ...
3
votes
1answer
44 views

Simple HTML and CSS website

I'm making a really simple html website with CSS and I was hoping on some feedback. A few notes: There will be more content under this, but I want the starting screen to take up the full page and ...
2
votes
2answers
43 views

Creating a menu

I have this code currently written to help me create a menu. I was just wondering if there is a way to tidy this so that there is less code needed to achieve the same thing. The code is designed to ...
3
votes
3answers
87 views

Price calculator (quote) based on word count

I am working on an ad form for a local newspaper. I am not familiar with the programming side of things, still learning. I was able to successfully get the form to count the words, but I need it to ...
2
votes
4answers
106 views

Hovering over images to show another image whilst fading in & out

I'm trying to figure out how to correctly hover over an image to fade in another image and when you move your mouse out, it would go fade back to the normal image. ...
15
votes
6answers
1k views

To-do list in jQuery

I'm making a simple to-do list with jQuery. This is my first step in JavaScript and jQuery. How can I improve my code? User enter tasks in input field, submit by pressing 'Enter'. On double-click, he ...
1
vote
2answers
44 views

Reloading selects with JSON

My JavaScript code is slow for large inputs. However, it is especially slow in IE. The browser will freeze for about a minute while the select is being reloaded. Any ideas for how to optimize this ...
3
votes
2answers
66 views

Toggling html buttons and text

I went through a question on SO, and optimized the code according to OP's requirements. I would like a review if it is done properly or not. Here is the code snippet, there are 2 level buttons, when ...
2
votes
0answers
79 views

Truncating text with jQuery but keep the HTML formatting

I repeat here this answer on Stack Overflow. I first posted an answer with not finalized code, as a simple description of the solution I could think, without any test. But later I remained ...
3
votes
1answer
37 views

Algorithm for subdividing html-elements

I am trying to write a module that automatically subdivides div-elements, given some initial parameters. I've prepared the following jsfiddle. What I am doing at the moment is: Setting the width ...
12
votes
2answers
176 views

FizzBuzzLizardSpock

I decided that since I was learning AngularJS and Bootstrap, I'd be remiss not to post a FizzBuzz, but FizzBuzz bores me, so I've extended it. My version of FizzBuzz is configurable, and allows you ...
2
votes
2answers
100 views

A chessboard model in JavaScript

I've created a chessboard model in JavaScript that will eventually iterate through some moves of a championship game. I've created a board object and a piece constructor. I've also created all the ...
3
votes
1answer
68 views

HTML/CSS MS Word style navigation ribbon

I made a MS Word style ribbon header, but it all seems very hacky, and I'm not really sure how to simplify it to something more reasonable. Rolling over one of the navigation icons changes the related ...
3
votes
1answer
29 views

Avoid jQuery in click event

I have the following controller: ...
4
votes
1answer
68 views

Generate N pairs of checkboxes and N textboxes

I've written a piece of code, where a pair of checkboxes and a textbox are generated N amount of times. Depending on what's in the DB, the checkbox/textbox may have a default value or are left empty. ...
0
votes
0answers
28 views

JavaScript process HTML response

This is a function from a Tampermonkey userscript that I use. I am not the author of the original script, but I am trying to make some modifications to it. The script adds output to an HTML page ...