calculator
This commit is contained in:
parent
6d79a5da72
commit
ff6348a233
4 changed files with 163 additions and 0 deletions
47
public/views/send2.html
Normal file
47
public/views/send2.html
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
<ion-content ng-controller="send2Controller">
|
||||
<ion-header-bar align-title="center" class="tab-bar" ng-style="{'background-color':index.backgroundColor}">
|
||||
<div class="left-small">
|
||||
<a class="p10" ng-click="close()"><span class="text-close" translate>Close</span></a>
|
||||
</div>
|
||||
<h1 class="title ellipsis" translate>Enter amount</h1>
|
||||
<div class="right-small m5r">
|
||||
<a class="postfix" ng-show="showAlternative" ng-click="toggleAlternative()">{{alternativeIsoCode}}</a>
|
||||
<a class="postfix" ng-show="!showAlternative" ng-click="toggleAlternative()">{{unitName}}</a>
|
||||
</div>
|
||||
</ion-header-bar>
|
||||
|
||||
<div class="send-amount row" ng-style="{'background-color':index.backgroundColor}">
|
||||
<div class="size-48">${{amount}}</div>
|
||||
<div class="size-21 text-light">= ${{result}}</div>
|
||||
</div>
|
||||
|
||||
<div class="button-content ext-center df">
|
||||
<button class="button expand button-stable" ng-click="pushOperator('*')">*</button>
|
||||
<button class="button expand button-stable" ng-click="pushOperator('/')">/</button>
|
||||
<button class="button expand button-stable" ng-click="pushOperator('+')">+</button>
|
||||
<button class="button expand button-stable" ng-click="pushOperator('-')">-</button>
|
||||
</div>
|
||||
|
||||
<div class="m10b">
|
||||
<div class="button-content text-center df">
|
||||
<button class="button expand button-light" ng-click="pushDigit('1')">1</button>
|
||||
<button class="button expand button-light" ng-click="pushDigit('2')">2</button>
|
||||
<button class="button expand button-light" ng-click="pushDigit('3')">3</button>
|
||||
</div>
|
||||
<div class="button-content text-center df">
|
||||
<button class="button expand button-light" ng-click="pushDigit('4')">4</button>
|
||||
<button class="button expand button-light" ng-click="pushDigit('5')">5</button>
|
||||
<button class="button expand button-light" ng-click="pushDigit('6')">6</button>
|
||||
</div>
|
||||
<div class="button-content text-center df">
|
||||
<button class="button expand button-light" ng-click="pushDigit('7')">7</button>
|
||||
<button class="button expand button-light" ng-click="pushDigit('8')">8</button>
|
||||
<button class="button expand button-light" ng-click="pushDigit('9')">9</button>
|
||||
</div>
|
||||
<div class="button-content text-center df">
|
||||
<button class="button expand button-light" ng-click="pushDigit('.')">.</button>
|
||||
<button class="button expand button-light" ng-click="pushDigit('0')">0</button>
|
||||
<button class="button expand button-light" ng-click="removeDigit()"><</button>
|
||||
</div>
|
||||
</div>
|
||||
</ion-content>
|
||||
Loading…
Add table
Add a link
Reference in a new issue