Les nouveautés et Tutoriels de Votre Codeur | SEO | Création de site web | Création de logiciel

seo Gmail for Mobile HTML5 Series: CSS Transforms and Floaty Bars 2013

Seo Master present to you: On April 7th, Google launched a new version of Gmail for mobile for iPhone and Android-powered devices. We shared the behind-the-scenes story through this blog and decided to share more of what we've learned in a brief series of follow-up blog posts. This week, I'll talk about different ways to animate the floaty bar.

Even from the earliest brainstorming days for our new version of Gmail for iPhone and Android-powered devices, we knew we wanted to try something novel with menu actions: a context-sensitive, always-accessible UI element that follows conveniently as a user scrolls. Thus, the "floaty bar" was born! It took us a surprisingly long time, experimenting with different techniques and interactions, to converge on the design you see today. Let's look under the covers to see how the animation is achieved. You may be surprised to find that the logic is actually quite simple!


Screenshots of the floaty bar in action

In CSS:
.CSS_FLOATY_BAR {
...
top: -50px; /* start off the screen, so it slides in nicely */
-webkit-transition: top 0.2s ease-out;
...
}
In JavaScript:
// Constructor for the floaty bar
gmail.FloatyBar = function() {
this.menuDiv = document.createElement('div');
this.menuDiv.className = CSS_FLOATY_BAR;
...
};

// Called when it's time for the floaty bar to move
gmail.FloatyBar.prototype.setTop = function() {
this.menuDiv.style.top = window.scrollY + 'px';
};

// Called when the floaty bar menu is dismissed
gmail.FloatyBar.prototype.hideOffScreen = function() {
this.menuDiv.style.top = '-50px';
};

gmail.floatyBar = new gmail.FloatyBar();

// Listen for scroll events on the top level window
window.onscroll = function() {
...
gmail.floatyBar.setTop();
...
};
The essence here is that when the viewport scrolls, the floaty bar 'top' is set to the new viewport offset. The -webkit-transition rule specifies the animation parameters. (The 'top' property is to be animated, over 0.2s, using the ease-out timing function.) This is the animation behavior we had at launch, and it works just fine on Android and mobile Safari browsers.

However, there's actually a better way to achieve the same effect, and the improvement is particularly evident on mobile Safari. The trick is to use "CSS transforms". CSS transforms is a mechanism for applying different types of affine transformations to page elements, specified via CSS. We're going to use a simple one which is translateY. Here's the same logic, updated to use CSS transforms.

In CSS:
.CSS_FLOATY_BAR {
...
top: -50px; /* start off the screen, so it slides in nicely */
-webkit-transition: -webkit-transform 0.2s ease-out;
...
}
In JavaScript:
// Called when it's time for the floaty bar to move
gmail.FloatyBar.prototype.setTop = function() {
var translate = window.scrollY - (-50);
this.menuDiv.style['-webkit-transform'] = 'translateY(' + translate + 'px)';
};

// Called when the floaty bar menu is dismissed
gmail.FloatyBar.prototype.hideOffScreen = function() {
this.menuDiv.style['-webkit-transform'] = 'translateY(0px)';
};
Upon every scroll event, the floaty bar is translated vertically to the new viewport offset (modulo the offscreen offset which is important to the floaty bar's initial appearance). And, why exactly is this such an improvement? Even though the logic is equivalent, iPhone OS's implementation of CSS transforms is "performance enhanced", whilst our first iteration (animating the 'top' property) is performed by the OS in software. That's why the experience was unfortunately somewhat chunky at times, depending on the speed of the iPhone hardware.

You'll see smoother looking floaty bars coming very soon to an iPhone near you. This is just the first in a series of improvements we're planning for the mobile Gmail floaty bar. Watch for them in our iterative webapp, rolling out over the next couple of weeks and months!



Previous posts from Gmail for Mobile HTML5 Series:
HTML5 and Webkit pave the way for mobile web applications
Using AppCache to launch offline - Part 1
Using AppCache to launch offline - Part 2
Using AppCache to launch offline - Part 3
A Common API for Web Storage
Suggestions for better performance
Cache pattern for offline HTML5 web application
Using timers effectively
Autogrowing Textareas
Reducing Startup Latency
2013, By: Seo Master

seo Fridaygram: EU Hackathon, electron Pong, sounds from space 2013

Seo Master present to you:
By Scott Knaster, Google Code Blog Editor

Hackathons are a blast. There are few experiences better than writing code all night with dozens or hundreds of others, consuming free food, and converting that sweet sleep deprivation into creativity as you hack. As hackathons go, this one is spectacular: Hack4Transparency takes place in Brussels at the European Parliament. The goal of this event is to make data more accessible and intelligible to consumers and to government.


You expect food and WiFi at a hackathon. But this is really cool: if you’re selected to attend, the hackathon pays your travel and accommodation expenses, and a couple of the best hacks will win a prize of €3.000. If that got your attention, read the full story on our Open Source Blog, and then apply to attend.

When I was a wee hacker, I would sometimes break up my coding sessions with a primitive videogame called Pong. Physicists at Cambridge University are still playing this game, sort of, except now they’re knocking a single electron back and forth. As if that Pong ball wasn’t small and easy to miss enough already.

Finally, if you have some time this weekend and you’re not coding or playing video games, you can check out this excellent collection of sounds from spaceflights posted by NASA. You can even make them into ringtones, so if you want to hear a 50-year-old Sputnik beep when your friends call, go for it.

2013, By: Seo Master

seo Announcing the Google Sidewiki API 2013

Seo Master present to you: Alongside the exciting release of Google Sidewiki today, we're also happy to announce the availability of the first version of the Google Sidewiki Data API. Google Sidewiki is a new feature of Google Toolbar (for Firefox and Internet Explorer) that lets everyone contribute helpful information next to any webpage. Our post over on the Google Blog goes into more detail and also has a video that shows Sidewiki in action. To start using it yourself, go to google.com/sidewiki and install Google Toolbar with Sidewiki.

On the developer side, we're releasing a Google Sidewiki Data API today that lets you work freely with the content that's created in Google Sidewiki. You can use it to retrieve all entries written about a particular webpage as well as all entries written by a given Sidewiki author.

So after you've played with Sidewiki in the browser, give it a whirl in your console too -- we have client libraries, documentation and code samples ready to go for you. We'll be excited to see what gadgets, projects and extensions you'll think of. A translation gadget that displays and translates Sidewiki entries on the fly? A Google App Engine-powered browser of all Sidewiki entries? Your own browser extension or Greasemonkey script?

The Google Sidewiki API is available in Google Code Labs and is read-only at the moment. We've set up a developer-oriented discussion group and issue tracker where you can discuss your experiences with the API and where we'd love to hear about your feedback and projects. Keep us posted!

2013, By: Seo Master

seo Paid Search Steps 2013

Seo Master present to you:

Introduction to PPC

This module concentrates on techniques to optimize your profit from search PPC and contextual-based inventory. By the end, you will be able to:
  • Prioritize within and across media types to ensure maximum return for your campaigns.
  • Identify particular areas of interest and techniques.
  • Compare and contrast paid search algorithms from Google Adwords and Microsoft adCenter.
  • Review the type of metrics that will help you manage and optimize your campaign.
  • Optimize your quality score through a knowledge of the factors that go into Google's Quality Score and Ad Rank.
  • Appreciate the usefulness of campaign enhancements.
  • Increase ROI with keyword targeted media.
  • Identify the best strategies for optimizing retargeting opportunities available in addition to standard PPC via Google AdWords and Microsoft Advertising adCenter.

PPC Basics

Every day millions of people tell Google and other search engines exactly what they want. In this foundation module, we review the methodologies search engine advertisers can use to take full advantage of this behavior. By the end of this module, you will be able to:
  • Develop an effective and optimized PPC strategy.
  • Undertake competitor research to learn from competitors' success and avoid their mistakes utilizing either free or paid tools.
  • Build your own keyword list to optimize the success of your campaign goals and objectives.
  • Write effective advertising copy.

PPC Optimization

By the end of this module, you will understand:
  • How to maximize the effectiveness of PPC search and contextual campaigns using a variety of means, including data analysis and improving upon current campaigns.
  • The PPC providers available to deliver contextual traffic, including Google and Microsoft adCenter, and the best ways to set budget caps.
  • How to run reports to analyze your keywords and phrases, and how to add negatives to those that aren't relevant and exact matches to those that are performing well.
  • How to optimize content networks and your quality score for ad rank using Google, and how you can check your ad's status and quality score using the Bid Simulator.
  • How to use strategic bidding based on time of day and day of the week using API-based tools or Google's GUI (graphical user interface) tool.
  • The value that each click or impression adds to your top line, or bottom line, and how to figure out what will deliver the biggest campaign improvement.

AdWords Editor

By the end of this module, you will know:
  • How the AdWords Editor interface works and how to adjust the settings and functions to customize the views of your campaigns.
  • The usefulness of the AdWords Editor features and functions, including:.
    • Offline capacity
    • Advanced search functionality
    • Negative keyword management
    • Geo-cloning
  • The benefits of geo-targeting from conversion rate differences to higher spenders and life-time value (LTV).
  • How to copy/clone portions of a campaign.
  • How to back up your campaign using the AdWords Editor snapshots.

Implementing Your PPC Strategy

By the end of this module, you will recognize:
  • What you can do to structure your campaign and how to be successful by using the optional campaign settings, including the daily budget and geo-targeting.
  • The different Google Match types and the right mix to use within your campaign.
  • How to find the negative match keywords as you gain more coverage for your campaign.
  • The opportunities available in the AdWords extensions in the search engine results page, such as PPC Sitelinks, Products Ads, and Plus box ads.
  • That session-based ads are hard to control in Google if you are running a broad match search and how you might go about identifying these, and how big a problem or opportunity this is for you.

Content Networks

By the end of this module, you will appreciate:
  • When contextual based advertising is appropriate for your campaign.
  • How to set up Google Display Network.
  • Differences between searchers and surfers.
  • How to structure a contextual campaign and how to find placements.
  • How to use the Google Ad Planner.
  • Negative placements and placement exclusions.
  • Retargeting and how to use cookies.
  • How to use display ads and video.
  • Optimization within the display network, including dayparting, geo-targeting, frequency capping, and how to use the other networks.

Landing Page Design

By the end of this module, you will understand:
  • Why your landing page strategy should start at the search engine results page, and how to optimize your campaign for a good quality score.
  • Why a fast load time matters and how to check yours.
  • How emotional triggers can help you market your business.
  • That the best strategy for landing page leverage is one where you test, optimize, and improve, starting from the highest opportunity areas such as finding the high keyword search impression volume using your search engine's toolset.
  • What changes you should make once you have identified your landing page, and how to test any changes against the existing content.
  • How unconventional landing pages can be useful for your ads, such as a distribution partner page and Google place pages.
  • The list of tactical changes you can make to your landing page design, from trust marks on relevant pages, to proactive call-to-action copy and shorter or multi-step forms.

Beyond the SERP

By the end of this course, you will know:
  • That with search and pay-per-click marketing, there are text and display advertising opportunities beyond the search engine results page (SERP). Search retargeting, Facebook, LinkedIn, and behavioral networks are covered in detail.
  • About time-shifted search through retargeting your customers and site visitors (via cookies or through a third-party provider), and the factors you should consider to make retargeting successful for your business.
  • How the Facebook self-serve advertising platform works and how to use the Ad Targeting tools to reach a specific audience using the site's user information.
  • How LinkedIn's ad platform works and how it is profile driven rather than keyword based. This works well with one of LinkedIn's key objectives as a job hunting tool, since active users tend to keep their profiles very up to date, which will be beneficial when targeting your ads.
  • That each click or impression adds to your top or bottom line, and how to prioritize across all your media types
Details: http://www.clickzacademy.com/elearning/paid-search-strategies.php
2013, By: Seo Master

seo Our first ever G-days in Egypt and Jordan 2013

Seo Master present to you:

Google is dedicated to making the Internet relevant and useful to Arabic speakers, and to developing meaningful and local products for the Middle East. We fully realise that we cannot foster this growing Internet ecosystem alone, and we therefore believe that tech entrepreneurs and developers have the opportunity to transform the Web for the world and for the Middle East.

So for the first time ever in Egypt and Jordan, Google is very excited to host its G-days, in Cairo between December 8th and 10th for G-Egypt, and Amman between December 12th and 14th for G-Jordan.

Each day of the 3-day conference will cater to a different audience, spanning computer science students and professors, professional developers, webmasters, entrepreneurs, small businesses and tech marketers. Take a look at our sites (G-Egypt and G-Jordan) to learn more about the G-day that might fit your appetite. You must pre-register on the websites as space is limited - you will then be fully registered as soon as we send you a confirmation.

Some of Google’s best and most engaging engineers, product managers, business managers and leadership will be speaking about Google’s open web and mobile technologies. Attendees will have the chance to interact with Googlers and explore Google’s technologies through a combination of tech talks and breakout sessions. We’re getting ready to make these events fun, insightful and interesting so we hope to see you there !

On Twitter : #gegypt #gjordan @GoogleDevMENA

2013, By: Seo Master
Powered by Blogger.