Tagged Questions
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).
-1
votes
0answers
9 views
Hard code data instead of importing data while plotting using d3 library [on hold]
I am trying to plot a bar chart for the following data:
name value
Locke 4
Reyes 8
Ford 15
Jarrah 16
Shephard 23
Kwon 42
...
0
votes
0answers
17 views
Is there a way to cut-off using “div” elements in my design?
Is there a way to cut-off using "div" elements in my design or it is good enough? I use Boostrap CSS library.
CSS:
...
1
vote
1answer
20 views
Targeting specific elements with CSS only
This code below works as needed, but I am not sure if there is a more elegant way with pure CSS. I have a table with two columns, and 4+ rows. I'll actually upload a picture. It's the first table in ...
-1
votes
0answers
18 views
Portfolio plugin [on hold]
I have create one plugin name "JDs Portfolio", and uploaded it to wordpress.org. Right now, I don't have too many reviews for this plugin, and I also don't want to get bad reviews for that plugin.
...
-2
votes
0answers
12 views
Chrome and IE compatibility [on hold]
I wrote a program using HTML/JavaScript to read an xml file and output the data on that file to a table. It runs fine on Google Chrome, but nothing pops up on IE. I try checking for errors giving me ...
2
votes
1answer
45 views
jQuery and CSS3 slideshow
I have built a slideshow using jQuery and CSS3.
jQuery is used to trigger class changes (.slide1, .slide2 ...) on the slide container (...
1
vote
1answer
27 views
Populate dropdown B on selection in dropdown A
On selection from drop-down A (HTML select) I need to populate another "sub"-dropdown with a different list of values. For instance, on selection of country in ...
2
votes
1answer
44 views
Multiple jQuery hidden element toggles
I have a handful of images working as jQuery toggle switches - Showing or hiding an element on a click event.
The code below mostly works as intended, but I'm fairly certain I'm using a lot of ...
5
votes
2answers
48 views
Creating elements with special corners
I've been given a task to create elements with some special corners, and those elements should be responsive.
This works, but am I wondering if something better could come up.
Less code to maintain. ...
2
votes
1answer
41 views
3 textboxes with multiple value combinations to one output
I would like if someone who has more experience in JavaScript reviewed this. I went through and tried to minimize this as much as possible, but I still feel this could be smaller and more compact.
I ...
6
votes
1answer
141 views
+50
How to handle state in Angular?
I am working on a project in Angular where I have a number of similar data objects. When you click on anyone of them it's state and amount of data shown will change. All of the objects start in the ...
-4
votes
0answers
29 views
Div not showing properly [closed]
Here: http://www.doublecentre.org/continue.html
you see two collumns, the lower one seems not to show itself properly.
It appears when you scroll down.
can anyone help me?
5
votes
3answers
680 views
Efficiently generating HTML CSS table using Java
I am trying to generate an HTML table using Java. I have an object which I am iterating to make an HTML table.
...
1
vote
1answer
19 views
Showing a spinner over content - fade out some elements and disable clicking on some elements
I am displaying a loading spinner inside of various elements. There are four potential states an element could be in:
Reduced opacity; unresponsive to pointer events.
Reduced opacity; responsive to ...
1
vote
1answer
53 views
jQuery Widget - Progress Tracker
This is a follow up on JS Progress Bar Widget
I've rewritten it as a jQuery Widget Factory widget, attempting to follow that standard as much possible and fixing the various problems pointed out in ...
1
vote
0answers
22 views
Vertical-align in Nested Column
Requirements:
There is Two Column, The left column is fixed width
The height of two Column should be the same.
Left column contain a title (can be multi-line), and an Image (limit max width to left ...
5
votes
1answer
56 views
JS Progress Bar Widget
Demo of the widget: http://jsfiddle.net/slicedtoad/Lywvbsf4/
It's a progress bar that shows a list of steps and which one is being completed as well as allowing previous steps to be revisited.
It ...
1
vote
0answers
20 views
Stylish range input, Google Chrome only
I have an input[type=range] element which is customized using CSS to look more modern.
I'm unhappy with my CSS because of the need to use ...
3
votes
1answer
222 views
HTML 5 Blog Layout / Markup
I'm creating a WordPress theme in HTML 5 which is relatively new to me. I've read up on it and I read things that seem to contradict one another or differing opinions. One of the big things is where ...
12
votes
3answers
143 views
Stylish underline when input is focused, modern browsers only
I've got a text input element which is decorated with an underline. The underline goes up half the height of the input on either side of it and turns blue when the input is focused. It's similar to ...
1
vote
0answers
21 views
Bootstrap CSS Container Layout
I've always been used to write my own CSS but I decided to give a go to twitter-bootstrap and I want to make sure I'm not using more HTML containers that I need to:
This is my code for a single ...
0
votes
0answers
6 views
Inside a <section> element; if <header> is used, is <footer> a requirement, or not? [migrated]
Here is my code, at the moment:
...
0
votes
1answer
18 views
Can I use a header tag in footer inside section?
I want to know if I can use a header tag in footer inside section. I also want to know if this follows SEO.
For example, I made four section boxes in footer:
...
5
votes
1answer
102 views
Transforming jQuery form code into clean code
The following JS code handles when the form is submitted and some little extra stuff.
I'd like to have it reviewed on the following aspects:
Readability
Efficiency
Usability
OOP
It works exactly ...
3
votes
1answer
39 views
Escaping photo caption to avoid cross site script attack
I am a PHP newbie and this is part of a gallery code. I recently read about SQL injection and cross site scripting attack, I am trying to avoid that by html escaping on dynamically produced data. I am ...
2
votes
1answer
18 views
Script for validating a booking form
This PHP script to validates a booking form. (There is also a JavaScript validation as well, but please ignore.). I want to know if there is a better/more efficient way of writing it?
I have created ...
11
votes
2answers
252 views
5
votes
3answers
625 views
Most basic HTML website - naming and CSS rules
I'm trying to accomplish something very simple as seen here.
HTML
...
0
votes
2answers
27 views
1
vote
1answer
23 views
AngularJS expression redundancy in templates
I sometimes find myself using multiple expressions checking on a single flag to control the state of some template, in this example, a Facebook log in button.
On a second look, however, I noticed ...
2
votes
0answers
30 views
Client-side XML + CSS architecture
Background
With the goal of creating a simple architecture, I am wondering about the implications of a client-side rendering implementation. The request architecture resembles:
...
2
votes
1answer
73 views
Using fewer foreach loops to bind values to parameters in PDO
I want to make a query to order by the IN clause items. I read from another thread that I can use ...
3
votes
1answer
69 views
RESTful workaround
I met the RESTful ideology and I fell in love with it. However the only request methods supported by HTML forms so far are GET and ...
5
votes
2answers
66 views
Displaying styled validation messages to user
I'm new to AJAX and jQuery, and just for testing, I created this simple code. When the user enters their First Name and their Last Name it displays a message that says
Thanks for entering ...
3
votes
1answer
64 views
Toggling element class according checked radio input V2.0
This question is about an improvement of the code from this previous question (previous changed visibility, new applies a CSS class with a border).
It is a constructor function that attaches a click ...
14
votes
2answers
353 views
Tic Tac Toe in plain JavaScript
I have created Tic Tac Toe game using plain JavaScript. Can any javascript expert review it and let me know whether the way I have written JavaScript code that is right (preferable)?
I am unsure that ...
2
votes
1answer
92 views
Filter on HTML table using jQuery
I am adding some check box filters on a HTML table, based on whether a check box is checked or not, and I am toggling rows. Is there anyway I could improve this code? There is no issue with it at ...
6
votes
2answers
151 views
Checking CSS code for best practices when mimicking
I'm currently looking to try learn CSS properly and I'm looking to recreate the following image using CSS:
Now I've managed to recreate the image (sort of) what I am looking to know though is based ...
11
votes
2answers
983 views
Is this safe against major XSS attacks?
I am building a classifieds website here in Portugal, and I'm now in the security phase. So until now, I already made what I think is a good measure against SQL injection:
...
7
votes
2answers
103 views
HTML inline CSS
This HTML code seems to work: the page looks as I intended it. I have checked it multiple times, but it's difficult to tell how to improve. I would like somebody to review and point out any mistakes ...
4
votes
1answer
60 views
Filling a table in code behind
I was wondering if there could be an easier or simpler way of filling a table with code behind.
So far I have my html/asp.net table :
...
2
votes
1answer
77 views
Parity Bit Generator Webpage
JavaScript concerns
Is this the best way in jQuery to handle a button being pressed without making an HTTP req?
...
1
vote
2answers
58 views
Basic product builder
I'm developing a very basic product builder. Part of the builder has a basic text editor including some text color presets. As it stands, the presets remove a class that defines the text color and add ...
2
votes
2answers
169 views
Cleaning up a rotating image gallery
I have created a nice little image gallery for the web. I set out wanting 3 things. 1. The whole gallery had a basic level responsiveness to it. 2. The gallery would take images of any size, and ...
3
votes
1answer
42 views
Content filtering of webpage
This is code for filtering the data of webpage, for the web crawler I made for my project. I know python scripts can lag than other languages, but this takes a lot of time when processing even a ...
2
votes
0answers
32 views
Web component design, attribute or content HTML?
Which one of these web components is designed better?
Option 1 contains an a tag within the custom element.
...
6
votes
1answer
60 views
Readability of this Perl script to generate HTML code
I'm writing some scripts for a project which need to be maintainable. Someone will be coming in and taking over after a while and I want it to be easy for them to understand what's going on.
What it ...
2
votes
2answers
44 views
CakePHP view with interleaved PHP and HTML
It's CakePHP, though I'm more interested in what people think about the layout of the indentation, the mark-up, position of logic etc.
Any feedback that relates to the subject of writing CakePHP ...
5
votes
1answer
58 views
Sass code for displaying two simple search forms
Sass code for creating a basic search box. Resulting CSS used for two that are different widths.
The goals is to define sass that generates CSS that is easily re-usable as well as concise and ...
7
votes
1answer
153 views
Algorithm simulator (bubble and selection sorts)
I am concerned where it can be improved.
Main concerns are coding style.
Any other improvements are welcome too.
Priority is on JavaScript, review for HTML/CSS are welcome too.
What it does:
...