Index: /branches/testa-single-bookmark/js/build.js
===================================================================
--- /branches/testa-single-bookmark/js/build.js	(revision 43)
+++ /branches/testa-single-bookmark/js/build.js	(revision 43)
@@ -0,0 +1,37 @@
+class Build {
+    constructor(){
+    }
+
+    setup(){
+	let item = $( '#data-build-build' )
+	item.on('click' , () => {
+	    const part = Globalx.parts[ Globalx.index ]
+	    const cmd = "build_one_html"
+	    let textarea = $( Globalx[part].textarea_sel )
+	    const content = textarea.val()
+
+	    Globalx.remotex.upload_file( cmd, Globalx.num, part, Globalx[part].key, content , (data) => {
+		if ( data !== undefined ){
+		    let array = null
+		    let len = null
+		    const obj = JSON.parse(data)
+
+		    array = obj["full_download_url"].split('/')
+		    len = array.length
+		    $('#data-down-url').attr('href' , obj["full_download_url"])
+
+		    $('#data-down-url').text( "Full HTML:" + array[len - 1] )
+
+		    array = obj["partial_download_url"].split('/')
+		    len = array.length
+		    $('#data-partial-down-url').attr('href' , obj["partial_download_url"])
+		    $('#data-partial-down-url').text( "Partial HTML:" + array[len - 1] )
+
+		}
+		else{
+		    console.log( "data=return undefined" )
+		}
+	    })
+	} )
+    }
+}
