Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

Save Automatically?

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

              
                <html lang="en" >
<head>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <!-- Angular Material style sheet -->
  <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/angular_material/1.1.12/angular-material.min.css">
  <link href="https://fonts.googleapis.com/css?family=Cute+Font" rel="stylesheet">
</head>
<body ng-app="MyApp" ng-controller="AppCtrl">
  <!-- Your HTML content here -->
  
  <!--------  Today's theme --------->
  <div layout="row" class="theme" layout-align="center center"><h3>Day 55: Icon Set, Day 56: Breadcrumbs, Day 57: Video Player, Day 58: Shopping Cart, Day 59: Background Pattern, Day 60: Color Picker, Day 61: Redeem Coupon</h3></div>

  
  <!--------  Working area --------->
  <div class="working-area">
    
    <md-toolbar>
    <div class="md-toolbar-tools">
      <h3 flex="95">
        <span><a href="https://youtu.be/rwnJDMUQN4Q" target="_blank">Tutorials </a> ><a href="https://www.youtube.com/c/EleftheriaBatsou" target="_blank"> Youtube </a>> <a href="https://youtu.be/c-LebpUzKVo"> Advice</a></span>
      </h3>
      <md-button ng-click="showPrompt($event)">
        <img class="header-icons" src="https://cdn0.iconfinder.com/data/icons/typicons-2/24/shopping-cart-256.png">
      </md-button> 
    </div>
  </md-toolbar>

  <h3>Press the '<img src="https://cdn2.iconfinder.com/data/icons/music-media-player-outline-basic/32/1-icon-music-01-128.png" style="width: 20px; height: 20px; margin-top: 0px">' in the video, and move the sliders (R,G,B,A) to apply a color filter in the video.</h3>
  <div class="picker">
    R: <input type="range" min="0" max="255" step="1" ng-model="r" /> <br> 
    G: <input type="range" min="0" max="255" step="1" ng-model="g" /> <br>  
    B: <input type="range" min="0" max="255" step="1" ng-model="b" /> <br> 
    A: <input type="range" min="0" max="1" step="0.1" ng-model="a" />
  </div>
  <div class="color" style="background-color: rgba({{r}}, {{g}}, {{b}}, {{a}});"></div>
      
  <iframe width="480" height="320" src="https://www.youtube.com/embed/nctweWqN_JQ" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
  
    
    <div>
      <md-button class="submitButton"><a href="https://www.youtube.com/c/EleftheriaBatsou" target="_blank">Watch More</a></md-button>
    </div>
      
  </div>
  
  <!--------  Footer --------->
  <div id="footer_container">
    <div layout="row" layout-align="center center"><h3>Youtube tutorial <a href="https://youtu.be/cFFCO-BuXrk" 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="https://www.linkedin.com/in/eleftheriabatsou/" target="_blank"><img src="https://image.flaticon.com/icons/svg/39/39714.svg" class="footer_image" alt="linkedin" title="linkedin"></a> ~
        <!-- Codepen -->
        <a href="https://codepen.io/EleftheriaBatsou" target="_blank"><img src="https://image.flaticon.com/icons/svg/51/51767.svg" class="footer_image" alt="codepen" title="codepen"></a> ~
        <!-- Youtube -->
        <a href="https://www.youtube.com/c/EleftheriaBatsou" target="_blank"><img src="https://image.flaticon.com/icons/svg/733/733646.svg" class="footer_image" alt="youtube" title="youtube"></a> ~
        <!-- Twitter -->
        <a href="https://twitter.com/BatsouElef" target="_blank"><img src="https://image.flaticon.com/icons/svg/8/8800.svg" class="footer_image" alt="twitter" title="twitter"></a> ~
        <!-- Github -->
        <a href="https://github.com/EleftheriaBatsou" target="_blank"><img src="https://image.flaticon.com/icons/svg/25/25231.svg" class="footer_image" alt="github" title="github"></a> ~ 
        <!-- Instagram -->
        <a href="https://www.instagram.com/eleftheriabatsou/" target="_blank"><img src="https://image.flaticon.com/icons/svg/69/69366.svg" class="footer_image" alt="instagram" title="instagram"></a> ~
      <!-- Website -->
        <a href="http://www.eleftheriabatsou.com" target="_blank"><img src="https://image.flaticon.com/icons/svg/484/484101.svg" class="footer_image" alt="website" title="website"></a>
    </div>
   </div>

</body>
</html>

              
            
!

CSS

              
                body {  
  background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAATklEQVQoU2O0O3X+PwMDA8MhM0NGEI0LMBKtEJsJD27YgW1R0DgEtwWrdUQrxGYLY8V5iDUdhghrKFOITfenmXFgW/jSF+H3DNEKsdkCAO99IAvXcD3VAAAAAElFTkSuQmCC') repeat;
}

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

.working-area {
  width: 480px;
  height: 660px;
  margin: 0 auto;
  background-color: white;
  border: yellow 2px solid;
}

.header-icons{
  padding-top: 16px;
  width: 46px;
  height: auto;
}

.picker {
  width: 100%;
  height: 130px;
  padding-top: 20px;
  padding-left: 20px;
}

.color {
  position: absolute;
  width: 480px;
  height: 160px;
}

.submitButton{
  background-color: #dc1767 !important;
}
.submitButton a{
  color: white !important;
}
.submitButton a:hover{
  color: lightblue !important;
}

#footer_container {
  font-family: 'Pacifico', cursive; 
}
.footer .footer_image {
  height: 24px;
  width: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;
}

              
            
!

JS

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

.controller('AppCtrl', function($scope, $mdDialog) {

$scope.showPrompt = function(ev) {
    // Appending dialog to document.body to cover sidenav in docs app
    var confirm = $mdDialog.prompt()
      .title('You are about to buy this cool filter')
      .textContent('If you have a coupon, please apply it below')
      .placeholder('Coupon Code')
      .ariaLabel('Dog name')
      .initialValue('Apply coupon')
      .targetEvent(ev)
      .required(true)
      .ok('Okay!')
      .cancel('proceed to payment');

    $mdDialog.show(confirm).then(function(result) {
      
    }, function() {
     
    });
  };
  
});
              
            
!
999px

Console