daily pastebin goal
54%
SHARE
TWEET

Untitled

a guest Jan 13th, 2018 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var instrArr = buildInstructionArray();
  2.  
  3. var instructionHtml = (function() {
  4.     var arr =[];
  5.     for(var i=0,j=instrArr.length;i<j;i++) {
  6.         arr.push('<p>'+instrArr[i]+'</p>');
  7.     }
  8.  
  9.     return arr.toString();
  10. })();
  11. alert(instructionHtml);
  12.  
  13. var htmlCode = '<html><head></head><body>'+instructionHtml+'</body></html>';
  14.  
  15. var webview= Ti.UI.createWebView({
  16.     html:htmlCode
  17. });
  18.  
  19.  
  20. currWindow.add(webview);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top