A Pen by Robert Biggs

Developer
Size
2,103 Kb
Views
30,360

How do I make an a pen by robert biggs?

What is a a pen by robert biggs? How do you make a a pen by robert biggs? This script and codes were developed by Robert Biggs on 24 August 2022, Wednesday.

A Pen by Robert Biggs Previews

A Pen by Robert Biggs - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>A Pen by Robert Biggs</title> <link rel='stylesheet prefetch' href='https://s3-us-west-2.amazonaws.com/s.cdpn.io/77047/chui-ios.min.css'>
</head>
<body> <screen id="main" class="current"> <nav> <h1>Components</h1> </nav> <section> <h2>Component 1</h2> <!-- Container for first component --> <ul class="list" id="arrayTemplate1"></ul> <h2>Component 2</h2> <!-- Container for second component --> <ul class="list" id="arrayTemplate2"></ul> </section>
</screen> <script src='https://s3-us-west-2.amazonaws.com/s.cdpn.io/77047/chui.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

A Pen by Robert Biggs - Script Codes JS Codes

// Array data:
//=============
var lums = [ {firstName: "Stephen", lastName: "Hawking"}, {firstName: "Albert", lastName: "Einstein"}, {firstName: "Leonardo", lastName: "Da Vinci"}, {firstName: "Galileo", lastName: "Galilei"}, {firstName: "Nicholas", lastName: "Copernicus"}
];
var bums = [ {firstName: 'Joe', lastName: 'Bodoni'}, {firstName: 'Wobba', lastName: 'Bango'}, {firstName: 'Jeff', lastName: 'Ruther'}, {firstName: 'Pete', lastName: 'Smith'}
];
/** * Define component "people": */
$.Component({ name: 'PeopleComponent', variable: 'person', element: ' ', /** * Give it a start number: */ startIndexFrom: 7, template: "<li class='comp'>\ <div>\ <h3>\ {= $.view.index }: {= person.firstName } {= person.lastName }\ </h3>\ </div>\ </li>", events: [ { event: 'tap', element: 'li', callback: function() { console.log($(this).text()) } } ]
});
/** * Array data: */
var lums = [ {firstName: "Stephen", lastName: "Hawking"}, {firstName: "Albert", lastName: "Einstein"}, {firstName: "Leonardo", lastName: "Da Vinci"}, {firstName: "Galileo", lastName: "Galilei",}, {firstName: "Nicholas", lastName: "Copernicus"}
];
var bums = [ {firstName: 'Joe', lastName: 'Bodoni'}, {firstName: 'Wobba', lastName: 'Bango'}, {firstName: 'Jeff', lastName: 'Ruther'}, {firstName: 'Pete', lastName: 'Smith'}
];
// Define a component instance:
var LumsView = $.PeopleComponent();
// Attach to first component container:
LumsView.setElement('#arrayTemplate1');
LumsView.render(lums);
// Define another component container:
var BumsView = $.PeopleComponent();
// Attach to second component target:
BumsView.setElement('#arrayTemplate2');
BumsView.render(bums);
A Pen by Robert Biggs - Script Codes
A Pen by Robert Biggs - Script Codes
Home Page Home
Developer Robert Biggs
Username rbiggs
Uploaded August 24, 2022
Rating 3
Size 2,103 Kb
Views 30,360
Do you need developer help for A Pen by Robert Biggs?

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!

Robert Biggs (rbiggs) Script Codes
Create amazing marketing copy with AI!

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!