|
FuriousAngle posted:That's great! It's exactly what I want it to do! And you're right, I definitely need to get more familiar with Javascript. I'm trying to run before I can walk. In the meanwhile, where do I place that JS code so it works? I've tried copying it directly in <SCRIPT> brackets in the HEAD and BODY sections and that doesn't work so I'm fairly certain I'm doing that wrong too. You need to include jQuery first, and I recommend putting both at the very bottom of the page, just before the closing </body> tag, like so. Loading scripts last keeps them from slowing down the initial page load, and makes it so you don't (or very rarely) need to wait for the window.onload event.
|
# ¿ Jul 12, 2016 19:46 |
|
|
# ¿ May 8, 2024 23:54 |
|
stoops posted:I need some recommendations on some text editing software. I'll throw in a recommendation for PhpStorm, my go-to IDE. I use it alongside a code editor for quick edits and edge cases (I use Sublime Text for that, but Visual Code/Brackets/Atom/etc. should all work too).
|
# ¿ Jul 25, 2016 15:57 |
|
ModeSix posted:Sirs. My Google-Fu is failing me and I can't figure this out on my own. Toggling the stickiness will still need to be in JS, but you can use vh units to position it at the bottom of the window, like so. EDIT: And if you don't want the navbar to be a child of the header element, you can combine vh with calc() (example). Depressing Box fucked around with this message at 14:44 on Aug 3, 2016 |
# ¿ Aug 3, 2016 14:40 |
|
Alternatively, if you just need the data you're assigning to the element you can use currying to pass it directly:JavaScript code:
JavaScript code:
|
# ¿ Aug 24, 2016 00:35 |
|
Currying is just writing a function with multiple arguments as a series of nested single-argument functions. It lets you start calling a function before you know all the arguments (known as partial application, and very useful for things like event handlers). For example, let's say you have a function like this: JavaScript code:
JavaScript code:
JavaScript code:
Depressing Box fucked around with this message at 20:35 on Aug 24, 2016 |
# ¿ Aug 24, 2016 19:49 |
|
I don't know about Rollbar specifically, but we've been using Bugsnag at work and it's been invaluable. Rather than having to work backwards from user reports, I get a notification with a link to the error report, a full stack trace (resolved with the source map), a bunch of user/device/session data, and one click to create a linked issue in our issue tracking system.
|
# ¿ Sep 7, 2016 15:36 |
|
Trying to add an annotation and inspecting the POST request seems to give some hints:JavaScript code:
|
# ¿ Sep 27, 2016 05:35 |
|
Knifegrab posted:I've never understood this. Can you call a function callback with however member parameters as you expect in this way instead of using an anonymous function (or arrow expression here to maintain the this scope)? A callback can be any function, anonymous or named. Example: https://jsbin.com/zeloca/edit?js,console
|
# ¿ Oct 3, 2016 18:34 |
|
awesomeolion posted:I'm thinking it might be fun to make an Elm thread? Any other Elmers out there interested in commiserating? I'd be interested too, I've also just started learning Elm.
|
# ¿ Oct 10, 2016 01:13 |
|
|
# ¿ May 8, 2024 23:54 |
|
McGlockenshire posted:I'm looking for modern, maintained Javascript libraries to perform data binding (the synchronization of an object with HTML elements or values) and related UI-centric operations. I'm not looking for tools to build a single-page application. For what it's worth, you can use React in plain JS, without JSX/ES6/compiling/etc.
|
# ¿ Nov 19, 2016 04:58 |