{"payload":{"allShortcutsEnabled":false,"fileTree":{"Resources/views":{"items":[{"name":".DS_Store","path":"Resources/views/.DS_Store","contentType":"file"},{"name":"calevent.js","path":"Resources/views/calevent.js","contentType":"file"},{"name":"committees.js","path":"Resources/views/committees.js","contentType":"file"},{"name":"findsenator.js","path":"Resources/views/findsenator.js","contentType":"file"},{"name":"homemenu.js","path":"Resources/views/homemenu.js","contentType":"file"},{"name":"homeslider.js","path":"Resources/views/homeslider.js","contentType":"file"},{"name":"legislation.js","path":"Resources/views/legislation.js","contentType":"file"},{"name":"more.js","path":"Resources/views/more.js","contentType":"file"},{"name":"newsroom.js","path":"Resources/views/newsroom.js","contentType":"file"},{"name":"olsearch.js","path":"Resources/views/olsearch.js","contentType":"file"},{"name":"senator.js","path":"Resources/views/senator.js","contentType":"file"},{"name":"senators.js","path":"Resources/views/senators.js","contentType":"file"},{"name":"today.js","path":"Resources/views/today.js","contentType":"file"},{"name":"videos.js","path":"Resources/views/videos.js","contentType":"file"},{"name":"welcome.js","path":"Resources/views/welcome.js","contentType":"file"}],"totalCount":15},"Resources":{"items":[{"name":"android","path":"Resources/android","contentType":"directory"},{"name":"img","path":"Resources/img","contentType":"directory"},{"name":"inc","path":"Resources/inc","contentType":"directory"},{"name":"iphone","path":"Resources/iphone","contentType":"directory"},{"name":"views","path":"Resources/views","contentType":"directory"},{"name":"Default.png","path":"Resources/Default.png","contentType":"file"},{"name":"app-grid.js","path":"Resources/app-grid.js","contentType":"file"},{"name":"app-menu.js","path":"Resources/app-menu.js","contentType":"file"},{"name":"app-tabs.js","path":"Resources/app-tabs.js","contentType":"file"},{"name":"app.js","path":"Resources/app.js","contentType":"file"},{"name":"appicon.png","path":"Resources/appicon.png","contentType":"file"},{"name":"globals.js","path":"Resources/globals.js","contentType":"file"},{"name":"tabs.js","path":"Resources/tabs.js","contentType":"file"}],"totalCount":13},"":{"items":[{"name":"Resources","path":"Resources","contentType":"directory"},{"name":"build","path":"build","contentType":"directory"},{"name":"LICENSE-APPCELERATOR","path":"LICENSE-APPCELERATOR","contentType":"file"},{"name":"LICENSE-APPCELERATOR.txt","path":"LICENSE-APPCELERATOR.txt","contentType":"file"},{"name":"README","path":"README","contentType":"file"},{"name":"SENATE-CODE-LICENSE.txt","path":"SENATE-CODE-LICENSE.txt","contentType":"file"},{"name":"manifest","path":"manifest","contentType":"file"},{"name":"tiapp.xml","path":"tiapp.xml","contentType":"file"}],"totalCount":8}},"fileTreeProcessingTime":16.456322999999998,"foldersToFetch":[],"repo":{"id":703141,"defaultBranch":"master","name":"NYSenateMobileApp","ownerLogin":"nysenate","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2010-06-04T12:04:11.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/94091?v=4","public":true,"private":false,"isOrgOwned":true},"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"dea315f5054dfa5c8fa8f6d810b29302cd974407","listCacheKey":"v0:1613794238.230797","canEdit":false,"refType":"tree","currentOid":"dea315f5054dfa5c8fa8f6d810b29302cd974407"},"path":"Resources/views/senator.js","currentUser":null,"blob":{"rawLines":["Ti.include(\"../globals.js\");","","var SENATOR_IMAGE_BASE = \"http://www.nysenate.gov/files/imagecache/teaser_featured_image/profile-pictures/\";","","var win = Titanium.UI.currentWindow;","var IMAGE_RESIZER = \"http://nysenatemobile.appspot.com/servlet/ImageResizer?url=\";","","win.backgroundImage = \"../img/bg/wood.jpg\";","","var senatorName = win.senatorName;","var senatorImage = SENATOR_IMAGE_BASE + escape(win.senatorImage);","var senatorKey = win.senatorKey;","var senatorDistrict = win.senatorDistrict;","var senatorNodeId = win.nid;","var senatorUrl = win.senatorUrl;","","var twitter = win.twitter;","var facebook = win.facebook;","var youtube = win.youtube;","","var senatorTitleText = \"Senator\\n\" + senatorName + \"\\n\" + \"District \" + senatorDistrict;","","","var senSearchKey = senatorName;","","senSearchKey = senSearchKey.replace(\"Jr.\",\"\");","senSearchKey = senSearchKey.replace(\"Jr\",\"\");","senSearchKey = senSearchKey.replace(\"Sr.\",\"\");","senSearchKey = senSearchKey.replace(\"Sr\",\"\");","senSearchKey = senSearchKey.replace(\".\",\"\");","","var legSearchKey = senatorKey;","legSearchKey = legSearchKey.replace(\"-jr\",\"\");","legSearchKey = legSearchKey.replace(\"-sr\",\"\");","legSearchKey = legSearchKey.substring(legSearchKey.lastIndexOf(\"-\")+1);","","Ti.API.info(\"got senator image: \" + senatorImage);","","/*","var cachedImage = getCachedFile(senatorImage);","\t\t\t\t","\tif (!cachedImage)","\t{","\t\tcacheFile(senatorImage);","\t\tcachedImage = senatorImage;","\t}","\t*/","\t","var imgSenator = Titanium.UI.createImageView({","\turl:senatorImage,","\twidth:85,","\theight:112,","\ttop:30,","\tleft:10,","\tvisible:true,","\tbackgroundColor:\"#ffffff\",","\tborderColor:\"#ffffff\",","\tborderWidth:5","});",""," ","imgSenator.addEventListener('singletap',function(e)","{","\tvar senatorImageFull = senatorImage.replace(\"files/imagecache/teaser_featured_image/\",\"files/imagecache/full_node_featured_image/\" );","","\tvar htmlData = '