npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

cordova-jquery

v0.1.6

Published

This npm module will configure an existing apache cordova application to use the latest jquery-mobile as well as allow users to choose from a number of jquery mobile templates to apply to their projects.

Downloads

41

Readme

cordova-jquery

npm module to add jQuery mobile to an existing Apache Cordova hybrid mobile application.

jQuery version

The version of jQuery for this release is version 1.11.1. The version of jQuery mobile for this release is version 1.5.0.

Running

To add jQuery mobile to your existing Apache Cordova application simply move into the root directory of your Apache Cordova project and run

cordova-jquery

Once a project is initialized to use jQuery mobile three files will be moved into your Cordova project js directory:

  1. jquery.min.js
  2. jquery.mobile.min.js
  3. jquery.mobile.min.css

Additionally, these files will be referenced from your Cordova index.html file.

Applying jQuery Templates

Once the project is initialized, the module will prompt asking if you'd like to apply a jQuery mobile template. Additionally, you could re-run the corodova-jquery command on a project already initialized to apply a template after the fact. Current templates include:

multiple pages

This template will apply a simple two page jQuery mobile template to your index.html file.

First Second

header navbar

This template will apply a three page jQuery mobile template to your index.html file that includes a header navbar for the header on each page.

First Second

persistent navbar

This template will apply a three page jQuery mobile template to your index.html file that includes a persistent navbar for the footer on each page.

First Second

external panel

This template will apply an external panel to jQuery mobile. When this option is selected you will also be prompted for additional information such as which side of the page you'd like the panel to open on (left, right) and which reveal style would you like (reveal, push, overlay)

First Second

accordion

This template will apply three sections' jQuery mobile accordion template to your index.html file. Your existing content will be placed as part of the first section. It is important to note that you have to make sure that your existing content parent element does not use CSS "absolute" position in order to be controlled by the accordion section.

First

list view

This template will apply a jQuery mobile list view template to your index.html file. The first item of the list view points to your existing content page, and the second and the third items of the list view point to two placeholder pages.

First Second

WARNING

In this version of the module, any existing code within the index.html body tag will be REMOVED when applying a new template. However, It is not removed if you simply initiate the jQuery mobile use.

Adding jQuery Elements

Once the project is initialized, the module will prompt asking if you'd like to add a jQuery mobile element. Additionally, you could re-run the corodova-jquery command on a project already initialized to add an element after the fact. Current elements include:

Popup

This element adds a jQuery mobile popup.

How to test from GitHub rather than install through npm

First install using the npm command

npm install -g /path/to/cordova-jquery

ex.

npm install -g ../../cordova-jquery

Verify that it is installed by running

npm ls

You will see the name and the version of the npm module For example, ├── [email protected]

To test. First move into an Apache Cordova project directory. Then run

node /path/to/cordova-jquery/cordova-jquery

ex.

node ../../cordova-jquery/cordova-jquery