sioux-offscreen
Version:
An off screen navigation item. Similar to the menu of the Facebook and Path app
31 lines (30 loc) • 1.68 kB
JSON
{
"name": "sioux-global",
"version": "0.0.3",
"description": "a module for sioux projects containing the basic features",
"main": "index.js",
"dependencies": {
"node-touch": "*"
},
"styles": [
"style.css"
],
"keywords": [
"sioux",
"ui",
"global"
],
"repository": {
"type": "git",
"url": "http://github.com/gerhardberger/sioux/global.git"
},
"author": {
"name": "Gerhard Berger",
"email": "93.morph@gmail.com",
"url": "https://twitter.com/gerhard_berger"
},
"readme": "## sioux-global\r\n\r\nThe collection of basic features that are important and useful for working with the other parts of the `sioux` project. It is optional to make it global, but it is recommended. The features listed after, are basically just shorthands to the DOM ones.\r\n\r\n``` js\r\nvar $ = require('sioux-global');\r\n// window.$ = $;\r\n\r\nconsole.log($.isTouchDevice);\r\n\r\n$('button')\r\n .on('tap', function () {\r\n console.log('tapped!');\r\n })\r\n .on('touchleave', function (event) {\r\n console.log('left!');\r\n })\r\n .css('color', 'red')\r\n .css({\r\n 'border-radius': '5px'\r\n , 'border': '1px solid red'\r\n });\r\n```\r\n\r\n#### $(selectorText, parentElement<optional>)\r\nmatches the elements with the `selectorText`, if `parentElement` defined it will query in it\r\n\r\n#### on(eventName, handler)\r\nadds an event handler to the matched elements\r\n\r\n#### off(eventName, handler)\r\nremoves the event handler from the matched elements\r\n\r\n#### css(obj)\r\npretty much same as in jquery",
"readmeFilename": "README.md",
"_id": "sioux-global@0.0.3",
"_from": "sioux-global@"
}