Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

lesshardtofind

Members
  • Joined

  • Last visited

  1. Nice and here i have been writing all my own CMDs. I pretty much made a user folder called globals registered its path in the Windows global variables %path% and then added linux/mac commands via there so I could you know do the cool stuff like VIM anything from anywhere and never touch my mouse when coding. Right now I'm trying to look into using bash/batch to generate blueprints hierarchies from a text file into an ember cli project. It could increase my workflow dramatically, but I'm still a nub at bash/batch string parsing.
  2. I have not tried grunt.js. I will definitely look into it. The place I just interviewed for this week and have my final interview Tuesday told me their flow is with smacss, compass, sass, and drupal. I'm wasn't super familiar with these three tools. I just picked them up this week, but I was able to build mockups/demo pages for two freelance clients in those tools within a really short time. I will definitely give grunt a look into once I am familiar with the ins-and-outs of this new process they have asked me to learn.
  3. Using Scout for Compass + Sass will give you errors if you type anything wrong, plus can add all your vendor prefixes for you by using mixins. But alas I guess the conversation was about CSS and not Sass. Php Storm is a very good tool (though it costs) that will warn you if you don't close html tags or forget a semi colon, or colon on your CSS. A good development tool can make things a lot easier so you don't ever end up publishing broken html/css. As with all tools though you will only catch syntax errors and not logic errors.
  4. Lastly if I put your project file on my xampp server in htpdocs after making the changes above and put the line: <? echo "this works"; ?> Where you commented that php goes well it works fine. So I could only guess that you haven't set up an environment to run your php on or your syntax is incorrect.
  5. My console logs that $.fn.modalmanager is undefined in form.php line 136 As for your php unless you post the code I can't really look at it. You also have an extra closing </script> tag on line 183 The fact that your $.fn.modalmanager is undefined means that your include source is wrong. I was able to get rid of this error by downloading your source code and then downloading modal-manager from github at https://github.com/jschr/bootstrap-modal/ I then replicated their file structure around my project and the error message went away. Your loop through datasource does not ever run. You can find this out by putting a alert message or console log inside of that loop and noticing you never get the alert or console.log. This seems to be what is ultimately not populating your text array, but I can't know for sure. It would be 100% easier to help you if you would A. Describe your expected behavior, B. Describe the behavior you are getting, C. What you tried to do so far to fix it. Sorry I couldn't help more. Good luck.
  6. Thanks for that link to code smells rbrtsmith. Seriously a great article.
  7.    lesshardtofind reacted to a post in a topic: Background Overlay
  8. As for required I would say something on the order of language and charset so that your code will validate. <head lang="en"> <meta charset="UTF-8"> <title>Your Title</title> </head> A lot of people use scripts and css in the headers, though google speed test tool asks you to put the scripts "below the fold" for speed optimization of browser rendering. As EpicWebs above said really its going to come down to your personal preference, but not specifying a charset will give you "warnings" in any decent validator/ console inspector.
  9. Hey all just made a one page demo from a mockup with media queries ect. Looking for some feedback on the design. Thanks in advance http://www.rodneybrothers.com/wp-content/JohnsStuff/Marlene/ - John
  10. You can just select the item you are looking to place the picture in. Say it was a div. Then use css to set its background-image. Lastly you have to set a width and height of the item and if the picture doesn't fit you can use the background-size property. Here is a example .csspicture{ width: 100px; height: 100px; background-image: url('imagetouse.png'); background-size: 100% 100%; }
  11. Hey I have 3 questions that I'm having the user answer that filters information. If they answer yes to any of them then they get one set of information about obtaining a world cup travel visa. If they answer no to ALL the questions then I need to give them information to obtain a tourist visa. I set this up with three questions and two filter divs in the html. For some reason I can't get the jQuery click functions to update the correct value in the tracking array. I think this has something to do with my lack of understanding of how jQuery keeps track of registered click functions after you called them the first time. Maybe they run asychronious and therefore I can't access the variable at the time? If anyone can look at the code and possible spot my problem that would be awesome. jQuery(document).ready(function(){ var ABRA_numquestions = 3; var ABRA_answer = new Array; var ABRA_question = new Array; var ABRA_isshowing = true; function ABRA_setup(){ ABRA_question[0] = "<h1>Do you have a <strong>copy </strong> of the actual ticket to attend the match as a spectator?</h1><div class=\"seperator\"></div><p class=\"yes0\">YES</p><p class=\"no0\">NO</p>"; ABRA_question[1] = "<h1>Do you have <strong>proof of purchase</strong> of a ticket (“ticket certificate(s)”) ?</h1><div class=\"seperator\"></div><p class=\"yes1\">YES</p><p class=\"no1\">NO</p>"; ABRA_question[2] = "<h1>Do you have an e-mail from FIFA confirming the purchase of ticket(s)?</h1><div class=\"seperator\"></div><p class=\"yes2\">YES</p><p class=\"no2\">NO</p>"; for(var ABRA_loopcontrol = 0; ABRA_loopcontrol < ABRA_numquestions; ABRA_loopcontrol++){ ABRA_answer[ABRA_loopcontrol] = -1; var ABRA_selector = ".question"; ABRA_selector += ABRA_loopcontrol; jQuery (ABRA_selector).html(ABRA_question[ABRA_loopcontrol]); ABRA_selector = ".filter"; ABRA_selector += ABRA_loopcontrol; jQuery(ABRA_selector).hide(); } jQuery(".questiontoggle").html("<h2>-</h2><p> Click to show or hide questions</p>"); } ABRA_setup(); // the problem is somewhere that this always shows the number of nos as 0 function ABRA_checknos(){ var nos = 0; for(var ABRA_loopcontrol = 0; ABRA_loopcontrol > ABRA_numquestions; ABRA_loopcontrol++){ if(ABRA_answer[ABRA_loopcontrol] === 0) nos++; } jQuery(".debug").html(nos); } function ABRA_handlefilters(num){ var yes = ".yes" + num; var no = ".no" + num; var x = num; // even though I change the value of ABRA_answers array here jQuery(yes).click(function(){jQuery(".filter0").show(500);jQuery(yes).css("background-color", "#16AA16");jQuery(no).css("background-color", "black"); jQuery(".filter1").hide(500); ABRA_answer[num] = 1; ABRA_checknos();}); // and here jQuery(no).click(function(){jQuery(no).css("background-color", "#AA1616");jQuery(yes).css("background-color", "black"); ABRA_answer[num] = 0; ABRA_checknos();}); } function ABRA_handletoggle(){ jQuery(".questiontoggle").click(function(){ if(ABRA_isshowing === true){ jQuery(".questionholder").hide(500); jQuery(".questiontoggle").html("<h2>+</h2><p> Click to show or hide questions</p>"); ABRA_isshowing = false; } else{ jQuery(".questionholder").show(500); jQuery(".questiontoggle").html("<h2>-</h2><p> Click to show or hide questions</p>"); ABRA_isshowing = true; } }); } for(var ABRA_loopcontrol = 0; ABRA_loopcontrol < ABRA_numquestions; ABRA_loopcontrol++){ ABRA_handlefilters(ABRA_loopcontrol); } ABRA_handletoggle(); }); Thanks in advance for looking at it. - John Edit: the website is here if you have a difficult time visualizing what I'm saying http://dev.abc-abra.com/?page_id=177
  12. Did you run the site through a HTML and CSS validator? Sometimes if a tag is unclosed or some other similar issue some browsers will fix it automatically but others won't. It could be that you are stumbling on an error that most browsers fix on their own.
  13. You could also use jQuery and a common classname for each filter type then a few buttons to select or unselect each filter. It would be more dynamic not causing a reload if the filter is changed.
  14. Welcome to the forum. Glad to have you.
  15.    Sandrax1 reacted to a post in a topic: Hi everyone
  16. Welcome to the forum

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.