Instant Galleria How-to - Nathan Van Gheem - E-Book

Instant Galleria How-to E-Book

Nathan Van Gheem

0,0
16,79 €

-100%
Sammeln Sie Punkte in unserem Gutscheinprogramm und kaufen Sie E-Books und Hörbücher mit bis zu 100% Rabatt.

Mehr erfahren.
Beschreibung

Providing beautiful and usable galleries is an important aspect of the Web today. A gallery solution needs to integrate into your web application easily and seamlessly. Users expect mobile sites that function on par with their desktop counterparts—especially for image galleries. In order to accomplish these tasks, you need to use a JavaScript (not Flash) that is extensible and scales to mobile devices.

"Instant Galleria How-to" will teach you how to use Galleria in advanced scenarios to become an expert and integrate Galleria into your next project using themes and plugins to accomplish any task.

This book teaches you how to use and create themes and plugins,  using the Galleria API through a series of recipes that include a plethora of code examples. You'll be taken through detailed instructions on the usage of JavaScript to customize Galleria.

You will create your own theme (mobile friendly), plugin, and learn all the configuration options of Galleria. You'll learn how to customize Galleria by using its extensive API, optimize Galleria, integrate with Google Analytics, create tests for your customization, and integrate into your web application.

You'll become an expert user of the Galleria framework, which will enable you to deploy beautiful, mobile friendly galleries for your next web project.

Das E-Book können Sie in Legimi-Apps oder einer beliebigen App lesen, die das folgende Format unterstützen:

EPUB
MOBI

Seitenzahl: 63

Veröffentlichungsjahr: 2013

Bewertungen
0,0
0
0
0
0
0
Mehr Informationen
Mehr Informationen
Legimi prüft nicht, ob Rezensionen von Nutzern stammen, die den betreffenden Titel tatsächlich gekauft oder gelesen/gehört haben. Wir entfernen aber gefälschte Rezensionen.



Table of Contents

Instant Galleria How-to
Credits
About the Author
About the Reviewer
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Galleria How-to
Setting up the development environment (Simple)
Getting ready
How to do it...
Galleria components
If you don't have a text editor...
Extracting the source code
Your first gallery (Simple)
Getting ready
How to do it...
How it works...
Defining a height
Data attributes
Configuring Galleria (Simple)
Getting ready
How to do it...
How it works...
There's more...
Useful configuration options
Complete listing of options
Installing themes (Simple)
Getting ready
How to do it...
How it works...
There's more...
Downloading Galleria themes
Creating your own theme (Medium)
Getting ready
How to do it...
How it works...
For the sake of brevity
Creating mobile friendly themes (Simple)
Getting ready
How to do it...
How it works...
Media queries
Testing for mobile
Integrating with existing sites
Installing plugins (Simple)
Getting ready
How to do it...
How it works...
There's more...
Using the Flickr plugin (Medium)
Getting ready
How to do it...
How it works...
There's more...
Flickr plugin API
Using the Flickr REST API
Creating a plugin (Advanced)
Getting ready
How to do it...
How it works...
What else can we do?
Using the API (Medium)
Getting ready
How to do it...
There's more...
Complete API reference
Another way to bind events
Alternative image data structures (Simple)
Getting ready
Specifying extra parameters via IMG tag
Alternative media
Using JSON
HTML structure parsing customization
How it works...
Optimizing Galleria (Simple)
Getting ready
Image sizes
Providing thumbnails
Optimizing resources
Galleria size
Web server
Resource minification
Adding images dynamically (Medium)
Getting ready
How to do it...
How it works...
Following up with server-side techniques
Triggering Galleria (Advanced)
Getting ready
How to do it...
How it works...
Recording image views with Google Analytics (Medium)
Getting ready
How to do it...
How it works...
There's more...
Handling errors gracefully (Medium)
Getting ready
How to do it...
How it works...
Creating tests for customizations (Advanced)
Getting ready
How to do it...
How it works...
Read more about the selenium testing framework
Web application integration (Advanced)
Getting ready
How to do it...
How it works...
Automatic thumbnail generation
Existing application Galleria integrations

Instant Galleria How-to

Instant Galleria How-to

Copyright © 2013 Packt Publishing

All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.

Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.

Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.

First published: February 2013

Production Reference: 1080213

Published by Packt Publishing Ltd.

Livery Place

35 Livery Street

Birmingham B3 2PB, UK.

ISBN 978-1-84969-660-9

www.packtpub.com

Credits

Author

Nathan Van Gheem

Reviewer

Victor Berchet

Acquisition Editor

Usha Iyer

Commissioning Editor

Ameya Sawant

Technical Editor

Kirti Pujari

Project Coordinator

Esha Thakker

Proofreader

Lawrence A. Herman

Production Coordinator

Conidon Miranda

Cover Work

Conidon Miranda

Cover Image

Conidon Miranda

About the Author

Nathan Van Gheem primarily works on Python web solutions. He also has extensive experience with JavaScript and integrating JavaScript solutions in web applications. He is involved with the Plone Python CMS open source community where he is the UI team leader and is on the Security team.

I would like to thank my family for the sacrifice of time they put up with, Wildcard Corp for giving me an opportunity to work on interesting projects, and Kim Nguyen for encouraging and enabling me to challenge myself with open source software.

About the Reviewer

Victor Berchet was introduced to web development in 2007 by playing with Google Maps, JavaScript API, and PHP, after having spent 10 years in the domain of embedded software development. He became a freelance Web Engineer in 2010 by founding Suumit, his own company. Most of the projects Victor works on involve either JavaScript mapping or the Symfony2 PHP framework. He is pretty much engaged in open source software and is one of the top contributors of Symfony2.

www.PacktPub.com

Support files, eBooks, discount offers and more

You might want to visit www.PacktPub.com for support files and downloads related to your book.

Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at <[email protected]> for more details.

At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.

http://PacktLib.PacktPub.com

Do you need instant solutions to your IT questions? PacktLib is Packt’s online digital book library. Here, you can access, read and search across Packt’s entire library of books. 

Why Subscribe?

Fully searchable across every book published by PacktCopy and paste, print and bookmark contentOn demand and accessible via web browser

Free Access for Packt account holders

If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view nine entirely free books. Simply use your login credentials for immediate access.

Preface

Galleria is a JavaScript framework for building beautiful image galleries for the web. It comes packed with responsive web design support and swipe for mobile devices. With its flexible theming system, you'll be able to customize it to your needs or you can use one of the many available themes. It is open sourced under the MIT license and comes packed with a free classic theme. Galleria has a large user base with many web application add-ons already provided on various platforms. It's an obvious choice for creating beautifully customized galleries on your website.

If you want to integrate Galleria to create your own beautiful image galleries for the web, Galleria How-to is the book you need.

Using concise recipes, Galleria How-to will take you from creating and configuring your first gallery to creating themes and plugins, using the Galleria API and integrating with web applications.

What this book covers

Setting up the development environment (Simple) details how to set up a development environment to start developing with Galleria.

Your first gallery (Simple) introduces creating a simple gallery.

Configuring Galleria (Simple) details how to configure Galleria with JavaScript and HTML attributes.

Installing themes (Simple) discusses how to install and use different themes.

Creating your own theme (Medium) details the process of creating custom themes with JavaScript and CSS.

Creating mobile friendly themes (Simple) introduces how to create mobile friendly themes using responsive web design.

Installing plugins (Simple) details how to install and use plugins.

Using the Flickr plugin (Medium)