comment console.log
This commit is contained in:
parent
c5f7abc43a
commit
a4e503b1ea
@ -10,22 +10,22 @@
|
|||||||
<link rel="stylesheet" href="mastodon-timeline.css">
|
<link rel="stylesheet" href="mastodon-timeline.css">
|
||||||
<style>
|
<style>
|
||||||
*{
|
*{
|
||||||
margin:0;
|
margin: 0;
|
||||||
padding:0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
html{
|
html{
|
||||||
height:100%
|
height: 100%
|
||||||
}
|
}
|
||||||
body{
|
body{
|
||||||
height:100%;
|
height: 100%;
|
||||||
background: lightslategray;
|
background: lightslategray;
|
||||||
font-size:16px;
|
font-size: 16px;
|
||||||
font-family: Arial, Helvetica;
|
font-family: Arial, Helvetica;
|
||||||
margin:0;
|
margin: 0;
|
||||||
padding:0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
.dummy-container {
|
.dummy-container {
|
||||||
height:calc(100% - 4rem);
|
height: calc(100% - 4rem);
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
max-width: 26rem;
|
max-width: 26rem;
|
||||||
padding: 2rem;
|
padding: 2rem;
|
||||||
|
@ -50,7 +50,6 @@ let MastodonApi = function (params_) {
|
|||||||
});
|
});
|
||||||
this.mtBodyContainer.addEventListener('keydown', function (event) {
|
this.mtBodyContainer.addEventListener('keydown', function (event) {
|
||||||
if (event.code === 'Enter' && event.target.localName == 'article') {
|
if (event.code === 'Enter' && event.target.localName == 'article') {
|
||||||
console.log('key event: ', event);
|
|
||||||
openTootURL(event);
|
openTootURL(event);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -91,7 +90,7 @@ MastodonApi.prototype.getToots = function () {
|
|||||||
})
|
})
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(jsonData => {
|
.then(jsonData => {
|
||||||
console.log('jsonData: ', jsonData);
|
// console.log('jsonData: ', jsonData);
|
||||||
|
|
||||||
// Clear the loading message
|
// Clear the loading message
|
||||||
this.mtBodyContainer.innerHTML = '';
|
this.mtBodyContainer.innerHTML = '';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user