IOS 7 Segmented Control
How do I make an ios 7 segmented control?
This is an example of the iOS 7 segmented control using the ChocolateChip-UI framework. It works on Safari 6 to 7 or on iOS devices running version 6 to 7.. What is a ios 7 segmented control? How do you make a ios 7 segmented control? This script and codes were developed by Robert Biggs on 24 August 2022, Wednesday.
IOS 7 Segmented Control - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>iOS 7 Segmented Control</title> <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<meta name="msapplication-tap-highlight" content="no"> <link rel='stylesheet prefetch' href='https://s3-us-west-2.amazonaws.com/s.cdpn.io/77047/chui.ios-3.0.4.min.css'>
</head>
<body> <nav> <h1>Segmented: Dynamic</h1>
</nav>
<article id="main" class="current"> <section> <div id='segmentedPanel' class='horizontal centered'></div> <div id="toggle-panels"> <div> <ul class='list'> <li class='comp'> <aside> <img title='Imagine Dragons' src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/77047/Imagine_Dragons.png" height="80px"> </aside> <div> <h3>Imagine Dragons</h3> <h4>Radioactive</h4> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p> </div> </li> </ul> </div> <div> <ul class='list'> <li class='comp'> <aside> <img title='Hurry and Harm' src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/77047/Hurry_and_Harm.png" height="80px"> </aside> <div> <h3>The Hurry and the Harm</h3> <h4>Hurt</h4> <p>Nam omnium facilis volumus at, eam noster reprehendunt mediocritatem at. Enim urbanitas reprimique quo no. Duo dico munere partem cu, tollit bonorum duo cu.</p> </div> </li> </ul> </div> <div> <ul class='list'> <li class='comp'> <aside> <img title='Willy Moon' src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/77047/Willy_Moon.png" height="80px"> </aside> <div> <h3>Willy Moon</h3> <h4>Yeah Yeah</h4> <p>At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint.</p> </div> </li> </ul> </div> </div> <ul class='list' id='output'> <li> <h3>You selected panel: <span></span>.</h3> </li> </ul> </section>
</article> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='https://s3-us-west-2.amazonaws.com/s.cdpn.io/77047/chui-3.0.4.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
IOS 7 Segmented Control - Script Codes JS Codes
$(function() { var segmentedOptions = { id: 'mySegmented', labels : ['Radioactive','Hurt','Yeah, Yeah'], selected: 2 }; var segmentedResponse = function(e) { e.stopPropagation(); $('#output').find('h3 > span').html(($(this).index() + 1)); }; var newSegmented = $.UICreateSegmented(segmentedOptions); $('#segmentedPanel').append(newSegmented); $('.segmented').UISegmented({callback:segmentedResponse}); $('.segmented').UIPanelToggle('#toggle-panels',function(){$.noop;}); var selectedPanel = $('.segmented').find('.selected').index(); $('#output').find('span').html(selectedPanel + 1);
});
Developer | Robert Biggs |
Username | rbiggs |
Uploaded | August 24, 2022 |
Rating | 3 |
Size | 2,577 Kb |
Views | 42,504 |
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 |
A Pen by Robert Biggs | 2,103 Kb |
TypeScript d.ts Test | 1,623 Kb |
IOS 7 Horizontal Paging | 2,133 Kb |
IOS 7 Transparent Sheet | 2,719 Kb |
Simple List | 1,675 Kb |
Navigation List | 2,703 Kb |
Tab Bar App | 7,112 Kb |
IOS 7 Deletable List | 2,180 Kb |
IOS 7 Selection List | 1,962 Kb |
Simple Navigation List | 2,261 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 |
Lightrays v2 | Sinthetyc | 2,903 Kb |
Simple DevTools | Deegill | 2,511 Kb |
Blank Starter | Mhartington | 2,171 Kb |
Material design - button rainbow circle | Kunukn | 3,652 Kb |
Materializecss input form | Jasonchan | 1,443 Kb |
Delete Hover | Chungman93 | 2,557 Kb |
Cartoon Bomb | Tcmulder | 4,929 Kb |
Twitch JSON API | Jvhti | 2,808 Kb |
Guidepopup | Wooljs | 3,747 Kb |
Tab panels | Accessibility | 0 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!