Sha256: 8b73d5ad1501413f3f9cfca9ecb2b63a104c81834f37e34c771dd68d410aa8df

Contents?: true

Size: 557 Bytes

Versions: 9

Compression:

Stored size: 557 Bytes

Contents

// LOAD everything
import "@hotwired/turbo-rails"
import {stimulus} from "./stimulus"

import WebController from "../pages/web"
import SiteStimulusController from "../pages/stimulus.js"

import "../stylesheets/application.scss"
console.log("Kotaro is here")
console.log(window.location.hash.slice(1))

const textElement = document.getElementById(window.location.hash.slice(1))
if(textElement !== null){
    textElement.scrollIntoView({behavior: "smooth"})
}
stimulus.register("web", WebController)
stimulus.register("site-stimulus", SiteStimulusController)

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
sun-sword-0.0.9 lib/generators/sun_sword/templates_frontend/frontend/entrypoints/application.js
sun-sword-0.0.8 lib/generators/sun_sword/templates_frontend/frontend/entrypoints/application.js
sun-sword-0.0.7 lib/generators/sun_sword/templates_frontend/frontend/entrypoints/application.js
sun-sword-0.0.6 lib/generators/sun_sword/templates_frontend/frontend/entrypoints/application.js
sun-sword-0.0.5 lib/generators/sun_sword/templates_frontend/frontend/entrypoints/application.js
sun-sword-0.0.4 lib/generators/sun_sword/templates_frontend/frontend/entrypoints/application.js
sun-sword-0.0.3 lib/generators/sun_sword/templates_frontend/frontend/entrypoints/application.js
sun-sword-0.0.2 lib/generators/sun_sword/templates_frontend/frontend/entrypoints/application.js
sun-sword-0.0.1 lib/generators/sun_sword/templates_frontend/frontend/entrypoints/application.js