android - How to enable zoom in meta tag? -
i working on node.js application aswell operate on mobiles . on handsets not zooming may reason?
my meta tags of page are
<meta name="handheldfriendly" content="true"/> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black">
this page on want add pinch zoom . , meta tags added of index.html parent page of application. cause can ?
<!doctype html> <html lang="en-us"> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" type="text/css" href="style.css"> <link rel="icon" href="favicon.ico"> <script src="samples.js"></script> <title>chart.js samples</title> </head> <body> <div class="content"> <div class="header"> <div class="chartjs-title">samples</div> <div class="chartjs-caption">simple yet flexible javascript charting designers & developers</div> <div class="chartjs-links"> <a class="btn btn-chartjs" href="http://www.chartjs.org">website</a> <a class="btn btn-docs" href="http://www.chartjs.org/docs">documentation</a> <a class="btn btn-gh" href="https://github.com/chartjs/chart.js">github</a> </div> </div> <div id="categories" class="samples-categories"></div> </div> <script> function createcategory(item) { var el = document.createelement('div'); el.classname = 'samples-category'; el.innerhtml = '<div class="title">' + item.title + '</div>' + '<div class="items"></div>'; return el; } function createentry(item) { var el = document.createelement('div'); el.classname = 'samples-entry'; el.innerhtml = '<a class="title" href="' + item.path + '">' + item.title + '</a>'; return el; } var categories = document.getelementbyid('categories'); samples.items.foreach(function(item) { var category = createcategory(item); var children = category.getelementsbyclassname('items')[0]; (item.items || []).foreach(function(item) { children.appendchild(createentry(item)); }); categories.appendchild(category); }); </script> </body> </html>
<meta name="viewport" content="width=device-width, initial-scale=1">
Comments
Post a Comment