Tagged Questions
0
votes
0answers
19 views
Only able to zoom the first or the last image on the slideshow [on hold]
First of all, I am sorry if I have to move this question here, considering that in stackoverflow it still dons't have any answer yet since yesterday.
HERE IS THE DEMO
I have an images slideshow ...
2
votes
1answer
145 views
Movie tickets booking system (Frontend only)
I developed this tickets booking system recently to showcase HTML5 features. I would like you to review it from the UI/UX perspective. Also if there is something more that I can add.
Is it good ...
0
votes
1answer
443 views
CSS and HTML5 for this fixed header on scroll
When I had to create a fixed header on scroll, I found a few examples on Stack Overflow but they were terrible in the sense that they relied on a fixed page height. Have a look at what I created which ...
11
votes
2answers
250 views
HTML5 / JavaScript Tic-Tac-Toe
As an exercise, I decided to create a simple Tic-Tac-Toe game. It is Ruby on Rails based, but as for now I'm not using the server side for anything (I intend to build up on it in the future, though).
...
2
votes
1answer
94 views
jQuery for image swapping and some JS for text swapping
I am designing a website for a company that manages buildings/real estate. I did not have much use for a CSS library like Bootstrap or Foundation, except on one page of the website. This page ...
3
votes
0answers
78 views
jQuery Plugin - HTML5 History State
I've built this small jQuery plugin to work with HTML5 History State functions. It's my first jQuery plugin, so I'm not sure if it's up to the best practices, or what could be done better. Keeping it ...
5
votes
1answer
134 views
Expandable navigation menu
I am trying to step to the next level from student to amateur web developer, and I would like to make sure I am not making any web-development no-no's, that's all. What caused me to want to ask SO ...
6
votes
2answers
223 views
Data attribute text() swap on hover
This is a very basic script. If the screen width is larger than say a tablet, and a portfolio link is hovered over, it will fade out the original text and replace it with the text held in the ...
5
votes
1answer
113 views
Geolocation check and error management
I've written this code that I've been using for a while now to check for browser geolocation services for Google maps applications. I have to say that I am not very happy with it as I've had to hack ...
4
votes
1answer
143 views
javascript for controllers of multiple audio tags
I am trying to learn to create controllers for my own HTML5 audio tags, which I often have several of on the same page. The js.jQuery code below is a simple beginning to this; it works to apply a ...
3
votes
1answer
764 views
Creating <select> element and append data to it
I've made the following and have a few questions:
Do I have some (big) mistakes in this approach? (bad practices, 'this code is trash'...)
1.1 If I do, can you suggest what to fix?
Are appended ...
2
votes
2answers
583 views
Menu traversing on next and prev button click up and down
Can anyone optimize this code? I am new to jQuery.
I want add class on next and previous button click. I wrote this code that works for me, but could anyone optimize it using jQuery predefined ...
7
votes
1answer
208 views
First HTML5 game. - Snake!
so here's my first HTML5 game. It's a really simple snake. I've never made a game before and haven't had too much experience with JavaScript.
Html
...
1
vote
2answers
84 views
How can I add a delete function to this code that stores stuff in localStorage?
I'm adding names of blogs to localStorage. I use those to make links and get avatars.
Here's a fiddle that does the adds but I need a nice delete function for individual entries.
Here's part of ...
3
votes
1answer
6k views
2
votes
1answer
460 views
jQuery toggle sort order and save to variable
This is copied directly from Stackoverflow as I was suggested to post it here.
I have the below code, which does work fine but I find it quite big and had hoped there was a cleaner/smaller "toggle" ...
1
vote
1answer
2k views
Toggle HTML elements' visbility based on selected checkbox(es)
I want to toggle button visibility based on values a user selects within a group of checkboxes.
For example, the user may be given a group of checkboxes with colors:
...
3
votes
2answers
107 views
Replacing simple jQuery methods for better use
There are a few common jQuery call I find my self calling when creating my app. I need some help and maybe a better way to do all this or rewrite it.
1) Singleton Selector
If I want to select only ...
5
votes
1answer
156 views
Do not select elements that contain data attributes
I have a selector that pulls in all anchor tags that start with the # symbol. I am trying to add a :not selector of some form ...
2
votes
1answer
110 views
Edit/Details form in JavaScript
I have a Edit/Details form which has 4 user related fields. On click of Save, I save the edited fields to local storage (if supported) and display the same values in the Details view.
Below is the ...
-1
votes
1answer
95 views
Trouble with jquery show and hide [closed]
I'm having a ton of trouble trying to get simple jquery functionality to work. All I want is to be able to click on a menu button and have a menu pop up and click outside of it to close it. I think ...
4
votes
1answer
101 views
This blueprint has already become a mess, please suggest some restructuring
I'm particularly concerned about where I have declared the functions, can I move them around to clean up the code without breaking anything? The "conjugate" function contains a lot of stuff that has ...
0
votes
2answers
345 views
JQuery Slide Show Simplification
I'm trying to come up with the most basic example of making a JQuery slide show where you click on the current image you're viewing and you cycle through a gallery of photos. I know its probably not ...
1
vote
2answers
162 views
3
votes
1answer
196 views
How to improve this JavaScript implementation of a TODO manager?
I was asked to create a TODO manager using JavaScript and CSS.
I did not get a good review on the code nor specific comments on how to improve it.
My implementation:
...
3
votes
1answer
185 views
Can this Drag and Drop Script be Optimized to Perform Better?
I've just finished a week long adventure of creating an HTML5 Drag and Drop scheduler. As the prototype stands it works fine, but I'm curious if some of the code can be optimized. I mostly focused on ...
1
vote
1answer
1k views
JavaScript switch statement to make an AJAX call
I have a button group that looks like this:
The user selects one of the options and they can search for a person based on that criteria.
I wrote a switch statement that populates the URL to make ...
1
vote
1answer
171 views
Can this javascript with jquery be improved?
I recently started learning jquery and javascript and put this together for the site I work on here.
...
1
vote
1answer
315 views
Is there a better way of detecting when the contents of a web page changes in js?
This is the code I'm using at the moment
...
1
vote
1answer
2k views
JavaScript code quality
I decided to put together a quick project using jquery, the Kendo UI HTML 5 framework and JavaScript.
I don't do much JavaScript development and I'd like some input on how to make this look less ...
3
votes
1answer
277 views
1
vote
2answers
124 views
jQuery animation procedural approach, suggestions need
I'm kinda worried that the way I did my animation intro is a bit too heavy and is not optimized. Please review and let me know your thoughts.
...
1
vote
1answer
455 views
Javascript Placeholder Polyfill
I was wondering if you could review the following code I've written as a polyfill for the placeholder attribute in HTML5?
The object of the polyfill is to replicate the functionality of the ...
2
votes
1answer
981 views
Using jQuery 1.7 .on() and event.stopPropagation to close boxes when clicking in document body
I have the following code which works but seems like it could be improved. I'm not sure if I'm using event.stopPropagation() correctly or if it is the best solution.
The elements are loaded via AJAX ...