AngularJS dynamically generated list with LED status
How do I make an angularjs dynamically generated list with led status?
Dynamically generated list of element with a led alike status with twitter-bootstrap, Font-awesome and AngularJS.... What is a angularjs dynamically generated list with led status? How do you make a angularjs dynamically generated list with led status? This script and codes were developed by Yahya Kacem on 13 August 2022, Saturday.
AngularJS dynamically generated list with LED status - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>AngularJS dynamically generated list with LED status</title> <link rel='stylesheet prefetch' href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css'>
<link rel='stylesheet prefetch' href='http://netdna.bootstrapcdn.com/font-awesome/3.0.2/css/font-awesome.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="container well" ng-app="MainApp" ng-controller="MainCtrl"
> <div class="item" ng-repeat="item in items"> <i class="icon-lightbulb {{item.status}}"></i> {{item.text}} <span id="sliderLabel"> <input type="checkbox"> <span id="slider"> <span id="sliderOn">ON</span> <span id="sliderOff">OFF</span> <span id="sliderBlock"></span> </span> </span> <span class="btn-group pull-right"> <button class="btn btn-mini btn-inverse"> <i class="icon-eye-open icon-large"></i> </button> <button class="btn btn-mini btn-danger"> <i class="icon-trash icon-large"></i> </button> </span> </div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/js/bootstrap.min.js'></script>
<script src='http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.14/angular.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
AngularJS dynamically generated list with LED status - Script Codes CSS Codes
div.well{ margin-top: 25px;
}
div.item{ width: 500px; margin: 10px auto; background: #ffffff; border-radius: 5px; padding: 7px;
}
.icon-lightbulb.not-active{ color: red; text-shadow: 1px 1px 5px #ff0000;
}
.icon-lightbulb.active{ color: green; text-shadow: 1px 1px 3px #00ff00;
}
p { margin: 10px;
}
#sliderLabel { border: 1px solid #a2a2a2; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; cursor: pointer; display: block; height: 30px; margin: 10px auto; overflow: hidden; position: relative; width: 100px;
}
#sliderLabel input { display: none;
}
#sliderLabel input:checked + #slider { left: 0px;
}
#slider { left: -50px; position: absolute;; top: 0px; -moz-transition: left .25s ease-out; -webkit-transition: left .25s ease-out; -o-transition: left .25s ease-out; transition: left .25s ease-out;
}
#sliderOn, #sliderBlock, #sliderOff { display: block; font-family: arial, verdana, sans-serif; font-weight: bold; height: 30px; line-height: 30px; position: absolute; text-align: center; top: 0px;
}
#sliderOn { background: #3269aa; background: -moz-linear-gradient(top, #3269aa 0%, #82b3f4 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#3269aa), color-stop(100%,#82b3f4)); background: -webkit-linear-gradient(top, #3269aa 0%,#82b3f4 100%); background: -o-linear-gradient(top, #3269aa 0%,#82b3f4 100%); background: -ms-linear-gradient(top, #3269aa 0%,#82b3f4 100%); background: linear-gradient(top, #3269aa 0%,#82b3f4 100%); color: white; left: 0px; width: 54px;
}
#sliderBlock { background: #d9d9d8; background: -moz-linear-gradient(top, #d9d9d8 0%, #fcfcfc 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#d9d9d8), color-stop(100%,#fcfcfc)); background: -webkit-linear-gradient(top, #d9d9d8 0%,#fcfcfc 100%); background: -o-linear-gradient(top, #d9d9d8 0%,#fcfcfc 100%); background: -ms-linear-gradient(top, #d9d9d8 0%,#fcfcfc 100%); background: linear-gradient(top, #d9d9d8 0%,#fcfcfc 100%); border: 1px solid #a2a2a2; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radisu: 3px; height: 28px; left: 50px; width: 50px;
}
#sliderOff { background: #f2f3f2; background: -moz-linear-gradient(top, #8b8c8b 0%, #f2f3f2 50%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#8b8c8b), color-stop(50%,#f2f3f2)); background: -webkit-linear-gradient(top, #8b8c8b 0%,#f2f3f2 50%); background: -o-linear-gradient(top, #8b8c8b 0%,#f2f3f2 50%); background: -ms-linear-gradient(top, #8b8c8b 0%,#f2f3f2 50%); background: linear-gradient(top, #8b8c8b 0%,#f2f3f2 50%); color: #8b8b8b; left: 96px; width: 54px;
}
AngularJS dynamically generated list with LED status - Script Codes JS Codes
'use strict';
var app = angular.module('MainApp', []);
app.controller('MainCtrl', ['$scope', function($scope){ $scope.items = [ {"text": "Yahya Kacem", "status": "active"}, {"text": "tyoli Fuj", "status": "not-active"}, {"text": "tyolifuj", "status": "active"}, {"text": "Fuj tyoli", "status": "not-active"} ];
}]);
Developer | Yahya Kacem |
Username | yahyaKacem |
Uploaded | August 13, 2022 |
Rating | 3 |
Size | 2,841 Kb |
Views | 48,576 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Ng2 | 1,143 Kb |
Menu hover text shadow | 1,927 Kb |
Draggable directive | 2,277 Kb |
A Pen by Yahya Kacem | 2,856 Kb |
Resizable element directive design | 2,323 Kb |
Generic component directive | 1,975 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Basic HTML Slideshow | Tomhodgins | 3,386 Kb |
Using Flickr API | MoyArt | 6,761 Kb |
Beautiful canvas stars | Matths | 2,399 Kb |
Tree growth tests | Orchard | 3,818 Kb |
Single element checkbox | Ivijaygupta | 1,996 Kb |
Electric worm | Jeffibacache | 2,377 Kb |
Wikipedia Viewer | Odylic | 2,333 Kb |
Sexy Social Buttons | Ipiyale | 2,226 Kb |
Project Euler Problem 17 | Bfillmer | 2,739 Kb |
A Pen by Final Boss tommyb9 | FBtommyb9 | 55,354 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!