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).
4
votes
1answer
20 views
How to efficiently parse HTML table using jsoup?
I am trying to parse HTML using jsoup. This is my first time working with jsoup and I read some tutorial on it as well. Below is my HTML table, which I am trying to parse.
If you see my table, it has ...
4
votes
0answers
46 views
Is there a better way to design this quiz?
I just programmed a quiz and the code is given below. Is there a better way to program to do what I have done? Also I tried to do transition effect while the question is changing, but it isn't ...
2
votes
1answer
31 views
Layout of two different styles of event labels with CSS
I have two types of event labels. The HTML markup is:
...
6
votes
2answers
100 views
Wrapping my head around these wrappers
I've been developing a page that is designed like this:
______________
| | |
| | |
| | |
--------------
Everything is wrapped in a ...
1
vote
1answer
30 views
How can I organize polymer-element structure in order to embrace the Polymer way of developing custom elements?
My goal has been to learn Polymer so I started developing a complex combo-box element.
I did my development on Plunker. Here is link to my plunk.
I'm happy with ...
1
vote
2answers
40 views
Menu selector code that changes the background of a selected div
i made this code to change the background color for a div in set of divs while disable the rest divs background it work fine as it look but i wanted to review the code for more improvement since I am ...
3
votes
0answers
72 views
Strategy Game in Javascript with Three.JS
I've been playing around with porting a simple strategy game over to Javascript, the idea being to run it in a browser for testing. I've done some simple Javascript code in the past, but this is my ...
0
votes
0answers
9 views
Regular Expressions for finding HTML code in Python [on hold]
So, I've been given another task from my professor, and this one is bugging me.
Write a program that can replicate this sort of exchange:
...
2
votes
1answer
57 views
URL Conditional in JavaScript
I'd appreciate any help just refining this working code. It has a bit of a weird context, but basically it's for a gallery style site that has hundreds of pages, but needs new navigation buttons. ...
0
votes
1answer
31 views
Show <div> on <li> click
Simple task, I am just trying to have the data that correlates to a menu item hidden until it is clicked. However, I feel like this can be optimized. There are 2 ...
1
vote
1answer
38 views
Hover effects using HTML and SASS
I recently created one of my first hover effects using HTML and SASS. Since it is my first hover effect, I'm almost positive that is it horribly inefficient. I'm sure there's a way to do this effect ...
2
votes
0answers
26 views
Homemade Lightbox and Image Gallery
I'm new to JavaScript, and I've built a lightbox for an image gallery. There's a button to open the gallery, plus forwards, backwards, and close buttons, and keyboard controls. Currently, everything ...
4
votes
1answer
49 views
XSLT 2.0: Crawl HTML and add links
Background: I have 4 GB of text data dispersed in 250,000 html files. I want to interlink the files with <a> for the reader to click on. I have a 12 MB file ...
8
votes
1answer
69 views
Calculate torque of a bolt based on grade, size, and lubricant
To calculate torque I need to look up a value from a table which I've hardcoded based on three conditions: grade, size, and thread. Then I need to multiply it by coefficients associated with the ...
2
votes
2answers
28 views
7
votes
1answer
144 views
Mobile touch menu
Unfortunately, the code in the original version of this question doesn't work, so I will rewrite this question.
Please don't review this code until I have fixed it.
See also this answer on Meta.
4
votes
1answer
51 views
Does my image upload look safe enough?
I have an image upload script that uploads images to the server:
...
8
votes
2answers
257 views
+100
HTML Pencil: an online HTML editor with real-time preview
HTML Pencil is an online HTML editor created for modern browsers.
Please review the source code and provide feedback:
...
4
votes
1answer
39 views
Multiple drop down validation
I have written some jQuery which validates a group of drop downs. It checks the text value selected in all the drop downs (first three characters), and if there is a duplicate, it warns the user.
...
2
votes
0answers
35 views
JavaScript eBay Listing Generator - revised
I posted my first attempt at this here. It's an app that generates both a preview of an interactive eBay listing, as well as the raw code which the user can copy and paste into their listing.
I got ...
3
votes
2answers
32 views
DOM building using DocumentFragment
I want to build the markup below by iterating on an array of objects. The structure of the object is also listed below. I need some tips on how to make it clean.
Markup I want to build:
...
2
votes
1answer
59 views
Avoid redundancy of HTML entities in .NET framework
I have to store various HTML named character references for the following purposes:
Escaping special characters myStringBuilder.Replace("À", WebHelper.Agrave)
...
3
votes
1answer
46 views
Clean up repeated file.writes, if/elses when adding keys to a dict
I'm getting familiar with python and I'm still learning it's tricks and idioms.
Is there an better way to implement print_html() without the multiple calls to ...
4
votes
1answer
92 views
Admin Login Function with custom anti-spam
I made this admin login script a while ago. It works fine in terms of checking the database for username and password and logs me in. What I don't quite understand is how to secure my login once in.
...
3
votes
0answers
53 views
My first jQuery plugin
I am writing my first jQuery plugin that converts li tags to horizontal responsive barcharts. I am looking for some feedback and suggestions regarding the ...
1
vote
1answer
43 views
Getting topyellow, topred, slider, and navbar divs stacked
I previously asked in StackOverflow for help putting this together, and was told that I could improve the HTML and CSS.
Could you help me?
Here is my code, and the pictures I am using:
Code
...
2
votes
1answer
63 views
Responsive / CSS fixed and variable widths
CSS and responsiveness in multiple columns with fixed and scaleable elements can be done in many ways.
I have created a solution that seems to work, though I have no idea whether this is best ...
3
votes
2answers
123 views
Form with a country list statically or dynamically generated
I want to create a form with a country drop down list so I can just google and get all the countries but the question should I just encode it statically or generate dynamically with PHP. (Note it ...
2
votes
1answer
37 views
b10k minigame problems
I tried to recreate a mini game (not sure about its name, I call it b10k) with 2048 looks, therefore it looked better if I use html elements, and I really am not good at working with them, but I ...
1
vote
0answers
94 views
Minimize code modal dialog and jQuery AJAX calls based on button click
HTML Code: for Add New button
...
4
votes
0answers
37 views
2
votes
1answer
54 views
Simplifying AJAX success code
Please take a look at this Fiddle.
Is there a better way of building a table with titles in the first cell of each row, like this:
...
3
votes
1answer
59 views
Script for adding a set of form fields on clicking an Add More button
This is a script that I use to add a set of form fields on clicking an Add More button:
...
5
votes
1answer
76 views
Basic and simple view, add, edit and delete functionality
I want to know what needs to improve with my application. Maybe there is a better way instead of what I am using currently.
index.html:
...
5
votes
0answers
98 views
How can I make my website have a more modern look? [closed]
After looking at my site, I've been told by my bud:
You know what this looks like? The nineties.
I think it looks alright, maybe a little old fashioned but I've been staring at it so long now ...
2
votes
1answer
37 views
Website Navigation Bar - Potential code soup
I've had a bit of help designing the header for a website here: http://jsfiddle.net/gxLt5/21/
It looks and works exactly how I had hoped. That said, I do feel like the code is a bit grotty, and I'm ...
10
votes
1answer
75 views
Loading the resource identified by a script element's src attribute
I have a function to load the resource identified by a <script> element's src attribute.
I need it to:
Be as universal ...
2
votes
2answers
77 views
HTML & CSS code for small responsive test project based on Bootstrap 3
Don't pay attention to the menu being awful above 789px. The "theoretical" task was to support only tablets and smartphones and I didn't bother to make the menu look fine on other devices. Just ...
7
votes
2answers
160 views
Cleanup code to add div structure to element
I was cleaning up my code when I came across this situation :
...
1
vote
4answers
437 views
Do HTML tags make a difference?
I made a fairly simple template engine (if I could call it that). Basically my server returns something like
...
21
votes
4answers
2k views
Snowfall in HTML
I am a beginner and I have made Snowfall in HTML for my mom. I'm pretty sure it will not look that awesome to any developer out there, but hey, that's why I've posted it.
I'd like a general review of ...
7
votes
7answers
784 views
DRY-ing jQuery code for portfolio site
I'm currently working on my portfolio site and it's all great, but I'm unsure how to DRY my jQuery. I'm repeating myself a lot in the jQuery and it's just messy.
HTML:
...
3
votes
3answers
129 views
A simple HTML / JavaScript calculator
I am making an app and I want somebody to check my code to maybe make it shorter, fix bugs, or add some things.
...
4
votes
3answers
94 views
Is it possible to condense and/or tidy these jQuery functions?
Here is a JSFiddle of my problem.
I have one <select> on the page that lets you choose a brand:
...
3
votes
1answer
44 views
Is there a more semantic way to markup Price Lists? Example as Table and as Description List
I have a pricing list that I can make sense of as both a table and as a description list. Using a table feels hackish. I thought a dl might be appropriate because description lists "are useful for ...
15
votes
2answers
363 views
Allowing users to input a safe subset of HTML
I am currently working on a project that requires users to input text that may or may not be formatted (if it helps, just think of it as a Stack Exchange clone, even though that's not quite accurate). ...
2
votes
2answers
52 views
New CSS grid at 1800px
Background
We have to cater to large screens. So I created this portion of a grid system which is shown to users with screens larger than 1800px.
Solution
This grid is 1800px wide but can shrink down ...
3
votes
1answer
97 views
Correct way to center logo and navigation
I'm new to CSS and HTML and while I've achieved a centering of the logo and navigation links, it feels wrong. I'm developing a site for a small non-profit for a side project. I have a logo next to a ...
6
votes
1answer
408 views
HTML / JS Slot Machine Simulator
This code is a slot machine simulator that uses elements of both HTML and JavaScript. Please pardon the lack of comments.
...
3
votes
1answer
54 views
Validating various input HTML forms
I'm looking for a review of my code for better syntactical structure (to make sure it's more readable and legible).
...