Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on JavaScript console when no announcement shown #49210

Closed
parkilwoo opened this issue Dec 23, 2024 · 10 comments
Closed

Error on JavaScript console when no announcement shown #49210

parkilwoo opened this issue Dec 23, 2024 · 10 comments
Labels
area/web-development Issues or PRs related to the kubernetes.io's infrastructure, design, or build processes kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. triage/duplicate Indicates an issue is a duplicate of other open issue.

Comments

@parkilwoo
Copy link

$(document).ready(function() {
    function s(e, t, n) {
        let o = ""
          , s = new Date
          , i = 24 * 60 * 60 * 1e3;
        n && (s.setTime(s.getTime() + n * i),
        o = "; expires=" + s.toUTCString()),
        document.cookie = e + "=" + t + o + "; path=/"
    }
    function o(e) {
        let t = document.cookie.match(new RegExp("(?:^|; )" + e.replace(/([.$?*|{}()[\]\\/+^])/g, "\\$1") + "=([^;]*)"));
        return t ? "true" : void 0
    }
    let e = document.querySelector("#announcement")
      , n = `announcement_ack_${e.getAttribute("data-announcement-name").replace(/\s/g, "_")}`
      , i = o(n);
    i === "true" ? e.remove() : e.classList.add("display-announcement");
    let t = document.querySelector("#banner-dismiss");
    t.removeAttribute("style"),
    t.addEventListener("click", function() {
        s(n, "true", t.getAttribute("data-ttl")),
        e.remove()
    })
})

In the code above, e is null in the let e = document.querySelector("#announcement") part. Please check “#announcement”.
Screenshot from 2024-12-23 15-10-12

@k8s-ci-robot
Copy link
Contributor

This issue is currently awaiting triage.

SIG Docs takes a lead on issue triage for this website, but any Kubernetes member can accept issues by applying the triage/accepted label.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Dec 23, 2024
@parkilwoo parkilwoo changed the title 대화형 튜토리얼 - 앱 배포하기 대화형 튜토리얼 - 앱 배포하기 (Cannot found announcement selector) Dec 23, 2024
@sftim
Copy link
Contributor

sftim commented Dec 23, 2024

/retitle Error on JavaScript console when no announcement shown
/kind bug

@k8s-ci-robot k8s-ci-robot changed the title 대화형 튜토리얼 - 앱 배포하기 (Cannot found announcement selector) Error on JavaScript console when no announcement shown Dec 23, 2024
@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Dec 23, 2024
@sftim
Copy link
Contributor

sftim commented Dec 23, 2024

/area web-development

For me, this wouldn't be a priority to fix.

@k8s-ci-robot k8s-ci-robot added the area/web-development Issues or PRs related to the kubernetes.io's infrastructure, design, or build processes label Dec 23, 2024
@parkilwoo
Copy link
Author

I can't proceed with the tutorial due to an issue. What should I do?

@sftim
Copy link
Contributor

sftim commented Dec 23, 2024

@parkilwoo can you describe the symptoms you are seeing when you try to follow a tutorial?

@parkilwoo
Copy link
Author

The interactive tutorial does not work.
I think it might be a problem as katacoda ends its service.

@dipesh-rawat
Copy link
Member

The interactive tutorial does not work.

@parkilwoo Katacoda environment for the Kubernetes tutorial has been shut down. Refer the announcement here.

We have an umbrella issue raised #41496 to remove tutorials that rely on Katacoda for all localized documents.

@dipesh-rawat
Copy link
Member

It seems that the issue regarding the JavaScript console errors has already been reported and is being tracked in our backlog as part of #45830.

/triage duplicate

Marking this as duplicate in favor of existing issue #45830
(Feel free to remove the label if this is incorrect.)

@k8s-ci-robot k8s-ci-robot added the triage/duplicate Indicates an issue is a duplicate of other open issue. label Dec 24, 2024
@sftim
Copy link
Contributor

sftim commented Dec 24, 2024

Nothing [new] to fix.

/close not-planned

@k8s-ci-robot k8s-ci-robot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 24, 2024
@k8s-ci-robot
Copy link
Contributor

@sftim: Closing this issue, marking it as "Not Planned".

In response to this:

Nothing [new] to fix.

/close not-planned

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/web-development Issues or PRs related to the kubernetes.io's infrastructure, design, or build processes kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. triage/duplicate Indicates an issue is a duplicate of other open issue.
Projects
None yet
Development

No branches or pull requests

4 participants