Giter Club home page Giter Club logo

virtualvivek / ios-13-calculators Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 5.59 MB

This light-weight library provides iOS 13 style calculators for web applications written in html, css and AngularJs .Including Basic calculator, BMI calculator, Macro kcal calculator, Grade calculator, Timer and more.

License: Apache License 2.0

JavaScript 100.00%
calculators bmi-calculator ios html-css javascript angularjs ios-calculator timer timer-application healthcare-application

ios-13-calculators's Introduction

Web Framework Repo. Size License: Apache Release Demo

A light-weight library provides ios 13 style calculators for web applications

​ See a similar dark version here - Dark version of ios Calculator


Overview

An ios 13 style calculators for web browsers. Easily Embbed and use calculated results easily in your pages. This project is inspired from the light theme introduced by apple inc. to apply styles in html css format.

Installation

Include ios-calculators folder in your target project file.

Add where you want to add between your layout using a preprocessing language-

<?php include 'include/Calculator.html';?>

OR

Simply copy the html code and add between you page.

Requirements

<script type='text/javascript' src='angular.min.js'></script>

Basic Calculator

Usage

To use values returned by the Basic calculator-

use {{c_value}}

Eg: <input type="text" placeholder="Result" value="{{c_value}}"/>

OR through ng tag-

ng-model="c_value"

BMI Calculator

Usage

To use values returned by the BMI calculator-

use {{b_value}}

Eg: <input type="text" placeholder="BMI value" value="{{b_value}}"/>

OR through ng tag-

ng-model="b_value"

Timer

Usage

Standalone timer app here : ios-13-Calculators/iosTimer

To use values returned by the Timer-

use {{counter | formatTimer}}

Eg:

<input type="text" placeholder="BMI value" value="{{counter | formatTimer}}"/>

​ ​ ​ ​ ​ ​ ​ ​ ​

Grade Calculator

Usage

To use values returned by the Grade calculator-

use id 'avg_grades'

Eg: <input type="text" id="avg_grades" placeholder="Grade" value="avg_grades"/>

OR through assign value-

var value = document.getElementById("avg_grades").value;

​ ​

Macro Calculator

Usage

To use values returned by the Macro calculator-

use class 'calories' using structure:

<h3 class="calories"><span>0</span> kcal</h3>

OR through assign value-

var value = document.getElementById("calories").innerHtml;




Browser Compatibility

Chrome Firefox Edge Safari Opera
Latest ✔ Latest ✔ Latest ✔ 9.1+ ✔ Latest ✔

License

ios13-Calculators is licensed under Apache-2.0 license. View license.
Copyright (c) 2019-21 Vivek Verma

ios-13-calculators's People

Contributors

virtualvivek avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.