Description

INJECT CSS 2 - Use CSS stylesheet in Construct 3

Example Files

css-version.c3p (163.28 KB)

Add, change and delete CSS (and style class)

Version History

Version Size Downloads Released
0.0.0.2 (Current)
Stable
9.13 KB 370 Download

Share

Download

0.0.0.2 Stable (9.13 KB)

Info

Statistics

  • Download count370 total downloads
  • Latest download count 370 downloads of latest version
  • Average download count1 downloads per day average

Owners

  • 4 Comments

  • Order by
Want to leave a comment? Login or Register an account!
  • took me quite a while to understand how to use it on another plugin, but I managed to do what I wanted with it in the end, nice job.

  • removed the inject JS option ? why ?

    • Because you can do this via Vanilla C3. Add a JS script in the editor and insert this

      runOnStartup(async runtime =>

      {

      runtime.addEventListener("beforeprojectstart", () => LoadExternalScript(runtime));

      });

      async function LoadExternalScript(runtime)

      {

      await runtime.assets.loadScripts("https://apis.google.com/js/api.js");

      await runtime.assets.loadScripts("https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js");

      }

      I think it's better to use the official way instead of a custom option that replicates the official one.