A while ago I tweeted a thread about how a small JavaScript snippet, one that can fit in a single tweet in fact, can be used to allow defining custom...
...you can only truncate single lines with CSS by using text-overflow, this small JavaScript library also allows truncating text after multiple lines. Please note: For Internet Explorer, the element...
...the value of the last expression, it may return DOM nodes: # coffeescript scope.focus = -> element.focus() # javascript scope.focus = function() { return element.focus(); // wheee } If you e.g. use this function like this, the error...
...Put the attached file into features/support/ to make Capybara more patient in scenarios tagged @javascript...
A set of javascript tools for working with files. It offers different kinds of things: A cross-browser JS API to work with File objects. Image helper methods, like rotating...
...it's unavailable, a timeout error is thrown. Now, consider a scenario like this: @javascript Scenario: Receive an e-mail after clicking the fancy link When I follow "fancy link...
...will be running. How is that last item the worst? Consider these steps: Before('@javascript') do # Disable code snippets that embed code to third party services, like Google Analytics, when...
...replace the tracking code with a debug version that prints debugging info to the JavaScript console...
If you want to do JavaScript-style camelization, ActiveSupport's String#camelize method can actually help you out. Simply pass a :lower argument to it. >> 'foo_bar_baz'.camelize
...acts like Stripe’s and also serves a fake version of Stripe.js, Stripe’s JavaScript library that allows you to collect your customers’ payment information without ever having it touch...
dragging the finger after touchstart touching the element for a long time an JavaScript event handler calling event.preventDefault() on the touchstart event an JavaScript event handler calling event.preventDefault() on...
...will never fire. Only these events will fire: touchstart touchend Caveats when canceling with JavaScript When you call event.preventDefault() on the touchstart or touchend event, you can prevent the subsequent...
When you include a non-existing Javascript file, you probably won't notice it during development. But with caching active (on production or staging) Rails will write an empty all.js...
The attached article explains how to preload images with only CSS. No Javascript required. The gist is: .element:after { content: url(img01.jpg) url(img02.jpg) url(img03.jpg); display: none...
...that you can easily use or replace the theme. Does not come with extra JavaScript; some effects like button click ripples are implemented via CSS. Also check out their other...
Small (1.5 KB) Javascript library that lets you render tables, lists, etc. with hundreds of thousands of items. How it works is that you move your data set from the...
Batman is an alternative Javascript MVC with a similar flavor as AngularJS, but a lot less features and geared towards Ruby on Rails. The attached link leads to a tutorial...
...and time-consuming to implement, involving complex sprite images, extra non-semantic markup, large JavaScript libraries, and other lovely hacks...
...do not use ID's for CSS. Id's are much better used as javascript hooks so use them for this instead. .list {…} instead of #list {…} Animate an interface using...
...classes not inline styles Inline styles added by javascript are harder to update and maintain, prefer to add classes using javascript. CSS3 transitions can then handle any animations and if...
...able to work around this issue in most projects by doing this instead: After '@javascript' do step 'I wait for the page to load'
...the following snippet: require 'headless' headless = Headless.new at_exit do headless.destroy end Before("@selenium,@javascript", "~@no-headless") do headless.start if Capybara.current_driver == :selenium end After("@selenium,@javascript", "~@no-headless") do...
...headless mode if you are running a scenario that is tagged with @selenium or @javascript. If you don't want a specific scenario to hide the selenium browser window, you...
You can say this in Javascript:
Applications must be originally written in Objective-C, C, C++, or JavaScript as executed by the iPhone OS WebKit engine, and only code written in C, C++, and Objective-C...
Write your app using HTML, CSS or JavaScript, upload it to the PhoneGap Build service and get back app-store ready apps for Apple iOS, Google Android, Windows Phone...
...some icon names, and introduces new prefixes fab, far, and fas. There is a JavaScript shim that you can use as a "quick fix". It allows you to keep v4...
ClockPicker is a JavaScript and Bootstrap implementation of an Android-style time picker which looks and feels great. Unfortunately, it is no longer maintained...