1.0.3 • Published 8 years ago

hsuting v1.0.3

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

Something Interesting

This project is used for recording some functions. All file is use babel6 to write. Here is babel setting.

Start

You can copy file you need or use this:

npm install hsuting

List

img-resize

  • Use to resize image.
  • code
  • import imgResize from 'hsuting/lib/img-resize';

animation

  • Use to run animation by javascript.
  • It need to use eases.
  • code
  • import animation from 'hsuting/lib/animation';

email

get-date

  • Get format date.
  • code
  • import getDate from 'hsuting/lib/get-date';

post-server

  • Post data to server with node.js.
  • It use https module to connect server.
  • code
  • import postServer from 'hsuting/lib/post-server';

ajax-post

  • Post data to server with ajax.
  • code
  • import ajaxPost from 'hsuting/lib/ajax-post';

ajax-get

  • Get data from server with ajax.
  • code
  • import ajaxGet from 'hsuting/lib/ajax-get';

layout

  • Some layout I use and this is used for radium.
  • List

    NameUsage
    GridGrid is parent style of Cell
    CellThis is like layout of mdl. As a result, it have 12, 8 and 6 cols in desktop, tablet and phone size.
    (Top\Center\Bottom)(Left\Center\Right)This style will decide the layout of this children node.
  • code

  • import Layout from 'hsuting/lib/layout';