From 08907296796d53b2032d918add46683b16716974 Mon Sep 17 00:00:00 2001 From: "racha.non" Date: Thu, 30 Jun 2016 17:09:35 +0700 Subject: [PATCH] 0.0.7.30.6 --- css/stdb.css | 2 +- js/stdb.js | 52 ++++++++++++++++++++++++++-------------------------- stat.html | 4 ++-- 3 files changed, 29 insertions(+), 29 deletions(-) diff --git a/css/stdb.css b/css/stdb.css index 8123ac1..00f9055 100644 --- a/css/stdb.css +++ b/css/stdb.css @@ -68,7 +68,7 @@ img{ width: 100%; color:#FFF; font-size:30px; - z-index:10; + z-index:1; } .container{ margin-right: auto; diff --git a/js/stdb.js b/js/stdb.js index 83c7a99..f183ee8 100644 --- a/js/stdb.js +++ b/js/stdb.js @@ -85,7 +85,7 @@ function getUser(status){ token = sessionStorage.getItem("token") var searchText = '' if (status === 'search'){ - console.log("search") + // console.log("search") dataInstrument = [] searchText = '&search='+document.getElementById("searchId").value start = 0 @@ -94,12 +94,12 @@ function getUser(status){ htmlText = ''; modalText = ''; dataInstrument = []; - console.log(' >> end of search button'); - console.log(dataInstrument) - console.log($('#card').html()); + // console.log(' >> end of search button'); + // console.log(dataInstrument) + // console.log($('#card').html()); } var url = 'http://www.serv.stdb.most.go.th/api/v2/instrument/?organization='+respone.organizations[0].id+searchText; - console.log('url = ' + url) + // console.log('url = ' + url) $.ajax({ type: "GET", url: url, @@ -141,7 +141,7 @@ function getData(respone) { var modalText = '' for (i=start;i'// end of right // End +''; - console.log(dataInstrument[i].clips.length) + // console.log(dataInstrument[i].clips.length) if(dataInstrument[i].clips.length === 0){ - console.log('========= = 0 =========') + // console.log('========= = 0 =========') imageTag = '
' +'
' +'
' @@ -188,7 +188,7 @@ function getData(respone) { else{ var style4 = '' if(dataInstrument[i].clips.length >= 2){ - console.log('*********** >= 2 ***********') + // console.log('*********** >= 2 ***********') var tagMiniImage = '' var loopImage = dataInstrument[i].clips.length if (loopImage > 4){ @@ -212,7 +212,7 @@ function getData(respone) { } } else{ - console.log('*********** < 2 ***********') + // console.log('*********** < 2 ***********') var tagMiniImage = '' for(j=1;j<4;j++){ if (j==3){ @@ -328,11 +328,11 @@ function uploadImage(idImage) { $(":file").change(function () { if (this.files && this.files[0] && check===0) { var reader = new FileReader(); - console.log(reader) + // console.log(reader) reader.onload = function(e) { instrument = dataInstrument[parseInt(idImage)] - console.log(instrument) - console.log('-------------xxxx-------------') + // console.log(instrument) + // console.log('-------------xxxx-------------') var uriAdd = [{'uri':e.target.result}]; dataUri = dataUri.concat(uriAdd); if(idImage == 'add'){ @@ -344,22 +344,22 @@ function uploadImage(idImage) { $('#myImg'+idImg+''+idImage).attr('src', dataInstrument[idImage].clips[idImg].photo); } } - console.log(idImage) + // console.log(idImage) var dataUriSort = dataUri idloopImage = loopImage if(loopImage==0){ idloopImage = 0 } var idUri = 0 - console.log(dataUri) - console.log(loopImage-1) - console.log(idloopImage+dataUri.length) + // console.log(dataUri) + // console.log(loopImage-1) + // console.log(idloopImage+dataUri.length) for(idImg=loopImage;idImg function getStatAll(){ urlStat = 'http://expert.traffy.xyz/api/v2/organization/stats/' - console.log(urlStat) + // console.log(urlStat) $.ajax({ type: "GET", url: urlStat, @@ -78,7 +78,7 @@ } function getData(respone){ - console.log(respone) + // console.log(respone) var htmlText = '' for (i=0;i"