Skip to content

Commit

Permalink
feat(event): fixed assets for "karlsruhejs-20230809"
Browse files Browse the repository at this point in the history
  • Loading branch information
TimPietrusky committed Aug 10, 2023
1 parent 09cf110 commit e63e64e
Show file tree
Hide file tree
Showing 34 changed files with 64 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/karlsruhejs-20230809/assets/chalkboard_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/karlsruhejs-20230809/assets/chalkboard_2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/karlsruhejs-20230809/assets/chalkboard_3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/karlsruhejs-20230809/assets/chalkboard_4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/karlsruhejs-20230809/assets/chalkboard_5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/karlsruhejs-20230809/assets/chalkboard_6.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/karlsruhejs-20230809/assets/chalkboard_7.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/karlsruhejs-20230809/assets/chalkboard_8.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/karlsruhejs-20230809/assets/chalkboard_9.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/karlsruhejs-20230809/assets/developer.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/karlsruhejs-20230809/assets/dinosaurs.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/karlsruhejs-20230809/assets/do_not_cross.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/karlsruhejs-20230809/assets/failfast.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/karlsruhejs-20230809/assets/hyv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/karlsruhejs-20230809/assets/in_action.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/karlsruhejs-20230809/assets/intro.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/karlsruhejs-20230809/assets/linkedin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/karlsruhejs-20230809/assets/nerddisco.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/karlsruhejs-20230809/assets/nerddisco.xcf
Binary file not shown.
Binary file added docs/karlsruhejs-20230809/assets/openai_gpt.jpg
Binary file not shown.
Binary file added docs/karlsruhejs-20230809/assets/vector_cloud.jpg
63 changes: 63 additions & 0 deletions docs/karlsruhejs-20230809/src/components/toast.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
class ToastComponent extends HTMLElement {
constructor() {
super();
this.attachShadow({ mode: "open" });
this.render();
}

connectedCallback() {
// Listen for slide changes
Reveal.addEventListener("slidechanged", this.updateToast.bind(this));
this.updateToast(); // Initial check
}

updateToast() {
const currentSlide = Reveal.getCurrentSlide();
const toastContent = currentSlide.querySelector(".toast");

if (toastContent) {
this.shadowRoot.querySelector(".toast-container").innerHTML = toastContent.innerHTML;
this.shadowRoot.querySelector(".toast-container").style.display = "block";
} else {
this.shadowRoot.querySelector(".toast-container").style.display = "none";
}
}

render() {
this.shadowRoot.innerHTML = `
<style>
.toast-container {
position: fixed;
bottom: 1rem;
left: 1rem;
z-index: 1000;
background-color: var(--toast-bg);
padding: 10px;
display: none;
color: var(--toast-color);
font-size: calc(var(--toast-size) * 2);
font-family: var(--toast-font);
font-weight: var(--toast-font-weight);
line-height: var(--toast-line-height);
letter-spacing: var(--toast-letter-spacing);
text-transform: var(--toast-text-transform);
}
.toast-container a {
color: var(--toast-link-color);
text-decoration: var(--toast-link-text-decoration);
transition: color 0.3s ease;
}
.toast-container a:hover, .toast-container a:focus {
color: var(--toast-link-hover-color);
text-decoration: var(--toast-link-hover-text-decoration);
}
</style>
<div class="toast-container"></div>
`;
}
}

// Define the custom element
customElements.define("toast-component", ToastComponent);
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,8 @@ gulp.task(
"./lib/**",
"./images/**",
"./plugin/**",
"./**/*.md",
"./assets/**",
"./src/**",
],
{ base: "./" }
)
Expand Down

0 comments on commit e63e64e

Please sign in to comment.