Skip to content

fillefrans/ads.utilities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#ads.utilities Templates and support functions for Mobile ads/landing pages

#Documentation

##Mission

To create a HTML5/CSS3/JS template/scaffolding that can serve as a starting point for Ads and Landing Pages. Incorporate mobile optimized client-side services accessible to creatives.

Collect examples and demos in a git repository. Use shared assets where possible.


##Requirements

  • Responsive design
  • Feature detection
  • Optimized for Mobile
  • Optimized server/cache setup
  • Cross-browser
  • Cross-device support (See Target Platforms, below)
  • If possible, generic access to a subset of native resources from JavaScript, such as accelerometer, camera, geolocation
  • Make allowances for future additions, i.e.
  • Easy to copy a template and start adapting it

##Target Platforms

  • iOs >= 5.1
  • Android >= 4.0 (WebKit browsers)
  • WebKit + Firefox
  • IE 10 (?) on Windows Phone 8
    Følgende enheter må være støttet fullt ut:
    Android v4.0 og nyere, i webkit-baserte browsers
    iOS v5.1 og nyere, i webkit-baserte browsers
    Info: Dette inkluderer ca. 75 % av våre brukere (jan. 2013).
    Øvrige operativsystemer og browsers vil motta
    fallback-annonse.

    Annonsevekter:
    Max kb. Mobil 125
    Max kb. Tablet 150

###Not supported

  • Opera Mini

##Technologies

###Frameworks

####Client Libraries

###Server libraries

Plugins

##Implementation

A global JavaScript object VgAds will have basic, cross-browser event handling implementing a pubsub interface for adding event listeners.

We want to be able to extend this object for special functionality and custom handlers, without compromising any other components that are using the global object.

###For speed and memory optimization, keep in mind:

  • Files larger than 32KB are not cached on older iPhones
  • Avoid DOM manipulation as far as possible
  • avoid jQuery's built-in PubSub for high-frequency events, as it relies on the DOM for callbacks (and see also this)

##Resources

###HTML5 Game Engines, &c

###Reading

###Tools

###Reports & best practices

###Testing & debugging

###Docs

###Examples

###Videos

###HTML5 Demos

###Tricks & fixes

###Snippets ####Detect mobile user agent with JS regex: var isMobile = /ip(hone|od|ad)|android|blackberry.*applewebkit|bb1\d.*mobile/i.test(navigator.userAgent);

####Speed up DOM manipulation with DocumentFragment: var div = document.getElementsByTagName("div");

var fragment = document.createDocumentFragment();
for ( var e = 0; e < elems.length; e++ ) {
    fragment.appendChild( elems[e] );
}

for ( var i = 0; i < div.length; i++ ) {
    div[i].appendChild( fragment.cloneNode(true) );
}

###Browser/device feature support

About

Templates for mobile ads, mobile landing pages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published