r/web_dev • u/roybarberuk • Jan 14 '15
r/web_dev • u/[deleted] • Sep 03 '14
Responsive design: Percentage-based margins/paddings vs px?
I have a div with a 150px padding on top and bottom. If I want the padding on this div to reduce proportionally to the width of the device, I would assume I'd have to use percentages. If so, how would I write 150px in percentages? Is there a converter I can use somewhere?
r/web_dev • u/JacenSolo9 • Aug 27 '14
How do you get your website to run offline on the iPhone browser?
I've been looking up all of the guides to getting your website running offline using html5 and it's easy enough, I've got it working on Safari, but for the love of me I can't get my iPhone to run the site offline. If I go to this demo site, put my phone in airplane mode and then hit refresh all I get is the, "Safari cannot open the page because it could not connect to the server." Is there some other way that it must be implemented on the iPhone or have recent security changes to iOS disabled html5 offline from running?
r/web_dev • u/ericlamb89 • Aug 12 '14
Beef Translator - my friends refer to themselves as "beefs" - this is our language.
yehmehteh.comr/web_dev • u/couchmonkee • Jul 23 '14
Can I call myself a Full-stack Developer?
I started getting into web development 2 years ago and i am at a point where i am using node.js, express, and angular for most of my projects, would it be right to claim myself as a full-stack developer on resumes etc.
r/web_dev • u/dshafik • Jul 16 '14
Managing Frontend Dependencies & Deployment Part 2: Gulp
r/web_dev • u/freebit • Jul 16 '14
Having Second Doubts About Responsive Design
When reading websites on my phone, I like to turn it sideways. However, I can't stand when navigation bars and other random bars are cluttering up the viewing area. Any bars that follow the view around as I navigate the page is total rubbish. Screen real-estate is already constrained. I don't want your dumb bar taking up even more.
This leads me to another point. Responsive design is great and all. However, I see really bad artifacts all over the internet when viewing pages. I don't think web developers are able to fully account for every screen size possibility no matter how much they would like too. I have a hard enough time getting my devs to test every popular browser as it is. Testing every device and orientation seems hard to maintain.
Devices with small screens seem to be getting bigger screens as time goes on (e.g. iPhone 6). Maybe going back to a simple fixed width 960px layout is a good idea as the small screens get bigger. I have no issues with pinch and double-tap. On the larger phone screens, its not even needed to view 960px pages.
What does everyone think?
r/web_dev • u/Kriem • Jul 02 '14
5 design problems we solved building the new GoSquared
r/web_dev • u/jaymz58 • Jun 30 '14
IndexedDB Wrapper Recommendations
I just recently started playing with IndexedDB and I was curious what a few of the "Industry recommended" wrappers or frameworks were for working with it. Internet searches only turned up a few older projects that didn't seem to have too much recent activity. I stumbled upon PouchDB but I don't necessarily think I want to use CouchDB for my backend. I really just want to do some simple client side storage of a few different objects and synch their data to a MySQL backend. As a side note, is there a better choice for client side storage than indexeddb?
r/web_dev • u/Avalar • Jun 25 '14
Question about databases
Hi everyone
I hope this is the correct sub-reddit for posting a topic such as this.
Basically I have a question regarding databases on websites. More specifically, websites like these:
I wondered how they get the information from all of the game items. Do they enter it in manually piece by piece into a database or do they use some other method?
Thanks
r/web_dev • u/thebiglebrewski • Jun 24 '14
CAO of NYCDA is doing an AMA on learning to code
r/web_dev • u/phySi0 • Jun 12 '14
Everything You Need to Know About the CSS will-change Property
r/web_dev • u/xwubstep • Jun 08 '14
Need help on how to develop school Comp Sci website
I'm just starting out with webdev and design and for my highschool comp sci class, I would like to develop and design a new class website. Here it is:http://www.mhscompsci.com/.
As you can see, it pretty shit tbh. I would like to do front end with bootstrap, but i have a couple questions. Do I make separate custom pages for each page and link them all by myself? Is there a tool you use for multipage websites. The teacher would like to edit the site himself so I was wondering if there is a WYSWIG type of tool I could use. If you don't understand something, feel free to ask.
Currently, the site uses rails as a framework.
Thanks
r/web_dev • u/bfred-it • May 30 '14
Drop the transitions, give realistic UI feedback on :active
r/web_dev • u/KellyRice88 • Apr 22 '14
Visualizing Public Cloud Data for Ease of Consumption – UX Design Process
r/web_dev • u/thebiglebrewski • Apr 21 '14
Seeking a relationship with tech entreprenuer
newyork.craigslist.orgr/web_dev • u/darkrevolution • Apr 07 '14
Hotlink protection example
Hi all, For my final year project I need to text a hotlink protected site. Does anybody know of any sites which implement it?
Thanks.
r/web_dev • u/cohix • Mar 30 '14
Third party twitter widget with CSS hooks?
I'm looking for a third party twitter widget (i.e not the native twitter ones) That is lightweight and easily styled with css. Any help you can give would be great. Thanks!
r/web_dev • u/pitch_away • Mar 23 '14
I am trying to clone FastCompany (Self Assigned Home Work) and I have put a lot of time in but I can't get the navigation to work properly. If someone could take a peek at my codepen that would be awesome!
So I did all of the HTML markup for the site (to the best of my ability) which I think is quite good. However, I wanted to abstract out the pieces for my CSS so I would have snippets of code to refer back to on future projects in case I get stuck.
I can't get the list to center (horizontally or vertically). I have tried a few things like text-align, wrapping in div and then position: center, or margin: auto and similar things. Been stuck for a few hours on this bit.
This is the cleanest version I have without trying to center it or anything. I suck at headers and I guess CSS. Getting pretty discouraged...
r/web_dev • u/PrincessOfPurgatory • Mar 02 '14
A "code silhouette" generator I wrote today
r/web_dev • u/iaserver • Feb 20 '14
Launch day for my new site, feedback is always welcome from you guys.
r/web_dev • u/bustyLaserCannon • Oct 29 '13
E-commerce industry challenges in the next two years?
I'm applying for a graduate developer role for when I finish University and a question i've been asked by one place is:
What do you feel are the key challenges facing the eCommerce industry in the next 2 years?
I honestly have no clue, the position is for a developer but i'm not in-tune with the issues of the industry.
Maybe someone here might know something and can shed some light on what I can research to talk about?
r/web_dev • u/[deleted] • Oct 27 '13
Working on a <canvas> based game (that's too hard). Any suggestions on how to prevent cheating?
So I've been playing with <canvas> lately and built this http://rland.me.uk/memory/ It's not pretty yet, but I wouldn't mind some feedback on the most efficient way to structure the JavaScript (http://rland.me.uk/memory/js/main.js) and specifically, how could I prevent cheating on this sort of game. -I won't mention how to cheat, as I suspect you can figure that out-
r/web_dev • u/ragrdngr • Oct 25 '13
question about promised raises and falling through
When I was hired I was promised a $5k raise yearly for the first two years to reach my initial requested salary.
Well, I got the news this week that our business is having a cash flow problem, and that my raise was off the table. Since I started almost a year ago I've noticed some really poor business practices as the root cause. A severe lack of project management and planning, and a partner who I see maybe once or twice a week (and he's supposedly the lead designer). The only two PMs we have are actually sales guys who have no programming/dev experience and have no attention to detail. Add a couple co-workers I've noticed spend more time browsing reddit or drawing on scratch pads than getting actual work done. Hell, when I asked one of them to learn how to use Git, he responded with, "I don't think I'm smart enough to figure all that stuff out."
I've put in several 60 hour weeks to get projects out the door and am the only solid dev on staff who has extensive OOP experience in PHP and JS as well as system admin skills. I'm not quite ready to jump ship, but I'm getting close. Is there any legal recourse for the promised raise going unfulfilled? I have an email from when I got hired with the promise - so I'm not sure if that's worth anything.
I've made several suggestions such as initial project meetings and milestone meetings, and they liked my ideas. I'm going to continue to push for more AGILE type of environments and wait and see. The hiring season is a few months away anyways.
r/web_dev • u/Deathnerd • Oct 21 '13
jQuery event listener not firing on new element
If I'm in the wrong subreddit, please let me know.
I'm making a project for my university's computer science department. Basically it will allow the professors to write simple quizzes (multiple choice for now) and track their students' progress. I've had to re-teach myself jQuery as it's been a year or so since I've touched it.
Code:
JS:
//Globals
var hover_id = ''; //store the current div being hovered over
var current_choice_count = 1; //how many choices are in the current, working question?
var current_question_count = 1; //how many questions have we created?
$('document').ready(function(){
//generate a new section to enter a question
var addChoice = function(question, prompt){
var prompt_data = '<br/><input type="text" name="">Enter choice</input><input type="button" value="+ choice" id="add_choice"></input>';
$("#question_"+question).append(prompt_data);
prompt++;
};
//Monitor for hover events over divs with the .question class
$('.question').hover(
function(){ //Hover-in handler
console.log($(this).attr('id'));
hover_id = $(this).attr('id');
},
function(){ //hover-out handler
console.log($(this).attr('id'));
hover_id = "";
});
//append choices to the question
$('.choice_add').click(function(){
//console.log(this);
current_choice_count++;
html = '<br/><label>Choice '+current_choice_count+'</label><input type="text" name="" value="Enter choice"></input>';
$('#'+hover_id).append(html);
});
//generate a new question
$('.question_add').click(function(){
current_choice_count = 0;
current_question_count++;
html = '<div class="question" id="question_'+current_question_count+'"><p class="question_label">Question '+current_question_count+'</p><br/><textarea name="prompt"+prompt cols="40" rows="5">Input some text here</textarea><br/><label>Choice 1</label><input type="text" name="" value="Enter choice"></input><input type="button" value="+" id="add_choice" class="choice_add"></input></div>';
$('body').append(html);
});
});HTML:
<!DOCTYPE html>
<html>
<head>
<title>Quiz Creation Page</title>
<meta name="description" content="Quiz Creation ">
<meta name="author" content="Deathnerd">
<meta name="published" content="TODO">
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
<script type="text/javascript" src="scripts/create.js"></script>
<link type="text/css" rel="stylesheet" href="styles/reset.css">
<link type="text/css" rel="stylesheet" href="styles/main.css">
</head>
<input type="button" value="Add question" class="question_add"></input>
<body>
<div class="question" id="question_1">
<p class="question_label">Question 1</p>
<br/>
<textarea name="prompt"+prompt cols="40" rows="5">Input some text here</textarea>
<br/>
<label>Choice 1</label>
<input type="text" name="" value="Enter choice"></input>
<input type="button" value="+" id="add_choice" class="choice_add"></input>
</div>
</body>
</html>When I add a new question, I can't get the hover event
$('.question')hover(...); or the click event
$('.choice_add').click(...);to fire for the newly created question div.
I'm thinking that jQuery doesn't know that the new element has been created, so it doesn't listen for it. I'm at a loss as to how to get around it (or I wouldn't be posting here!). Thanks, guys.