A Pen by Yahya Kacem
How do I make an a pen by yahya kacem?
What is a a pen by yahya kacem? How do you make a a pen by yahya kacem? This script and codes were developed by Yahya Kacem on 14 August 2022, Sunday.
A Pen by Yahya Kacem - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>A Pen by Yahya Kacem</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div ng-app="app" class="main-content" ng-controller="MainCtrl as app"
> <header class="header"> <button class="button" ng-click="app.showAll()" > Show all </button> <button class="button" ng-click="app.hideOdds()" > Hide odds </button> </header> <div class="elements-container"> <p ng-if="thing.isVisible" ng-class="{ even: thing.even, odd: thing.odd }" ng-repeat="thing in app.stuff" > {{thing.content}} </p> </div>
</div> <script src='https://code.angularjs.org/1.3.0-beta.6/angular.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
A Pen by Yahya Kacem - Script Codes CSS Codes
.main-content .header .button { display: inline-block; margin-bottom: 0; font-weight: normal; text-align: center; vertical-align: middle; cursor: pointer; background-image: none; border: 1px solid transparent; white-space: nowrap; padding: 6px 12px; font-size: 14px; line-height: 1.42857; border-radius: 4px; -moz-user-select: -moz-none; -ms-user-select: none; -webkit-user-select: none; user-select: none;
}
.main-content .header .button:focus { outline: thin dotted #333333; outline-offset: -2px; outline: 5px auto -webkit-focus-ring-color;
}
.main-content .header .button:hover, .main-content .header .button:focus { color: #333333; text-decoration: none;
}
.main-content .header .button:active, .main-content .header .active.button { outline: 0; background-image: none; -moz-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}
.main-content .header .disabled.button, .main-content .header [disabled].button, fieldset[disabled] .main-content .header .button, .main-content .header fieldset[disabled] .button { cursor: not-allowed; pointer-events: none; filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=65); opacity: 0.65; -moz-box-shadow: none; -webkit-box-shadow: none; box-shadow: none;
}
.main-content .header .button { color: white; background-color: #f0ad4e; border-color: #eea236;
}
.main-content .header .button:hover, .main-content .header .button:focus, .main-content .header .button:active, .main-content .header .active.button { color: white; border-color: #d58512; background-color: #ed9c28;
}
.open .main-content .header .dropdown-toggle.button, .main-content .header .open .dropdown-toggle.button { color: white; border-color: #d58512; background-color: #ed9c28;
}
.main-content .header .button:active, .main-content .header .active.button { background-image: none;
}
.open .main-content .header .dropdown-toggle.button, .main-content .header .open .dropdown-toggle.button { background-image: none;
}
.main-content .header .disabled.button, .main-content .header .disabled.button:hover, .main-content .header .disabled.button:focus, .main-content .header .disabled.button:active, .main-content .header .disabled.active.button, .main-content .header [disabled].button, .main-content .header [disabled].button:hover, .main-content .header [disabled].button:focus, .main-content .header [disabled].button:active, .main-content .header [disabled].active.button, fieldset[disabled] .main-content .header .button, .main-content .header fieldset[disabled] .button, fieldset[disabled] .main-content .header .button:hover, .main-content .header fieldset[disabled] .button:hover, fieldset[disabled] .main-content .header .button:focus, .main-content .header fieldset[disabled] .button:focus, fieldset[disabled] .main-content .header .button:active, .main-content .header fieldset[disabled] .button:active, fieldset[disabled] .main-content .header .active.button, .main-content .header fieldset[disabled] .active.button { border-color: #eea236; background-color: #f0ad4e;
}
.main-content { position: absolute; top: 0; bottom: 0; left: 0; right: 0; background: cornflowerblue;
}
.main-content .header { height: 50px; padding: 10px; background: lightgray; position: absolute; top: 0; left: 0; right: 0;
}
.main-content .elements-container { background: whitesmoke; position: absolute; top: 50px; bottom: 0; left: 0; right: 0;
}
.main-content .elements-container .even { background: cornflowerblue;
}
.main-content .elements-container .odd { background: fuchsia;
}
A Pen by Yahya Kacem - Script Codes JS Codes
(function (angular) { var app = angular.module('app',[]), MainCtrl = function ($scope) { var len, thing, i = 100, app = this; app.stuff = []; app.showAll = function () { len = app.stuff.length - 1; for (; len >= 0; len -= 1) { app.stuff[len].isVisible = true; } }; app.hideOdds = function () { len = app.stuff.length - 1; for (; len >= 0; len -= 1) { if ((app.stuff[len].content % 2) !== 0) { app.stuff[len].isVisible = false; } } }; for (; i >= 0; i -= 1) { if((i % 2) === 0){ thing = { even: true, content: i, isVisible: true }; } else { thing = { odd: true, content: i, isVisible: false }; } app.stuff.push(thing); } }; app.controller("MainCtrl", MainCtrl);
}(this.angular));
Developer | Yahya Kacem |
Username | yahyaKacem |
Uploaded | August 14, 2022 |
Rating | 3 |
Size | 2,856 Kb |
Views | 22,264 |
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 |
Menu hover text shadow | 1,927 Kb |
Ng2 | 1,143 Kb |
AngularJS dynamically generated list with LED status | 2,841 Kb |
Generic component directive | 1,975 Kb |
Resizable element directive design | 2,323 Kb |
Draggable directive | 2,277 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 |
Pure CSS Read More Arrow | Zephyr | 1,747 Kb |
Simple Buttons | Haydenmills | 1,750 Kb |
Simple Responsive Text | Fbrz | 2,282 Kb |
Shopping cart | Andiio | 6,581 Kb |
Update CSS Variables with JS | Wesbos | 2,335 Kb |
Toolbar | Onsen | 5,414 Kb |
A Pen by Andrea Verlicchi | Verlok | 2,018 Kb |
Twitch API | Coderpilot | 3,412 Kb |
Website Concept | Sagoza | 3,104 Kb |
Elephants Full screen site | Orrinward | 3,981 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!