Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
schilder2000
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schilder
schilder2000
Commits
df4d126a
Commit
df4d126a
authored
9 months ago
by
Thomas Schneider
Browse files
Options
Downloads
Patches
Plain Diff
frontend: Log debug messages as such
parent
23aa4dd4
No related branches found
No related tags found
1 merge request
!6
apply layout of "template preview" for index page "schilder preview"
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontend/src/main.ts
+2
-2
2 additions, 2 deletions
frontend/src/main.ts
with
2 additions
and
2 deletions
frontend/src/main.ts
+
2
−
2
View file @
df4d126a
...
@@ -11,13 +11,13 @@ function onInputHandler(event: Event) {
...
@@ -11,13 +11,13 @@ function onInputHandler(event: Event) {
window
.
addEventListener
(
"
load
"
,
()
=>
{
window
.
addEventListener
(
"
load
"
,
()
=>
{
if
(
document
.
getElementById
(
'
preview
'
))
{
if
(
document
.
getElementById
(
'
preview
'
))
{
for
(
const
el
of
document
.
getElementsByClassName
(
'
input-dispatch
'
))
{
for
(
const
el
of
document
.
getElementsByClassName
(
'
input-dispatch
'
))
{
console
.
lo
g
(
el
);
console
.
debu
g
(
el
);
el
.
addEventListener
(
'
input
'
,
onInputHandler
);
el
.
addEventListener
(
'
input
'
,
onInputHandler
);
}
}
}
}
for
(
const
op
of
document
.
querySelectorAll
(
'
.option .preview
'
))
{
for
(
const
op
of
document
.
querySelectorAll
(
'
.option .preview
'
))
{
console
.
lo
g
(
op
);
console
.
debu
g
(
op
);
const
input_id
=
(
op
as
HTMLElement
).
dataset
.
for
;
const
input_id
=
(
op
as
HTMLElement
).
dataset
.
for
;
if
(
!
input_id
)
{
if
(
!
input_id
)
{
console
.
error
(
"
Missing data-for attribute for
"
,
op
);
console
.
error
(
"
Missing data-for attribute for
"
,
op
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment