Move tokentextarea demo to external page.
[platform/framework/web/web-ui-fw.git] / demos / scaling-sample / log.js
1 $( window ).load( function () {
2         ( function writeLog() {
3                 var log = $("#log"),
4                         viewport = $('head').find('meta[name="viewport"]'),
5                         htmlFontSize = $('html').css('font-size');
6
7                 function item(text) {
8                         return $("<li></li>").text(text);
9                 }
10                 log.append( item( "viewport content: " + viewport.attr("content") ) );
11                 log.append( item( "html fontsize: " + htmlFontSize) );
12         } () );
13
14         ( function addLink() {
15                 var link = $("#link"),
16                         links = {
17                                 device_width: "index.device_width.html",
18                                 fixed_width:  "index.fixed_width.html",
19                                 screen_width: "index.screen_width.html"
20                         };
21                         for ( idx in links ) {
22                                 link.append('<li><a href="' + links[idx] + '" rel="external">' + idx + '</a>' );
23                         }
24                 link.listview('refresh');
25         } () );
26 } );
27