123

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <div class="container" ng-app="AboApp">
<h3>NOS ABONNEMENTS</h3>
    <div class="row db-padding-btm db-attached" ng-controller="AboCtrl">
        <div class="col-xs-12 col-sm-4 col-md-4 col-lg-4" ng-repeat="abos in abo">
            <div class="db-wrapper" ng-click="setId(abos.id)">
                <div class="db-pricing-eleven db-bk-color-two" 
                     ng-class="{'popular': selected.id === abos.id }">
                    <div ng-class="{'price' : !areaStatus, 'price pop' : areaStatus}">
                        {{abos.tarif}}<sup>€</sup>
                        <small>par mois</small>
                    </div>
                    <div class="type">
                        {{abos.nom}}
                    </div>
                    <ul>
                        <li><i class="icon-ok"></i>{{abos.communication}}</li>
                        <li><i class="icon-ok"></i>{{abos.vers}}</li>
                        <li><i class="icon-ok"></i>{{abos.zone}}</li>
                    </ul>
                    <div class="pricing-footer" ng-show="areaStatus">
                        <a href="#" class="btn db-button-color-square btn-lg">VALIDER</a>
                    </div>
                </div>


            </div>
            
          
!
            
              @import url("https://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.min.css");
@import url("https://fonts.googleapis.com/css?family=Roboto:400,300,700italic,700,500&subset=latin,latin-ext");

body {
    background-color: #ecf0f1;

}
/*
input[type="radio"]{
    display:none;
}*/
/*.abo-h{
    margin-left:15px;
}*/
/*.row{
    width: 900px;
    margin: 0 auto;
}*/
/*=============================================================
    Authour URL: www.designbootstrap.com

    http://www.designbootstrap.com/

    License: MIT
========================================================  */

/*============================================================
BACKGROUND COLORS
============================================================*/
.db-bk-color-one {
    background-color: #f55039;
}

.db-wrapper{
    cursor:pointer;

}

.db-bk-color-two {
    background-color: #46A6F7;
}

.db-bk-color-three {
    background-color: #47887E;
}

.db-bk-color-six {
    background-color: #F59B24;
}
/*============================================================
PRICING STYLES
==========================================================*/
.db-padding-btm {
    padding-bottom: 0px;
}
.db-button-color-square {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.50);
    border: none;
    border-radius: 0px;
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
}

.db-button-color-square:hover {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.50);
    border: none;
}


.db-pricing-eleven {
    transition-duration: 0.7s;
    margin-bottom: 20px;
    margin-top: 30px;
    text-align: center;
    box-shadow: 0 0 5px rgba(0, 0, 0, .5);
    color: #fff;
    line-height: 10px;
}

.db-pricing-eleven ul {
    list-style: none;
    margin: 0;
    text-align: center;
    padding-left: 0px;
}

.db-pricing-eleven ul li {
    padding-top: 20px;
    padding-bottom: 20px;
    cursor: pointer;
}

.db-pricing-eleven ul li i {
    margin-right: 5px;
}


.db-pricing-eleven .price {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 40px 20px 20px 20px;
    font-size: 60px;
    font-weight: 900;
    color: #FFFFFF;
}

.db-pricing-eleven .price small {
    color: #B8B8B8;
    display: block;
    font-size: 12px;
    margin-top: 22px;
}

.db-pricing-eleven .type {
    background-color: #52E89E;
    padding: 30px 10px;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 30px;
}
.db-pricing-eleven .type.small {

    font-size: 15px;
}

.db-pricing-eleven .pricing-footer {
    padding: 20px;
}

.db-attached > .col-lg-4,
.db-attached > .col-lg-3,
.db-attached > .col-md-4,
.db-attached > .col-md-3,
.db-attached > .col-sm-4,
.db-attached > .col-sm-3 {
    padding-left: 0;
    padding-right: 0;
}

.db-pricing-eleven.popular {
    transition-duration: 0.5s;
    margin-top: 10px;
}

.price.pop {
    transition-duration: 0.5s;
    padding-top: 80px;

}

/*TRANSITION*/

.trans{
    transition: 1s linear all;
}

.c4{
    border: 2px green;
}

/*shitty*/

.glyphicon { margin-right:5px; }
.thumbnail
{
    margin-bottom: 20px;
    padding: 0px;
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    border-radius: 0px;
}

.item.list-group-item
{
    float: none;
    width: 100%;
    background-color: #fff;
    margin-bottom: 10px;
}
.item.list-group-item:nth-of-type(odd):hover,.item.list-group-item:hover
{
    background: #428bca;
}

.item.list-group-item .list-group-image
{
    margin-right: 10px;
}
.item.list-group-item .thumbnail
{
    margin-bottom: 0px;
}
.item.list-group-item .caption
{
    padding: 9px 9px 0px 9px;
}
.item.list-group-item:nth-of-type(odd)
{
    background: #eeeeee;
}

.item.list-group-item:before, .item.list-group-item:after
{
    display: table;
    content: " ";
}

.item.list-group-item img
{
    float: left;
}
.item.list-group-item:after
{
    clear: both;
}
.list-group-item-text
{
    margin: 0 0 11px;
}
.marger{
    width: 1000px;
    margin:0 auto 0 auto;
    padding:0;
}
.titlephone{
    text-align:center;
}
.pricecenter{
    margin-bottom:20px;
    text-align:center;
}
            
          
!
            
              var app = angular.module("AboApp", []);

app.controller("AboCtrl", function($scope) {
  $scope.abo = [
    {
      "id": 1,
      "nom": "BAS PRIX",
      "tarif": "2.49",
      "communication": "2h de communication",
      "vers": "vers fixes et mobiles",
      "zone": "zone nationale"
    },
    {
      "id": 2,
      "nom": "NATIONAL",
      "tarif": "9.99",
      "communication": "t\u00e9l\u00e9phonie et SMS illimit\u00e9s",
      "vers": "vers fixes et mobiles",
      "zone": "zone nationale"
    },
    {
      "id": 3,
      "nom": "EURO",
      "tarif": "19.99",
      "communication": "t\u00e9l\u00e9phonie et SMS illimit\u00e9s",
      "vers": "vers fixes et mobiles",
      "zone": "zone EURO"
    }
  ];

  $scope.selected = { id: 0 };
  $scope.setId = function(id) {
    if($scope.selected.id === id) {
      $scope.selected.id = 0; 
    } else {
      $scope.selected.id = id;
    }
  }
});

app.controller("OptionsCtrl", function($scope, $http) {
    $http.get('http://local.tel4g/options.json').
        success(function(data) {
            $scope.options = data['data'];
        });
    $scope.areaStatus = false;
});

app.controller("PhonesCtrl", function($scope, $http) {
    $http.get('http://local.tel4g/phones.json').
        success(function(data) {
            $scope.phones = data['data'];
        });
    $scope.areaStatus = false;
});



            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console