|
@@ -215,20 +215,6 @@ window.onload = function() {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-/* search__btn.addEventListener("click", function(e) {
|
|
|
|
- e.preventDefault();
|
|
|
|
- check_form();
|
|
|
|
-}) */
|
|
|
|
-/* input.addEventListener("keyup", function(event) {
|
|
|
|
- // Number 13 is the "Enter" key on the keyboard
|
|
|
|
- if (event.keyCode === 13) {
|
|
|
|
- check_form();
|
|
|
|
- event.preventDefault();
|
|
|
|
-// document.getElementById("myBtn").click();
|
|
|
|
- }
|
|
|
|
-}); */
|
|
|
|
-
|
|
|
|
-// const myChart = echarts.init(document.getElementById('main'));
|
|
|
|
let option;
|
|
let option;
|
|
|
|
|
|
submit__btn.addEventListener('click', function(){
|
|
submit__btn.addEventListener('click', function(){
|
|
@@ -238,57 +224,7 @@ let option;
|
|
text: '等待Telegram訊息通知傳送影片連結,約2分鐘後收到訊息'
|
|
text: '等待Telegram訊息通知傳送影片連結,約2分鐘後收到訊息'
|
|
});
|
|
});
|
|
});
|
|
});
|
|
-/* function check_form(){
|
|
|
|
- const qry = document.getElementById('search_query').value;
|
|
|
|
- axios.get('http://www.googo.org:8080/domain/' + qry)
|
|
|
|
- .then((response) => {
|
|
|
|
- const sitename = document.getElementById('sitename');
|
|
|
|
- const sitetitle = document.getElementById('sitetitle');
|
|
|
|
- const descriptions = document.getElementById('descriptions');
|
|
|
|
- const globalrank = document.getElementById('globalrank');
|
|
|
|
- const countryrank = document.getElementById('countryrank');
|
|
|
|
- const category = document.getElementById('category');
|
|
|
|
|
|
|
|
- console.log(response.data);
|
|
|
|
- // alert(response.data.SiteName);
|
|
|
|
- // var obj = JSON.parse(response.data);
|
|
|
|
- // alert(obj);
|
|
|
|
- itename.textContent =response.data.SiteName;
|
|
|
|
- descriptions.textContent=response.data.Description;
|
|
|
|
- globalrank.textContent=response.data.GlobalRank.Rank;
|
|
|
|
- sitetitle.textContent=response.data.Title;
|
|
|
|
- countryrank.textContent=response.data.CountryRank.Rank;
|
|
|
|
- category.textContent=response.data.Category;
|
|
|
|
-
|
|
|
|
- const key_ary=[];
|
|
|
|
- const val_ary=[];
|
|
|
|
- for (const [key, value] of Object.entries(response.data.EstimatedMonthlyVisits)) {
|
|
|
|
- key_ary.push(key);
|
|
|
|
- val_ary.push(value);
|
|
|
|
- }
|
|
|
|
- option = {
|
|
|
|
- xAxis: {
|
|
|
|
- type: 'category',
|
|
|
|
- boundaryGap: false,
|
|
|
|
- data: key_ary
|
|
|
|
- },
|
|
|
|
- yAxis: {
|
|
|
|
- type: 'value'
|
|
|
|
- },
|
|
|
|
- series: [{
|
|
|
|
- data: val_ary,
|
|
|
|
- type: 'line',
|
|
|
|
- areaStyle: {}
|
|
|
|
- }]
|
|
|
|
- };
|
|
|
|
- myChart.setOption(option);
|
|
|
|
- // sitename.innerHTML =response.data
|
|
|
|
- console.log(response.status);
|
|
|
|
- console.log(response.statusText);
|
|
|
|
- console.log(response.headers);
|
|
|
|
- console.log(response.config);
|
|
|
|
- });
|
|
|
|
- } */
|
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
</body>
|
|
</body>
|