diff --git a/local-dev-index.html b/local-dev-index.html new file mode 100644 index 0000000..d99bb7d --- /dev/null +++ b/local-dev-index.html @@ -0,0 +1,202 @@ + + +
+ +' + module.description + '
'; - if (module.hasOwnProperty("apk_file")){ - var sizeClause = ''; - if (module.hasOwnProperty("apk_file_size")) - sizeClause = ' (' + module.apk_file_size + ')'; - if (menuConfig['apkLinkPhrase'].hasOwnProperty(module.lang)) - html+='' + menuConfig['apkLinkPhrase'][module.lang] + ' ' + module.apk_file + sizeClause + '
'; - else - html+='Click here to download ' + module.apk_file + '
'; + + function calcLink(href, module) { + var startPage = href; + + // record href for extra html + menuDefs[module.menu_item_name]['href'] = href; + + if (module.hasOwnProperty('start_url')) startPage = href + '/' + module['start_url']; + + var html = '' + module.description + '
'; + + if (module.hasOwnProperty('apk_file')) { + var sizeClause = ''; + if (module.hasOwnProperty('apk_file_size')) { sizeClause = ' (' + module.apk_file_size + ')'; } + if (menuConfig['apkLinkPhrase'].hasOwnProperty(module.lang)) { + html += + '' + + menuConfig['apkLinkPhrase'][module.lang] + + ' ' + + module.apk_file + + sizeClause + + '
'; + } else { + html += 'Click here to download ' + module.apk_file + '
'; + } + } + + consoleLog('href = ' + href); + html += ''; // scaffold for extra html + html += '