INNER CODE UNIT · JavaScript
NewBlocker
carvel-dev/ytt · pkg/website/js/app.js:303
function NewBlocker(el) {
return {
on: function() { el.show(); },
off: function() { el.hide(); }
}
}
function NewExampleLocation() {
var prefix = "#example:";
return {
isSet: function() {
return window.location.hash && window.location.hash.startsWith(prefix);
},
get: function() {
var defaultExample = "example-demo";
if (window.location.hash) {
if (window.location.hash.startsWith(prefix)) {
defaultExample = window.location.hash.replace(prefix, "", 1)