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="">
<body ng-controller="AppCtrl" class="" ng-app="MyApp">
  <!-- Your HTML content here -->
  <!--------  Today's theme --------->
  <div layout="row" class="theme" layout-align="center center">Day 16: Pop up/Overlay</div>

  <!--------  Working area --------->
  <div class="working-area">
     <md-button class="clickmeButton md-raised" ng-click="showAdvanced($event)">
      Click me

  <!--------  Footer --------->
  <div layout="row" layout-align="center center" class="background-color-green"><h3>Youtube tutorial <a href="" target="_blank"> here!</a></h3></div><br>
  <div layout="row" layout-align="center center" class="background-color-green">Created by Eleftheria</div>
  <div id="footer" layout="row" layout-align="center center" class="background-color-green">
      <!-- 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>

<script type="text/ng-template" id="dialog.tmpl.html"><md-dialog aria-label="Another Form">
      <div class="md-toolbar-tools">
        <h2>Yet Another Form</h2>
        <span flex></span>
        <md-button class="md-icon-button" ng-click="cancel()">
          <md-icon md-svg-src="img/icons/ic_close_24px.svg" aria-label="Close dialog"></md-icon>

      <div class="md-dialog-content" style="width: auto;">
    <form name="contactForm">
      <div layout="row">
        <md-input-container class="md-block">
          <input required="" name="name" ng-model="project.Name">
          <div ng-messages="projectForm.Name.$error">
            <div ng-message="required">This is required.</div>

      <md-input-container class="md-block">
        <label>Client Email</label>
        <input required="" name="clientEmail" ng-model="project.clientEmail" minlength="4" maxlength="100" type="email">

        <div ng-messages="projectForm.clientEmail.$error" role="alert">
          <div ng-message-exp="['required', 'minlength', 'maxlength']">
            Your email must be between 4 and 100 characters long and look like an e-mail address.

      <md-input-container class="md-block">
        <md-checkbox name="tos" ng-model="project.tos" required="">
          I accept the terms of service.
        <div ng-messages="projectForm.tos.$error" multiple="" md-auto-hide="false">
          <div ng-message="required">
            You must accept the terms of service before you can proceed.

    <md-dialog-actions layout="row">
      <md-button type="submit" class="clickmeButton">Submit</md-button>




                body {
  background-image: linear-gradient(to top, #a8edea 0%, #fed6e3 100%);

.theme {
  padding:32px 0 32px 0;

.working-area {
  width: 90%;
  height: 80%;
  margin: 0 auto;
  background-color: rgba(142,36,170,0.3);
  padding: 16px;
  border-radius: 8px;

  background-color: #a8edea !important;

#footer .footer_image {
  height: 24px;
  text-align: center;
  padding: 4px;


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

.controller('AppCtrl', function($scope, $mdDialog) {
    this.myDate = new Date();
  $scope.showAdvanced = function(ev) {
      controller: DialogController,
      templateUrl: 'dialog.tmpl.html',
      parent: angular.element(document.body),
      targetEvent: ev,

  function DialogController($scope, $mdDialog) {
    $scope.cancel = function() {