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.

mantis

Privileged
  • Joined

  • Last visited

Reputation Activity

  1. Like
    mantis got a reaction from picatree in Node Meeting 2: minutes and homework   
    Bravo Teodora!!!
    I'm also going through the ones on Code School. It seems I'm getting struck with work once again which is eating into my studying time
  2. Like
    mantis got a reaction from teodora in Node Meeting 2: minutes and homework   
    Bravo Teodora!!!
    I'm also going through the ones on Code School. It seems I'm getting struck with work once again which is eating into my studying time
  3. Like
    mantis got a reaction from Lyndsey in Node Meeting 2: minutes and homework   
    So for those who didn't make the meeting last night we discussed a great many things including curry, poo, contracts, and mountain climbing. We also mentioned JavaScript once or twice.
     
    @@citypaul gave us some homework which can be found on the slack channel. You will need the link there to do it and it involves watching videos.
     
    Some of us were were making our own forEach functions to better understand callbacks.
     
    https://gist.github.com/mantismamita/1b092e5427a1d8e66abc
  4. Like
    mantis reacted to teodora in Node Meeting 2: minutes and homework   
    Yay! I finished the node exercises https://github.com/Teo-MidasMedia/learnyounode-solutions. (My answer to Q13 is "somewhat influenced" by Robert's answer lol, sorry).
     
    Going through the rest - forEach, map, reduce, filter...
    My file is here https://github.com/Teo-MidasMedia/MixedJS/blob/master/mixed.js but I'll be updating it!
     
    P.S. Looks like you've had fun at the last meeting, I'll make sure I don't miss the next one
  5. Like
    mantis reacted to rbrtsmith in Node Meeting 2: minutes and homework   
    For those that have managed to build their own forEach and perhaps map functions and want some more - have a try at creating your own reduce and filter functions.
    https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce
    https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/filter
     
    Not only does making these get you more familiar with callbacks and the functional programming style it will also help your understanding of the actual functions themselves which are very heavily used. I used many of these array functions throughout my answers to the node-questions. I've now add the questions to my answers for the learnyounode tutorial series for those who wish to compare: https://github.com/rbrtsmith/learn-you-node-solutions
     
    Also Codeschool has a node.js course and an express.js course that covers some things that the tutorials on learnyounode they are well worth digging into.
  6. Like
    mantis reacted to teodora in Node Meeting 2: minutes and homework   
    Thanks @@mantis! I'll login to catch up
  7. Like
    mantis got a reaction from teodora in Node Meeting 2: minutes and homework   
    So for those who didn't make the meeting last night we discussed a great many things including curry, poo, contracts, and mountain climbing. We also mentioned JavaScript once or twice.
     
    @@citypaul gave us some homework which can be found on the slack channel. You will need the link there to do it and it involves watching videos.
     
    Some of us were were making our own forEach functions to better understand callbacks.
     
    https://gist.github.com/mantismamita/1b092e5427a1d8e66abc
  8. Like
    mantis got a reaction from fleur in Node Meeting 2: minutes and homework   
    So for those who didn't make the meeting last night we discussed a great many things including curry, poo, contracts, and mountain climbing. We also mentioned JavaScript once or twice.
     
    @@citypaul gave us some homework which can be found on the slack channel. You will need the link there to do it and it involves watching videos.
     
    Some of us were were making our own forEach functions to better understand callbacks.
     
    https://gist.github.com/mantismamita/1b092e5427a1d8e66abc
  9. Like
    mantis got a reaction from rbrtsmith in Node.js resources   
    More videos : http://nodecasts.net/
  10. Like
    mantis got a reaction from teodora in Wonder whether to use a separate database (WP)   
    Hmm, well if you're just collecting it then perhaps another database would make sense but I would think just keeping the information in separate tables should be sufficient in the event that someday you change your mind and do need the data as part of your installation.
     
    Security wise, is it because it is especially sensitive information or just as a precaution? Its worth using an SSL protocol if you are collecting anything sensitive. Also make sure properly escaped and use nonces (number used once) https://codex.wordpress.org/WordPress_Nonces to add a security token.
  11. Like
    mantis reacted to teodora in Node meeting 1::Node homework   
    For the record - I completed Q7 and 8 last night - here are all my answers https://github.com/Teo-MidasMedia/learnyounode-solutions
    Will continue when I get a chance
  12. Like
    mantis got a reaction from teodora in App ideas?   
    As per our meeting last Thursday here is my idea for an app we can all work on. My original idea for a star reward chart (presumably for children and parents) isn't terribly exciting and could perhaps be better adapted to something we can all use.
     
    Star reward chart (for personal projects?)
     
    it should allow for multiple users.
    it should save user data (I think we discussed localStorage?)
    it should save a point value for each user
    it should play a little tune with a small animation each time a user reaches a milestone
    it should play a longer tune with a better animation when a user reaches a predefined goal
    it should list all users and the number or stars they have received
    it should show information the user wants to share
    It should allow the user to determine what they want to share
     
    to be continued...
     
    I was thinking about it in the context of learning node or any other technology or language and though it might be good to have something like a list of goals and milestones to get to a finished goal or project.
     
    For example, I have several side projects that I work on from time to time and I occasionally have periods of progress but the project goals are not really written down anywhere and I don't often make the time for them. Something that does help motivate me is public accountability. If I say I want to do something by a certain date or spend x amount of time per day on something I am more likely to do it if I've announced it. There are lots of apps that have todo lists and project planners but I find they do really cater to personal projects and most are quite complex. Incidentally there is an app called coach.me that does something like this but its not adapted for side projects and mainly wants you to pay someone to coach you along.
     
    At any rate this is the beginning of my idea. Perhaps we could all come up with one and then either elaborate on them or decide on one. @@citypaul suggested using "it should" and "it shouldn't" to determine functionality.
     
     
     
     
     
     
  13. Like
    mantis got a reaction from rbrtsmith in Node.js resources   
    Thanks @@rbrtsmith I'm sure I'll be PM ing you here at some point.
     
    Another resource for anyone who likes videos:
     
    http://devfreecasts.org/nodejs/
  14. Like
    mantis reacted to rbrtsmith in Node.js resources   
    After last nights session, and people struggling a bit with the concept of callbacks I thought I'd write a short post explaining them. I've not had the time to edit it fully yet so if there's mistakes please let me know and I can ammend!
     
    http://rbrtsmith.com/2015/05/JavaScript-Callbacks/
  15. Like
    mantis reacted to teodora in Node meeting 1::Node homework   
    Thanks again to everyone who attended our first node meeting! It was a great fun
     
    For those who couldn't make it, here's a summary of what we've been doing.
    We have installed a node tutorials https://github.com/workshopper/learnyounode and have gone through most of the exercises.
     
    We established some of us (mainly me! ) needed time to get their head around the questions. Those who couldn't make it to the meeting, can also have a go.
     
    Hence this thread, we can post our answers here, when we're ready and discuss.
     
    To keep the thread organised, maybe we could post our complete answers when we finish all of them
    What do you think?
     
     
  16. Like
    mantis got a reaction from teodora in Scheduling meetings   
    Oooh, just saw this. Haven't been around much but can't resist trying it out
  17. Like
    mantis got a reaction from jakdothtml in Any CMS for static websites?   
    I heard good things about kirby http://getkirby.com/ they call it a file based CMS (as opposed to "static.")
  18. Like
    mantis reacted to rbrtsmith in Euro numbers count up   
    Try this code:
    (function countEuros() { var count = 0, element = document.getElementById('counter'), counter = setInterval(function() { count +=1000; var newCount = count.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); element.innerHTML = newCount + ' Euro'; if (count >= 3000000) { clearInterval(counter); return; } }, 1); }()); issue is the function can only execute so fast, so it would still take ages to get to 3 million, so on the line where you see count +=1000 You can modify this and see how it will effect the speed (the setInterval already running at maximum speed) So I recommend you count in 100's or 1000's like here.
    Don't worry too much about the regular expression in there, that's just to add the commas between the appropiate numbers.
     
    http://jsfiddle.net/7xzu78ec/
  19. Like
    mantis reacted to teodora in Add conditions to a link?   
    That might do the job, adding conditional statement, detecting if the user is logged in:
    function jc_nav_menu_items( $items, $args ) { if ( !is_user_logged_in()){ // IF USER IS NOT LOGGED IN $items .= '<a href="#topReveal"><span class="mmLogin">Login</span></a>'; } else { // IF USER IS LOGGED IN ...your logged out menu item ... } return $items; } add_filter('wp_nav_menu_items','jc_nav_menu_items', 10, 2);
  20. Like
    mantis got a reaction from mccloud in wordpress interpreting style.css differently?   
    Your problem is probably that you are outputting wp_list_pages() inside anchor tags when it outputs li elements by default and should therefore be inside ul tags. Check out http://codex.wordpress.org/Function_Reference/wp_list_pages for examples and information.
     
    For your second problem it could be that you saved the other pages with a different encoding. Sometimes code editors are to blame here.
  21. Like
    mantis reacted to BlueDreamer in How much should I charge for this?...   
    Wow charging at the standard rate!
     
    What you need to do is assess these items:
     
    1. The number of hours you spent on the project x your hourly rate
    2. Your costs, eg CMS software + your time for research, purchase, installing etc
    3. Training and other fees if you do on site training
     
    Come up with an hourly rate based on what you think your time is worth and apply to your work hours. Remembering that experienced freelancers can charge £30/40/50+ per hour, and agencies maybe £75/hour upwards (£100/200 is not uncommon!).
  22. Like
    mantis reacted to BrowserBugs in Help with Google Analytics   
    One quick tip. Add an annotation to analytics the date the new site launches and if you make any tweaks in the first few months always note them in analytics, you can make private notes too. This helps when looking back to see what happened and when, an often overlooked feature and a God send for any negative fallout
  23. Like
    mantis got a reaction from weena in Wordpress one page website with anchor type pages   
    You basically need to bind to the scroll event like so :
    // Cache selectors var topMenu = $("#top-menu"), topMenuHeight = topMenu.outerHeight()+15, // All list items menuItems = topMenu.find("a"), // Anchors corresponding to menu items scrollItems = menuItems.map(function(){ var item = $($(this).attr("href")); if (item.length) { return item; } }); // Bind to scroll $(window).scroll(function(){ // Get container scroll position var fromTop = $(this).scrollTop()+topMenuHeight; // Get id of current scroll item var cur = scrollItems.map(function(){ if ($(this).offset().top < fromTop) return this; }); // Get the id of the current element cur = cur[cur.length-1]; var id = cur && cur.length ? cur[0].id : ""; // Set/remove active class menuItems .parent().removeClass("active") .end().filter("[href=#"+id+"]").parent().addClass("active"); });​ I found that here if you need to look further but it should work provided you style the "active" class like you would your .current_page_item
     
    I'm not sure I understand the second part of your question. Do all your links have the .current_page_item class then? Otherwise can you inspect it to find out where the blue highlight is coming from?
  24. Like
    mantis got a reaction from teodora in Wordpress one page website with anchor type pages   
    You basically need to bind to the scroll event like so :
    // Cache selectors var topMenu = $("#top-menu"), topMenuHeight = topMenu.outerHeight()+15, // All list items menuItems = topMenu.find("a"), // Anchors corresponding to menu items scrollItems = menuItems.map(function(){ var item = $($(this).attr("href")); if (item.length) { return item; } }); // Bind to scroll $(window).scroll(function(){ // Get container scroll position var fromTop = $(this).scrollTop()+topMenuHeight; // Get id of current scroll item var cur = scrollItems.map(function(){ if ($(this).offset().top < fromTop) return this; }); // Get the id of the current element cur = cur[cur.length-1]; var id = cur && cur.length ? cur[0].id : ""; // Set/remove active class menuItems .parent().removeClass("active") .end().filter("[href=#"+id+"]").parent().addClass("active"); });​ I found that here if you need to look further but it should work provided you style the "active" class like you would your .current_page_item
     
    I'm not sure I understand the second part of your question. Do all your links have the .current_page_item class then? Otherwise can you inspect it to find out where the blue highlight is coming from?
  25. Like
    mantis reacted to NickC4555 in Woohoo!   
    An enquiry to my website that isn't spam. I might frame it.

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.