/iOS-13-Calculators

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.

Primary LanguageJavaScriptApache License 2.0Apache-2.0

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