Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <html lang="en" >
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <!-- Angular Material style sheet -->
  <link rel="stylesheet" href="">
  <link href="" rel="stylesheet">
<body ng-app="MyApp" ng-controller="AppCtrl">
  <!-- Your HTML content here -->
  <!--------  Today's theme --------->
  <div layout="row" class="theme" layout-align="center center">Day 36: EMI Calculator</div>

  <!--------  Working area --------->
  <div class="working-area">
    <h2 layout="" layout-align="center center">EMI Calculator</h2><br>
    <h4>Loan Amount: {{rating1}}</h4>
    <div layout="">
      <md-slider flex="" md-discrete="" ng-model="rating1" step="1" min="1" max="5000"></md-slider>
    <span layout="row" layout-align="space-between center">
    <h4>Tenure (Years): {{rating2}}</h4> 
      <md-switch class="md-primary" name="special" ng-model="project.special">
          In months
    <div layout="">
      <md-slider flex="" md-discrete="" ng-model="rating2" step="1" min="1" max="50"></md-slider>
    <h4>Interest rate: {{rating3}}%</h4>
    <div layout="">
      <md-slider flex="" md-discrete="" ng-model="rating3" step="1" min="1" max="100"></md-slider>
    <h4>EMI Type:</h4>
    <section layout="row" layout-align="space-around center" layout-wrap>
      <md-button flex="45" class="emitype md-raised">In Advance</md-button>
      <md-button flex="45" class="md-raised">In Arrears</md-button>

    <div layout="row" layout-align="space-around center">
      <md-button flex="100" class="submitButton">Calculate EMI</md-button>
  <!--------  Footer --------->
  <div id="footer_container">
    <div layout="row" layout-align="center center"><h3>Youtube tutorial <a href="" target="_blank"> here!</a></h3></div><br>
    <div layout="row" layout-align="center center">Created by Eleftheria</div>
    <div layout="row" layout-align="center center" class="footer">

        <!-- Linkedin -->
        <a href="" target="_blank"><img src="" class="footer_image" alt="linkedin" title="linkedin"></a> ~
        <!-- Codepen -->
        <a href="" target="_blank"><img src="" class="footer_image" alt="codepen" title="codepen"></a> ~
        <!-- Youtube -->
        <a href="" target="_blank"><img src="" class="footer_image" alt="youtube" title="youtube"></a> ~
        <!-- Twitter -->
        <a href="" target="_blank"><img src="" class="footer_image" alt="twitter" title="twitter"></a> ~
        <!-- Github -->
        <a href="" target="_blank"><img src="" class="footer_image" alt="github" title="github"></a> ~ 
        <!-- Instagram -->
        <a href="" target="_blank"><img src="" class="footer_image" alt="instagram" title="instagram"></a> ~
      <!-- Website -->
        <a href="" target="_blank"><img src="" class="footer_image" alt="website" title="website"></a>




                body {
 background-image: linear-gradient(to right bottom, #dc1767, #ac3086, #6f428f, #31457f, #003e60);
  color: white !important;

.theme {
  padding: 32px 0;
  font-family: 'Pacifico', cursive; 

.working-area {
  width: 359px;
  height: 70%;
  margin: 0 auto;
  background-image: linear-gradient(to right bottom, #ff7cb1, #e69ae3, #c3b7ff, #aacfff, #abe1ff);
  padding: 16px;
  border-radius: 8px;

h4 {
  font-family: 'Pacifico', cursive;
  color: #31457f !important;

md-divider {
  margin-bottom:30px !important;

.emitype {
  color: #dc1767 !important;
  font-family: 'Pacifico', cursive; 

  background-color: #dc1767 !important;
  font-family: 'Pacifico', cursive !important; 

#footer_container {
  font-family: 'Pacifico', cursive; 
.footer .footer_image {
  height: 24px;
  text-align: center;
  padding: 4px;

.footer .footer_image:hover,
#footer_container a:hover {
  background-color: lightblue;
#footer_container a:link,
#footer_container a:active{
  color: #dc1767;



                angular.module('MyApp', ['ngMaterial', 'ngMessages', 'material.svgAssetsCache'])

  .controller('AppCtrl', function ($scope) {
    $scope.rating1 = 3200;
    $scope.rating2 = 4;
    $scope.rating3 = 12;