Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Crispy Mobile empowers your Rails application with easy-accessible device-detection. In your controller or view, you can access device properties or add switches like:
- if device == :desktop
= stylesheet_link_tag :desktop
- else
= stylesheet_link_tag :mobile
= image_tag @photo.dynamic_url(device > :handheld_480 ? '600x400' : '300x200')
= image_tag @photo.dynamic_url("#{device.display_width}x")
CSS media queries are nice. But not for mobile.
They just add up code you send to your clients instead of reducing it for mobile devices.
Imagine you want to make a responsive product page.
You don't.
If you start mobile-first, don't let your mobile performance be affected by additional desktop features.
Be kind, serve the clients exactly what they need.
A middleware is introduced which looks up the user agent string in the WURFL repository.
Pending. Please have a look at the source.
In your Gemfile add:
gem 'crispy-mobile'
In your ApplicationController add:
include Crispy::DeviceHelpers
See MIT-LICENSE.
FAQs
Unknown package
We found that crispy-mobile demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.