Giter VIP home page Giter VIP logo

itonic's Introduction

iTonic

This is a simple javascript library which is very helpful to make a dynamic or interactive web applications.

Key Features!

  • Dialog/Modal view and easy handling method
  • Data loading view
  • File upload executor and easy progress monitor system
  • URI query parser
  • Code character to Entity converter
  • Toggle full screen controller
  • Color verification method
  • Pixel verification method

Additional Features!

  • Dedicated css file to make custom graphical view of Dialog or Loading
  • Multiple naming for same execution to remind the function name easily
  • Used sassy scss for advanced and easier css design
  • Minified version of both css and js file

Limitations!

  • iTonic javascript library is to use only for environments that have a window with a document
  • jQuery version 3.0.0 or higher is required

List of working functions

  • boolean it.isColor(string pixel)
  • boolean it.isPixel(string color)
  • string it.CCToEntity(string text)
  • object it.getURIQuery([boolean considerArray, string customUrl])
  • boolean it.fullScrToggle([object element])
  • boolean it.dialog.execute(object propertyObject)
  • boolean it.dialog.open(string headerText, string bodyHtml, string hfColor, string width, string buttons, function callback)
  • boolean it.dialog.warning(string bodyHtml, string callback)
  • boolean it.dialog.success(string bodyHtml)
  • boolean it.dialog.info(string bodyHtml)
  • boolean it.dialog.error(string bodyHtml)
  • boolean it.dialog.onDuty([object propertyObject])
  • boolean it.dialog.loading([string loadingMessage, string loadingImageLink, string msgColor, string backLayerColor])
  • boolean it.dialog.close(void)
  • void it.upload.execute(object propertyObject)
  • void it.upload.drive(string targetUrl, string inputFileId, string inputName, string fileExtensions, number fileSizeMax, number filesMax, function cbProgress, function cbSuccess, function cbDone, function cbEvaluate, function cbFail)

Multiple naming access!

  • [iTonic = itonic = it]*
  • (*.)[dialog = modal]**
  • (**.)[open = view]
  • (**.)[close = exit]
  • (*.upload.)[drive = run]

Function Call!

iTonic Upload

it.upload.execute({
    targetUrl: undefined,
    inputFileId: undefined,
    inputName: "file",
    fileExtensions: undefined,
    fileSizeMax: 100000000,
    filesMax: 20,
    progress: undefined,
    success: undefined,
    done: undefined,
    evaluate: undefined,
    fail: undefined
});

iTonic Modal

it.modal.execute({
    headerText: "Dialog Form.",
    headerTextColor: "#FFFFFF",
    headerColor: "#919191",
    footerColor: "#919191",
    hfColor: undefined,
    crossButtonEnable: true,
    crossButtonColor: "#FFFFFF",
    bodyHtml: "",
    bodyColor: "#FFFFFF",
    width: "400px",
    createButton: undefined,
    buttonColor: "#FFFFFF",
    buttonTextColor: "#444444",
    backLayerColor: "rgba(0,0,0,0.4)",
    draggable: true,
    action: undefined
});

it.modal.open(headerText, bodyHtml, hfColor, width, buttons, callback);

it.modal.warning(bodyHtml, callback);

it.modal.success(bodyHtml);

it.info.success(bodyHtml);

it.error.success(bodyHtml);

it.modal.close();

it.modal.onDuty({
    message: "Execution is in progress....<br/>Please Wait !",
    messageColor: "#FFFFFF",
    graphics: undefined,
    backLayerColor: "rgba(0,0,0,0.4)"
});

it.modal.loading(loadingMessage, loadingImageLink, msgColor, backLayerColor);

iTonic Pixel Verification

it.isPixel(pixel);

iTonic Color Verification

it.isColor(Color);

iTonic Code Character to Entity

it.CCToEntity(text);

iTonic URI Query Parser

it.getURIQuery(considerArray, customUrl);

Full Screen Toggle

it.fullScrToggle(element);

License

iTonic is a free javascript library! You can redistribute it and/or modify it under the terms of the MIT License. Please read the LICENSE file for more details.

itonic's People

Contributors

aupr avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.