<commit_before>// this sets the background color of the master UIView (when there are no windows/tab groups on it)
Titanium.UI.setBackgroundColor('#000');

// create tab group
var tabGroup = Titanium.UI.createTabGroup();

//
// create base UI tab and root window
//
var win1 = Titanium.UI.createWindow({
   title:'簡易ブラウザ',
   backgroundColor:'#fff'
});
var tab1 = Titanium.UI.createTab({
    icon:'KS_nav_views.png',
    title:'Tab 1',
    window:win1
});
var webView = Titanium.UI.createWebView({
	url:'http://www.google.co.jp'
});
win1.add(webView);


//
//  add tabs
//
tabGroup.addTab(tab1);


// open tab group
tabGroup.open();<commit_msg>URL入力して画面表示できる機能実装<commit_after>// this sets the background color of the master UIView (when there are no windows/tab groups on it)
Titanium.UI.setBackgroundColor('#000');

// create tab group
var tabGroup = Titanium.UI.createTabGroup();

//
// create base UI tab and root window
//
var win1 = Titanium.UI.createWindow({
   title:'簡易ブラウザ',
   backgroundColor:'#fff'
});
var tab1 = Titanium.UI.createTab({
    icon:'KS_nav_views.png',
    title:'Tab 1',
    window:win1
});
/*
 URLを入力するテキストボックスを作成
 URL入力して内容確定した時にイベント発火させて
 wevbiewのURLプロパティに値を渡す
*/
var urlBox = Titanium.UI.createTextField({
  color:'#336699',
  top:10,
  left:10,
  width:200,
  height:40,
  hintText:'enter url',
  keyboardType:Titanium.UI.KEYBOARD_URL,
  returnKeyType:Titanium.UI.RETURNKEY_DEFAULT,
  autocapitalization: false,
  borderStyle:Titanium.UI.INPUT_BORDERSTYLE_ROUNDED
});

urlBox.addEventListener('blur',function(e){
  Ti.API.info(actInd);
  actInd.show();
  webView.url = e.value;
  webView.reload();

});
win1.add(urlBox);
var actInd = Titanium.UI.createActivityIndicator({
  top:50,
  height:55,
  width:'auto',
  color:'#FFFFFF',
  backgroundColor:'#000',
  opacity:0.5,
  borderRadius:5,
  borderColor:'#000',
  font:{fontFamily:'Helvetica Neue', fontSize:13},
  message:' Loading...',
  style:Titanium.UI.iPhone.ActivityIndicatorStyle.PLAIN
});
win1.add(actInd);


var webView = Titanium.UI.createWebView({
  top:50,
  left:0,
  width:'auto',
  height:'auto'
});

webView.addEventListener('load',function(e){
  actInd.hide();
});
win1.add(webView);


//
//  add tabs
//
tabGroup.addTab(tab1);


// open tab group
tabGroup.open();
{'fraction_non_alphanumeric': 0.15687140963323024, 'fraction_numerical': 0.02342023862129916, 'mean_word_length': 4.4033412887828165, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5852679', 'n_tokens_mistral': 914, 'n_tokens_neox': 872, 'n_words': 159}