Commit 05ebf4ed authored by PkSM3's avatar PkSM3

[UPDATE] delete old code

parent 054df082
......@@ -1014,126 +1014,3 @@ function AfterAjax() {
// hola.split("")
// $.when(
// $.ajax({
// type: "GET",
// url: url0,
// dataType: "json",
// success : function(data, textStatus, jqXHR) {
// for(var i in data.data) {
// NGrams["stop"][data.data[i].id] = data.data[i]
// }
// },
// error: function(exception) {
// console.log("first ajax, exception!: "+exception.status)
// }
// }),
// $.ajax({
// type: "GET",
// url: url1,
// dataType: "json",
// success : function(data, textStatus, jqXHR) {
// NGrams["group"] = data
// },
// error: function(exception) {
// console.log("first ajax, exception!: "+exception.status)
// }
// }),
// $.ajax({
// type: "GET",
// url: url2,
// dataType: "json",
// success : function(data, textStatus, jqXHR) {
// for(var i in data.data) {
// NGrams["map"][data.data[i].id] = data.data[i]
// }
// },
// error: function(exception) {
// console.log("first ajax, exception!: "+exception.status)
// }
// }),
// $.ajax({
// type: "GET",
// url: url3,
// dataType: "json",
// success : function(data, textStatus, jqXHR) {
// NGrams["main"] = {
// "ngrams": data.data,
// "scores": {
// "initial":"occ_uniq",
// "nb_docs":data.data.length,
// "orig_nb_ngrams":1,
// "nb_ngrams":data.data.length,
// }
// }
// },
// error: function(exception) {
// console.log("second ajax, exception!: "+exception.status)
// }
// })
// ).then(function() {
// // Deleting subforms from the ngrams-table, clean start baby!
// if( Object.keys(NGrams["group"].links).length>0 ) {
// var _forms = { "main":{} , "sub":{} }
// for(var i in NGrams["group"].links) {
// _forms["main"][i] = true
// for(var j in NGrams["group"].links[i]) {
// _forms["sub"][ NGrams["group"].links[i][j] ] = true
// }
// }
// var ngrams_data_ = []
// for(var i in NGrams["main"].ngrams) {
// if(_forms["sub"][NGrams["main"].ngrams[i].id]) {
// NGrams["group"]["nodes"][NGrams["main"].ngrams[i].id] = NGrams["main"].ngrams[i]
// } else {
// // if( _forms["main"][ NGrams["main"].ngrams[i].id ] )
// // NGrams["main"].ngrams[i].name = "*"+NGrams["main"].ngrams[i].name
// ngrams_data_.push( NGrams["main"].ngrams[i] )
// }
// }
// NGrams["main"].ngrams = ngrams_data_;
// }
// if( Object.keys(NGrams["map"]).length>0 ) {
// for(var i in NGrams["main"].ngrams) {
// if(NGrams["map"][NGrams["main"].ngrams[i].id]) {
// NGrams["main"].ngrams[i]["state"] = System[0]["statesD"]["keep"]
// }
// }
// }
// // Building the Score-Selector //NGrams["scores"]
// var FirstScore = NGrams["main"].scores.initial
// var possible_scores = Object.keys( NGrams["main"].ngrams[0].scores );
// var scores_div = '<br><select style="font-size:25px;" class="span1" id="scores_selector">'+"\n";
// scores_div += "\t"+'<option value="'+FirstScore+'">'+FirstScore+'</option>'+"\n"
// for( var i in possible_scores ) {
// if(possible_scores[i]!=FirstScore) {
// scores_div += "\t"+'<option value="'+possible_scores[i]+'">'+possible_scores[i]+'</option>'+"\n"
// }
// }
// // Initializing the Charts and Table
// console.log( NGrams["main"] )
// var result = Main_test( NGrams["main"] , FirstScore , "filter_all")
// console.log( result )
// // Listener for onchange Score-Selector
// scores_div += "<select>"+"\n";
// $("#ScoresBox").html(scores_div)
// $("#scores_selector").on('change', function() {
// console.log( this.value )
// var result = Main_test( NGrams["main"] , this.value , "filter_all")
// console.log( result )
// });
// $("#corpusdisplayer").show()
// $("#content_loader").remove()
// $("#corpusdisplayer").click()
// });
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment